Created
June 6, 2023 07:03
-
-
Save fishmandev/b6aa9ce3e51da2e2f1b45a3b3a3d92f5 to your computer and use it in GitHub Desktop.
vscode use response body
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# @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