You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Apr 5, 2024. It is now read-only.
- Send a _post_ or a _put_ request on the endpoint (`/metadata/`) with following JSON (`application/json`) data along with `Authorization: Bearer <auth-token>` header in request body:
354
+
- Send a _post_ or a _put_ request on the endpoint (`/shipment/metadata/`) with following JSON (`application/json`) data along with `Authorization: Bearer <auth-token>` header in request body:
355
355
```json
356
356
{
357
357
"shipment": "S1",
@@ -373,50 +373,50 @@ All the endpoints concerning shipment metadata lie under `http://{ip/domain}/met
373
373
"temperature": "25°C",
374
374
"quality": 95
375
375
}' \
376
-
http://{ip/domain}/metadata
376
+
http://{ip/domain}/shipment/metadata/
377
377
```
378
378
379
379
### Shipment Events
380
380
381
-
All the endpoints concerning shipment events lie under `http://{ip/domain}/event/`.
381
+
All the endpoints concerning shipment events lie under `http://{ip/domain}/shipment/event/`.
382
382
383
383
#### GET
384
384
385
385
##### Unique
386
386
387
-
- Send a _get_ request on the endpoint with the unique id of an event - `/event/<EVENT_INT_ID>`
387
+
- Send a _get_ request on the endpoint with the unique id of an event - `/shipment/event/<EVENT_INT_ID>`
388
388
- cURL example:
389
389
```bash
390
-
curl -sS -X GET "http://{ip/domain}/event/1"
390
+
curl -sS -X GET "http://{ip/domain}/shipment/event/1"
391
391
```
392
392
393
393
##### All
394
394
395
-
- Send a _get_ request on the endpoint with "all" as arguement - `/event/all`
395
+
- Send a _get_ request on the endpoint with "all" as arguement - `/shipment/event/all`
396
396
- cURL example:
397
397
```bash
398
-
curl -sS -X GET "http://{ip/domain}/event/all"
398
+
curl -sS -X GET "http://{ip/domain}/shipment/event/all"
399
399
```
400
400
401
401
##### By Shipment
402
402
403
-
- Send a _get_ request on the endpoint with the unique code of a shipment - `/event/shipment/<SHIPMENT_CODE>`
403
+
- Send a _get_ request on the endpoint with the unique code of a shipment - `/shipment/event/shipment/<SHIPMENT_CODE>`
404
404
- cURL example:
405
405
```bash
406
-
curl -sS -X GET "http://{ip/domain}/event/shipment/S1"
406
+
curl -sS -X GET "http://{ip/domain}/shipment/event/shipment/S1"
407
407
```
408
408
409
409
#### DELETE
410
410
411
-
- Send a _delete_ request on the endpoint with the unique id of an event - `/event/<EVENT_INT_ID>`
411
+
- Send a _delete_ request on the endpoint with the unique id of an event - `/shipment/event/<EVENT_INT_ID>`
- Send a _post_ or a _put_ request on the endpoint (`/event/`) with following JSON (`application/json`) data along with `Authorization: Bearer <auth-token>` header in request body:
419
+
- Send a _post_ or a _put_ request on the endpoint (`/shipment/event/`) with following JSON (`application/json`) data along with `Authorization: Bearer <auth-token>` header in request body:
420
420
```json
421
421
{
422
422
"shipment": "S1",
@@ -432,7 +432,7 @@ All the endpoints concerning shipment events lie under `http://{ip/domain}/event
0 commit comments