-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathapi.http
More file actions
775 lines (609 loc) · 18.8 KB
/
api.http
File metadata and controls
775 lines (609 loc) · 18.8 KB
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
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
@baseUrl = https://smartresponse-api.onrender.com/api/v1
@accessToken = eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiI1MGY2ODYyNS0wMzgxLTRkMjgtOWYzMS1hMzM4ZGQyMDlhMzAiLCJlbWFpbCI6ImFkbWluQGV4YW1wbGUuY29tIiwicm9sZSI6ImFkbWluIiwidXNlcm5hbWUiOiJTeXN0ZW0gQWRtaW4iLCJpYXQiOjE3NzU1OTMyODMsImV4cCI6MTc3NjQ1NzI4M30.lN7guXuYdjebPXWjngIMoz3EfSEvhs6aQROQap98sVI
@refreshToken = eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiI1MGY2ODYyNS0wMzgxLTRkMjgtOWYzMS1hMzM4ZGQyMDlhMzAiLCJlbWFpbCI6ImFkbWluQGV4YW1wbGUuY29tIiwicm9sZSI6ImFkbWluIiwidXNlcm5hbWUiOiJTeXN0ZW0gQWRtaW4iLCJpYXQiOjE3NzM5NDE0MDQsImV4cCI6MTc3NDgwNTQwNH0.o9xdRN2qDXVQADC76kvWrdNNOmDILmQNFhFZ4zduYWg
@userId = 50f68625-0381-4d28-9f31-a338dd209a30
@accidentId = 5003ae90-c245-42ad-9998-06d00ea66c89
@sessionId = 8f192b-819a
@reportId = 12fa
@vehicleId = 55ba
@mediaId = 66ad
@locationId = 77be
@notificationId = 88cf
@serviceId = 99de
### ==============================================
### AUTH ENDPOINTS
### ==============================================
### Sign in
POST {{baseUrl}}/auth/signin
Content-Type: application/json
{
"email": "admin@example.com",
"password": "Password123!"
}
### Refresh tokens
POST {{baseUrl}}/auth/refresh
Authorization: Bearer {{refreshToken}}
Content-Type: application/json
### Get profile
GET {{baseUrl}}/auth/profile
Authorization: Bearer {{accessToken}}
### Update profile
PATCH {{baseUrl}}/auth/profile
Authorization: Bearer {{accessToken}}
Content-Type: application/json
{
"fullName": "John Doe Updated",
"phoneNumber": "+1234567891"
}
### Change password
POST {{baseUrl}}/auth/change-password
Authorization: Bearer {{accessToken}}
Content-Type: application/json
{
"currentPassword": "Password123!",
"newPassword": "NewPassword123!"
}
### Forgot password
POST {{baseUrl}}/auth/forgot-password
Content-Type: application/json
{
"email": "andreastailas96@gmail.com"
}
### Reset password
POST {{baseUrl}}/auth/reset-password
Content-Type: application/json
{
"token": "reset-token-here",
"newPassword": "NewPassword123!",
"confirmPassword": "NewPassword123!"
}
### Get all sessions
GET {{baseUrl}}/auth/sessions
Authorization: Bearer {{accessToken}}
### Delete a session
DELETE {{baseUrl}}/auth/sessions/{{sessionId}}
Authorization: Bearer {{accessToken}}
### Delete all sessions
DELETE {{baseUrl}}/auth/sessions
Authorization: Bearer {{accessToken}}
### Logout
POST {{baseUrl}}/auth/logout
Authorization: Bearer {{accessToken}}
### ==============================================
### USERS ENDPOINTS
### ==============================================
### Register/Create User (Standard)
POST {{baseUrl}}/users
Content-Type: application/json
{
"fullName": "Standard User",
"email": "user@example.com",
"username": "standarduser",
"password": "Password123!",
"phoneNumber": "+1234567890",
"role": "user",
"isActive": true
}
### Register/Create Officer
POST {{baseUrl}}/users
Content-Type: application/json
{
"fullName": "Police Officer",
"email": "officer@example.com",
"username": "policeofficer",
"password": "Password123!",
"phoneNumber": "+1234567891",
"role": "officer",
"isActive": true
}
### Register/Create Emergency Responder
POST {{baseUrl}}/users
Content-Type: application/json
{
"fullName": "EMT Responder",
"email": "responder@example.com",
"username": "emtresponder",
"password": "Password123!",
"phoneNumber": "+1234567892",
"role": "emergency_responder",
"isActive": true
}
### Register/Create Dispatcher
POST {{baseUrl}}/users
Content-Type: application/json
{
"fullName": "Dispatch Coordinator",
"email": "dispatcher@example.com",
"username": "dispatcher",
"password": "Password123!",
"phoneNumber": "+1234567894",
"role": "dispatcher",
"isActive": true
}
### Register/Create Admin
POST {{baseUrl}}/users
Content-Type: application/json
{
"fullName": "System Admin",
"email": "admin@example.com",
"username": "sysadmin",
"password": "Password123!",
"phoneNumber": "+1234567893",
"role": "admin",
"isActive": true
}
### Get all users
GET {{baseUrl}}/users
Authorization: Bearer {{accessToken}}
### Get user statistics
GET {{baseUrl}}/users/stats
Authorization: Bearer {{accessToken}}
### Get active users
GET {{baseUrl}}/users/active
Authorization: Bearer {{accessToken}}
### Get users by role
GET {{baseUrl}}/users/role/officer
Authorization: Bearer {{accessToken}}
### Get user by ID
GET {{baseUrl}}/users/{{userId}}
Authorization: Bearer {{accessToken}}
### Update user
PATCH {{baseUrl}}/users/{{userId}}
Authorization: Bearer {{accessToken}}
Content-Type: application/json
{
"fullName": "Jane Smith Updated",
"phoneNumber": "+1234567893"
}
### Deactivate user
PATCH {{baseUrl}}/users/{{userId}}/deactivate
Authorization: Bearer {{accessToken}}
### Activate user
PATCH {{baseUrl}}/users/{{userId}}/activate
Authorization: Bearer {{accessToken}}
### Delete user
DELETE {{baseUrl}}/users/{{userId}}
Authorization: Bearer {{accessToken}}
### ==============================================
### ACCIDENTS ENDPOINTS
### ==============================================
### Create accident
POST {{baseUrl}}/accidents
Authorization: Bearer {{accessToken}}
Content-Type: application/json
{
"description": "Two vehicle collision",
"severity": "moderate",
"status": "reported"
}
### Create accident report directly
POST {{baseUrl}}/accidents/report
Authorization: Bearer {{accessToken}}
Content-Type: application/json
{
"accidentId": "{{accidentId}}",
"reportData": {}
}
### Get all accidents
GET {{baseUrl}}/accidents
Authorization: Bearer {{accessToken}}
### Get accidents by user ID (query parameter)
GET {{baseUrl}}/accidents?userId={{userId}}
Authorization: Bearer {{accessToken}}
### Get accidents by status (query parameter)
GET {{baseUrl}}/accidents?status=reported
Authorization: Bearer {{accessToken}}
### Get accident by report number
GET {{baseUrl}}/accidents/report/ACC-20260129-001
Authorization: Bearer {{accessToken}}
### Get accidents by status
GET {{baseUrl}}/accidents/status/pending
Authorization: Bearer {{accessToken}}
### Get accidents by officer
GET {{baseUrl}}/accidents/officer/{{userId}}
Authorization: Bearer {{accessToken}}
### Get accidents by user ID
GET {{baseUrl}}/accidents/user/{{userId}}
Authorization: Bearer {{accessToken}}
### Get accident statistics
GET {{baseUrl}}/accidents/statistics
Authorization: Bearer {{accessToken}}
### Get accident by ID
GET {{baseUrl}}/accidents/{{accidentId}}
Authorization: Bearer {{accessToken}}
### Update accident
PATCH {{baseUrl}}/accidents/{{accidentId}}
Authorization: Bearer {{accessToken}}
Content-Type: application/json
{
"description": "Updated description",
"severity": "severe"
}
### Assign officer to accident
PATCH {{baseUrl}}/accidents/{{accidentId}}/assign-officer
Authorization: Bearer {{accessToken}}
Content-Type: application/json
{
"officerId": "{{userId}}"
}
### Update accident status
PATCH {{baseUrl}}/accidents/{{accidentId}}/status
Authorization: Bearer {{accessToken}}
Content-Type: application/json
{
"status": "in_progress"
}
### Delete accident
DELETE {{baseUrl}}/accidents/{{accidentId}}
Authorization: Bearer {{accessToken}}
### ==============================================
### AI ENDPOINTS
### ==============================================
### Analyze accident with AI
POST {{baseUrl}}/ai/analyze-accident
Authorization: Bearer {{accessToken}}
Content-Type: application/json
{
"accidentId": "{{accidentId}}",
"description": "Collision at intersection"
}
### Generate accident report with AI
POST {{baseUrl}}/ai/generate-report
Authorization: Bearer {{accessToken}}
Content-Type: application/json
{
"accidentId": "{{accidentId}}",
"includeAnalysis": true
}
### Extract text from image
POST {{baseUrl}}/ai/extract-text
Authorization: Bearer {{accessToken}}
Content-Type: application/json
{
"imageUrl": "https://images.unsplash.com/photo-1575987446487-56eba08666cf?q=80&w=870&auto=format&fit=crop&ixlib=rb-4.1.0&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D"
}
### Classify accident severity
POST {{baseUrl}}/ai/classify-severity
Authorization: Bearer {{accessToken}}
Content-Type: application/json
{
"description": "Single vehicle collision with guardrail"
}
### Get AI insights for accident
GET {{baseUrl}}/ai/insights/{{accidentId}}
Authorization: Bearer {{accessToken}}
### ==============================================
### DISPATCH ENDPOINTS
### ==============================================
### Manual dispatch emergency services
POST {{baseUrl}}/dispatch/manual
Authorization: Bearer {{accessToken}}
Content-Type: application/json
{
"accidentId": "{{accidentId}}",
"userId": "{{userId}}",
"severity": 75
}
### Get active dispatches
GET {{baseUrl}}/dispatch/active
Authorization: Bearer {{accessToken}}
### Get dispatches by accident
GET {{baseUrl}}/dispatch/accident/{{accidentId}}
Authorization: Bearer {{accessToken}}
### Get pending dispatches
GET {{baseUrl}}/dispatch/pending
Authorization: Bearer {{accessToken}}
### Get completed dispatches
GET {{baseUrl}}/dispatch/completed
Authorization: Bearer {{accessToken}}
### Get dispatch statistics
GET {{baseUrl}}/dispatch/statistics
Authorization: Bearer {{accessToken}}
### Send dispatch instruction to responder
POST {{baseUrl}}/dispatch/send-to-responder
Authorization: Bearer {{accessToken}}
Content-Type: application/json
{
"accidentId": "{{accidentId}}",
"responderId": "{{userId}}",
"serviceType": "ambulance",
"severity": 85,
"incidentDescription": "Multiple vehicle collision with injuries",
"instructions": "Bring triple immobilization kits. Potential spinal injuries.",
"latitude": 37.7749,
"longitude": -122.4194,
"address": "123 Main St, Downtown",
"reportNumber": "RPT-2026-001",
"numberOfVehicles": 3,
"numberOfInjuries": 4,
"numberOfFatalities": 0,
"weatherConditions": "Rainy",
"roadConditions": "Wet, Low visibility",
"priority": "high",
"actionItems": ["Establish scene safety", "Triage patients", "Contact supervisor"]
}
### Get active dispatches for dispatcher
GET {{baseUrl}}/dispatch/dispatcher/active
Authorization: Bearer {{accessToken}}
### Get my assignments (Responder endpoint)
GET {{baseUrl}}/dispatch/my-assignments
Authorization: Bearer {{accessToken}}
### Get my assignments history (Responder endpoint)
GET {{baseUrl}}/dispatch/my-assignments/history
Authorization: Bearer {{accessToken}}
### Get dispatch details
GET {{baseUrl}}/dispatch/{{serviceId}}/details
Authorization: Bearer {{accessToken}}
### Acknowledge dispatch (Responder)
POST {{baseUrl}}/dispatch/{{serviceId}}/acknowledge
Authorization: Bearer {{accessToken}}
Content-Type: application/json
{
"emergencyServiceId": "{{serviceId}}",
"message": "Acknowledged - En route to scene. ETA 5 minutes."
}
### Update responder status (Responder)
PATCH {{baseUrl}}/dispatch/{{serviceId}}/status
Authorization: Bearer {{accessToken}}
Content-Type: application/json
{
"status": "on_scene",
"notes": "Arrived on scene. Multiple injuries confirmed. 2 patients requiring immediate transport.",
"currentLatitude": 37.7749,
"currentLongitude": -122.4194
}
### ==============================================
### EMERGENCY SERVICES ENDPOINTS
### ==============================================
### Create emergency service
POST {{baseUrl}}/emergency-services
Authorization: Bearer {{accessToken}}
Content-Type: application/json
{
"type": "ambulance",
"status": "dispatched",
"serviceProvider": "City Ambulance"
}
### Get all emergency services
GET {{baseUrl}}/emergency-services
Authorization: Bearer {{accessToken}}
### Get emergency service by ID
GET {{baseUrl}}/emergency-services/{{serviceId}}
Authorization: Bearer {{accessToken}}
### Update emergency service
PATCH {{baseUrl}}/emergency-services/{{serviceId}}
Authorization: Bearer {{accessToken}}
Content-Type: application/json
{
"status": "completed"
}
### Delete emergency service
DELETE {{baseUrl}}/emergency-services/{{serviceId}}
Authorization: Bearer {{accessToken}}
### ==============================================
### LOCATIONS ENDPOINTS
### ==============================================
### Create location
POST {{baseUrl}}/locations
Authorization: Bearer {{accessToken}}
Content-Type: application/json
{
"name": "Downtown Intersection",
"latitude": 40.7128,
"longitude": -74.0060
}
### Get all locations
GET {{baseUrl}}/locations
Authorization: Bearer {{accessToken}}
### Get location by ID
GET {{baseUrl}}/locations/{{locationId}}
Authorization: Bearer {{accessToken}}
### Update location
PATCH {{baseUrl}}/locations/{{locationId}}
Authorization: Bearer {{accessToken}}
Content-Type: application/json
{
"description": "Updated description"
}
### Delete location
DELETE {{baseUrl}}/locations/{{locationId}}
Authorization: Bearer {{accessToken}}
### ==============================================
### MEDIA ENDPOINTS
### ==============================================
### Create media entry
POST {{baseUrl}}/media
Authorization: Bearer {{accessToken}}
Content-Type: application/json
{
"accidentId": "{{accidentId}}",
"type": "image",
"fileUrl": "https://example.com/image.jpg"
}
### Get all media
GET {{baseUrl}}/media
Authorization: Bearer {{accessToken}}
### Get media by ID
GET {{baseUrl}}/media/{{mediaId}}
Authorization: Bearer {{accessToken}}
### Update media
PATCH {{baseUrl}}/media/{{mediaId}}
Authorization: Bearer {{accessToken}}
Content-Type: application/json
{
"description": "Front view"
}
### Delete media
DELETE {{baseUrl}}/media/{{mediaId}}
Authorization: Bearer {{accessToken}}
### ==============================================
### NOTIFICATIONS ENDPOINTS
### ==============================================
### Create notification
POST {{baseUrl}}/notifications
Authorization: Bearer {{accessToken}}
Content-Type: application/json
{
"userId": "{{userId}}",
"type": "alert",
"message": "New assignment"
}
### Get all notifications
GET {{baseUrl}}/notifications
Authorization: Bearer {{accessToken}}
### Get unread notifications
GET {{baseUrl}}/notifications/unread
Authorization: Bearer {{accessToken}}
### Get unread notifications count
GET {{baseUrl}}/notifications/unread/count
Authorization: Bearer {{accessToken}}
### Get notification by ID
GET {{baseUrl}}/notifications/{{notificationId}}
Authorization: Bearer {{accessToken}}
### Mark notification as read
PATCH {{baseUrl}}/notifications/{{notificationId}}/read
Authorization: Bearer {{accessToken}}
### Update notification
PATCH {{baseUrl}}/notifications/{{notificationId}}
Authorization: Bearer {{accessToken}}
Content-Type: application/json
{
"isRead": true
}
### Delete notification
DELETE {{baseUrl}}/notifications/{{notificationId}}
Authorization: Bearer {{accessToken}}
### ==============================================
### REPORTS ENDPOINTS
### ==============================================
### Create report
POST {{baseUrl}}/reports
Authorization: Bearer {{accessToken}}
Content-Type: application/json
{
"accidentId": "{{accidentId}}",
"officerId": "{{userId}}",
"content": "Detailed report content"
}
### Get all reports
GET {{baseUrl}}/reports
Authorization: Bearer {{accessToken}}
### Get report by report number
GET {{baseUrl}}/reports/report/RPT-2026-001
Authorization: Bearer {{accessToken}}
### Get reports by accident
GET {{baseUrl}}/reports/accident/{{accidentId}}
Authorization: Bearer {{accessToken}}
### Get reports by officer
GET {{baseUrl}}/reports/officer/{{userId}}
Authorization: Bearer {{accessToken}}
### Get all submitted reports
GET {{baseUrl}}/reports/submitted
Authorization: Bearer {{accessToken}}
### Get all draft reports
GET {{baseUrl}}/reports/draft
Authorization: Bearer {{accessToken}}
### Get report statistics
GET {{baseUrl}}/reports/statistics
Authorization: Bearer {{accessToken}}
### Get report by ID
GET {{baseUrl}}/reports/{{reportId}}
Authorization: Bearer {{accessToken}}
### Update report
PATCH {{baseUrl}}/reports/{{reportId}}
Authorization: Bearer {{accessToken}}
Content-Type: application/json
{
"content": "Updated details"
}
### Submit report
PATCH {{baseUrl}}/reports/{{reportId}}/submit
Authorization: Bearer {{accessToken}}
### Delete report
DELETE {{baseUrl}}/reports/{{reportId}}
Authorization: Bearer {{accessToken}}
### ==============================================
### UPLOAD ENDPOINTS
### ==============================================
### Upload single file
POST {{baseUrl}}/upload/file
Authorization: Bearer {{accessToken}}
Content-Type: multipart/form-data; boundary=----WebKitFormBoundary7MA4YWxkTrZu0gW
------WebKitFormBoundary7MA4YWxkTrZu0gW
Content-Disposition: form-data; name="file"; filename="photo.jpg"
Content-Type: image/jpeg
< ./path/to/photo.jpg
------WebKitFormBoundary7MA4YWxkTrZu0gW--
### Upload multiple files
POST {{baseUrl}}/upload/files
Authorization: Bearer {{accessToken}}
Content-Type: multipart/form-data; boundary=----WebKitFormBoundary7MA4YWxkTrZu0gW
------WebKitFormBoundary7MA4YWxkTrZu0gW
Content-Disposition: form-data; name="files"; filename="photo1.jpg"
Content-Type: image/jpeg
< ./path/to/photo1.jpg
------WebKitFormBoundary7MA4YWxkTrZu0gW--
### Upload document
POST {{baseUrl}}/upload/document
Authorization: Bearer {{accessToken}}
Content-Type: multipart/form-data; boundary=----WebKitFormBoundary7MA4YWxkTrZu0gW
------WebKitFormBoundary7MA4YWxkTrZu0gW
Content-Disposition: form-data; name="file"; filename="doc.pdf"
Content-Type: application/pdf
< ./path/to/doc.pdf
------WebKitFormBoundary7MA4YWxkTrZu0gW--
### Upload video
POST {{baseUrl}}/upload/video
Authorization: Bearer {{accessToken}}
Content-Type: multipart/form-data; boundary=----WebKitFormBoundary7MA4YWxkTrZu0gW
------WebKitFormBoundary7MA4YWxkTrZu0gW
Content-Disposition: form-data; name="file"; filename="video.mp4"
Content-Type: video/mp4
< ./path/to/video.mp4
------WebKitFormBoundary7MA4YWxkTrZu0gW--
### Get upload status
GET {{baseUrl}}/upload/status/upload-id
Authorization: Bearer {{accessToken}}
### Delete file
DELETE {{baseUrl}}/upload/file/public-id
Authorization: Bearer {{accessToken}}
### ==============================================
### VEHICLES ENDPOINTS
### ==============================================
### Create vehicle
POST {{baseUrl}}/vehicles
Authorization: Bearer {{accessToken}}
Content-Type: application/json
{
"accidentId": "{{accidentId}}",
"licensePlate": "ABC123",
"make": "Toyota",
"model": "Camry"
}
### Get all vehicles
GET {{baseUrl}}/vehicles
Authorization: Bearer {{accessToken}}
### Get vehicle by accident
GET {{baseUrl}}/vehicles/accident/{{accidentId}}
Authorization: Bearer {{accessToken}}
### Get vehicle by license plate
GET {{baseUrl}}/vehicles/plate/ABC123
Authorization: Bearer {{accessToken}}
### Get vehicle by ID
GET {{baseUrl}}/vehicles/{{vehicleId}}
Authorization: Bearer {{accessToken}}
### Update vehicle
PATCH {{baseUrl}}/vehicles/{{vehicleId}}
Authorization: Bearer {{accessToken}}
Content-Type: application/json
{
"color": "Blue"
}
### Delete vehicle
DELETE {{baseUrl}}/vehicles/{{vehicleId}}
Authorization: Bearer {{accessToken}}
### ==============================================
### APP ENDPOINTS
### ==============================================
### Health check
GET {{baseUrl}}/