-
Notifications
You must be signed in to change notification settings - Fork 0
/
api_requests.http
45 lines (33 loc) · 933 Bytes
/
api_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
@port=8000
### HOME
GET http://localhost:{{port}}/api/v1 HTTP/1.1
###
GET http://localhost:{{port}}/api/v1/users HTTP/1.1
###
GET http://localhost:{{port}}/api/v1/users/4 HTTP/1.1
###
GET http://localhost:{{port}}/api/v1/users?limit=2&page=3 HTTP/1.1
###
GET http://localhost:{{port}}/api/v1/users?limit=1&name=felipe&email=eli HTTP/1.1
###
GET http://localhost:{{port}}/api/v1/[email protected] HTTP/1.1
###
GET http://localhost:{{port}}/api/v1/users/[email protected] HTTP/1.1
###
POST http://localhost:{{port}}/api/v1/users HTTP/1.1
Content-Type: application/json
{
"name": "Paula",
"email": "[email protected]",
"password": "p123321p"
}
###
PUT http://localhost:{{port}}/api/v1/users/3 HTTP/1.1
Content-Type: application/json
{
"name": "Torres de Paula",
//"password": "123123",
"email": "[email protected]"
}
###
DELETE http://localhost:{{port}}/api/v1/users/1 HTTP/1.1