-
Notifications
You must be signed in to change notification settings - Fork 53
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #209 from IATA-Cargo/LogisticsEvents_Collections
Logistics events collections
- Loading branch information
Showing
16 changed files
with
203 additions
and
58 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
9 changes: 9 additions & 0 deletions
9
working_draft/API/docs/examples/LogisticsEvents_empty_list.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
{ | ||
"@context": { | ||
"cargo": "https://onerecord.iata.org/ns/cargo#", | ||
"api": "https://onerecord.iata.org/ns/api#" | ||
}, | ||
"@id": "https://1r.example.com/logistics-objects/2a7d1338-9033-13xc-b665-81a411418978/logistics-events", | ||
"@type": "api:Collection", | ||
"api:hasTotalItems": 0 | ||
} |
52 changes: 27 additions & 25 deletions
52
working_draft/API/docs/examples/LogisticsEvents_filtered_list.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,30 +1,32 @@ | ||
{ | ||
"@context": { | ||
"cargo": "https://onerecord.iata.org/ns/cargo#" | ||
"cargo": "https://onerecord.iata.org/ns/cargo#", | ||
"api": "https://onerecord.iata.org/ns/api#" | ||
}, | ||
"@graph": [ | ||
{ | ||
"@id": "https://1r.example.com/logistics-objects/1a8ded38-1804-467c-a369-81a411416b3c/logistics-events/afb4b8cf-288a-459c-97fd-ccd538ec527f", | ||
"@type": "cargo:LogisticsEvent", | ||
"cargo:creationDate": { | ||
"@type": "http://www.w3.org/2001/XMLSchema#dateTime", | ||
"@value": "2023-04-01T10:38:01.000Z" | ||
}, | ||
"cargo:eventDate": { | ||
"@type": "http://www.w3.org/2001/XMLSchema#dateTime", | ||
"@value": "2023-04-01T10:38:01.000Z" | ||
}, | ||
"cargo:eventCode": "DEP", | ||
"cargo:eventName": "Consignment departed on a specific flight", | ||
"cargo:eventTimeType": "Actual", | ||
"cargo:linkedObject": { | ||
"@id": "https://1r.example.com/logistics-objects/1a8ded38-1804-467c-a369-81a411416b3c", | ||
"@type": "cargo:Shipment" | ||
}, | ||
"cargo:recordedBy": { | ||
"@id": "https://1r.example.com/logistics-objects/957e2622-9d31-493b-8b8f-3c805064dbda", | ||
"@type": "cargo:Company" | ||
} | ||
"@id": "https://1r.example.com/logistics-objects/1a8ded38-1804-467c-a369-81a411416b3c/logistics-events", | ||
"@type": "api:Collection", | ||
"api:hasTotalItems": 1, | ||
"api:hasItems": { | ||
"@id": "https://1r.example.com/logistics-objects/1a8ded38-1804-467c-a369-81a411416b3c/logistics-events/afb4b8cf-288a-459c-97fd-ccd538ec527f", | ||
"@type": "cargo:LogisticsEvent", | ||
"cargo:creationDate": { | ||
"@type": "http://www.w3.org/2001/XMLSchema#dateTime", | ||
"@value": "2023-04-01T10:38:01.000Z" | ||
}, | ||
"cargo:eventDate": { | ||
"@type": "http://www.w3.org/2001/XMLSchema#dateTime", | ||
"@value": "2023-04-01T10:38:01.000Z" | ||
}, | ||
"cargo:eventCode": "DEP", | ||
"cargo:eventName": "Consignment departed on a specific flight", | ||
"cargo:eventTimeType": "Actual", | ||
"cargo:linkedObject": { | ||
"@id": "https://1r.example.com/logistics-objects/1a8ded38-1804-467c-a369-81a411416b3c", | ||
"@type": "cargo:Shipment" | ||
}, | ||
"cargo:recordedBy": { | ||
"@id": "https://1r.example.com/logistics-objects/957e2622-9d31-493b-8b8f-3c805064dbda", | ||
"@type": "cargo:Company" | ||
} | ||
] | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.