Files
onix/artifacts/ONIX - PS Client.postman_collection.json
prasad-takale-eminds 9c7e23767d Added postman collection
2024-03-20 09:19:21 +05:30

237 lines
9.5 KiB
JSON

{
"info": {
"_postman_id": "cacfa6d5-ccdd-4225-9fdd-3d4a507e9884",
"name": "ONIX - PS Client",
"schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json",
"_exporter_id": "13127879"
},
"item": [
{
"name": "Industry-4.0",
"item": [
{
"name": "Search",
"request": {
"method": "POST",
"header": [],
"body": {
"mode": "raw",
"raw": "{\n \"context\": {\n \"domain\": \"{{supply_chain}}\",\n \"location\": {\n \"city\": {\n \"name\": \"Bangalore\",\n \"code\": \"std:080\"\n },\n \"country\": {\n \"name\": \"India\",\n \"code\": \"IND\"\n }\n },\n \"action\": \"search\",\n \"version\": \"1.1.0\",\n \"timestamp\": \"2023-10-09T04:46:28.012Z\",\n \"bap_id\": \"{{bap_id}}\",\n \"bap_uri\": \"{{bap_uri}}\",\n \"bpp_id\": \"{{bpp_id}}\",\n \"bpp_uri\": \"{{bpp_uri}}\",\n \"transaction_id\": \"a9aaecca-10b7-4d19-b640-b047a7c62195\",\n \"message_id\": \"{{$randomUUID}}\"\n },\n \"message\": {\n \"intent\": {\n \"category\": {\n \"descriptor\": {\n \"name\": \"assembly\"\n }\n }\n }\n }\n}",
"options": {
"raw": {
"language": "json"
}
}
},
"url": {
"raw": "{{base_url_assembly}}/search",
"host": [
"{{base_url_assembly}}"
],
"path": [
"search"
]
}
},
"response": []
},
{
"name": "Select",
"request": {
"method": "POST",
"header": [],
"body": {
"mode": "raw",
"raw": "{\n \"context\": {\n \"domain\": \"{{supply_chain}}\",\n \"location\": {\n \"country\": {\n \"code\": \"IND\"\n }\n },\n \"action\": \"select\",\n \"timestamp\": \"2023-05-25T05:23:03.443Z\",\n \"version\": \"1.1.0\",\n \"bap_id\": \"{{bap_id}}\",\n \"bap_uri\": \"{{bap_uri}}\",\n \"bpp_id\": \"{{bpp_id}}\",\n \"bpp_uri\": \"{{bpp_uri}}\",\n \"transaction_id\": \"a9aaecca-10b7-4d19-b640-b047a7c62195\",\n \"message_id\": \"{{$randomUUID}}\",\n \"ttl\": \"PT10M\"\n },\n \"message\": {\n \"order\": {\n \"provider\":{\n \"id\":\"6\"\n },\n \"items\": [\n {\n \"id\": \"11\"\n }\n ]\n }\n }\n}",
"options": {
"raw": {
"language": "json"
}
}
},
"url": {
"raw": "{{base_url_assembly}}/select",
"host": [
"{{base_url_assembly}}"
],
"path": [
"select"
]
}
},
"response": []
},
{
"name": "Init",
"request": {
"method": "POST",
"header": [],
"body": {
"mode": "raw",
"raw": "{\n \"context\": {\n \"domain\": \"{{supply_chain}}\",\n \"location\": {\n \"country\": {\n \"code\": \"IND\"\n }\n },\n \"action\": \"init\",\n \"timestamp\": \"2023-05-25T05:23:03.443Z\",\n \"version\": \"1.1.0\",\n \"bap_id\": \"{{bap_id}}\",\n \"bap_uri\": \"{{bap_uri}}\",\n \"bpp_id\": \"{{bpp_id}}\",\n \"bpp_uri\": \"{{bpp_uri}}\",\n \"transaction_id\": \"a9aaecca-10b7-4d19-b640-b047a7c62195\",\n \"message_id\": \"{{$randomUUID}}\",\n \"ttl\": \"PT10M\"\n },\n \"message\": {\n \"order\": {\n \"provider\": {\n \"id\": \"6\"\n },\n \"items\": [\n {\n \"id\": \"11\"\n }\n ],\n \"billing\": {\n \"name\": \"Alice Smith\",\n \"address\": \"Apt 303, Maple Towers, Richmond Road, 560001\",\n \"state\": {\n \"name\": \"Jurong East\"\n },\n \"city\": {\n \"name\": \"Jurong East\"\n },\n \"email\": \"alice.smith@example.com\",\n \"phone\": \"9886098860\"\n }\n }\n }\n}",
"options": {
"raw": {
"language": "json"
}
}
},
"url": {
"raw": "{{base_url_assembly}}/init",
"host": [
"{{base_url_assembly}}"
],
"path": [
"init"
]
}
},
"response": []
},
{
"name": "Confirm",
"request": {
"method": "POST",
"header": [],
"body": {
"mode": "raw",
"raw": "{\n \"context\": {\n \"domain\": \"{{supply_chain}}\",\n \"location\": {\n \"country\": {\n \"code\": \"IND\"\n }\n },\n \"action\": \"confirm\",\n \"timestamp\": \"2023-05-25T05:23:03.443Z\",\n \"version\": \"1.1.0\",\n \"bap_id\": \"{{bap_id}}\",\n \"bap_uri\": \"{{bap_uri}}\",\n \"bpp_id\": \"{{bpp_id}}\",\n \"bpp_uri\": \"{{bpp_uri}}\",\n \"transaction_id\": \"a9aaecca-10b7-4d19-b640-b047a7c62195\",\n \"message_id\": \"{{$randomUUID}}\",\n \"ttl\": \"PT10M\"\n },\n \"message\": {\n \"order\": {\n \"items\": [\n {\n \"id\": \"11\"\n }\n ],\n \"fulfillments\": [\n {\n \"id\": \"10\",\n \"customer\": {\n \"contact\": {\n \"email\": \"fox.judie61234@abc.org\",\n \"phone\": \"+91-9999999999\"\n },\n \"person\": {\n \"name\": \"Judie Fox6\"\n }\n }\n }\n ],\n \"billing\": {\n \"name\": \"Industry buyer\",\n \"address\": \"B005 aspire heights, Jurong East, SGP, 680230\",\n \"state\": {\n \"name\": \"Jurong East\"\n },\n \"city\": {\n \"name\": \"Jurong East\"\n },\n \"email\": \"nobody@nomail.com\",\n \"phone\": \"9886098860\"\n }\n }\n }\n}",
"options": {
"raw": {
"language": "json"
}
}
},
"url": {
"raw": "{{base_url_assembly}}/confirm",
"host": [
"{{base_url_assembly}}"
],
"path": [
"confirm"
]
}
},
"response": []
},
{
"name": "Status",
"request": {
"method": "POST",
"header": [],
"body": {
"mode": "raw",
"raw": "{\n \"context\": {\n \"domain\": \"{{supply_chain}}\",\n \"location\": {\n \"country\": {\n \"code\": \"DE\"\n }\n },\n \"action\": \"status\",\n \"version\": \"1.1.0\",\n \"bap_id\": \"{{bap_id}}\",\n \"bap_uri\": \"{{bap_uri}}\",\n \"bpp_id\": \"{{bpp_id}}\",\n \"bpp_uri\": \"{{bpp_uri}}\",\n \"transaction_id\": \"a9aaecca-10b7-4d19-b640-b047a7c62195\",\n \"message_id\": \"{{$randomUUID}}\",\n \"timestamp\": \"2023-05-25T05:23:03.443Z\",\n \"ttl\": \"P30M\"\n },\n \"message\": {\n \"order_id\": \"9\"\n }\n}",
"options": {
"raw": {
"language": "json"
}
}
},
"url": {
"raw": "{{base_url_assembly}}/status",
"host": [
"{{base_url_assembly}}"
],
"path": [
"status"
]
}
},
"response": []
}
]
}
],
"event": [
{
"listen": "prerequest",
"script": {
"type": "text/javascript",
"exec": [
""
]
}
},
{
"listen": "test",
"script": {
"type": "text/javascript",
"exec": [
""
]
}
}
],
"variable": [
{
"key": "base_url_prod",
"value": "https://strapi-bpp.becknprotocol.io/beckn-bpp-adapter/health-check",
"type": "string"
},
{
"key": "base_url_dev",
"value": "https://strapi-bpp-dev.becknprotocol.io/beckn-bpp-adapter",
"type": "string"
},
{
"key": "base_url_local",
"value": "http://localhost:1337/beckn-bpp-adapter",
"type": "string"
},
{
"key": "dhp_consultation",
"value": "dhp:consultation:0.1.0",
"type": "string"
},
{
"key": "supply_chain",
"value": "supply-chain-services:assembly",
"type": "string"
},
{
"key": "odr",
"value": "online-dispute-resolution:0.1.0",
"type": "string"
},
{
"key": "bpp_id",
"value": "onix-bpp.becknprotocol.io",
"type": "string"
},
{
"key": "bpp_uri",
"value": "https://onix-bpp.becknprotocol.io",
"type": "string"
},
{
"key": "bap_id",
"value": "onix-bap.becknprotocol.io",
"type": "string"
},
{
"key": "bap_uri",
"value": "https://onix-bap.becknprotocol.io",
"type": "string"
},
{
"key": "core_version",
"value": "1.1.0",
"type": "string"
},
{
"key": "uei",
"value": "uei:charging",
"type": "string"
},
{
"key": "base_url_ev",
"value": "http://ec2-13-126-143-70.ap-south-1.compute.amazonaws.com:5001",
"type": "string"
},
{
"key": "base_url_assembly",
"value": "https://onix-bap-client.becknprotocol.io",
"type": "string"
}
]
}