Skip to content

Instantly share code, notes, and snippets.

@Alessandro0003
Created March 23, 2024 05:41
Show Gist options
  • Save Alessandro0003/17e712018eb65e555a752693b1611889 to your computer and use it in GitHub Desktop.
Save Alessandro0003/17e712018eb65e555a752693b1611889 to your computer and use it in GitHub Desktop.
Requests from my Application 🔥
@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