Request for Server Variable as API Base URL in Swagger-Imported APIs

Hi Apidog Team,

I am currently using Apidog to document and test APIs for my live website, which is being accessed by multiple customers. Each customer has their own unique base URL.

I understand that Apidog supports environment variables for managing different base URLs. However, I need a way to allow end-users (my customers) to input their base URL dynamically when using the “Try It” feature on my API documentation site.

Instead of hardcoding all possible base URLs or maintaining separate environments, I want every API request on the documentation page to have a server variable like this before the endpoint:
https://{your-server-name}
So that the customer can simply replace {your-server-name} with their actual base URL and execute the API using the Try It feature directly.

All my APIs are imported from Swagger/OpenAPI definitions, so it would be helpful if this server variable pattern could work seamlessly with the APIs I bring in through Swagger.

You can set the API path to https://{yourservername}, then configure an environment variable named yourservername. When publishing the apidocs, select this environment so your users can set their baseurl directly on the apidocs page.



You can refer to this help document for instructions: How Can Document Users Modify the Base URL in Shared Docs? - Apidog Docs