-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathrequest
124 lines (84 loc) · 2.1 KB
/
request
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
GET http://localhost/ping HTTP/1.1
###
POST http://localhost/register HTTP/1.1
content-type: application/json
{
"Email": "[email protected]",
"Password": "password"
}
####
POST http://localhost/login HTTP/1.1
content-type: application/json
{
"Email": "[email protected]",
"Password": "password"
}
###
@token = eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJlbWFpbCI6InNvdW1leWFAZ21haWwuY29tIiwiZXhwIjoxNjAzNjQ3NDI0LCJ1c2VySWQiOiIxIn0.fko4ISF6fQiDiQcnItlmvbwKkv8VXX-rN9rM6TM0miM
###
GET http://localhost/level HTTP/1.1
Authorization: Bearer {{token}}
###
GET http://localhost/profile HTTP/1.1
Authorization: Bearer {{token}}
###
GET http://localhost/profile/35 HTTP/1.1
Authorization: Bearer {{token}}
###
GET http://localhost/profile/avatar HTTP/1.1
Authorization: Bearer {{token}}
###
GET http://localhost/avatars HTTP/1.1
Authorization: Bearer {{token}}
###
GET http://localhost/profile/title HTTP/1.1
Authorization: Bearer {{token}}
###
GET http://localhost/titles HTTP/1.1
Authorization: Bearer {{token}}
###
GET http://localhost/action HTTP/1.1
content-type: application/json
Authorization: Bearer {{token}}
{
"title": "Total login days"
}
###
PUT http://localhost/profile HTTP/1.1
content-type: application/json
Authorization: Bearer {{token}}
{
"username": "Soumsoum",
"firstname": "Soumeya",
"lastname": "Heniche",
"location": "France",
"school": "ETNA - School",
"about": "Im a teacher"
}
###
PUT http://localhost/profile/avatar=1 HTTP/1.1
content-type: application/json
Authorization: Bearer {{token}}
###
POST http://localhost/action/done HTTP/1.1
content-type: application/json
Authorization: Bearer {{token}}
{
"actionTitle": "Total login days"
}
###
GET http://localhost/profile/avatars HTTP/1.1
content-type: application/json
Authorization: Bearer {{token}}
###
GET http://localhost/profile/titles HTTP/1.1
content-type: application/json
Authorization: Bearer {{token}}
###
GET http://localhost/profile/actions HTTP/1.1
content-type: application/json
Authorization: Bearer {{token}}
###
GET http://localhost/actions HTTP/1.1
content-type: application/json
Authorization: Bearer {{token}}