-
Notifications
You must be signed in to change notification settings - Fork 429
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
docs: OpenAPI does not differentiate between public and private endpoints #446
Comments
See also OpenAPI spec: https://swagger.io/docs/specification/authentication/ |
milanjaros
added a commit
to milanjaros/flagsmith
that referenced
this issue
Oct 27, 2021
Add Public security definition to Swagger settings as described in Flagsmith#446
I've realized that the OpenAPI is generated, so I just added the Public security definition to the |
Thanks @milanjaros - will look to get this merged in. |
dabeeeenster
pushed a commit
that referenced
this issue
Nov 1, 2021
Add Public security definition to Swagger settings as described in #446
dabeeeenster
added a commit
that referenced
this issue
Nov 1, 2021
* Add Public security definition to Swagger (#447) Add Public security definition to Swagger settings as described in #446 * Formatting * flake8 Co-authored-by: Milan Jaroš <[email protected]>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
It is hard for beginner API consumers to differentiate between public and private endpoints.
The documentation describes REST API Public and Private Endpoints pretty well.
There is a Private security scheme defined and applied to all endpoints in linked OpenAPI (Swagger), but not Public ones.
To achieve that (in OpenAPI), there is needed to define both schemes:
Then apply default (Private) security to all endpoints:
Ten apply the Public scheme to appropriate endpoints:
Unfortunately, I was not able to find the OpenAPI spec file, otherwise, I would send a PR.
The text was updated successfully, but these errors were encountered: