Consider authorization for OpenAPI request examples #606
Unanswered
arredond
asked this question in
4. Open API
Replies: 1 comment 2 replies
-
Nice suggestions - I'll relay to the team! |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
It's very nice that Gitbook takes OpenAPI security schemes into account and shows them in OpenAPI blocks, but the code examples don't, which may cause significant confusion among users.
In this screenshot, I'd expect the code example to include something like
-H "Authorization: Bearer $API_TOKEN"
.Ideally, the "Try it" module would also have the specified authorization method pre-checked, though I recognize this is harder since you use an external provider for it.
Beta Was this translation helpful? Give feedback.
All reactions