Share via


How to Create Multiple API URL Suffix for an API ?

Question

Friday, June 1, 2018 5:37 AM

Hi,

How to create multiple API URL suffix for an API?

Thanks.

All replies (6)

Friday, June 1, 2018 6:29 AM

The suffix is a name that identifies this specific API in this APIM instance. It has to be unique in this APIM instance.

If this answer was helpful, click “Mark as Answer” or “Up-Vote”. To provide additional feedback on your forum experience, click here


Friday, June 1, 2018 7:05 AM

Hi Pradeep,

Thank you.

I need to expose one API to multiple users. So i want to give them a different gateway URL.

For example,
 I created a APIM instance "SampleAPI". So I got Gateway URL as "https://sampleapi.azure-api.net".
I created a API "SampleApiProx" under this APIM. now the BaseURL of this API is "https://sampleapi.azure-api.net".

I want to expose this API to different Users 'A', 'B'. So i want to give them a diff url for each.

How to achieve this?

Thanks.


Friday, June 1, 2018 7:31 AM

Note: The suffix is appended to the base URL for the API management service. API Management distinguishes APIs by their suffix and therefore the suffix must be unique for every API for a given publisher.

Go your APIs and add API URL suffix to change different Base URL.

Example: If you add your API URL suffix as “SampleApiProx” then the base url changes to https://sampleapi.azure-api.net/SampleApiProx.

If this answer was helpful, click “Mark as Answer” or “Up-Vote”. To provide additional feedback on your forum experience, click here


Friday, June 1, 2018 8:12 AM

Hi Pradeep,

Thanks.

As mentioned Previously,

If i have a Base URL https://sampleapi.azure-api.net/SampleApiProx, I can give the URL to external users as below

User 'A': https://sampleapi.azure-api.net/SampleApiProx.
User 'B': https://sampleapi.azure-api.net/SampleApiProx.

But What i need is,
User 'A': https://sampleapi.azure-api.net/SampleApiProxA
User 'B': https://sampleapi.azure-api.net/SampleApiProxB

How can we do this with Single API?


Saturday, June 2, 2018 5:10 AM

You cannot create multiple API URL suffix for an API, because “API URL Suffix” will be unique for every API for a given publisher.

There will be only single API URL suffix, in your scenario i.e, (https://sampleapi.azure-api.net/SampleApiProx.).

If this answer was helpful, click “Mark as Answer” or “Up-Vote”. To provide additional feedback on your forum experience, click here


Tuesday, June 5, 2018 5:34 AM

Checking in to see if the above answer helped. Let me know if there are still any additional issues I can help with.