-
Notifications
You must be signed in to change notification settings - Fork 0
/
test.http
146 lines (104 loc) · 3.33 KB
/
test.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
142
143
144
145
@hostname = http://localhost:3000/api
### séparateur entre deux requêtes
POST {{hostname}}/auth/signup
content-type: application/json
{
"first_name": "patt",
"last_name": "bobaa",
"password": "Password123$",
"email": "[email protected]",
"gender": "male",
"role_id": "coworker"
}
### séparateur entre deux requêtes
POST {{hostname}}/auth/login
content-type: application/json
{
"email": "[email protected]",
"password": "Password123$"
}
### séparateur entre deux requêtes
GET {{hostname}}/coworker
content-type: application/json
x-access-token: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VySWQiOjUxLCJ1c2VyUm9sZURlc2NyaXB0aW9uIjoiY293b3JrZXIiLCJpYXQiOjE2NjQ1NDU2NjksImV4cCI6MTY2NDYzMjA2OX0.w3umxgfTITzFvWGxa-55gb3WIY4rv0jmn5m5jXvG3Rw
{
"email": "[email protected]",
"password": "Password123$"
}
### séparateur entre deux requêtes
GET {{hostname}}/personalspace/:id/coworkerbooking
content-type: application/json
### séparateur entre deux requêtes
POST {{hostname}}/booking/request
content-type: application/json
{
"start_date": "05.01.01",
"end_date" : "06.02.02",
"user_id" : 1,
"workspace_id" : 3
}
### séparateur entre deux requêtes
GET {{hostname}}/personalspace/6/coworkerbooking
content-type: application/json
### séparateur entre deux requêtes
PATCH {{hostname}}/booking/2/state
content-type: application/json
{
"stateDescription":
}
### séparateur entre deux requêtes
GET {{hostname}}/workspace/1/bookeddate
content-type: application/json
### séparateur entre deux requêtes
GET {{hostname}}/personalspace/1/booking
content-type: application/json
### séparateur entre deux requêtes
GET {{hostname}}/user/2
content-type: application/json
### séparateur entre deux requêtes
GET {{hostname}}/personalspace/1/profil
content-type: application/json
x-access-token: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VySWQiOjEsInVzZXJSb2xlRGVzY3JpcHRpb24iOiJob3N0IiwiaWF0IjoxNjY1NDExOTYzLCJleHAiOjE2NjU0MTIwMjN9.R1ODcjdYi9eGz3LVkd7kPi6JvQ2SQDLh5H_fqSzq0Yg
### séparateur entre deux requêtes
PATCH {{hostname}}/personalspace/1/profil
content-type: application/json
{
"avatar": "https://cloudflare-ipfs.com/ipfs/Qmd3W5DuhgHirLHGVixi6V76LhCkZUz6pnFt5AJBiyvHye/avatar/875.jpg",
"first_name": "parfaiteee",
"about": "Je suis très grandesss"
}
### séparateur entre deux requêtes
POST {{hostname}}/workspace/create
content-type: application/json
x-access-token: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VySWQiOjEsInVzZXJSb2xlRGVzY3JpcHRpb24iOiJob3N0IiwiaWF0IjoxNjY1MTQyMTQ1LCJleHAiOjE2NjUxNDU3NDV9.-dBPJNHDv0HkN8_Yv8WBCLlMOdFve1eADu6xnjGiC-k
{
"title": "desktop",
"description": "primé meilleur bureau",
"address": "10 rue champion",
"zip_code": "35000",
"city": "Rennes",
"day_price": 10,
"half_day_price": 7,
"user_id": 2,
"equipment_list":
[
{
"description": "Piscine"
},
{
"description": "Enceinte"
}
]
}
### séparateur entre deux requêtes
GET {{hostname}}/equipments
content-type: application/json
DELETE {{hostname}}/workspace/1
content-type: application/json
x-access-token: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VySWQiOjEsInVzZXJSb2xlRGVzY3JpcHRpb24iOiJob3N0IiwiaWF0IjoxNjY1NDAzMTczLCJleHAiOjE2NjU0MDMyMzN9.Cm-T-l_M7gJ7fSUCvnJL85oi_9XMUff3kJMFc6Zh6fk
{
"id" : 60,
"link" : "public/images/workspace/01.png",
"main_image" : false,
"workspace_id" : 1
}