Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for hiding endpoints with annotation #488

Closed
trycatchblock opened this issue Mar 14, 2014 · 3 comments
Closed

Add support for hiding endpoints with annotation #488

trycatchblock opened this issue Mar 14, 2014 · 3 comments

Comments

@trycatchblock
Copy link

Similar to #475 , Can we add support for hiding endpoints with annotation?

@fehguy
Copy link
Contributor

fehguy commented Mar 14, 2014

Yes, this is badly needed.

@quasipedia
Copy link

Just curious: what is the rationale behind this?

I implemented something similar in my own code since I did not want the api-docs.json to show up as part of the swagger description itself. However I wonder what the more general user case that make this "badly needed" is...

[ Full disclosure: I'm a fervent opposer to "Security through obscurity"... ] :)

@fehguy
Copy link
Contributor

fehguy commented Mar 15, 2014

Hi, this is on the server code, not in the spec--it makes the auto-generated swagger description hidden for a particular field.

There are many reasons to do this, some could be with how the framework is parsed by the swagger framework.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants