You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Some times you do not want to make your API public available for any reason.
What is the motivation / use case for changing the behavior?
I need to create a work around to disable those endpoint:
constenable=false;SwaggerModule.setup("api",app,swaggerDocument(app),{swaggerUiEnabled: enable,patchDocumentOnRequest: (_req,_res,document)=>{if(enable){returndocument;}return{openapi: "3.0.0",info: {title: "You shall not pass! Just kidding, not found ;D",version: "1.0",},paths: {},};}});
The text was updated successfully, but these errors were encountered:
Is there an existing issue that is already proposing this?
Is your feature request related to a problem? Please describe it
There is no way to disable json and yaml API definition endpoints.
Describe the solution you'd like
An option like exist for enable or disable swagger UI.
Teachability, documentation, adoption, migration strategy
Some times you do not want to make your API public available for any reason.
What is the motivation / use case for changing the behavior?
I need to create a work around to disable those endpoint:
The text was updated successfully, but these errors were encountered: