membrane / api-gateway

API gateway for REST, OpenAPI, GraphQL and SOAP written in Java.
https://membrane-api.io
Apache License 2.0
448 stars 138 forks source link

How to route based on a query parameter? #1139

Open predic8 opened 2 weeks ago

predic8 commented 2 weeks ago

Route ?customer=7 to different endpoint then

Route ?customer=8

predic8 commented 2 weeks ago

Maybe with the same approach as the canary requirement

predic8 commented 1 week ago

Can I use a setProperty or setHeader to create a property with the value of the customer?

predic8 commented 1 week ago

APIProxy: add attribute test="..."

OpenAPIProxyServiceKey: complexMatch: test addionally if apiproxy has a test if so execute test with SpEL and use the result for the return