Create multiple API's for different products in APIM

Vikas Tiwari 766 Reputation points
2022-09-09T00:23:11.607+00:00

Hi,

I have tried to create following api's separately but due to limitation of api url suffix (which must be unique for each api) it doesnt allow to do so.

I wanted to know if there any way I can deploy following api's for different products in APIM?

1) mydomain.com/api/v1/customer -> Get operation -> product name : "Customer"
2) mydomain.com/api/v1/customer -> Post/Put/Delete operation -> product name : "Management"

Thanks

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

Accepted answer
  1. MuthuKumaranMurugaachari-MSFT 22,311 Reputation points
    2022-09-09T14:33:33.77+00:00

    @Vikas Tiwari Thank you for reaching out to Microsoft Q&A.

    As you mentioned, each API must have a unique API URL suffix and that's how APIM distinguishes each API. Also, Products are associated with one or more API(s) and cannot be associated to Operation. Check docs that describe below:

    239552-image.png

    So, unfortunately you cannot create two APIs with same URL suffix or same API with different operations to associate with different products. You can submit a feature request or feedback to our product team via https://aka.ms/apimwish (like this https://feedback.azure.com/d365community/idea/ba08e6f3-ff24-ec11-b6e6-000d3a4f0858) so that others with similar ask can upvote it too.

    I hope this answers your question and feel free to add if you have any questions. I would be happy to assist you.

    Please 'Accept as answer' and ‘Upvote’ if it helped so that it can help others in the community.


1 additional answer

Sort by: Most helpful
  1. risolis 8,721 Reputation points
    2022-09-09T02:32:39.28+00:00

    Hello @Vikas Tiwari

    Thank you for your post on this space.

    I would like to gather the next articles which seems very similar for what you were describing previously.... So please direct yourself down below:

    https://learn.microsoft.com/en-us/azure/api-management/mock-api-responses?source=recommendations&tabs=azure-portal

    https://learn.microsoft.com/en-us/azure/api-management/private-endpoint

    I hope you can find this useful to overcome your concern.

    Looking forward to your feedback,

    Cheers,

    Please "Accept the answer" if the information helped you. This will help us and others in the community as well.

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.