generated from FerJSsilva/node-esbuild-template
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathrequests.http
50 lines (37 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
// ------------------------------- Categories ------------------------------- //
### LIST
GET http://localhost:4000/api/categories
// ------------------------ Categories translations ------------------------- //
### LIST
GET http://localhost:4000/api/category-translations
// --------------------------------- Habits --------------------------------- //
### LIST
GET http://localhost:4000/api/habits
### NEW
POST http://localhost:4000/api/habits
Content-Type: application/json
{
"categoryId": "6678b09bc4b03dfda03fa6a3",
"identifier": "WRITE_JOURNAL"
}
// --------------------------- Habits translations -------------------------- //
### LIST
GET http://localhost:4000/api/habit-translations
### NEW
POST http://localhost:4000/api/habit-translations
Content-Type: application/json
{
"habitId": "668b5559464e18ff44ecc92f",
"language": "pt-br",
"name": "Escrever um diário",
"description": "screver reflexões diárias para melhorar a escrita e a autoanálise."
}
### EDIT
PUT http://localhost:4000/api/habit-translations/668b573752b1a31a65bf7348
Content-Type: application/json
{
"habitId": "668b5380464e18ff44ecc911",
"language": "pt-br",
"name": "Musculação",
"description": "Ir à academia para uma sessão de musculação quatro vezes por semana."
}