Created
March 23, 2024 05:41
-
-
Save Alessandro0003/17e712018eb65e555a752693b1611889 to your computer and use it in GitHub Desktop.
Requests from my Application 🔥
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
@baseUrl = http://localhost:3333 | |
@authToken = {{authenticate_account.response.body.access_token}} | |
# @name create_account | |
POST {{baseUrl}}/accounts | |
Content-Type: application/json | |
{ | |
"name": "Alessandro", | |
"email": "alessandro3@gmail.com.br", | |
"password": "545532" | |
} | |
### | |
# @name authenticate_account | |
POST {{baseUrl}}/sessions | |
Content-Type: application/json | |
{ | |
"email": "alessandro3@gmail.com.br", | |
"password": "545532" | |
} | |
### | |
# @name create_question | |
POST {{baseUrl}}/questions | |
Content-Type: application/json | |
Authorization: Bearer {{authToken}} | |
{ | |
"title": "new question", | |
"content": "content question" | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment