Azure API Management Versioning: making Query Parameter scheme case insensitive

RedasK 6 Reputation points
2021-10-13T07:42:11.127+00:00

Hello,

Apologies if this was asked before, my search yielded no results.

Our team is introducing versions to our APIs. If we introduce API versioning with the Query Parameter scheme, how do we make the version case insensitive?

Example:

140142-image.png
In the example above, querying with the query string parameter 'preview' (lower case) instead of 'Preview' would result in 404 not found status code.

We tried transformation policies as described in Azure docs but that didn't help.

Any other ideas or is this just the way versioning was designed? Any help or pointing in the right direction would be greatly appreciated.

Azure API Management
Azure API Management
An Azure service that provides a hybrid, multi-cloud management platform for APIs.
1,752 questions
0 comments No comments
{count} vote

1 answer

Sort by: Most helpful
  1. MayankBargali-MSFT 68,471 Reputation points
    2021-10-18T12:03:58.497+00:00

    @RedasK AFAIK it is not possible and it matches with the exact query string (with case sensitive) but I will get the confirmation from my team and will update my answer.

    Update:
    As URL is case sensitive so it would not be possible. The policy will not help as APIM is the first one to handle the request and it returns the 404 as the URL is case sensitive.
    There is already discussion in stack but not specifically related to APIM but discussion on related to URL case sensitive.

    1 person found this answer helpful.
    0 comments No comments