-
Notifications
You must be signed in to change notification settings - Fork 0
/
requests.http
84 lines (58 loc) · 1.32 KB
/
requests.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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
POST http://localhost:3333/api/testes
Content-Type: application/json
{
"prompt": "Como está o tempo hoje?"
}
###
POST http://localhost:3333/animals
Content-Type: application/json
{
"animals": ["Elefante", "Tigre", "Bicho-pau"]
}
###
POST http://localhost:3333/animals/destroy
###
POST http://localhost:3333/user
Content-Type: application/json
{
"fullName": "Clebson", "phone": "22", "password": "4321"
}
###
POST http://localhost:3333/login
Content-Type: application/json
{
"phone": "22", "password": "4321"
}
###
POST http://localhost:3333/animals/create
Content-Type: application/json
{
"name": "Leão",
"characteristics": {
"Habitat": "Savana, florestas e pradarias",
"Filo": "Chordata",
"Estado de conservação": "Vulnerável",
"Dieta": "Carnívoro",
"Método de reprodução": "Sexuado",
"Classe": "Mammalia"
}
}
###
POST http://localhost:3333/games/12
Content-Type: application/json
###
POST http://localhost:3333/games/localhost:3333/games/update
Content-Type: application/json
{
"id": "bf0849fc-217a-4f0c-910a-38d1ab95535e",
"userId": 284,
"animalId": 4034
}
###
POST http://localhost:3333/games/update
Content-Type: application/json
{
"id": "bf0849fc-217a-4f0c-910a-38d1ab95535e",
"animalId": 413,
"userId": 284,
}