Forum Discussion

scastillo's avatar
scastillo
New Contributor
10 days ago

Modify base URL

How can I modify the base URL in Swagger UI that is used to concatenate with the service endpoints? For example, we use this URL to access Swagger in our project:

https://mydomain.com/AR900115//apidoc/catalogo.html, and in the .yaml configuration file, we only have the following defined in the servers section:

This causes an issue because every time we try to test an API in Swagger, we get a 400 error since it constructs the URL incorrectly, like this:

https://mydomain.com/web/api/v1/jerarquiaMkt/?CodScan=1010, Instead, it should be:

https://mydomain.com/AR900115/web/api/v1/jerarquiaMkt/?CodScan=1010 (In this example, the API being tested is jerarquiaMkt)

No RepliesBe the first to reply