diff --git a/Documents/EPCIS 2.0.postman_collection.json b/Documents/EPCIS 2.0.postman_collection.json new file mode 100644 index 00000000..4dd16b44 --- /dev/null +++ b/Documents/EPCIS 2.0.postman_collection.json @@ -0,0 +1,836 @@ +{ + "info": { + "_postman_id": "b9a006fb-d655-4fc6-a0a8-a67c6b065b7a", + "name": "EPCIS Examples - 2.0", + "description": "# Introduction\nWhat does your API do?\n\n# Overview\nThings that the developers should know about\n\n# Authentication\nWhat is the preferred way of using the API?\n\n# Error Codes\nWhat errors and status codes can a user expect?\n\n# Rate limit\nIs there a limit to the number of requests an user can send?", + "schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json", + "_exporter_id": "48842" + }, + "item": [ + { + "name": "XML", + "item": [ + { + "name": "Capture request", + "protocolProfileBehavior": { + "disabledSystemHeaders": { + "accept": true + } + }, + "request": { + "method": "POST", + "header": [ + { + "key": "Content-Type", + "value": "application/xml", + "type": "text" + }, + { + "key": "accept", + "value": "application/json", + "type": "text", + "disabled": true + }, + { + "key": "GS1-Extensions", + "value": "cbvmda=http://org1.example.com/epcis/", + "type": "text" + }, + { + "key": "GS1-Extensions", + "value": "example-epc-ext2=http://vendor.example.com/epcis/", + "type": "text" + } + ], + "body": { + "mode": "raw", + "raw": "\n\n \n \n \n 2005-04-03T20:33:31.116-06:00\n -06:00\n \n urn:epc:id:sgtin:0614141.107346.2017\n urn:epc:id:sgtin:0614141.107346.2018\n \n OBSERVE\n urn:epcglobal:cbv:bizstep:shipping\n urn:epcglobal:cbv:disp:in_transit\n \n urn:epc:id:sgln:0614141.07346.1234\n \n \n http://transaction.acme.com/po/12345678\n \n \n \n 2005-04-04T20:33:31.116-06:00\n -06:00\n \n urn:epc:id:sgtin:0614141.107346.2018\n \n OBSERVE\n urn:epcglobal:cbv:bizstep:receiving\n urn:epcglobal:cbv:disp:in_progress\n \n urn:epc:id:sgln:0012345.11111.400\n \n \n urn:epc:id:sgln:0012345.11111.0\n \n \n http://transaction.acme.com/po/12345678\n urn:epcglobal:cbv:bt:0614141073467:1152\n \n Example of a vendor/user extension\n \n \n \n\n" + }, + "url": { + "raw": "{{BaseUrl}}/v2_0/Capture", + "host": [ + "{{BaseUrl}}" + ], + "path": [ + "v2_0", + "Capture" + ] + } + }, + "response": [] + }, + { + "name": "Capture event with Masterdata", + "protocolProfileBehavior": { + "disabledSystemHeaders": { + "accept": true + } + }, + "request": { + "method": "POST", + "header": [ + { + "key": "Content-Type", + "value": "application/xml", + "type": "text" + }, + { + "key": "accept", + "value": "application/json", + "type": "text", + "disabled": true + }, + { + "key": "GS1-Extensions", + "value": "cbvmda=http://org1.example.com/epcis/", + "type": "text" + }, + { + "key": "GS1-Extensions", + "value": "example-epc-ext2=http://vendor.example.com/epcis/", + "type": "text" + } + ], + "body": { + "mode": "raw", + "raw": "\n\n \n \n 2.0\n \n Sending Party\n \n \n Receiving Party\n \n \n EPCglobal\n 2.0\n 201812244444400001\n Events\n 2018-12-06T12:45:20.0Z\n \n \n \n \n \n \n \n \n 0037000007296\n 201\n \n \n 0037000007296\n 202\n \n \n 0037000007296\n 203\n \n \n \n \n \n \n \n \n \n \n 2013-10-31T14:58:56Z\n 2022-11-15T07:37:49Z\n +02:00\n test\n \n urn:epc:id:sgtin:4000001.065432.99886655\n urn:epc:id:sgtin:4012345.011122.25\n \n \n \n urn:epc:class:lgtin:0614141.077777.987\n 30\n \n \n urn:epc:class:lgtin:4012345.011111.4444\n 10\n KGM\n \n \n urn:epc:idpat:sgtin:4012345.066666.*\n 220\n \n \n \n urn:epc:id:sgtin:4012345.077889.25\n urn:epc:id:sgtin:4012345.077889.26\n urn:epc:id:sgtin:4012345.077889.27\n urn:epc:id:sgtin:4012345.077889.28\n \n \n \n urn:epc:class:lgtin:0614141.077777.987\n 30\n \n \n urn:epc:class:lgtin:4012345.011111.4444\n 10\n KGM\n \n \n urn:epc:idpat:sgtin:4012345.066666.*\n 220\n \n \n urn:epc:id:gdti:0614141.12345.400\n commissioning\n in_progress\n \n urn:epc:id:sgln:4012345.00001.0\n \n \n urn:epc:id:sgln:0614141.00888.0\n \n \n urn:epc:id:gsrn:0614141.0000010253\n urn:epc:id:gdti:0614141.00001.1618034\n \n \n urn:epc:id:sgln:4012345.00225.0\n urn:epc:id:pgln:4012345.00225\n urn:epc:id:pgln:4012345.00225\n \n \n urn:epc:id:sgln:0614141.00777.0\n urn:epc:id:pgln:0614141.00777\n urn:epc:id:pgln:0614141.00777\n \n \n \n \n" + }, + "url": { + "raw": "{{BaseUrl}}/v2_0/Capture", + "host": [ + "{{BaseUrl}}" + ], + "path": [ + "v2_0", + "Capture" + ] + } + }, + "response": [] + } + ] + }, + { + "name": "JSON", + "item": [ + { + "name": "Queries", + "item": [ + { + "name": "Get custom query Details", + "protocolProfileBehavior": { + "disableBodyPruning": true + }, + "request": { + "auth": { + "type": "basic", + "basic": [ + { + "key": "password", + "value": "P@ssw0rd", + "type": "string" + }, + { + "key": "username", + "value": "admin", + "type": "string" + }, + { + "key": "saveHelperData", + "value": true, + "type": "boolean" + }, + { + "key": "showPassword", + "value": false, + "type": "boolean" + } + ] + }, + "method": "GET", + "header": [ + { + "key": "Content-Type", + "value": "application/json", + "type": "text" + }, + { + "key": "GS1-Extensions", + "value": "ext3=http://example.com/ext3/", + "type": "text" + } + ], + "body": { + "mode": "raw", + "raw": "" + }, + "url": { + "raw": "{{BaseUrl}}/v2_0/queries/CustomQuery", + "host": [ + "{{BaseUrl}}" + ], + "path": [ + "v2_0", + "queries", + "CustomQuery" + ] + } + }, + "response": [] + }, + { + "name": "List Custom Queries", + "protocolProfileBehavior": { + "disableBodyPruning": true + }, + "request": { + "auth": { + "type": "basic", + "basic": [ + { + "key": "password", + "value": "P@ssw0rd", + "type": "string" + }, + { + "key": "username", + "value": "admin", + "type": "string" + }, + { + "key": "saveHelperData", + "value": true, + "type": "boolean" + }, + { + "key": "showPassword", + "value": false, + "type": "boolean" + } + ] + }, + "method": "GET", + "header": [ + { + "key": "Content-Type", + "value": "application/json", + "type": "text" + }, + { + "key": "GS1-Extensions", + "value": "ext3=http://example.com/ext3/", + "type": "text" + } + ], + "body": { + "mode": "raw", + "raw": "" + }, + "url": { + "raw": "{{BaseUrl}}/v2_0/queries", + "host": [ + "{{BaseUrl}}" + ], + "path": [ + "v2_0", + "queries" + ] + } + }, + "response": [] + }, + { + "name": "Delete Custom Query", + "request": { + "auth": { + "type": "basic", + "basic": [ + { + "key": "password", + "value": "P@ssw0rd", + "type": "string" + }, + { + "key": "username", + "value": "admin", + "type": "string" + }, + { + "key": "saveHelperData", + "value": true, + "type": "boolean" + }, + { + "key": "showPassword", + "value": false, + "type": "boolean" + } + ] + }, + "method": "DELETE", + "header": [ + { + "key": "Content-Type", + "value": "application/json", + "type": "text" + }, + { + "key": "GS1-Extensions", + "value": "ext3=http://example.com/ext3/", + "type": "text" + } + ], + "body": { + "mode": "raw", + "raw": "" + }, + "url": { + "raw": "{{BaseUrl}}/v2_0/queries/UniqueQueryName", + "host": [ + "{{BaseUrl}}" + ], + "path": [ + "v2_0", + "queries", + "UniqueQueryName" + ] + } + }, + "response": [] + }, + { + "name": "Get CustomQuery Events", + "protocolProfileBehavior": { + "disableBodyPruning": true + }, + "request": { + "auth": { + "type": "basic", + "basic": [ + { + "key": "password", + "value": "P@ssw0rd", + "type": "string" + }, + { + "key": "username", + "value": "admin", + "type": "string" + }, + { + "key": "saveHelperData", + "value": true, + "type": "boolean" + }, + { + "key": "showPassword", + "value": false, + "type": "boolean" + } + ] + }, + "method": "GET", + "header": [ + { + "key": "Content-Type", + "value": "application/json", + "type": "text" + }, + { + "key": "GS1-Extensions", + "value": "ext3=http://example.com/ext3/", + "type": "text" + } + ], + "body": { + "mode": "raw", + "raw": "" + }, + "url": { + "raw": "{{BaseUrl}}/v2_0/queries/CustomQuery/events", + "host": [ + "{{BaseUrl}}" + ], + "path": [ + "v2_0", + "queries", + "CustomQuery", + "events" + ] + } + }, + "response": [] + }, + { + "name": "Store Query", + "request": { + "method": "POST", + "header": [], + "body": { + "mode": "raw", + "raw": "{\r\n \"name\": \"UniqueQueryName\",\r\n \"query\": {\r\n \"eventType\": [\r\n \"ObjectEvent\"\r\n ],\r\n \"EQ_bizStep\": [\r\n \"shipping\",\r\n \"receiving\"\r\n ]\r\n }\r\n}", + "options": { + "raw": { + "language": "json" + } + } + }, + "url": { + "raw": "{{BaseUrl}}/v2_0/queries", + "host": [ + "{{BaseUrl}}" + ], + "path": [ + "v2_0", + "queries" + ] + } + }, + "response": [] + } + ] + }, + { + "name": "Capture", + "item": [ + { + "name": "Capture request", + "protocolProfileBehavior": { + "disabledSystemHeaders": { + "accept": true + } + }, + "request": { + "auth": { + "type": "basic", + "basic": [ + { + "key": "password", + "value": "P@ssw0rd", + "type": "string" + }, + { + "key": "username", + "value": "admin", + "type": "string" + }, + { + "key": "saveHelperData", + "value": true, + "type": "boolean" + }, + { + "key": "showPassword", + "value": false, + "type": "boolean" + } + ] + }, + "method": "POST", + "header": [ + { + "key": "Content-Type", + "value": "application/json", + "type": "text" + }, + { + "key": "accept", + "value": "application/json", + "type": "text" + }, + { + "key": "GS1-Extensions", + "value": "cbvmda=http://org1.example.com/epcis/", + "type": "text" + }, + { + "key": "GS1-Extensions", + "value": "example-epc-ext2=http://vendor.example.com/epcis/", + "type": "text" + } + ], + "body": { + "mode": "raw", + "raw": "{\n \"type\": \"EPCISDocument\",\n \"schemaVersion\": \"2.0\",\n \"creationDate\": \"2013-06-04T14:59:02.099+02:00\",\n \"epcisHeader\":{\n \"vocabularyList\":[\n {\n \"type\":\"urn:epcglobal:epcis:vtype:ReadPoint\",\n \"vocabularyElementList\":[\n {\n \"id\":\"urn:epc:id:sgln:0037000.00729.8201\",\n \"attributes\": [\n {\n \"id\": \"urn:epcglobal:cbv:mda:site\",\n \"attribute\": \"0037000007296\"\n }\n ]\n }\n ]\n }\n ]\n },\n \"epcisBody\": {\n \"eventList\": [\n {\n \"type\": \"TransformationEvent\",\n \"certificationInfo\": \"test\",\n \"eventTime\": \"2013-10-31T14:58:56.591Z\",\n \"eventTimeZoneOffset\": \"+02:00\",\n \"inputEPCList\": [\n \"urn:epc:id:sgtin:4012345.011122.25\",\n \"urn:epc:id:sgtin:4000001.065432.99886655\"\n ],\n \"inputQuantityList\": [\n {\n \"epcClass\": \"urn:epc:class:lgtin:4012345.011111.4444\",\n \"quantity\": 10,\n \"uom\": \"KGM\"\n },\n {\n \"epcClass\": \"urn:epc:class:lgtin:0614141.077777.987\",\n \"quantity\": 30\n },\n {\n \"epcClass\": \"urn:epc:idpat:sgtin:4012345.066666.*\",\n \"quantity\": 220\n }\n ],\n \"outputEPCList\": [\n \"urn:epc:id:sgtin:4012345.077889.25\",\n \"urn:epc:id:sgtin:4012345.077889.26\",\n \"urn:epc:id:sgtin:4012345.077889.27\",\n \"urn:epc:id:sgtin:4012345.077889.28\"\n ],\n \"outputQuantityList\": [\n {\n \"epcClass\": \"urn:epc:class:lgtin:4012345.011111.4444\",\n \"quantity\": 10,\n \"uom\": \"KGM\"\n },\n {\n \"epcClass\": \"urn:epc:class:lgtin:0614141.077777.987\",\n \"quantity\": 30\n },\n {\n \"epcClass\": \"urn:epc:idpat:sgtin:4012345.066666.*\",\n \"quantity\": 220\n }\n ],\n \"transformationID\": \"urn:epc:id:gdti:0614141.12345.400\",\n \"bizStep\": \"commissioning\",\n \"disposition\": \"in_progress\",\n \"readPoint\": {\n \"id\": \"urn:epc:id:sgln:4012345.00001.0\"\n },\n \"bizLocation\": {\n \"id\": \"urn:epc:id:sgln:0614141.00888.0\"\n },\n \"bizTransactionList\": [\n {\n \"type\": \"po\",\n \"bizTransaction\": \"urn:epc:id:gdti:0614141.00001.1618034\"\n },\n {\n \"type\": \"pedigree\",\n \"bizTransaction\": \"urn:epc:id:gsrn:0614141.0000010253\"\n }\n ],\n \"sourceList\": [\n {\n \"type\": \"location\",\n \"source\": \"urn:epc:id:sgln:4012345.00225.0\"\n },\n {\n \"type\": \"possessing_party\",\n \"source\": \"urn:epc:id:pgln:4012345.00225\"\n },\n {\n \"type\": \"owning_party\",\n \"source\": \"urn:epc:id:pgln:4012345.00225\"\n }\n ],\n \"destinationList\": [\n {\n \"type\": \"location\",\n \"destination\": \"urn:epc:id:sgln:0614141.00777.0\"\n },\n {\n \"type\": \"possessing_party\",\n \"destination\": \"urn:epc:id:pgln:0614141.00777\"\n },\n {\n \"type\": \"owning_party\",\n \"destination\": \"urn:epc:id:pgln:0614141.00777\"\n }\n ],\n \"sensorElementList\": [\n {\n \"type\": \"epcis:SensorElement\",\n \"sensorMetadata\": {\n \"time\": \"2019-04-02T13:05:00.000Z\",\n \"deviceID\": \"urn:epc:id:giai:4000001.111\",\n \"deviceMetadata\": \"https://id.gs1.org/giai/4000001111\",\n \"rawData\": \"https://example.org/giai/401234599999\",\n \"startTime\": \"2019-04-02T12:55:01.000Z\",\n \"endTime\": \"2019-04-02T13:55:00.000Z\",\n \"dataProcessingMethod\": \"https://example.com/gdti/4012345000054987\",\n \"bizRules\": \"https://example.com/gdti/4012345000054987\"\n },\n \"sensorReport\": [\n {\n \"type\": \"gs1:Temperature\",\n \"deviceID\": \"urn:epc:id:giai:4000001.111\",\n \"rawData\": \"https://example.org/giai/401234599999\",\n \"dataProcessingMethod\": \"https://example.com/gdti/4012345000054987\",\n \"time\": \"2019-07-19T13:00:00.000Z\",\n \"microorganism\": \"https://www.ncbi.nlm.nih.gov/taxonomy/1126011\",\n \"chemicalSubstance\": \"https://identifiers.org/inchikey:CZMRCDWAGMRECN-UGDNZRGBSA-N\",\n \"value\": 26,\n \"component\": \"example:x\",\n \"stringValue\": \"SomeString\",\n \"booleanValue\": true,\n \"hexBinaryValue\": \"f0f0f0\",\n \"uriValue\": \"https://id.gs1.org/giai/4000001111\",\n \"minValue\": 26,\n \"maxValue\": 26.2,\n \"meanValue\": 13.2,\n \"percRank\": 50,\n \"percValue\": 12.7,\n \"uom\": \"CEL\",\n \"sDev\": 0.1,\n \"deviceMetadata\": \"https://id.gs1.org/giai/4000001111\"\n }\n ]\n }\n ],\n \"persistentDisposition\": {\n \"set\": [\n \"completeness_verified\", \"test\", \"toto\"\n ],\n \"unset\": [\n \"completeness_inferred\"\n ]\n }\n }\n ]\n },\n \"@context\": [\n \"https://gs1.github.io/EPCIS/epcis-context.jsonld\",\n {\n \"ext3\": \"http://example.com/ext3/\"\n },\n {\n \"ext2\": \"http://example.com/ext2/\"\n },\n {\n \"ext1\": \"http://example.com/ext1/\"\n }\n ]\n}\n" + }, + "url": { + "raw": "{{BaseUrl}}/v2_0/Capture", + "host": [ + "{{BaseUrl}}" + ], + "path": [ + "v2_0", + "Capture" + ] + } + }, + "response": [] + }, + { + "name": "Capture single event", + "request": { + "auth": { + "type": "basic", + "basic": [ + { + "key": "password", + "value": "P@ssw0rd", + "type": "string" + }, + { + "key": "username", + "value": "admin", + "type": "string" + }, + { + "key": "saveHelperData", + "value": true, + "type": "boolean" + }, + { + "key": "showPassword", + "value": false, + "type": "boolean" + } + ] + }, + "method": "POST", + "header": [ + { + "key": "Content-Type", + "value": "application/json", + "type": "text" + }, + { + "key": "GS1-Extensions", + "value": "ext3=http://example.com/ext3/", + "type": "text" + } + ], + "body": { + "mode": "raw", + "raw": "{\r\n \"@context\": [\r\n \"https://ref.gs1.org/standards/epcis/2.0.0/epcis-context.jsonld\"\r\n ],\r\n \"eventID\": \"ni:///sha-256;df7bb3c352fef055578554f09f5e2aa41782150ced7bd0b8af24dd3ccb30ba69?ver=CBV2.0\",\r\n \"isA\": \"ObjectEvent\",\r\n \"action\": \"OBSERVE\",\r\n \"bizStep\": \"shipping\",\r\n \"disposition\": \"in_transit\",\r\n \"epcList\": [\r\n \"urn:epc:id:sgtin:0614141.107346.2017\",\r\n \"urn:epc:id:sgtin:0614141.107346.2018\"\r\n ],\r\n \"eventTime\": \"2005-04-03T20:33:31.116000-06:00\",\r\n \"eventTimeZoneOffset\": \"-06:00\",\r\n \"readPoint\": {\r\n \"id\": \"urn:epc:id:sgln:0614141.07346.1234\"\r\n },\r\n \"bizTransactionList\": [\r\n {\r\n \"type\": \"po\",\r\n \"bizTransaction\": \"http://transaction.acme.com/po/12345678\"\r\n }\r\n ],\r\n \"ext3:string\": \"stringInObjectInObject\"\r\n}" + }, + "url": { + "raw": "{{BaseUrl}}/v2_0/events", + "host": [ + "{{BaseUrl}}" + ], + "path": [ + "v2_0", + "events" + ] + } + }, + "response": [] + }, + { + "name": "Get Capture Request", + "protocolProfileBehavior": { + "disableBodyPruning": true, + "disabledSystemHeaders": { + "accept": true + } + }, + "request": { + "auth": { + "type": "basic", + "basic": [ + { + "key": "password", + "value": "P@ssw0rd", + "type": "string" + }, + { + "key": "username", + "value": "admin", + "type": "string" + }, + { + "key": "saveHelperData", + "value": true, + "type": "boolean" + }, + { + "key": "showPassword", + "value": false, + "type": "boolean" + } + ] + }, + "method": "GET", + "header": [ + { + "key": "Content-Type", + "value": "application/json", + "type": "text" + }, + { + "key": "accept", + "value": "application/json", + "type": "text" + }, + { + "key": "GS1-Extensions", + "value": "cbvmda=http://org1.example.com/epcis/", + "type": "text" + }, + { + "key": "GS1-Extensions", + "value": "example-epc-ext2=http://vendor.example.com/epcis/", + "type": "text" + } + ], + "body": { + "mode": "raw", + "raw": "{\n \"isA\": \"EPCISDocument\",\n \"schemaVersion\": \"2.0\",\n \"creationDate\": \"2013-06-04T14:59:02.099+02:00\",\n \"epcisBody\": {\n \"eventList\": [\n {\n \"isA\": \"TransformationEvent\",\n \"eventTime\": \"2013-10-31T14:58:56.591Z\",\n \"eventID\": \"12345\",\n \"eventTimeZoneOffset\": \"+02:00\",\n \"inputEPCList\": [\n \"urn:epc:id:sgtin:4012345.011122.25\",\n \"urn:epc:id:sgtin:4000001.065432.99886655\"\n ],\n \"inputQuantityList\": [\n {\n \"epcClass\": \"urn:epc:class:lgtin:4012345.011111.4444\",\n \"quantity\": 10,\n \"uom\": \"KGM\"\n },\n {\n \"epcClass\": \"urn:epc:class:lgtin:0614141.077777.987\",\n \"quantity\": 30\n },\n {\n \"epcClass\": \"urn:epc:idpat:sgtin:4012345.066666.*\",\n \"quantity\": 220\n }\n ],\n \"outputEPCList\": [\n \"urn:epc:id:sgtin:4012345.077889.25\",\n \"urn:epc:id:sgtin:4012345.077889.26\",\n \"urn:epc:id:sgtin:4012345.077889.27\",\n \"urn:epc:id:sgtin:4012345.077889.28\"\n ],\n \"outputQuantityList\": [\n {\n \"epcClass\": \"urn:epc:class:lgtin:4012345.011111.4444\",\n \"quantity\": 10,\n \"uom\": \"KGM\"\n },\n {\n \"epcClass\": \"urn:epc:class:lgtin:0614141.077777.987\",\n \"quantity\": 30\n },\n {\n \"epcClass\": \"urn:epc:idpat:sgtin:4012345.066666.*\",\n \"quantity\": 220\n }\n ],\n \"transformationID\": \"urn:epc:id:gdti:0614141.12345.400\",\n \"bizStep\": \"commissioning\",\n \"disposition\": \"in_progress\",\n \"readPoint\": {\n \"id\": \"urn:epc:id:sgln:4012345.00001.0\"\n },\n \"bizLocation\": {\n \"id\": \"urn:epc:id:sgln:0614141.00888.0\"\n },\n \"bizTransactionList\": [\n {\n \"type\": \"po\",\n \"bizTransaction\": \"urn:epc:id:gdti:0614141.00001.1618034\"\n },\n {\n \"type\": \"pedigree\",\n \"bizTransaction\": \"urn:epc:id:gsrn:0614141.0000010253\"\n }\n ],\n \"sourceList\": [\n {\n \"type\": \"location\",\n \"source\": \"urn:epc:id:sgln:4012345.00225.0\"\n },\n {\n \"type\": \"possessing_party\",\n \"source\": \"urn:epc:id:pgln:4012345.00225\"\n },\n {\n \"type\": \"owning_party\",\n \"source\": \"urn:epc:id:pgln:4012345.00225\"\n }\n ],\n \"destinationList\": [\n {\n \"type\": \"location\",\n \"destination\": \"urn:epc:id:sgln:0614141.00777.0\"\n },\n {\n \"type\": \"possessing_party\",\n \"destination\": \"urn:epc:id:pgln:0614141.00777\"\n },\n {\n \"type\": \"owning_party\",\n \"destination\": \"urn:epc:id:pgln:0614141.00777\"\n }\n ],\n \"ilmd\": {\n \"ext1:float\": \"20\",\n \"ext1:array\": [\n \"12\",\n \"22\",\n \"2013-06-08T14:58:56.591Z\",\n \"true\",\n \"stringInArray\",\n {\n \"ext1:object\": {\n \"ext1:object\": {\n \"ext2:array\": [\n \"14\",\n \"23.0\",\n \"stringInArrayInObjectInArray\"\n ],\n \"ext2:object\": {\n \"ext2:object\": {\n \"ext3:string\": \"stringInObjectInObjectInArray\"\n }\n },\n \"ext2:int\": \"13\",\n \"ext2:string\": \"stringInObjectInArray\"\n }\n }\n }\n ],\n \"ext1:object\": {\n \"ext2:array\": [\n \"11\",\n \"21\",\n \"stringInArrayInObject\"\n ],\n \"ext2:object\": {\n \"ext2:object\": {\n \"ext3:string\": \"stringInObjectInObject\"\n }\n },\n \"ext2:string\": \"stringInObject\"\n },\n \"cbvmda:countryOfExport\": \"KR\",\n \"cbvmda:grossWeight\": \"3.5\",\n \"ext1:int\": \"10\",\n \"cbvmda:netWeight\": \"3.5\",\n \"ext1:time\": \"2013-06-08T14:58:56.591Z\",\n \"ext1:boolean\": \"true\",\n \"ext1:default\": \"stringAsDefaultValue\",\n \"ext1:string\": \"string\",\n \"cbvmda:countryOfOrigin\": \"GB\",\n \"cbvmda:drainedWeight\": \"3.5\",\n \"cbvmda:lotNumber\": \"ABC123\"\n },\n \"sensorElementList\": [\n {\n \"isA\": \"epcis:SensorElement\",\n \"sensorMetadata\": {\n \"time\": \"2019-04-02T13:05:00.000Z\",\n \"deviceID\": \"urn:epc:id:giai:4000001.111\",\n \"deviceMetadata\": \"https://id.gs1.org/giai/4000001111\",\n \"rawData\": \"https://example.org/giai/401234599999\",\n \"startTime\": \"2019-04-02T12:55:01.000Z\",\n \"endTime\": \"2019-04-02T13:55:00.000Z\",\n \"dataProcessingMethod\": \"https://example.com/gdti/4012345000054987\",\n \"bizRules\": \"https://example.com/gdti/4012345000054987\"\n },\n \"sensorReport\": [\n {\n \"type\": \"gs1:Temperature\",\n \"deviceID\": \"urn:epc:id:giai:4000001.111\",\n \"rawData\": \"https://example.org/giai/401234599999\",\n \"dataProcessingMethod\": \"https://example.com/gdti/4012345000054987\",\n \"time\": \"2019-07-19T13:00:00.000Z\",\n \"microorganism\": \"https://www.ncbi.nlm.nih.gov/taxonomy/1126011\",\n \"chemicalSubstance\": \"https://identifiers.org/inchikey:CZMRCDWAGMRECN-UGDNZRGBSA-N\",\n \"value\": 26,\n \"component\": \"example:x\",\n \"stringValue\": \"SomeString\",\n \"booleanValue\": true,\n \"hexBinaryValue\": \"f0f0f0\",\n \"uriValue\": \"https://id.gs1.org/giai/4000001111\",\n \"minValue\": 26,\n \"maxValue\": 26.2,\n \"meanValue\": 13.2,\n \"percRank\": 50,\n \"percValue\": 12.7,\n \"uom\": \"CEL\",\n \"sDev\": 0.1,\n \"deviceMetadata\": \"https://id.gs1.org/giai/4000001111\"\n }\n ]\n }\n ],\n \"persistentDisposition\": {\n \"set\": [\n \"completeness_verified\", \"test\", \"toto\"\n ],\n \"unset\": [\n \"completeness_inferred\"\n ]\n },\n \"ext1:float\": \"20\",\n \"ext1:time\": \"2013-06-08T14:58:56.591Z\",\n \"ext1:array\": [\n \"12\",\n \"22\",\n \"2013-06-08T14:58:56.591Z\",\n \"true\",\n \"stringInArray\",\n {\n \"ext1:object\": {\n \"ext1:object\": {\n \"ext2:array\": [\n \"14\",\n \"23.0\",\n \"stringInArrayInObjectInArray\"\n ],\n \"ext2:object\": {\n \"ext2:object\": {\n \"ext3:string\": \"stringInObjectInObjectInArray\"\n }\n },\n \"ext2:int\": \"13\",\n \"ext2:string\": \"stringInObjectInArray\"\n }\n }\n }\n ],\n \"ext1:boolean\": \"true\",\n \"ext1:object\": {\n \"ext2:array\": [\n \"11\",\n \"21\",\n \"stringInArrayInObject\"\n ],\n \"ext2:object\": {\n \"ext2:object\": {\n \"ext3:string\": \"stringInObjectInObject\"\n }\n },\n \"ext2:string\": \"stringInObject\"\n },\n \"ext1:default\": \"stringAsDefaultValue\",\n \"ext1:int\": \"10\",\n \"ext1:string\": \"string\"\n }\n ]\n },\n \"@context\": [\n \"https://gs1.github.io/EPCIS/epcis-context.jsonld\",\n {\n \"ext3\": \"http://example.com/ext3/\"\n },\n {\n \"ext2\": \"http://example.com/ext2/\"\n },\n {\n \"ext1\": \"http://example.com/ext1/\"\n }\n ]\n}\n" + }, + "url": { + "raw": "{{BaseUrl}}/v2_0/capture/4", + "host": [ + "{{BaseUrl}}" + ], + "path": [ + "v2_0", + "capture", + "4" + ] + } + }, + "response": [] + }, + { + "name": "Capture request with Masterdata", + "protocolProfileBehavior": { + "disabledSystemHeaders": { + "accept": true + } + }, + "request": { + "auth": { + "type": "basic", + "basic": [ + { + "key": "password", + "value": "P@ssw0rd", + "type": "string" + }, + { + "key": "username", + "value": "admin", + "type": "string" + }, + { + "key": "saveHelperData", + "value": true, + "type": "boolean" + }, + { + "key": "showPassword", + "value": false, + "type": "boolean" + } + ] + }, + "method": "POST", + "header": [ + { + "key": "Content-Type", + "value": "application/json", + "type": "text" + }, + { + "key": "accept", + "value": "application/json", + "type": "text" + }, + { + "key": "GS1-Extensions", + "value": "cbvmda=http://org1.example.com/epcis/", + "type": "text" + }, + { + "key": "GS1-Extensions", + "value": "example-epc-ext2=http://vendor.example.com/epcis/", + "type": "text" + } + ], + "body": { + "mode": "raw", + "raw": "{\n \"type\": \"EPCISDocument\",\n \"schemaVersion\": \"2.0\",\n \"creationDate\": \"2013-06-04T14:59:02.099+02:00\",\n \"epcisHeader\":{\n \"epcisMasterData\":{\n \"vocabularyList\":[\n {\n \"type\":\"urn:epcglobal:epcis:vtype:ReadPoint\",\n \"vocabularyElementList\":[\n {\n \"id\":\"urn:epc:id:sgln:0037000.00729.8000\",\n \"attributes\": [\n {\n \"id\": \"urn:epcglobal:cbv:mda:site\",\n \"attribute\": \"test\"\n }\n ]\n }\n ]\n }\n ]\n }\n },\n \"epcisBody\": {\n \"eventList\": [\n {\n \"type\": \"TransformationEvent\",\n \"certificationInfo\": \"test\",\n \"eventTime\": \"2013-10-31T14:58:56.591Z\",\n \"eventTimeZoneOffset\": \"+02:00\",\n \"inputEPCList\": [\n \"urn:epc:id:sgtin:4012345.011122.25\",\n \"urn:epc:id:sgtin:4000001.065432.99886655\"\n ],\n \"inputQuantityList\": [\n {\n \"epcClass\": \"urn:epc:class:lgtin:4012345.011111.4444\",\n \"quantity\": 10,\n \"uom\": \"KGM\"\n },\n {\n \"epcClass\": \"urn:epc:class:lgtin:0614141.077777.987\",\n \"quantity\": 30\n },\n {\n \"epcClass\": \"urn:epc:idpat:sgtin:4012345.066666.*\",\n \"quantity\": 220\n }\n ],\n \"outputEPCList\": [\n \"urn:epc:id:sgtin:4012345.077889.25\",\n \"urn:epc:id:sgtin:4012345.077889.26\",\n \"urn:epc:id:sgtin:4012345.077889.27\",\n \"urn:epc:id:sgtin:4012345.077889.28\"\n ],\n \"outputQuantityList\": [\n {\n \"epcClass\": \"urn:epc:class:lgtin:4012345.011111.4444\",\n \"quantity\": 10,\n \"uom\": \"KGM\"\n },\n {\n \"epcClass\": \"urn:epc:class:lgtin:0614141.077777.987\",\n \"quantity\": 30\n },\n {\n \"epcClass\": \"urn:epc:idpat:sgtin:4012345.066666.*\",\n \"quantity\": 220\n }\n ],\n \"transformationID\": \"urn:epc:id:gdti:0614141.12345.400\",\n \"bizStep\": \"commissioning\",\n \"disposition\": \"in_progress\",\n \"readPoint\": {\n \"id\": \"urn:epc:id:sgln:4012345.00001.0\"\n },\n \"bizLocation\": {\n \"id\": \"urn:epc:id:sgln:0614141.00888.0\"\n },\n \"bizTransactionList\": [\n {\n \"type\": \"po\",\n \"bizTransaction\": \"urn:epc:id:gdti:0614141.00001.1618034\"\n },\n {\n \"type\": \"pedigree\",\n \"bizTransaction\": \"urn:epc:id:gsrn:0614141.0000010253\"\n }\n ],\n \"sourceList\": [\n {\n \"type\": \"location\",\n \"source\": \"urn:epc:id:sgln:4012345.00225.0\"\n },\n {\n \"type\": \"possessing_party\",\n \"source\": \"urn:epc:id:pgln:4012345.00225\"\n },\n {\n \"type\": \"owning_party\",\n \"source\": \"urn:epc:id:pgln:4012345.00225\"\n }\n ],\n \"destinationList\": [\n {\n \"type\": \"location\",\n \"destination\": \"urn:epc:id:sgln:0614141.00777.0\"\n },\n {\n \"type\": \"possessing_party\",\n \"destination\": \"urn:epc:id:pgln:0614141.00777\"\n },\n {\n \"type\": \"owning_party\",\n \"destination\": \"urn:epc:id:pgln:0614141.00777\"\n }\n ],\n \"sensorElementList\": [\n {\n \"type\": \"epcis:SensorElement\",\n \"sensorMetadata\": {\n \"time\": \"2019-04-02T13:05:00.000Z\",\n \"deviceID\": \"urn:epc:id:giai:4000001.111\",\n \"deviceMetadata\": \"https://id.gs1.org/giai/4000001111\",\n \"rawData\": \"https://example.org/giai/401234599999\",\n \"startTime\": \"2019-04-02T12:55:01.000Z\",\n \"endTime\": \"2019-04-02T13:55:00.000Z\",\n \"dataProcessingMethod\": \"https://example.com/gdti/4012345000054987\",\n \"bizRules\": \"https://example.com/gdti/4012345000054987\"\n },\n \"sensorReport\": [\n {\n \"type\": \"gs1:Temperature\",\n \"deviceID\": \"urn:epc:id:giai:4000001.111\",\n \"rawData\": \"https://example.org/giai/401234599999\",\n \"dataProcessingMethod\": \"https://example.com/gdti/4012345000054987\",\n \"time\": \"2019-07-19T13:00:00.000Z\",\n \"microorganism\": \"https://www.ncbi.nlm.nih.gov/taxonomy/1126011\",\n \"chemicalSubstance\": \"https://identifiers.org/inchikey:CZMRCDWAGMRECN-UGDNZRGBSA-N\",\n \"value\": 26,\n \"component\": \"example:x\",\n \"stringValue\": \"SomeString\",\n \"booleanValue\": true,\n \"hexBinaryValue\": \"f0f0f0\",\n \"uriValue\": \"https://id.gs1.org/giai/4000001111\",\n \"minValue\": 26,\n \"maxValue\": 26.2,\n \"meanValue\": 13.2,\n \"percRank\": 50,\n \"percValue\": 12.7,\n \"uom\": \"CEL\",\n \"sDev\": 0.1,\n \"deviceMetadata\": \"https://id.gs1.org/giai/4000001111\"\n }\n ]\n }\n ],\n \"persistentDisposition\": {\n \"set\": [\n \"completeness_verified\", \"test\", \"toto\"\n ],\n \"unset\": [\n \"completeness_inferred\"\n ]\n }\n }\n ]\n },\n \"@context\": [\n \"https://gs1.github.io/EPCIS/epcis-context.jsonld\",\n {\n \"ext3\": \"http://example.com/ext3/\"\n },\n {\n \"ext2\": \"http://example.com/ext2/\"\n },\n {\n \"ext1\": \"http://example.com/ext1/\"\n }\n ]\n}\n" + }, + "url": { + "raw": "{{BaseUrl}}/v2_0/Capture", + "host": [ + "{{BaseUrl}}" + ], + "path": [ + "v2_0", + "Capture" + ] + } + }, + "response": [] + } + ] + }, + { + "name": "Top-Level", + "item": [ + { + "name": "New Request", + "request": { + "method": "GET", + "header": [] + }, + "response": [] + } + ] + }, + { + "name": "Subscriptions", + "item": [ + { + "name": "Subscribe to webhook", + "request": { + "method": "POST", + "header": [], + "body": { + "mode": "raw", + "raw": "{\r\n \"dest\": \"https://client.example.com/queryCallback\",\r\n \"signatureToken\": \"13df38d8275b13f05704629e5f1cf3d45d6132d5\",\r\n \"reportIfEmpty\": true,\r\n \"schedule\": {\r\n \"hour\":\"1\",\r\n \"minute\": \"5\"\r\n }\r\n}", + "options": { + "raw": { + "language": "json" + } + } + }, + "url": { + "raw": "{{BaseUrl}}/v2_0/queries/UniqueQueryName/subscriptions", + "host": [ + "{{BaseUrl}}" + ], + "path": [ + "v2_0", + "queries", + "UniqueQueryName", + "subscriptions" + ] + } + }, + "response": [] + } + ] + } + ] + }, + { + "name": "Get Events", + "request": { + "method": "GET", + "header": [ + { + "key": "Content-Type", + "value": "application/json", + "type": "text" + } + ], + "url": { + "raw": "{{BaseUrl}}/v2_0/events", + "host": [ + "{{BaseUrl}}" + ], + "path": [ + "v2_0", + "events" + ] + } + }, + "response": [] + }, + { + "name": "List Object Events", + "request": { + "method": "GET", + "header": [ + { + "key": "Content-Type", + "value": "application/json", + "type": "text" + } + ], + "url": { + "raw": "{{BaseUrl}}/v2_0/eventTypes/ObjectEvent/events", + "host": [ + "{{BaseUrl}}" + ], + "path": [ + "v2_0", + "eventTypes", + "ObjectEvent", + "events" + ] + } + }, + "response": [] + }, + { + "name": "Query All Events", + "request": { + "method": "GET", + "header": [ + { + "key": "Content-Type", + "value": "application/json", + "type": "text" + } + ], + "url": { + "raw": "{{BaseUrl}}/v2_0/events", + "host": [ + "{{BaseUrl}}" + ], + "path": [ + "v2_0", + "events" + ] + } + }, + "response": [] + } + ], + "auth": { + "type": "basic", + "basic": [ + { + "key": "password", + "value": "P@ssw0rd", + "type": "string" + }, + { + "key": "username", + "value": "admin", + "type": "string" + } + ] + }, + "event": [ + { + "listen": "prerequest", + "script": { + "type": "text/javascript", + "exec": [ + "" + ] + } + }, + { + "listen": "test", + "script": { + "type": "text/javascript", + "exec": [ + "" + ] + } + } + ] +} \ No newline at end of file diff --git a/src/FasTnT.Domain/Constants.cs b/src/FasTnT.Domain/Constants.cs index 5a24e6a7..f862d22b 100644 --- a/src/FasTnT.Domain/Constants.cs +++ b/src/FasTnT.Domain/Constants.cs @@ -6,5 +6,5 @@ public sealed class Constants public int MaxEventsCapturePerCall { get; init; } = 500; public int MaxEventsReturnedInQuery { get; init; } = 20_000; - public string VendorVersion { get; init; } = "2.3.0"; + public string VendorVersion { get; init; } = "2.3.1"; }