How to host multiple developer portals using one APIM instance.

Chinmay Sonawane 65 Reputation points
2024-04-16T05:47:45.03+00:00

We have a managed portal that comes with the default. And we have self hosted a portal else where by cloning the code from github. But since in the designer when we make any changes like change the font color or add new text - It gets reflected in both the portals!

Therefore, how can i solve this issue of designer to save the styles and content in different places. Thanks

Azure API Management
Azure API Management
An Azure service that provides a hybrid, multi-cloud management platform for APIs.
1,760 questions
{count} votes

1 answer

Sort by: Most helpful
  1. JananiRamesh-MSFT 21,246 Reputation points
    2024-04-18T08:05:41.1066667+00:00

    @Chinmay Sonawane Thanks for reaching out. It appears that the issue you are experiencing is due to the fact that both portals are using the same content, which is stored in the same APIM service. This is expected behavior, as all portals in the same API Management service share the same content.

    To differentiate the appearance and functionality of each portal, you can self-host them with your own custom widgets that dynamically customize pages at runtime. This can be done by creating custom JavaScript code that runs on the portal pages and modifies the appearance and behavior of the page based on the URL or other criteria.

    For example, you could create a custom widget that changes the font color or adds new text based on the URL of the portal. This would allow you to differentiate the appearance of each portal while still using the same content.

    Reference: https://learn.microsoft.com/en-us/azure/api-management/developer-portal-faq#can-i-have-multiple-developer-portals-in-one-api-management-service

    do let me know incase of further queries, I would be happy to assist you.