-
Notifications
You must be signed in to change notification settings - Fork 0
/
restclient.http
86 lines (69 loc) · 1.77 KB
/
restclient.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
GET http://localhost:8000/api/users HTTP/1.1
Authorization: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MSwiaWF0IjoxNjY0NTgyMjYwLCJleHAiOjE2NjQ1ODQwNjB9.1D43v_jlyElIYH4cD_iYTsKrpvB0L_bSa6ioO7xJfVM
##
###
POST http://192.168.15.15:8080/api/users HTTP/1.1
content-type: application/json
{
"username": "rogeriok",
"first_name": "rogerio",
"last_name": "kotsubo",
"email": "rogerio@gmail.com",
"password": "123456",
"squad": null,
"is_admin": "true"
}
###
GET http://localhost:8000/api/users/nick/nick1 HTTP/1.1
###
GET http://192.168.15.15:8000/api/teams HTTP/1.1
###
POST http://192.168.15.15:8000/api/login HTTP/1.1
content-type: application/json
{
"email": "rogerio@gmail.com",
"password": "123456"
}
###
POST http://localhost:8000/api/users/logout HTTP/1.1
content-type: application/json5"
###
PUT http://192.168.15.15:8000/api/users/pwd/1 HTTP/1.1
content-type: application/json
{
"pwd": "pwd3"
}
###
GET http://localhost:8000/api/users/5 HTTP/1.1
###
PUT http://192.168.15.15:8000/api/users/1 HTTP/1.1
content-type: application/json
{
"name": "Rogério9",
"email": "rogerio9@gmail.com",
"nick": "rogerio",
"address": "Rua 5",
"num": "435",
"complement": "Jd Manacas",
"city": "Campinas",
"state": "SP",
"district": "Bairro Cidade Jd",
"birth_date": "31-01-2000",
"zip": "13187-232",
"phone": "(19) 99999-9999"
}
###
POST http://192.168.15.15:8000/api/miniatures HTTP/1.1
content-type: application/json
{ "user_id": "1",
"brand_id": "1",
"model": "SS",
"color": "Vermelho",
"description": "Opala SS Cupê 1970"
}
###
GET http://localhost:8000/api/cart/11 HTTP/1.1
###
GET http://localhost:8000/api/cart_offer/cart/12 HTTP/1.1
###
PUT http://localhost:8000/api/exchanges/close/4 HTTP/1.1