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

Question: How to hide endpoint documentation for specific users #357

Open
marktermaat opened this issue Mar 23, 2016 · 2 comments
Open

Question: How to hide endpoint documentation for specific users #357

marktermaat opened this issue Mar 23, 2016 · 2 comments

Comments

@marktermaat
Copy link

Of course we want something different than 'standard'. :P

We want to make the API documentation different for our users, based on what scopes their applications have. So, ideally, the user logs in with their application credentials, and only see the documentation of their endpoints. However, would it be possible to hide endpoint documentation based on some checks of us?

We found that it is possible to add a lambda function the 'hidden' property, but since this is evaluated out of context I haven't found a way to use any request parameters or session variables. Is this correct? Is there any other way to do what we wanted? We found a method with a middleware that scrubs the endpoints from the returned body, but this is kind of ugly. Any other ideas perhaps? I'm stuck after a full day trying and searching. Any help would be appreciated a lot.

@dblock
Copy link
Member

dblock commented Mar 25, 2016

This is correct, however I think we'd welcome a feature that evaluates the endpoint condition based on the request.

@texpert
Copy link
Contributor

texpert commented Sep 8, 2016

Just got merged #493

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

No branches or pull requests

3 participants