-
Notifications
You must be signed in to change notification settings - Fork 210
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
HTTP Snippet Format #5543
Comments
Should we consider some sort of auth as part of the snippet? |
@maisarissi we could, based on the auth schemes and have the right Auth headers. What would be your suggestion on automating this? |
I would suggest: 1 - use the
I would suggest the .http snippet file be:
and add a
This would allow folks to easily add as many environments as needed (like dev) later and then change easily the env that is been called, like the screenshot below: If we go that way, we need to remove the 2 - For the auth, based in auth scheme described in the OpenAPI description, I believe we should create/add the environment variables in the
3 - I would say we should support "basicAuth", "bearer" and "apiKey". For Oauth2, we might want to also use "bearer" where the user would need to use a browser to authenticate and copy the token.
|
Based on this OpenAPI : https://github.com/sebastienlevert/jsonplaceholder-api/blob/main/openapi.yaml
(I made edits to the operation to illustrate some use cases.)
And this operation:
The format should be the following:
The text was updated successfully, but these errors were encountered: