3
votes

I would like to setup an Azure API Gateway that accepts requests for a backend service and simply passes the requests through to the backend with no modification. For example: (-> means it would get routed to)

https://dude.azure-api.net/foo -> https://realapi.mycompany.com/foo

https://dude.azure-api.net/bar -> https://realapi.mycompany.com/bar

etc

I want to use wild cards to set this up so that I don't have to specify every single endpoint in every single API.

This is very, very similar to Use Azure Api Management as a passthrough

however, I have a combination of GET's and POST's so that accepted solution won't work.

Can anyone tell me how to do this?

2

2 Answers

3
votes

You will have to create wildcard operation per HTTP method. For sample above you could create two APIs, one with /foo suffix, and another with /bar. Both should have two operations - GET and POST - with "/*" as URI template.

Alternatively if you want complete passthrough - create single API with "/" suffix and two operations - GET and POST - both with "/*" URI template.

0
votes

For complete pass-though, you just need to specify "/" as the API URL Suffix