In Azure API Management (APIM), I want to setup wildcards for all GET and POST operations to my backend service. I'm encountering an issue where the consumer has to specify a trailing slash in order for the request to complete.
The wildcard is specified in APIM like this:
Example, these all work:
{{endpoint}}/devices/ <-- notice trailing slash here)
{{endpoint}}/devices/12345
{{endpoint}}/devices/12345/foo
It's just the base endpoint of a resource that does not work without the trailing slash, like:
{{endpoint}}/devices
In my particular case, it doesn't seem to recognise the route without the explicit trailing slash and requires the user to authenticate.
Is there a way to accept both with/without trailing slashes?