Skip to content

Instantly share code, notes, and snippets.

@fishmandev
Created June 6, 2023 07:03
Show Gist options
  • Save fishmandev/b6aa9ce3e51da2e2f1b45a3b3a3d92f5 to your computer and use it in GitHub Desktop.
Save fishmandev/b6aa9ce3e51da2e2f1b45a3b3a3d92f5 to your computer and use it in GitHub Desktop.
vscode use response body
# @name auth
@host = https://api.example.com
POST {{host}}/auth/token/ HTTP/1.1
Content-Type: application/json
{
"email" : "user@example.com",
"password" : "password"
}
###
@token = {{auth.response.body.access}}
###
GET {{host}}/v2/users/
Content-Type: application/json
Authorization: Bearer {{token}}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment