-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathclient.http
More file actions
46 lines (32 loc) · 667 Bytes
/
Copy pathclient.http
File metadata and controls
46 lines (32 loc) · 667 Bytes
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
43
44
45
46
# Variables
@baseUrl = http://localhost:3000
# Health check
# @name healthCheck
GET {{baseUrl}}/health
###
# Get rooms
# @name getRooms
GET {{baseUrl}}/rooms
###
# Create room
# @name createRoom
POST {{baseUrl}}/rooms
Content-Type: application/json
{
"name": "Sala de teste",
"description": "Sala feita para teste"
}
###
@roomId = {{createRoom.response.body.$.roomId}}
###
# Get room questions
# @name getRoomQuestions
GET {{baseUrl}}/rooms/{{roomId}}/questions
###
# Create question
# @name createQuestion
POST {{baseUrl}}/rooms/6f05315b-1442-4bfa-af46-cf39d951f59e/questions
Content-Type: application/json
{
"question": "O que é TypeScript?"
}