-
Notifications
You must be signed in to change notification settings - Fork 0
/
client.http
42 lines (32 loc) · 780 Bytes
/
client.http
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
@baseUrl = http://localhost:3333
@authToken = {{authenticated.response.body.access_token}}
# @name create_accounts
POST {{baseUrl}}/accounts
Content-Type: application/json
{
"name": "Silvanei Martins",
"email": "[email protected]",
"password": "123456"
}
###
# @name authenticated
POST {{baseUrl}}/sessions
Content-Type: application/json
{
"email": "[email protected]",
"password": "123456"
}
###
# @name create_questions
POST {{baseUrl}}/questions
Content-Type: application/json
Authorization: Bearer {{authToken}}
{
"title": "Quarta Pergunta",
"content": "Conteúdo da quarta pergunta"
}
###
# @name fetch_recent_questions
GET {{baseUrl}}/questions?page=1
Content-Type: application/json
Authorization: Bearer {{authToken}}