-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathrequests.http
141 lines (88 loc) · 2.66 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
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
### GET Hello World
GET http://localhost:3000
### USER Routes
### POST Create User
POST http://localhost:3000/users
Content-Type: application/json
{
"name": "Monica Craveiro",
"email": "[email protected]"
}
### GET Find All Users
GET http://localhost:3000/users
### GET Find User by ID
GET http://localhost:3000/users/3d02bb15-0646-4a8c-91d1-13985a874f0a
### PUT Update User
PUT http://localhost:3000/users/1e0dcf3e-1847-46c9-b602-4926e5c31c22
Content-Type: application/json
{
"name": "Monica Craveiro de Menezes",
"email": "[email protected]"
}
### DELETE Delete User by ID
DELETE http://localhost:3000/users/1e0dcf3e-1847-46c9-b602-4926e5c31c22
### PROFILE Routes
### POST Create Profile
POST http://localhost:3000/profiles
Content-Type: application/json
{
"minibio": "essa é a minibio",
"avatar": "avatar",
"userId": "1e0dcf3e-1847-46c9-b602-4926e5c31c22"
}
### GET Find All Profiles
GET http://localhost:3000/profiles
### GET Find Profile by ID
GET http://localhost:3000/profiles/0f69b40f-f5a9-4e6f-8a12-d80c90e97d41
### PUT Update Profile
PUT http://localhost:3000/profiles/0f69b40f-f5a9-4e6f-8a12-d80c90e97d41
Content-Type: application/json
{
"minibio": "essa é a minibio atualizada",
"avatar": "novo avatar",
"userId": "0f69b40f-f5a9-4e6f-8a12-d80c90e97d41"
}
### DELETE Delete Profile
DELETE http://localhost:3000/profiles/0f69b40f-f5a9-4e6f-8a12-d80c90e97d41
### TASK Routes
### POST Create Task
POST http://localhost:3000/tasks
Content-Type: application/json
{
"title": "esse é o titulo",
"userId": "0f69b40f-f5a9-4e6f-8a12-d80c90e97d41"
}
### GET Find All Tasks
GET http://localhost:3000/tasks/
### GET Find Task by ID
GET http://localhost:3000/tasks/0f69b40f-f5a9-4e6f-8a12-d80c90e97d41
### PUT Update Task
PUT http://localhost:3000/tasks/0f69b40f-f5a9-4e6f-8a12-d80c90e97d41
Content-Type: application/json
{
"title": "esse é o titulo atualizado",
"userId": "0f69b40f-f5a9-4e6f-8a12-d80c90e97d41"
}
### DELETE Delete Task
DELETE http://localhost:3000/tasks/0f69b40f-f5a9-4e6f-8a12-d80c90e97d41
### TAG Routes
### POST Create Tag
POST http://localhost:3000/tags
Content-Type: application/json
{
"title": "esse é a tag",
"taskIds": ["0f69b40f-f5a9-4e6f-8a12-d80c90e97d41"]
}
### GET Find All Tags
GET http://localhost:3000/tags/
### GET Find Tag by ID
GET http://localhost:3000/tags/0f69b40f-f5a9-4e6f-8a12-d80c90e97d41
### PUT Update Tag
PUT http://localhost:3000/tags/0f69b40f-f5a9-4e6f-8a12-d80c90e97d41
Content-Type: application/json
{
"title": "esse é a tag atualizado",
"userId": "0f69b40f-f5a9-4e6f-8a12-d80c90e97d41"
}
### DELETE Delete Tag
DELETE http://localhost:3000/tags/0f69b40f-f5a9-4e6f-8a12-d80c90e97d41