swagger-node icon indicating copy to clipboard operation
swagger-node copied to clipboard

Hide endpoints based on yaml/spec

Open GiladShoham opened this issue 10 years ago • 4 comments

Hi,

I want to add some attribute to my yaml spec for example x-hide : true/false so that the swagger-ui will know to not show those endpoints. i can't remove them completely from the yaml because im using swagger-node / swagger-express-mw so it's define the express mw based on this yaml, so if i remove them i can't use them at all. i want them to be reachable but just not presented on the ui (because documentaion isn't ready yet / because they are mostly internally APIs that doesn't interest for the API users). is there any way to do it? maybe someone can help me to the best way to do it if there isn't out of the box?

I posted this issue in swagger-ui here - https://github.com/swagger-api/swagger-ui/issues/1743 but @fehguy told me to post it here for implementing something similar to x-inflector-hidden from swagger-inflector

Thanks.

GiladShoham avatar Nov 12 '15 12:11 GiladShoham

+1

fractalawareness avatar Apr 11 '16 14:04 fractalawareness

+1

soohoowoohoo avatar Dec 11 '16 17:12 soohoowoohoo

what happened to this?

abeikverdi avatar Oct 23 '17 15:10 abeikverdi

I also want this feature but I am not using any swagger-library like inflector or any other thing. I am creating my document by writing all the specification manually. So if anyone finds a solution please do tell. I am writing my document in OAS 3.0

ksaubhri123 avatar Dec 08 '17 10:12 ksaubhri123