| { |
| "info": { |
| "_postman_id": "7b915939-0386-4f61-a518-235dcf636193", |
| "name": "BaSyx", |
| "schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json" |
| }, |
| "item": [ |
| { |
| "name": "Asset Administration Shell", |
| "item": [ |
| { |
| "name": "Submodel", |
| "item": [ |
| { |
| "name": "SubmodelElements", |
| "item": [ |
| { |
| "name": "General", |
| "item": [ |
| { |
| "name": "Create or Update SubmodelElement", |
| "event": [ |
| { |
| "listen": "test", |
| "script": { |
| "exec": [ |
| "if(pm.response.json().idShort) {\r", |
| " pm.environment.set(\"submodelElement_idShort\", pm.response.json().idShort);\r", |
| "}" |
| ], |
| "type": "text/javascript" |
| } |
| } |
| ], |
| "request": { |
| "method": "PUT", |
| "header": [ |
| { |
| "key": "Content-Type", |
| "name": "Content-Type", |
| "type": "text", |
| "value": "application/json" |
| } |
| ], |
| "body": { |
| "mode": "raw", |
| "raw": "{\n \"idShort\": \"{{submodelElement_idShort}}\",\n \"modelType\": {\n \"name\": \"Property\"\n },\n \"valueType\": \"string\",\n \"value\": \"MyTestValue\"\n}", |
| "options": { |
| "raw": { |
| "language": "json" |
| } |
| } |
| }, |
| "url": { |
| "raw": "{{component_endpoint}}/aas/submodels/{{submodel_idShort}}/submodel/submodelElements/{{submodelElement_idShort}}", |
| "host": [ |
| "{{component_endpoint}}" |
| ], |
| "path": [ |
| "aas", |
| "submodels", |
| "{{submodel_idShort}}", |
| "submodel", |
| "submodelElements", |
| "{{submodelElement_idShort}}" |
| ] |
| } |
| }, |
| "response": [] |
| }, |
| { |
| "name": "Retrieve SubmodelElement by IdShort", |
| "request": { |
| "method": "GET", |
| "header": [], |
| "url": { |
| "raw": "{{component_endpoint}}/aas/submodels/{{submodel_idShort}}/submodel/submodelElements/{{submodelElement_idShort}}", |
| "host": [ |
| "{{component_endpoint}}" |
| ], |
| "path": [ |
| "aas", |
| "submodels", |
| "{{submodel_idShort}}", |
| "submodel", |
| "submodelElements", |
| "{{submodelElement_idShort}}" |
| ] |
| } |
| }, |
| "response": [] |
| }, |
| { |
| "name": "Retrieve all SubmodelElements", |
| "request": { |
| "method": "GET", |
| "header": [], |
| "url": { |
| "raw": "{{component_endpoint}}/aas/submodels/{{submodel_idShort}}/submodel/submodelElements", |
| "host": [ |
| "{{component_endpoint}}" |
| ], |
| "path": [ |
| "aas", |
| "submodels", |
| "{{submodel_idShort}}", |
| "submodel", |
| "submodelElements" |
| ] |
| } |
| }, |
| "response": [] |
| }, |
| { |
| "name": "Update SubmodelElement Value by IdShort", |
| "request": { |
| "method": "PUT", |
| "header": [ |
| { |
| "key": "Content-Type", |
| "name": "Content-Type", |
| "value": "application/json", |
| "type": "text" |
| } |
| ], |
| "body": { |
| "mode": "raw", |
| "raw": "\"TestStringValue\"", |
| "options": { |
| "raw": { |
| "language": "json" |
| } |
| } |
| }, |
| "url": { |
| "raw": "{{component_endpoint}}/aas/submodels/{{submodel_idShort}}/submodel/submodelElements/{{submodelElement_idShort}}/value", |
| "host": [ |
| "{{component_endpoint}}" |
| ], |
| "path": [ |
| "aas", |
| "submodels", |
| "{{submodel_idShort}}", |
| "submodel", |
| "submodelElements", |
| "{{submodelElement_idShort}}", |
| "value" |
| ] |
| } |
| }, |
| "response": [] |
| }, |
| { |
| "name": "Retrieve SubmodelElement Value by IdShort", |
| "protocolProfileBehavior": { |
| "disableBodyPruning": true |
| }, |
| "request": { |
| "method": "GET", |
| "header": [ |
| { |
| "key": "Content-Type", |
| "value": "application/json" |
| } |
| ], |
| "body": { |
| "mode": "raw", |
| "raw": "" |
| }, |
| "url": { |
| "raw": "{{component_endpoint}}/aas/submodels/{{submodel_idShort}}/submodel/submodelElements/{{submodelElement_idShort}}/value", |
| "host": [ |
| "{{component_endpoint}}" |
| ], |
| "path": [ |
| "aas", |
| "submodels", |
| "{{submodel_idShort}}", |
| "submodel", |
| "submodelElements", |
| "{{submodelElement_idShort}}", |
| "value" |
| ] |
| } |
| }, |
| "response": [] |
| }, |
| { |
| "name": "Delete SubmodelElement by IdShort", |
| "request": { |
| "method": "DELETE", |
| "header": [], |
| "url": { |
| "raw": "{{component_endpoint}}/aas/submodels/{{submodel_idShort}}/submodel/submodelElements/{{submodelElement_idShort}}", |
| "host": [ |
| "{{component_endpoint}}" |
| ], |
| "path": [ |
| "aas", |
| "submodels", |
| "{{submodel_idShort}}", |
| "submodel", |
| "submodelElements", |
| "{{submodelElement_idShort}}" |
| ] |
| } |
| }, |
| "response": [] |
| } |
| ] |
| }, |
| { |
| "name": "DataElements", |
| "item": [ |
| { |
| "name": "Create or Update Range", |
| "event": [ |
| { |
| "listen": "test", |
| "script": { |
| "exec": [ |
| "if(pm.response.json().idShort) {\r", |
| " pm.environment.set(\"submodelElement_idShort\", pm.response.json().idShort);\r", |
| "}" |
| ], |
| "type": "text/javascript" |
| } |
| } |
| ], |
| "request": { |
| "method": "PUT", |
| "header": [ |
| { |
| "key": "Content-Type", |
| "name": "Content-Type", |
| "type": "text", |
| "value": "application/json" |
| } |
| ], |
| "body": { |
| "mode": "raw", |
| "raw": "{\n \"idShort\": \"{{submodelElement_idShort}}\",\n \"modelType\": {\n \"name\": \"Range\"\n },\n \"valueType\": \"int\",\n \"min\": \"5\",\n \"max\": \"6\"\n}", |
| "options": { |
| "raw": { |
| "language": "json" |
| } |
| } |
| }, |
| "url": { |
| "raw": "{{component_endpoint}}/aas/submodels/{{submodel_idShort}}/submodel/submodelElements/{{submodelElement_idShort}}", |
| "host": [ |
| "{{component_endpoint}}" |
| ], |
| "path": [ |
| "aas", |
| "submodels", |
| "{{submodel_idShort}}", |
| "submodel", |
| "submodelElements", |
| "{{submodelElement_idShort}}" |
| ] |
| } |
| }, |
| "response": [] |
| }, |
| { |
| "name": "Create or Update MultiLanguageProperty", |
| "event": [ |
| { |
| "listen": "test", |
| "script": { |
| "exec": [ |
| "if(pm.response.json().idShort) {\r", |
| " pm.environment.set(\"submodelElement_idShort\", pm.response.json().idShort);\r", |
| "}" |
| ], |
| "type": "text/javascript" |
| } |
| } |
| ], |
| "request": { |
| "method": "PUT", |
| "header": [ |
| { |
| "key": "Content-Type", |
| "name": "Content-Type", |
| "type": "text", |
| "value": "application/json" |
| } |
| ], |
| "body": { |
| "mode": "raw", |
| "raw": "{\n \"idShort\": \"{{submodelElement_idShort}}\",\n \"modelType\": {\n \"name\": \"MultiLanguageProperty\"\n },\n \"value\" : [\n {\n \"language\" : \"de\",\n \"text\" : \"Mein Multi Language Property\"\n },\n {\n \"language\" : \"en\",\n \"text\" : \"My Multi Language Property\"\n }\n ]\n}", |
| "options": { |
| "raw": { |
| "language": "json" |
| } |
| } |
| }, |
| "url": { |
| "raw": "{{component_endpoint}}/aas/submodels/{{submodel_idShort}}/submodel/submodelElements/{{submodelElement_idShort}}", |
| "host": [ |
| "{{component_endpoint}}" |
| ], |
| "path": [ |
| "aas", |
| "submodels", |
| "{{submodel_idShort}}", |
| "submodel", |
| "submodelElements", |
| "{{submodelElement_idShort}}" |
| ] |
| } |
| }, |
| "response": [] |
| }, |
| { |
| "name": "Create or Update Blob", |
| "event": [ |
| { |
| "listen": "test", |
| "script": { |
| "exec": [ |
| "if(pm.response.json().idShort) {\r", |
| " pm.environment.set(\"submodelElement_idShort\", pm.response.json().idShort);\r", |
| "}" |
| ], |
| "type": "text/javascript" |
| } |
| } |
| ], |
| "request": { |
| "method": "PUT", |
| "header": [ |
| { |
| "key": "Content-Type", |
| "name": "Content-Type", |
| "type": "text", |
| "value": "application/json" |
| } |
| ], |
| "body": { |
| "mode": "raw", |
| "raw": "{\n \"idShort\": \"{{submodelElement_idShort}}\",\n \"modelType\": {\n \"name\": \"Blob\"\n },\n \"mimeType\": \"application/pdf\",\n \"value\" : \"VGhpcyBpcyBteSBibG9i\"\n}", |
| "options": { |
| "raw": { |
| "language": "json" |
| } |
| } |
| }, |
| "url": { |
| "raw": "{{component_endpoint}}/aas/submodels/{{submodel_idShort}}/submodel/submodelElements/{{submodelElement_idShort}}", |
| "host": [ |
| "{{component_endpoint}}" |
| ], |
| "path": [ |
| "aas", |
| "submodels", |
| "{{submodel_idShort}}", |
| "submodel", |
| "submodelElements", |
| "{{submodelElement_idShort}}" |
| ] |
| } |
| }, |
| "response": [] |
| }, |
| { |
| "name": "Create or Update Reference", |
| "event": [ |
| { |
| "listen": "test", |
| "script": { |
| "exec": [ |
| "if(pm.response.json().idShort) {\r", |
| " pm.environment.set(\"submodelElement_idShort\", pm.response.json().idShort);\r", |
| "}" |
| ], |
| "type": "text/javascript" |
| } |
| } |
| ], |
| "request": { |
| "method": "PUT", |
| "header": [ |
| { |
| "key": "Content-Type", |
| "name": "Content-Type", |
| "type": "text", |
| "value": "application/json" |
| } |
| ], |
| "body": { |
| "mode": "raw", |
| "raw": "{\n \"idShort\": \"{{submodelElement_idShort}}\",\n \"modelType\": {\n \"name\": \"ReferenceElement\"\n },\n \"value\" : {\n \"keys\" : [{\n \"type\" : \"Property\",\n \"idType\" : \"IRDI\",\n \"value\" : \"0173-1#02-AAP906#001\",\n \"local\": true\n }]\n }\n}", |
| "options": { |
| "raw": { |
| "language": "json" |
| } |
| } |
| }, |
| "url": { |
| "raw": "{{component_endpoint}}/aas/submodels/{{submodel_idShort}}/submodel/submodelElements/{{submodelElement_idShort}}", |
| "host": [ |
| "{{component_endpoint}}" |
| ], |
| "path": [ |
| "aas", |
| "submodels", |
| "{{submodel_idShort}}", |
| "submodel", |
| "submodelElements", |
| "{{submodelElement_idShort}}" |
| ] |
| } |
| }, |
| "response": [] |
| }, |
| { |
| "name": "Create or Update Relationship", |
| "event": [ |
| { |
| "listen": "test", |
| "script": { |
| "exec": [ |
| "if(pm.response.json().idShort) {\r", |
| " pm.environment.set(\"submodelElement_idShort\", pm.response.json().idShort);\r", |
| "}" |
| ], |
| "type": "text/javascript" |
| } |
| } |
| ], |
| "request": { |
| "method": "PUT", |
| "header": [ |
| { |
| "key": "Content-Type", |
| "name": "Content-Type", |
| "type": "text", |
| "value": "application/json" |
| } |
| ], |
| "body": { |
| "mode": "raw", |
| "raw": "{\n \"idShort\": \"{{submodelElement_idShort}}\",\n \"modelType\": {\n \"name\": \"RelationshipElement\"\n },\n \"first\" : {\n \"keys\" : [{\n \"type\" : \"Property\",\n \"idType\" : \"IRDI\",\n \"value\" : \"0173-1#02-AAP906#001\",\n \"local\": true\n }]\n },\n \"second\" : {\n \"keys\" : [{\n \"type\" : \"Property\",\n \"idType\" : \"IRDI\",\n \"value\" : \"0173-1#02-AAP906#001\",\n \"local\": true\n }]\n }\n}", |
| "options": { |
| "raw": { |
| "language": "json" |
| } |
| } |
| }, |
| "url": { |
| "raw": "{{component_endpoint}}/aas/submodels/{{submodel_idShort}}/submodel/submodelElements/{{submodelElement_idShort}}", |
| "host": [ |
| "{{component_endpoint}}" |
| ], |
| "path": [ |
| "aas", |
| "submodels", |
| "{{submodel_idShort}}", |
| "submodel", |
| "submodelElements", |
| "{{submodelElement_idShort}}" |
| ] |
| } |
| }, |
| "response": [] |
| } |
| ] |
| }, |
| { |
| "name": "File", |
| "item": [ |
| { |
| "name": "Create or Update FileElement", |
| "event": [ |
| { |
| "listen": "test", |
| "script": { |
| "exec": [ |
| "if(pm.response.json().idShort) {\r", |
| " pm.environment.set(\"submodelElement_idShort\", pm.response.json().idShort);\r", |
| "}" |
| ], |
| "type": "text/javascript" |
| } |
| } |
| ], |
| "request": { |
| "method": "PUT", |
| "header": [ |
| { |
| "key": "Content-Type", |
| "name": "Content-Type", |
| "type": "text", |
| "value": "application/json" |
| } |
| ], |
| "body": { |
| "mode": "raw", |
| "raw": "{\n \"idShort\": \"{{submodelElement_idShort}}\",\n \"modelType\": {\n \"name\": \"File\"\n },\n \"mimeType\": \"image/png\",\n \"value\": \"/aasx/pictures/myTestImage.png\"\n}", |
| "options": { |
| "raw": { |
| "language": "json" |
| } |
| } |
| }, |
| "url": { |
| "raw": "{{component_endpoint}}/aas/submodels/{{submodel_idShort}}/submodel/submodelElements/{{submodelElement_idShort}}", |
| "host": [ |
| "{{component_endpoint}}" |
| ], |
| "path": [ |
| "aas", |
| "submodels", |
| "{{submodel_idShort}}", |
| "submodel", |
| "submodelElements", |
| "{{submodelElement_idShort}}" |
| ] |
| } |
| }, |
| "response": [] |
| }, |
| { |
| "name": "Retrieve FileElement by IdShort", |
| "request": { |
| "method": "GET", |
| "header": [], |
| "url": { |
| "raw": "{{component_endpoint}}/aas/submodels/{{submodel_idShort}}/submodel/submodelElements/{{submodelElement_idShort}}", |
| "host": [ |
| "{{component_endpoint}}" |
| ], |
| "path": [ |
| "aas", |
| "submodels", |
| "{{submodel_idShort}}", |
| "submodel", |
| "submodelElements", |
| "{{submodelElement_idShort}}" |
| ] |
| } |
| }, |
| "response": [] |
| }, |
| { |
| "name": "Upload FileContent to FileElement by IdShort", |
| "request": { |
| "method": "POST", |
| "header": [], |
| "body": { |
| "mode": "formdata", |
| "formdata": [ |
| { |
| "key": "file", |
| "description": "The actual file to upload", |
| "type": "file", |
| "src": [] |
| } |
| ] |
| }, |
| "url": { |
| "raw": "{{component_endpoint}}/aas/submodels/{{submodel_idShort}}/submodel/submodelElements/{{submodelElement_idShort}}/upload", |
| "host": [ |
| "{{component_endpoint}}" |
| ], |
| "path": [ |
| "aas", |
| "submodels", |
| "{{submodel_idShort}}", |
| "submodel", |
| "submodelElements", |
| "{{submodelElement_idShort}}", |
| "upload" |
| ] |
| } |
| }, |
| "response": [] |
| } |
| ] |
| }, |
| { |
| "name": "Operations", |
| "item": [ |
| { |
| "name": "Invoke Operation by Id", |
| "request": { |
| "method": "POST", |
| "header": [ |
| { |
| "key": "Content-Type", |
| "name": "Content-Type", |
| "value": "application/json", |
| "type": "text" |
| } |
| ], |
| "body": { |
| "mode": "raw", |
| "raw": "{\n\t\"requestId\" : \"12345678\",\n \"inoutputArguments\": [{\n \"value\" : {\n\t\t\t\"idShort\" : \"HierRein\",\n\t\t\t\"modelType\" : {\n\t\t\t\t\"name\" : \"Property\"\n\t\t\t},\n \"valueType\": {\n \"dataObjectType\": {\n \"name\": \"string\"\n }\n }\n\t\t}\n }],\n\t\"inputArguments\" : [{\n\t\t\"value\" : {\n\t\t\t\"idShort\" : \"Expression\",\n\t\t\t\"modelType\" : {\n\t\t\t\t\"name\" : \"Property\"\n\t\t\t},\n\t \t\"value\" : \"5*(3+3)\",\n \"valueType\": {\n \"dataObjectType\": {\n \"name\": \"string\"\n }\n }\n\t\t}\n\t},\n {\n\t\t\"value\" : {\n\t\t\t\"idShort\" : \"ComputingTime\",\n\t\t\t\"modelType\" : {\n\t\t\t\t\"name\" : \"Property\"\n\t\t\t},\n\t \t\"value\" : 3000,\n \"valueType\": {\n \"dataObjectType\": {\n \"name\": \"int\"\n }\n }\n\t\t}\n\t}],\n\t\"timeout\" : 5000\n}", |
| "options": { |
| "raw": { |
| "language": "json" |
| } |
| } |
| }, |
| "url": { |
| "raw": "{{component_endpoint}}/aas/submodels/{{submodel_idShort}}/submodel/submodelElements/{{operation_idShort}}/invoke?async=false", |
| "host": [ |
| "{{component_endpoint}}" |
| ], |
| "path": [ |
| "aas", |
| "submodels", |
| "{{submodel_idShort}}", |
| "submodel", |
| "submodelElements", |
| "{{operation_idShort}}", |
| "invoke" |
| ], |
| "query": [ |
| { |
| "key": "async", |
| "value": "false" |
| } |
| ] |
| } |
| }, |
| "response": [] |
| }, |
| { |
| "name": "Invoke Operation by Id (async)", |
| "event": [ |
| { |
| "listen": "test", |
| "script": { |
| "exec": [ |
| "pm.environment.set(\"requestId\", pm.response.json().requestId);" |
| ], |
| "type": "text/javascript" |
| } |
| } |
| ], |
| "request": { |
| "method": "POST", |
| "header": [ |
| { |
| "key": "Content-Type", |
| "name": "Content-Type", |
| "value": "application/json", |
| "type": "text" |
| } |
| ], |
| "body": { |
| "mode": "raw", |
| "raw": "{\n\t\"requestId\" : \"{{$guid}}\",\n \"inoutputArguments\": [{\n \"value\" : {\n\t\t\t\"idShort\" : \"HierRein\",\n\t\t\t\"modelType\" : {\n\t\t\t\t\"name\" : \"Property\"\n\t\t\t},\n \"valueType\": {\n \"dataObjectType\": {\n \"name\": \"string\"\n }\n }\n\t\t}\n }],\n\t\"inputArguments\" : [{\n\t\t\"value\" : {\n\t\t\t\"idShort\" : \"Expression\",\n\t\t\t\"modelType\" : {\n\t\t\t\t\"name\" : \"Property\"\n\t\t\t},\n\t \t\"value\" : \"5*(3+2)\",\n \"valueType\": {\n \"dataObjectType\": {\n \"name\": \"string\"\n }\n }\n\t\t}\n\t},\n {\n\t\t\"value\" : {\n\t\t\t\"idShort\" : \"ComputingTime\",\n\t\t\t\"modelType\" : {\n\t\t\t\t\"name\" : \"Property\"\n\t\t\t},\n\t \t\"value\" : 5000,\n \"valueType\": {\n \"dataObjectType\": {\n \"name\": \"int\"\n }\n }\n\t\t}\n\t}],\n\t\"timeout\" : 6000\n}", |
| "options": { |
| "raw": { |
| "language": "json" |
| } |
| } |
| }, |
| "url": { |
| "raw": "{{component_endpoint}}/aas/submodels/{{submodel_idShort}}/submodel/submodelElements/{{operation_idShort}}/invoke?async=true", |
| "host": [ |
| "{{component_endpoint}}" |
| ], |
| "path": [ |
| "aas", |
| "submodels", |
| "{{submodel_idShort}}", |
| "submodel", |
| "submodelElements", |
| "{{operation_idShort}}", |
| "invoke" |
| ], |
| "query": [ |
| { |
| "key": "async", |
| "value": "true" |
| } |
| ] |
| } |
| }, |
| "response": [] |
| }, |
| { |
| "name": "Retrieve Invocation Result", |
| "request": { |
| "method": "GET", |
| "header": [], |
| "url": { |
| "raw": "{{component_endpoint}}/aas/submodels/{{submodel_idShort}}/submodel/submodelElements/{{operation_idShort}}/invocationList/{{requestId}}", |
| "host": [ |
| "{{component_endpoint}}" |
| ], |
| "path": [ |
| "aas", |
| "submodels", |
| "{{submodel_idShort}}", |
| "submodel", |
| "submodelElements", |
| "{{operation_idShort}}", |
| "invocationList", |
| "{{requestId}}" |
| ] |
| } |
| }, |
| "response": [] |
| } |
| ] |
| } |
| ] |
| }, |
| { |
| "name": "Create or Update Submodel", |
| "event": [ |
| { |
| "listen": "test", |
| "script": { |
| "exec": [ |
| "pm.environment.set(\"submodel_idShort\", pm.response.json().idShort);", |
| "" |
| ], |
| "type": "text/javascript" |
| } |
| } |
| ], |
| "request": { |
| "method": "PUT", |
| "header": [ |
| { |
| "key": "Content-Type", |
| "name": "Content-Type", |
| "value": "application/json", |
| "type": "text" |
| } |
| ], |
| "body": { |
| "mode": "raw", |
| "raw": "{\n \"idShort\": \"{{submodel_idShort}}\",\n \"identification\" : {\n\t\t\t\"id\" : \"{{submodel_id}}\",\n\t\t\t\"idType\" : \"Custom\"\n\t},\n \"kind\" : \"Instance\"\n}", |
| "options": { |
| "raw": { |
| "language": "json" |
| } |
| } |
| }, |
| "url": { |
| "raw": "{{component_endpoint}}/aas/submodels/{{submodel_idShort}}", |
| "host": [ |
| "{{component_endpoint}}" |
| ], |
| "path": [ |
| "aas", |
| "submodels", |
| "{{submodel_idShort}}" |
| ] |
| } |
| }, |
| "response": [] |
| }, |
| { |
| "name": "Retrieve all Submodels", |
| "request": { |
| "method": "GET", |
| "header": [], |
| "url": { |
| "raw": "{{component_endpoint}}/aas/submodels", |
| "host": [ |
| "{{component_endpoint}}" |
| ], |
| "path": [ |
| "aas", |
| "submodels" |
| ] |
| } |
| }, |
| "response": [] |
| }, |
| { |
| "name": "Retrieve Submodel by IdShort", |
| "request": { |
| "method": "GET", |
| "header": [ |
| { |
| "key": "Content-Type", |
| "name": "Content-Type", |
| "value": "application/json", |
| "type": "text" |
| } |
| ], |
| "url": { |
| "raw": "{{component_endpoint}}/aas/submodels/{{submodel_idShort}}", |
| "host": [ |
| "{{component_endpoint}}" |
| ], |
| "path": [ |
| "aas", |
| "submodels", |
| "{{submodel_idShort}}" |
| ] |
| } |
| }, |
| "response": [] |
| }, |
| { |
| "name": "Retrieve Submodel by IdShort - Compact", |
| "request": { |
| "method": "GET", |
| "header": [ |
| { |
| "key": "Content-Type", |
| "name": "Content-Type", |
| "type": "text", |
| "value": "application/json" |
| } |
| ], |
| "url": { |
| "raw": "{{component_endpoint}}/aas/submodels/{{submodel_idShort}}/submodel/values", |
| "host": [ |
| "{{component_endpoint}}" |
| ], |
| "path": [ |
| "aas", |
| "submodels", |
| "{{submodel_idShort}}", |
| "submodel", |
| "values" |
| ] |
| } |
| }, |
| "response": [] |
| }, |
| { |
| "name": "Delete Submodel by IdShort", |
| "request": { |
| "method": "DELETE", |
| "header": [], |
| "url": { |
| "raw": "{{component_endpoint}}/aas/submodels/{{submodel_idShort}}", |
| "host": [ |
| "{{component_endpoint}}" |
| ], |
| "path": [ |
| "aas", |
| "submodels", |
| "{{submodel_idShort}}" |
| ] |
| } |
| }, |
| "response": [] |
| } |
| ] |
| }, |
| { |
| "name": "Retrieve Asset Administration Shell", |
| "request": { |
| "method": "GET", |
| "header": [], |
| "url": { |
| "raw": "{{component_endpoint}}/aas", |
| "host": [ |
| "{{component_endpoint}}" |
| ], |
| "path": [ |
| "aas" |
| ] |
| } |
| }, |
| "response": [] |
| } |
| ] |
| }, |
| { |
| "name": "Asset Administration Shell Repository", |
| "item": [ |
| { |
| "name": "Submodel", |
| "item": [ |
| { |
| "name": "SubmodelElements", |
| "item": [ |
| { |
| "name": "Create or Update SubmodelElement", |
| "event": [ |
| { |
| "listen": "test", |
| "script": { |
| "exec": [ |
| "pm.environment.set(\"submodelElement_idShort\", pm.response.json().idShort);" |
| ], |
| "type": "text/javascript" |
| } |
| } |
| ], |
| "request": { |
| "method": "PUT", |
| "header": [ |
| { |
| "key": "Content-Type", |
| "name": "Content-Type", |
| "type": "text", |
| "value": "application/json" |
| } |
| ], |
| "body": { |
| "mode": "raw", |
| "raw": "{\n \"idShort\": \"{{submodelElement_idShort}}\",\n \"kind\": \"Instance\",\n \"valueType\": \"integer\",\n \"modelType\": {\n \"name\": \"Property\"\n },\n \"value\": 100\n}", |
| "options": { |
| "raw": { |
| "language": "json" |
| } |
| } |
| }, |
| "url": { |
| "raw": "{{aasRepository_endpoint}}/shells/{{aas_id_encoded}}/aas/submodels/{{submodel_idShort}}/submodel/submodelElements/{{submodelElement_idShort}}", |
| "host": [ |
| "{{aasRepository_endpoint}}" |
| ], |
| "path": [ |
| "shells", |
| "{{aas_id_encoded}}", |
| "aas", |
| "submodels", |
| "{{submodel_idShort}}", |
| "submodel", |
| "submodelElements", |
| "{{submodelElement_idShort}}" |
| ] |
| } |
| }, |
| "response": [] |
| }, |
| { |
| "name": "Retrieve SubmodelElement by IdShort", |
| "request": { |
| "method": "GET", |
| "header": [], |
| "url": { |
| "raw": "{{aasRepository_endpoint}}/shells/{{aas_id_encoded}}/aas/submodels/{{submodel_idShort}}/submodel/submodelElements/{{submodelElement_idShort}}", |
| "host": [ |
| "{{aasRepository_endpoint}}" |
| ], |
| "path": [ |
| "shells", |
| "{{aas_id_encoded}}", |
| "aas", |
| "submodels", |
| "{{submodel_idShort}}", |
| "submodel", |
| "submodelElements", |
| "{{submodelElement_idShort}}" |
| ] |
| } |
| }, |
| "response": [] |
| }, |
| { |
| "name": "Retrieve all SubmodelElements", |
| "request": { |
| "method": "GET", |
| "header": [], |
| "url": { |
| "raw": "{{aasRepository_endpoint}}/shells/{{aas_id_encoded}}/aas/submodels/{{submodel_idShort}}/submodel/submodelElements", |
| "host": [ |
| "{{aasRepository_endpoint}}" |
| ], |
| "path": [ |
| "shells", |
| "{{aas_id_encoded}}", |
| "aas", |
| "submodels", |
| "{{submodel_idShort}}", |
| "submodel", |
| "submodelElements" |
| ] |
| } |
| }, |
| "response": [] |
| }, |
| { |
| "name": "Update SubmodelElement Value by IdShort", |
| "request": { |
| "method": "PUT", |
| "header": [ |
| { |
| "key": "Content-Type", |
| "name": "Content-Type", |
| "value": "application/json", |
| "type": "text" |
| } |
| ], |
| "body": { |
| "mode": "raw", |
| "raw": "\"TestStringValue\"", |
| "options": { |
| "raw": { |
| "language": "json" |
| } |
| } |
| }, |
| "url": { |
| "raw": "{{aasRepository_endpoint}}/shells/{{aas_id_encoded}}/aas/submodels/{{submodel_idShort}}/submodel/submodelElements/{{submodelElement_idShort}}/value", |
| "host": [ |
| "{{aasRepository_endpoint}}" |
| ], |
| "path": [ |
| "shells", |
| "{{aas_id_encoded}}", |
| "aas", |
| "submodels", |
| "{{submodel_idShort}}", |
| "submodel", |
| "submodelElements", |
| "{{submodelElement_idShort}}", |
| "value" |
| ] |
| } |
| }, |
| "response": [] |
| }, |
| { |
| "name": "Retrieve SubmodelElement Value by IdShort", |
| "protocolProfileBehavior": { |
| "disableBodyPruning": true |
| }, |
| "request": { |
| "method": "GET", |
| "header": [ |
| { |
| "key": "Content-Type", |
| "value": "application/json" |
| } |
| ], |
| "body": { |
| "mode": "raw", |
| "raw": "" |
| }, |
| "url": { |
| "raw": "{{aasRepository_endpoint}}/shells/{{aas_id_encoded}}/aas/submodels/{{submodel_idShort}}/submodel/submodelElements/{{submodelElement_idShort}}/value", |
| "host": [ |
| "{{aasRepository_endpoint}}" |
| ], |
| "path": [ |
| "shells", |
| "{{aas_id_encoded}}", |
| "aas", |
| "submodels", |
| "{{submodel_idShort}}", |
| "submodel", |
| "submodelElements", |
| "{{submodelElement_idShort}}", |
| "value" |
| ] |
| } |
| }, |
| "response": [] |
| }, |
| { |
| "name": "Delete SubmodelElement by IdShort", |
| "request": { |
| "method": "DELETE", |
| "header": [], |
| "url": { |
| "raw": "{{aasRepository_endpoint}}/shells/{{aas_id_encoded}}/aas/submodels/{{submodel_idShort}}/submodel/submodelElements/{{submodelElement_idShort}}", |
| "host": [ |
| "{{aasRepository_endpoint}}" |
| ], |
| "path": [ |
| "shells", |
| "{{aas_id_encoded}}", |
| "aas", |
| "submodels", |
| "{{submodel_idShort}}", |
| "submodel", |
| "submodelElements", |
| "{{submodelElement_idShort}}" |
| ] |
| } |
| }, |
| "response": [] |
| } |
| ] |
| }, |
| { |
| "name": "Create or Update Submodel at Asset Administration Shell", |
| "request": { |
| "method": "PUT", |
| "header": [ |
| { |
| "key": "Content-Type", |
| "name": "Content-Type", |
| "type": "text", |
| "value": "application/json" |
| } |
| ], |
| "body": { |
| "mode": "raw", |
| "raw": "{\n \"idShort\": \"{{submodel_idShort}}\",\n \"identification\": {\n \"id\": \"{{submodel_id}}\",\n \"idType\": \"IRI\"\n },\n \"modelType\" : {\n\t\t\t\"name\" : \"Submodel\"\n\t},\n \"semanticId\" : {\n \"keys\": [\n {\n \"type\": \"Submodel\",\n \"idType\": \"IRI\",\n \"value\": \"urn:basys:org.eclipse.basyx:submodels:{{submodel_idShort}}:1.0.0\",\n \"local\": false\n }\n ]\n },\n \"submodelElements\": [\n {\n \"modelType\": {\n \"name\": \"Property\"\n },\n \"idShort\": \"TestProperty\",\n \"kind\": \"Instance\",\n \"value\": \"TestValue\",\n \"valueType\":\"string\"\n }\n ]\n}\n", |
| "options": { |
| "raw": { |
| "language": "json" |
| } |
| } |
| }, |
| "url": { |
| "raw": "{{aasRepository_endpoint}}/shells/{{aas_id_encoded}}/aas/submodels/{{submodel_idShort}}", |
| "host": [ |
| "{{aasRepository_endpoint}}" |
| ], |
| "path": [ |
| "shells", |
| "{{aas_id_encoded}}", |
| "aas", |
| "submodels", |
| "{{submodel_idShort}}" |
| ] |
| } |
| }, |
| "response": [] |
| }, |
| { |
| "name": "Delete Submodel at Asset Administration Shell", |
| "request": { |
| "method": "DELETE", |
| "header": [ |
| { |
| "key": "Content-Type", |
| "name": "Content-Type", |
| "type": "text", |
| "value": "application/json" |
| } |
| ], |
| "url": { |
| "raw": "{{aasRepository_endpoint}}/shells/{{aas_id_encoded}}/aas/submodels/{{submodel_idShort}}", |
| "host": [ |
| "{{aasRepository_endpoint}}" |
| ], |
| "path": [ |
| "shells", |
| "{{aas_id_encoded}}", |
| "aas", |
| "submodels", |
| "{{submodel_idShort}}" |
| ] |
| } |
| }, |
| "response": [] |
| }, |
| { |
| "name": "Retrieve Submodel from Asset Administration Shell", |
| "request": { |
| "method": "GET", |
| "header": [ |
| { |
| "key": "Content-Type", |
| "name": "Content-Type", |
| "type": "text", |
| "value": "application/json" |
| } |
| ], |
| "url": { |
| "raw": "{{aasRepository_endpoint}}/shells/{{aas_id_encoded}}/aas/submodels/{{submodel_idShort}}", |
| "host": [ |
| "{{aasRepository_endpoint}}" |
| ], |
| "path": [ |
| "shells", |
| "{{aas_id_encoded}}", |
| "aas", |
| "submodels", |
| "{{submodel_idShort}}" |
| ] |
| } |
| }, |
| "response": [] |
| } |
| ] |
| }, |
| { |
| "name": "Create or Update Asset Administration Shell", |
| "request": { |
| "method": "PUT", |
| "header": [], |
| "body": { |
| "mode": "raw", |
| "raw": "{\r\n\t\"idShort\" : \"{{aas_idShort}}\",\r\n\t\"identification\" : {\r\n\t\t\t\"id\" : \"{{aas_id}}\",\r\n\t\t\t\"idType\" : \"IRI\"\r\n\t},\r\n\t\"modelType\" : {\r\n\t\t\"name\" : \"AssetAdministrationShell\"\r\n\t}\r\n}", |
| "options": { |
| "raw": { |
| "language": "json" |
| } |
| } |
| }, |
| "url": { |
| "raw": "{{aasRepository_endpoint}}/shells/{{aas_id_encoded}}", |
| "host": [ |
| "{{aasRepository_endpoint}}" |
| ], |
| "path": [ |
| "shells", |
| "{{aas_id_encoded}}" |
| ] |
| } |
| }, |
| "response": [] |
| }, |
| { |
| "name": "Retrieve Asset Administration Shell By Id", |
| "request": { |
| "method": "GET", |
| "header": [], |
| "url": { |
| "raw": "{{aasRepository_endpoint}}/shells/{{aas_id_encoded}}", |
| "host": [ |
| "{{aasRepository_endpoint}}" |
| ], |
| "path": [ |
| "shells", |
| "{{aas_id_encoded}}" |
| ] |
| } |
| }, |
| "response": [] |
| }, |
| { |
| "name": "Retrieve All Asset Administration Shells", |
| "request": { |
| "method": "GET", |
| "header": [], |
| "url": { |
| "raw": "{{aasRepository_endpoint}}/shells", |
| "host": [ |
| "{{aasRepository_endpoint}}" |
| ], |
| "path": [ |
| "shells" |
| ] |
| } |
| }, |
| "response": [] |
| } |
| ] |
| }, |
| { |
| "name": "Registry", |
| "item": [ |
| { |
| "name": "Register Asset Administration Shell", |
| "item": [ |
| { |
| "name": "Register Asset Administration Shell (Minimal)", |
| "request": { |
| "method": "PUT", |
| "header": [ |
| { |
| "key": "Content-Type", |
| "name": "Content-Type", |
| "value": "application/json", |
| "type": "text" |
| } |
| ], |
| "body": { |
| "mode": "raw", |
| "raw": "{\n\t\"idShort\" : \"{{aas_idShort}}\",\n\t\"identification\" : {\n\t\t\t\"id\" : \"{{aas_id}}\",\n\t\t\t\"idType\" : \"Custom\"\n\t},\n\t\"modelType\" : {\n\t\t\"name\" : \"AssetAdministrationShellDescriptor\"\n\t},\n \"endpoints\" : [\n \t{\n \t\t\"type\" : \"http\",\n \t\t\"address\" : \"http://localhost:5080/aas\"\n \t}],\n \"submodels\" : [{\n \t\"idShort\" : \"{{submodel_idShort}}\",\n \t\"identification\" : {\n\t\t\t\"id\" : \"{{submodel_id}}\",\n\t\t\t\"idType\" : \"Custom\"\n\t\t},\n\t\t\"modelType\" : {\n\t\t\t\"name\" : \"SubmodelDescriptor\"\n\t\t},\n\t\t\"endpoints\" : [\n \t{\n \t\t\"type\" : \"http\",\n \t\t\"address\" : \"http://localhost:5080/aas/submodels/{{submodel_id_encoded}}/submodel\"\n \t}]\n }]\n}", |
| "options": { |
| "raw": { |
| "language": "json" |
| } |
| } |
| }, |
| "url": { |
| "raw": "{{registry_endpoint}}/api/v1/registry/{{aas_id_encoded}}", |
| "host": [ |
| "{{registry_endpoint}}" |
| ], |
| "path": [ |
| "api", |
| "v1", |
| "registry", |
| "{{aas_id_encoded}}" |
| ] |
| } |
| }, |
| "response": [] |
| }, |
| { |
| "name": "Register Asset Administration Shell (Maximal)", |
| "request": { |
| "method": "PUT", |
| "header": [ |
| { |
| "key": "Content-Type", |
| "name": "Content-Type", |
| "value": "application/json", |
| "type": "text" |
| } |
| ], |
| "body": { |
| "mode": "raw", |
| "raw": "{\n\t\"idShort\" : \"{{aas_idShort}}\",\n\t\"identification\" : {\n\t\t\t\"id\" : \"{{aas_id}}\",\n\t\t\t\"idType\" : \"Custom\"\n\t},\n\t\"modelType\" : {\n\t\t\t\"name\" : \"AssetAdministrationShellDescriptor\"\n\t},\n\t\"asset\" : {\n\t\t\t\"kind\": \"Instance\",\n\t\t\t\"idShort\" : \"{{asset_idShort}}\",\n\t\t\t\"identification\" : {\n\t\t\t\t\"id\" : \"{{asset_id}}\",\n\t\t\t\t\"idType\" : \"Custom\"\n\t\t\t}\n\t},\n\t\"descriptions\" : [\n\t{\n\t\t\"language\" : \"EN\",\n\t\t\"text\" : \"My Asset Administration Shell\"\n\t},\n\t{\n\t\t\"language\" : \"DE\",\n\t\t\"text\" : \"Meine Asset Administration Shell\"\n\t}],\n\t\"administration\" : {\n\t\t\"version\" : \"1.0.0\",\n\t\t\"revision\" : \"0.0.1\"\n\t},\n \"endpoints\" : [\n \t{\n \t\t\"type\" : \"http\",\n \t\t\"address\" : \"http://localhost:5080/aas\"\n \t}],\n \"submodels\" : [{\n \t\"idShort\" : \"{{submodel_idShort}}\",\n \t\"identification\" : {\n\t\t\t\"id\" : \"{{submodel_id}}\",\n\t\t\t\"idType\" : \"Custom\"\n\t\t},\n\t\t\"modelType\" : {\n\t\t\t\"name\" : \"SubmodelDescriptor\"\n\t\t},\n \t\"semanticId\" : {\n \t \"keys\": [\n \t {\n \t \"type\": \"Submodel\",\n \t \"idType\": \"URI\",\n \t \"value\": \"urn:basys:org.eclipse.basyx:submodels:{{submodel_idShort}}:1.0.0\",\n \t \"local\": false\n \t }\n \t ]\n \t},\n\t\t\"endpoints\" : [\n \t{\n \t\t\"type\" : \"http\",\n \t\t\"address\" : \"http://localhost:5080/aas/submodels/{{submodel_id_encoded}}/submodel\"\n \t}]\n }]\n}", |
| "options": { |
| "raw": { |
| "language": "json" |
| } |
| } |
| }, |
| "url": { |
| "raw": "{{registry_endpoint}}/api/v1/registry/{{aas_id_encoded}}", |
| "host": [ |
| "{{registry_endpoint}}" |
| ], |
| "path": [ |
| "api", |
| "v1", |
| "registry", |
| "{{aas_id_encoded}}" |
| ] |
| } |
| }, |
| "response": [] |
| }, |
| { |
| "name": "Retrieve Asset Administration Shell by Id", |
| "request": { |
| "method": "GET", |
| "header": [], |
| "url": { |
| "raw": "{{registry_endpoint}}/api/v1/registry/{{aas_id_encoded}}", |
| "host": [ |
| "{{registry_endpoint}}" |
| ], |
| "path": [ |
| "api", |
| "v1", |
| "registry", |
| "{{aas_id_encoded}}" |
| ] |
| } |
| }, |
| "response": [] |
| }, |
| { |
| "name": "Retrieve All Asset Administration Shells", |
| "request": { |
| "method": "GET", |
| "header": [], |
| "url": { |
| "raw": "{{registry_endpoint}}/api/v1/registry/", |
| "host": [ |
| "{{registry_endpoint}}" |
| ], |
| "path": [ |
| "api", |
| "v1", |
| "registry", |
| "" |
| ] |
| } |
| }, |
| "response": [] |
| }, |
| { |
| "name": "Delete Asset Administration Shell by Id", |
| "request": { |
| "method": "DELETE", |
| "header": [], |
| "url": { |
| "raw": "{{registry_endpoint}}/api/v1/registry/{{aas_id_encoded}}", |
| "host": [ |
| "{{registry_endpoint}}" |
| ], |
| "path": [ |
| "api", |
| "v1", |
| "registry", |
| "{{aas_id_encoded}}" |
| ] |
| } |
| }, |
| "response": [] |
| } |
| ] |
| }, |
| { |
| "name": "Register Submodel", |
| "item": [ |
| { |
| "name": "Retrieve All Submodels", |
| "request": { |
| "method": "GET", |
| "header": [], |
| "url": { |
| "raw": "{{registry_endpoint}}/api/v1/registry/{{aas_id_encoded}}/submodels", |
| "host": [ |
| "{{registry_endpoint}}" |
| ], |
| "path": [ |
| "api", |
| "v1", |
| "registry", |
| "{{aas_id_encoded}}", |
| "submodels" |
| ] |
| } |
| }, |
| "response": [] |
| }, |
| { |
| "name": "Retrieve Submodel by Id", |
| "request": { |
| "method": "GET", |
| "header": [], |
| "url": { |
| "raw": "{{registry_endpoint}}/api/v1/registry/{{aas_id_encoded}}/submodels/{{submodel_id_encoded}}", |
| "host": [ |
| "{{registry_endpoint}}" |
| ], |
| "path": [ |
| "api", |
| "v1", |
| "registry", |
| "{{aas_id_encoded}}", |
| "submodels", |
| "{{submodel_id_encoded}}" |
| ] |
| } |
| }, |
| "response": [] |
| }, |
| { |
| "name": "Register Submodel at Asset Administration Shell", |
| "request": { |
| "method": "PUT", |
| "header": [ |
| { |
| "key": "Content-Type", |
| "name": "Content-Type", |
| "type": "text", |
| "value": "application/json" |
| } |
| ], |
| "body": { |
| "mode": "raw", |
| "raw": "{\n \"idShort\": \"AdditionalTestSubmodel\",\n \"identification\": {\n \"id\": \"AdditionalTestSubmodel_id\",\n \"idType\": \"Custom\"\n },\n \"modelType\" : {\n\t\t\t\"name\" : \"SubmodelDescriptor\"\n\t},\n \"semanticId\" : {\n \"keys\": [\n {\n \"type\": \"Submodel\",\n \"idType\": \"URI\",\n \"value\": \"urn:basys:org.eclipse.basyx:submodels:AdditionalTestSubmodel:1.0.0\",\n \"local\": false\n }\n ]\n },\n \"endpoints\": [\n {\n \"address\": \"http://localhost:5080/aas/submodels/AdditionalTestSubmodel/submodel\",\n \"type\": \"http\"\n }\n ]\n}\n", |
| "options": { |
| "raw": { |
| "language": "json" |
| } |
| } |
| }, |
| "url": { |
| "raw": "{{registry_endpoint}}/api/v1/registry/{{aas_id_encoded}}/submodels/{{submodel_id_encoded}}", |
| "host": [ |
| "{{registry_endpoint}}" |
| ], |
| "path": [ |
| "api", |
| "v1", |
| "registry", |
| "{{aas_id_encoded}}", |
| "submodels", |
| "{{submodel_id_encoded}}" |
| ] |
| } |
| }, |
| "response": [] |
| }, |
| { |
| "name": "Delete Submodel from Asset Adminstration Shell", |
| "request": { |
| "method": "DELETE", |
| "header": [], |
| "url": { |
| "raw": "{{registry_endpoint}}/api/v1/registry/{{aas_id_encoded}}/submodels/{{submodel_id_encoded}}", |
| "host": [ |
| "{{registry_endpoint}}" |
| ], |
| "path": [ |
| "api", |
| "v1", |
| "registry", |
| "{{aas_id_encoded}}", |
| "submodels", |
| "{{submodel_id_encoded}}" |
| ] |
| } |
| }, |
| "response": [] |
| } |
| ] |
| } |
| ] |
| } |
| ] |
| } |