How to hide swagger for exposed APIs on different environments ?
Application Type
Traditional Web, Reactive

Hi all

Currently we exposed a couple of REST APIs in our application.

We need to show the swagger in development and integration environments to facilitate our clients integration. 

But, for us it's a problem to expose those swaggers in pre and production environments.

How can we disable, the swagger exposing in different environments ? We need to show in DEV/INT and hide in PRE/PRO.

PD: Need to hide the HTML page, and the /swagger.json as well.

Thanks a lot

Hi there, take a look at this post: 

In this post you can read, that the swagger file cannot be hidden within OutSystems. 

If you are running OutSystems on premise, you can try to block the access to the file in your webserver. Just a wild guess.

Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.