-
Notifications
You must be signed in to change notification settings - Fork 13
/
Noroff Job Agency - Postman Collection.json
437 lines (437 loc) · 11.2 KB
/
Noroff Job Agency - Postman Collection.json
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
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
{
"info": {
"_postman_id": "935858fc-e965-4534-b9dd-2f63b789e696",
"name": "Noroff Job Agency",
"schema": "https://schema.getpostman.com/json/collection/v2.0.0/collection.json",
"_exporter_id": "19439664",
"_collection_link": "https://grey-crescent-281477.postman.co/workspace/Noroff-Jobs-API~8124349f-7f1d-45f6-9a69-9667df68e94c/collection/19439664-935858fc-e965-4534-b9dd-2f63b789e696?action=share&source=collection_link&creator=19439664"
},
"item": [
{
"name": "User",
"item": [
{
"name": "Users - Create",
"request": {
"method": "POST",
"header": [],
"body": {
"mode": "raw",
"raw": "{\r\n \"email\": \"Example@example.com\",\r\n \"firstName\": \"John\",\r\n \"lastName\": \"Doe\",\r\n \"password\": \"password\",\r\n \"role\": \"Client\"\r\n}",
"options": {
"raw": {
"language": "json"
}
}
},
"url": "{{baseURL}}/users"
},
"response": []
},
{
"name": "Users - Login",
"request": {
"method": "POST",
"header": [
{
"key": "",
"value": "",
"type": "text",
"disabled": true
}
],
"body": {
"mode": "raw",
"raw": "{\r\n \"email\": \"Example@example.com\",\r\n \"password\": \"password\"\r\n}",
"options": {
"raw": {
"language": "json"
}
}
},
"url": "{{baseURL}}/users/login"
},
"response": []
},
{
"name": "Users - Update",
"request": {
"method": "PUT",
"header": [
{
"key": "Authorization",
"value": "{{token}}",
"type": "text"
}
],
"body": {
"mode": "raw",
"raw": "{\r\n \"firstName\": \"Appleton\",\r\n \"lastName\": \"Stroodle\",\r\n \"title\": \"Lord\",\r\n \"about\": \"wooooo\",\r\n \"avatar\": \"https://www.eatingwell.com/thmb/1XsyDLulOUGr61MOhz7_CXCdhnU=/750x0/filters:no_upscale():max_bytes(150000):strip_icc():format(webp)/fresh-apples-41deb698ccc4481fbe7eee1bac72795f.jpg\",\r\n \"skills\": \"Applogy, Fruitology, Applenautics\"\r\n}",
"options": {
"raw": {
"language": "json"
}
}
},
"url": "{{baseURL}}/users/3e0db30c-e468-4f9d-8948-1370afaf1158"
},
"response": []
},
{
"name": "Users - Get All",
"request": {
"method": "GET",
"header": [
{
"key": "Authorization",
"value": "{{token}}",
"type": "text",
"description": "Not strictly required"
}
],
"url": "{{baseURL}}/users/"
},
"response": []
},
{
"name": "Users - Get id",
"request": {
"method": "GET",
"header": [
{
"key": "Authorization",
"value": "{{token}}",
"type": "text",
"description": "Not strictly required but will provide sensetive user data if viewing own profile"
}
],
"url": {
"raw": "{{baseURL}}/users/:id",
"host": [
"{{baseURL}}"
],
"path": [
"users",
":id"
],
"variable": [
{
"key": "id",
"value": ""
}
]
}
},
"response": []
},
{
"name": "Users - Delete id",
"request": {
"method": "DELETE",
"header": [
{
"key": "Authorization",
"value": "{{token}}",
"type": "text"
}
],
"url": {
"raw": "{{baseURL}}/users/:id",
"host": [
"{{baseURL}}"
],
"path": [
"users",
":id"
],
"variable": [
{
"key": "id",
"value": ""
}
]
}
},
"response": []
}
]
},
{
"name": "Listings",
"item": [
{
"name": "Listings - Get all",
"request": {
"method": "GET",
"header": [
{
"key": "Authorization",
"value": "{{token}}",
"type": "text",
"description": "Not required but a applicant/client might get more data on own listings, applications etc.."
}
],
"url": "{{baseURL}}/listings"
},
"response": []
},
{
"name": "Listings - Get id",
"request": {
"method": "GET",
"header": [
{
"key": "Authorization",
"value": "{{token}}",
"type": "text"
}
],
"url": {
"raw": "{{baseURL}}/listings/:id",
"host": [
"{{baseURL}}"
],
"path": [
"listings",
":id"
],
"variable": [
{
"key": "id",
"value": ""
}
]
}
},
"response": []
},
{
"name": "Listing - Create listing",
"request": {
"method": "POST",
"header": [
{
"key": "Authorization",
"value": "{{token}}",
"type": "text"
}
],
"body": {
"mode": "raw",
"raw": "{\r\n \"title\": \"Apple Orbital Launcher Specialist\",\r\n \"description\":\"At Crab Apple Inc., where apples aren’t just fruits – they’re a lifestyle, we’re searching for a highly specialized individual to join our elite Appletonaut team. As an Apple Orbital Launcher Specialist, you'll play a pivotal role in our secret mission: Project Appollo, aimed at making Crab Apples the first interstellar fruit. Use our patented “Apple-pult” to send apples into the stratosphere and beyond. Ensure that the launched apples avoid interstellar worm-eating space worms and navigate through the Milky Way. Collaborate with our Starfish division to recover apples once they have orbited and completed their space mission. Craft cosmic apple jams using the interstellar ingredients the apples collect on their journeys. Ensure all apples are equipped with tiny apple-sized space helmets and O2 packs. Crab Apple Inc. is an equal fruit opportunity employer. We celebrate diversity and are committed to creating an inclusive environment for all apple-thusiasts. Interested applicants may apply by sending their CVs attached to a helium balloon or by pigeon mail to our Treehouse #7. Only those applicants shortlisted for the next round – the Great Apple Juggle – will be contacted.\",\r\n \"requirements\": [\"Minimum of 3 years experience in fruit-based propulsion systems.\", \"Degree in Astrofruitology or related field is a plus.\", \"Ability to communicate with extraterrestrial fruit enthusiasts.\", \"Expertise in Apple-nautics and apple-centric gravitational theories.\", \"Must be comfortable working at heights, especially on top of apple trees.\", \"Passion for apples (if you’re more of a pear person, this might not be the job for you).\"],\r\n \"tags\": [\"Astrofruitology\", \"Apples\", \"Apple-nautics\"],\r\n \"deadline\": \"2024-12-26T12:19:48.625Z\",\r\n \"company\": \"{Company id}\"\r\n}",
"options": {
"raw": {
"language": "json"
}
}
},
"url": "{{baseURL}}/listings/"
},
"response": []
},
{
"name": "Listing - Delete id",
"request": {
"method": "DELETE",
"header": [
{
"key": "Authorization",
"value": "{{token}}",
"type": "text"
}
],
"url": {
"raw": "{{baseURL}}/listing/:id",
"host": [
"{{baseURL}}"
],
"path": [
"listing",
":id"
],
"variable": [
{
"key": "id",
"value": ""
}
]
}
},
"response": []
}
]
},
{
"name": "Applications",
"item": [
{
"name": "Application - Create application",
"request": {
"method": "POST",
"header": [
{
"key": "Authorization",
"value": "{{applicantToken}}",
"type": "text"
}
],
"body": {
"mode": "raw",
"raw": "{\r\n \"applicantId\": \"Users ID\",\r\n \"listingId\": \"Listing ID\",\r\n \"companyId\": \"Company ID\",\r\n \"coverLetter\": \"Text Content\"\r\n}",
"options": {
"raw": {
"language": "json"
}
}
},
"url": "{{baseURL}}/applications"
},
"response": []
},
{
"name": "Applications - Get all",
"request": {
"method": "GET",
"header": [
{
"key": "Authorization",
"value": "{{applicantToken}}",
"type": "text"
}
],
"url": "{{baseURL}}/applications"
},
"response": []
},
{
"name": "Applications - Get id",
"request": {
"method": "GET",
"header": [
{
"key": "Authorization",
"value": "{{token}}",
"type": "text",
"description": "can also user {{applicantToken}}"
}
],
"url": {
"raw": "{{baseURL}}/applications/:id",
"host": [
"{{baseURL}}"
],
"path": [
"applications",
":id"
],
"variable": [
{
"key": "id",
"value": ""
}
]
}
},
"response": []
},
{
"name": "Applications - Delete",
"request": {
"method": "DELETE",
"header": [
{
"key": "Authorization",
"value": "{{applicantToken}}",
"type": "text"
}
],
"url": {
"raw": "{{baseURL}}/applications/:id",
"host": [
"{{baseURL}}"
],
"path": [
"applications",
":id"
],
"query": [
{
"key": "",
"value": null,
"disabled": true
}
],
"variable": [
{
"key": "id",
"value": ""
}
]
}
},
"response": []
}
]
},
{
"name": "Company",
"item": [
{
"name": "company - Get all",
"request": {
"method": "GET",
"header": [
{
"key": "Authorization",
"value": "{{token}}",
"type": "text",
"description": "not strictly needed but will provide more details to relevant users"
}
],
"url": "{{baseURL}}/company"
},
"response": []
},
{
"name": "company - Create",
"request": {
"method": "POST",
"header": [
{
"key": "Authorization",
"value": "{{token}}",
"type": "text"
}
],
"body": {
"mode": "raw",
"raw": "{\r\n \"name\": \"Crab Apple Inc\",\r\n \"sector\": \"Apples\",\r\n \"phone\": \"420 800713\",\r\n \"logo\": \"https://images.unsplash.com/photo-1591154669695-5f2a8d20c089?ixlib=rb-4.0.3&ixid=MnwxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8&auto=format&fit=crop&w=687&q=80\",\r\n \"email\": \"company_email@email.com\",\r\n \"website\": \"www.website.com\",\r\n \"admin\": \"fcb3c088-a37a-4b1e-a514-08f7041bdd5b\"\r\n}",
"options": {
"raw": {
"language": "json"
}
}
},
"url": "{{baseURL}}/company/"
},
"response": []
},
{
"name": "company - Delete",
"request": {
"method": "DELETE",
"header": [
{
"key": "Authorization",
"value": "{{token}}",
"type": "text"
}
],
"url": "{{baseURL}}/company/fbdf8344-9a07-4c09-a728-7840e0e56040"
},
"response": []
}
]
}
]
}