how to use openapi-swagger spec for multiple env(e.g Dev/test both) under same org in Drupal developer portal

we have two env dev/test under same org and both environments product are displaying as per role in drupal based developer portal.

we are publishing the openopi-Swagger spec for DEV environment and its working fine and we can see that the smartdocs proxy endpoint associated with the dev env port with Smartdocs/v1/sendrequest under smartdocs proxy url in "admin/config/smartdocs" page in developer portal as admin.

So is there any way that we can publish swagger spec for test environment along with dev Env in same developer portal.

0 3 597
3 REPLIES 3

Yes, you can name the spec with a "v1" or "v2" in the name to publish multiple specs.

Thanks Chris for your reply,currently smartdocs proxy url pointing /v1/sendrequest to dev env and getting 200 response , so what the change required in smartdocs proxy url so that I can get successful response for test env also in portal along with Dev

You should have two different URLs for each environment, which you put in your spec as the base path or host.