diff --git a/Connection_Manager.postman_collection.json b/Connection_Manager.postman_collection.json new file mode 100644 index 0000000000000000000000000000000000000000..8d4d53a0813dd1a454719ac6c68455e1fd25b0aa --- /dev/null +++ b/Connection_Manager.postman_collection.json @@ -0,0 +1,507 @@ +{ + "info": { + "_postman_id": "2409bab2-cd0d-4956-8f46-bb9919b46ae7", + "name": "Connection Manager", + "description": "StartFragment\n\nThe Connection Manager is a collection of requests which can be used to create the connection invitation URL, to get all connections and their information.", + "schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json", + "_exporter_id": "17714957" + }, + "item": [ + { + "name": "Create-Invitation-URL", + "event": [ + { + "listen": "test", + "script": { + "exec": [ + "const res = pm.response.json();\r", + "\r", + "if (res.statusCode == 200) {\r", + "\tpm.environment.set(\"conn-id\", res.data.connection.id);\r", + "\r", + "\tlet template = `\r", + " <html>\r", + " <body> \r", + " <div>Scan the QR code below for connetion with id {{data.connection.id}}</div>\r", + " <br>\r", + " <div style=\"text-align:center;\">\r", + " <img src='https://api.qrserver.com/v1/create-qr-code/?size=300x300&data=+{{data.invitationUrl}}'></img>\r", + " </div>\r", + " </body>\r", + " </html>`;\r", + "\tpm.visualizer.set(template, res);\r", + "}" + ], + "type": "text/javascript" + } + } + ], + "request": { + "method": "POST", + "header": [], + "body": { + "mode": "raw", + "raw": "", + "options": { + "raw": { + "language": "json" + } + } + }, + "url": { + "raw": "{{Con_man_baseURL}}/v1/invitation-url?alias=member", + "host": [ + "{{Con_man_baseURL}}" + ], + "path": [ + "v1", + "invitation-url" + ], + "query": [ + { + "key": "alias", + "value": "member" + }, + { + "key": "alias", + "value": "subscriber", + "disabled": true + } + ] + }, + "description": "#### **Description** **:**\n\nIt is used to create the connection invitation URL to establish the peer to peer connection between two aeries agents or the participant user and the principal user.\n\n#### **Query Parameters :**\n\n| **Key** | **isRequired** | **Value** |\n| --- | --- | --- |\n| alias | required | \"member\" or \"subscriber\" |\n\n> for this request, the request parameter needs to be provided as \"alias\" which is required and only accepts \"member\" or \"subscriber\".\n> \n> **\"member\" as alias** : the connection invitation is created for the member.\n> \n> **\"subscriber\" as alias** : the connection invitation is created for the subscriber.\n\n> **Connecting as a member :**\n> \n> A member is someone who is enrolling for first time in GaiaX ecosystem. The principal user will receive membership credential once connected as member and the connection will move to \"trusted\" state.\n\n> **Connecting as subscriber :**\n> \n> A subscriber is someone who is already connected with some participant in GaiaX ecosystem and is willing to connect (subscribe) with some other participants in ecosystem. The principal user need to present proof against membership credential. The proof presentation will be requested upon successful connection.\n> \n> And once the proof is presented successfully, the connection will move to \"trusted\" state.\n\n \n\n#### **Response :**\n\nThe positive response for this request comprises of following attributes :\n\n| **Key** | **Description** |\n| --- | --- |\n| `statusCode` | It return the http response code on the execution of this request. |\n| `message` | It returns the standard response with accordance to the action performed. |\n| `data` | It returns the requested information for the request. |\n| `data → invitationUrl` | It returns the invitation URL to receive connection on principal end. |\n| `data → invitation` | It returns the invitation object to receive connection on principal end. |\n| `data → connection` | It returns connection object which contains the information about the connection. |\n| `data → connection → id` | It returns the connection unique identifier. |\n| `data → connection → createdAt` | It returns the created date and time. |\n| `data → connection → did` | It returns the connection DID. |\n| `data → connection → state` | It returns the connection state. |\n| `data → connection → role` | It returns the agent role. |\n| `data → connection → alias` | It returns the alias which we set at time of creating or receiving the connection. |\n| `data → connection → multiUseInvitation` | It returns the boolean which indicates whether the connection is multi-use or not. |" + }, + "response": [ + { + "name": "Create-Invitation-URL", + "originalRequest": { + "method": "POST", + "header": [], + "body": { + "mode": "raw", + "raw": "", + "options": { + "raw": { + "language": "json" + } + } + }, + "url": { + "raw": "{{Con_man_baseURL}}/v1/invitation-url?alias=member", + "host": [ + "{{Con_man_baseURL}}" + ], + "path": [ + "v1", + "invitation-url" + ], + "query": [ + { + "key": "alias", + "value": "member" + }, + { + "key": "alias", + "value": "subscriber", + "disabled": true + } + ] + } + }, + "status": "Created", + "code": 201, + "_postman_previewlanguage": "json", + "header": [ + { + "key": "date", + "value": "Wed, 15 Jun 2022 09:18:04 GMT" + }, + { + "key": "content-type", + "value": "application/json; charset=utf-8" + }, + { + "key": "content-length", + "value": "1989" + }, + { + "key": "x-powered-by", + "value": "Express" + }, + { + "key": "access-control-allow-origin", + "value": "*" + }, + { + "key": "etag", + "value": "W/\"7c5-cp94PvE2DNowIosoNk1tOsH7jDY\"" + }, + { + "key": "strict-transport-security", + "value": "max-age=15724800; includeSubDomains" + } + ], + "cookie": [], + "body": "{\n \"statusCode\": 200,\n \"message\": \"Connection created successfully\",\n \"data\": {\n \"invitationUrl\": \"https://gaiax.vereign.com:443/ocm/didcomm?c_i=eyJAdHlwZSI6Imh0dHBzOi8vZGlkY29tbS5vcmcvY29ubmVjdGlvbnMvMS4wL2ludml0YXRpb24iLCJAaWQiOiJkOTMzOTk5Mi02ZjZmLTQxYzEtYjQ0Yy1lMjNkMjUwMGMzNWIiLCJsYWJlbCI6InNzaS1hYnN0cmFjdGlvbi1hZ2VudCIsInJlY2lwaWVudEtleXMiOlsiREFnNEhrNzkyRXh6SFpRNjhHdktoY3ZrQzVYV3VqUHdiRlpmaWhTVlQyOFUiXSwic2VydmljZUVuZHBvaW50IjoiaHR0cHM6Ly9nYWlheC52ZXJlaWduLmNvbTo0NDMvb2NtL2RpZGNvbW0iLCJyb3V0aW5nS2V5cyI6W119\",\n \"invitation\": {\n \"@type\": \"https://didcomm.org/connections/1.0/invitation\",\n \"@id\": \"d9339992-6f6f-41c1-b44c-e23d2500c35b\",\n \"label\": \"ssi-abstraction-agent\",\n \"recipientKeys\": [\n \"DAg4Hk792ExzHZQ68GvKhcvkC5XWujPwbFZfihSVT28U\"\n ],\n \"serviceEndpoint\": \"https://gaiax.vereign.com:443/ocm/didcomm\",\n \"routingKeys\": []\n },\n \"connection\": {\n \"_tags\": {},\n \"metadata\": {},\n \"id\": \"ffc4cd40-ae18-42f7-87c2-fe4d45b6e300\",\n \"createdAt\": \"2022-06-15T09:18:04.978Z\",\n \"did\": \"PKjWC17JFYBPLAjdeaZoaK\",\n \"didDoc\": {\n \"@context\": \"https://w3id.org/did/v1\",\n \"publicKey\": [\n {\n \"id\": \"PKjWC17JFYBPLAjdeaZoaK#1\",\n \"controller\": \"PKjWC17JFYBPLAjdeaZoaK\",\n \"type\": \"Ed25519VerificationKey2018\",\n \"publicKeyBase58\": \"DAg4Hk792ExzHZQ68GvKhcvkC5XWujPwbFZfihSVT28U\"\n }\n ],\n \"service\": [\n {\n \"id\": \"PKjWC17JFYBPLAjdeaZoaK#IndyAgentService\",\n \"serviceEndpoint\": \"https://gaiax.vereign.com:443/ocm/didcomm\",\n \"type\": \"IndyAgent\",\n \"priority\": 0,\n \"recipientKeys\": [\n \"DAg4Hk792ExzHZQ68GvKhcvkC5XWujPwbFZfihSVT28U\"\n ],\n \"routingKeys\": []\n }\n ],\n \"authentication\": [\n {\n \"publicKey\": \"PKjWC17JFYBPLAjdeaZoaK#1\",\n \"type\": \"Ed25519SignatureAuthentication2018\"\n }\n ],\n \"id\": \"PKjWC17JFYBPLAjdeaZoaK\"\n },\n \"verkey\": \"DAg4Hk792ExzHZQ68GvKhcvkC5XWujPwbFZfihSVT28U\",\n \"state\": \"invited\",\n \"role\": \"inviter\",\n \"alias\": \"member\",\n \"invitation\": {\n \"@type\": \"https://didcomm.org/connections/1.0/invitation\",\n \"@id\": \"d9339992-6f6f-41c1-b44c-e23d2500c35b\",\n \"label\": \"ssi-abstraction-agent\",\n \"recipientKeys\": [\n \"DAg4Hk792ExzHZQ68GvKhcvkC5XWujPwbFZfihSVT28U\"\n ],\n \"serviceEndpoint\": \"https://gaiax.vereign.com:443/ocm/didcomm\",\n \"routingKeys\": []\n },\n \"multiUseInvitation\": false\n }\n }\n}" + } + ] + }, + { + "name": "Get-Connection-by-ConnectionID", + "event": [ + { + "listen": "test", + "script": { + "exec": [ + "const res = pm.response.json();\r", + "\r", + "let template = `\r", + " <html>\r", + " <body> \r", + " <div style=\"text-align:center; color:green; text-transform: capitalize;\">\r", + " <h2>{{data.records.status}}</h2>\r", + " </div>\r", + " </body>\r", + " </html>`;\r", + "pm.visualizer.set(template, res);" + ], + "type": "text/javascript" + } + } + ], + "request": { + "method": "GET", + "header": [], + "url": { + "raw": "{{Con_man_baseURL}}/v1/connections/{{conn-id}}", + "host": [ + "{{Con_man_baseURL}}" + ], + "path": [ + "v1", + "connections", + "{{conn-id}}" + ] + }, + "description": "#### **Description** **:**\n\nThis request is used to fetch connection information for the connection id provided in URL.\n\n> It also provides state of the connection established.\n\n \n \n\n#### **Response :**\n\nThe positive response for this request comprises of following attributes :\n\n| **Key** | **Description** |\n| --- | --- |\n| `statusCode` | It return the http response code on the execution of this request. |\n| `message` | It returns the standard response with accordance to the action performed. |\n| `data` | It returns the requested information for the request. |\n| `data → records → id` | It returns the unique identifier for connection table. |\n| `data → records → connectionId` | It returns the connection unique identifier. |\n| `data → records → participantDid` | It returns the participant DID. |\n| `data → records → theirDid` | It returns the principal DID. |\n| `data → records → theirLabel` | It returns the email of the principal. |\n| `data → records → createdDate` | It returns the created date. |\n| `data → records → updatedDate` | It returns the updated date. |\n| `data → records → isActive` | It returns the boolean value which indicates record is active. |" + }, + "response": [ + { + "name": "Get-Connection-by-ConnectionID", + "originalRequest": { + "method": "GET", + "header": [], + "url": { + "raw": "{{Con_man_baseURL}}/v1/connections/{{conn-id}}", + "host": [ + "{{Con_man_baseURL}}" + ], + "path": [ + "v1", + "connections", + "{{conn-id}}" + ] + } + }, + "status": "OK", + "code": 200, + "_postman_previewlanguage": "json", + "header": [ + { + "key": "date", + "value": "Wed, 15 Jun 2022 09:25:00 GMT" + }, + { + "key": "content-type", + "value": "application/json; charset=utf-8" + }, + { + "key": "content-length", + "value": "411" + }, + { + "key": "x-powered-by", + "value": "Express" + }, + { + "key": "access-control-allow-origin", + "value": "*" + }, + { + "key": "etag", + "value": "W/\"19b-TySvMVsRlQAW5a6BNN0k6i1Lo50\"" + }, + { + "key": "strict-transport-security", + "value": "max-age=15724800; includeSubDomains" + } + ], + "cookie": [], + "body": "{\n \"statusCode\": 200,\n \"message\": \"Connections fetch successfully\",\n \"data\": {\n \"records\": {\n \"id\": \"0f8a7f07-f064-45af-ae0a-a98c5b721d04\",\n \"connectionId\": \"3d14a056-8e4d-4336-9a48-541ce7ec7a80\",\n \"status\": \"trusted\",\n \"participantDid\": \"R5LHJTmiuP8PRtH74SVHXb\",\n \"theirDid\": \"XpaT7i3hYHHHSMrw1rY3EB\",\n \"theirLabel\": \"test_corp@vomoto.com\",\n \"createdDate\": \"2022-06-15T09:24:15.248Z\",\n \"updatedDate\": \"2022-06-15T09:24:56.988Z\",\n \"isActive\": true\n }\n }\n}" + } + ] + }, + { + "name": "Get-Connections", + "event": [ + { + "listen": "test", + "script": { + "exec": [ + "const res = pm.response.json();\r", + "\r", + "let template = `\r", + " <html>\r", + " <body> \r", + " <div style=\"text-align:center; color:green; text-transform: capitalize;\">\r", + " <h2>{{data.records.status}}</h2>\r", + " </div>\r", + " </body>\r", + " </html>`;\r", + "pm.visualizer.set(template, res);" + ], + "type": "text/javascript" + } + } + ], + "request": { + "method": "GET", + "header": [], + "url": { + "raw": "{{Con_man_baseURL}}/v1/connections", + "host": [ + "{{Con_man_baseURL}}" + ], + "path": [ + "v1", + "connections" + ], + "query": [ + { + "key": "participantDID", + "value": "Jv5JtLcLuEeByKazGBtfSC", + "disabled": true + }, + { + "key": "status", + "value": "trusted", + "disabled": true + }, + { + "key": "pageSize", + "value": "5", + "disabled": true + }, + { + "key": "page", + "value": "2", + "disabled": true + } + ] + }, + "description": "#### **Description** **:**\n\nThis request fetches the connection information against the provided participantDID otherwise all the connections are fetched.\n\n> It uses pagination to provide the particular number of records filtered as per the input given.\n\n#### **Query Parameters :**\n\n| **Key** | **isRequired** | **Value** |\n| --- | --- | --- |\n| participantDID | required | `participantDID` <br>should be provided in query parameter. |\n| status | no | `status` <br>should be provided in query parameter. It filters the connections list according the provided status value. |\n| pageSize | no | `pageSize` <br>Should be provided in query parameter. It filters the list and sets the page size. |\n| page | no | `page` <br>Should be provided in query parameter. It filters the list and sets the page to land on. |\n\n \n\n#### **Response :**\n\nThe positive response for this request comprises of following attributes :\n\n| **Key** | **Description** |\n| --- | --- |\n| `statusCode` | It return the http response code on the execution of this request. |\n| `message` | It returns the standard response with accordance to the action performed. |\n| `data` | It returns the requested information for the request. |\n| `data → count` | It returns the total number of records available in the table for matching query. |\n| `data → records → id` | It returns the unique identifier for connection table. |\n| `data → records → connectionId` | It returns the connection unique identifier. |\n| `data → records → participantDid` | It returns the participant DID. |\n| `data → records → theirDid` | It returns the principal DID. |\n| `data → records → theirLabel` | It returns the email of the principal. |\n| `data → records → createdDate` | It returns the created date. |\n| `data → records → updatedDate` | It returns the updated date. |\n| `data → records → isActive` | It returns the boolean value which indicates record is active. |" + }, + "response": [ + { + "name": "Get-Connections", + "originalRequest": { + "method": "GET", + "header": [], + "url": { + "raw": "{{Con_man_baseURL}}/v1/connections", + "host": [ + "{{Con_man_baseURL}}" + ], + "path": [ + "v1", + "connections" + ], + "query": [ + { + "key": "participantDID", + "value": "3zrMzUB6fur6snh5u4eiaQ", + "disabled": true + }, + { + "key": "status", + "value": "", + "disabled": true + }, + { + "key": "pageSize", + "value": "", + "disabled": true + }, + { + "key": "page", + "value": "", + "disabled": true + } + ] + } + }, + "status": "OK", + "code": 200, + "_postman_previewlanguage": "json", + "header": [ + { + "key": "date", + "value": "Wed, 15 Jun 2022 09:25:28 GMT" + }, + { + "key": "content-type", + "value": "application/json; charset=utf-8" + }, + { + "key": "content-length", + "value": "3180" + }, + { + "key": "x-powered-by", + "value": "Express" + }, + { + "key": "access-control-allow-origin", + "value": "*" + }, + { + "key": "etag", + "value": "W/\"c6c-VFB0g130QAnHpy+JUr0Gx7WAWmM\"" + }, + { + "key": "strict-transport-security", + "value": "max-age=15724800; includeSubDomains" + } + ], + "cookie": [], + "body": "{\n \"statusCode\": 200,\n \"message\": \"Connections fetch successfully\",\n \"data\": {\n \"count\": 111,\n \"records\": [\n {\n \"id\": \"02f41110-18b7-4d1f-89d4-b418cf2d603a\",\n \"connectionId\": \"24402e32-234b-453f-a4cf-9f3e94ed85ab\",\n \"status\": \"complete\",\n \"participantDid\": \"BbiM3ypCFV49iqwVKnQ3Pt\",\n \"theirDid\": \"6XYGkoJanFdNfQCF7yy8rx\",\n \"theirLabel\": \"emilie@vomoto.com\",\n \"createdDate\": \"2022-06-09T14:53:40.457Z\",\n \"updatedDate\": \"2022-06-09T14:54:40.301Z\",\n \"isActive\": false\n },\n {\n \"id\": \"049ec6ed-8645-465b-8f3a-fdd438aed36b\",\n \"connectionId\": \"fd96855b-c979-4125-95ba-d2535e63dfe6\",\n \"status\": \"invited\",\n \"participantDid\": \"Jv5JtLcLuEeByKazGBtfSC\",\n \"theirDid\": \"\",\n \"theirLabel\": \"\",\n \"createdDate\": \"2022-06-08T13:26:16.708Z\",\n \"updatedDate\": \"2022-06-08T13:26:16.708Z\",\n \"isActive\": false\n },\n {\n \"id\": \"092b1789-2522-44e1-9de7-de00c8e4e601\",\n \"connectionId\": \"719ddbe9-7dce-43df-b4be-4714bcca20a7\",\n \"status\": \"complete\",\n \"participantDid\": \"9DJSEsZpu6Neh2zypBGJoA\",\n \"theirDid\": \"SMrr5oVvxW1xWCfetQdYUn\",\n \"theirLabel\": \"rangoon@vomoto.com\",\n \"createdDate\": \"2022-06-08T14:40:13.868Z\",\n \"updatedDate\": \"2022-06-08T14:40:23.967Z\",\n \"isActive\": false\n },\n {\n \"id\": \"0af9b87d-50ad-4faa-ad97-4ba1ea74af73\",\n \"connectionId\": \"2b092454-05e6-4687-85e7-61c9ec4be97c\",\n \"status\": \"invited\",\n \"participantDid\": \"2j7hMxDhLwR6ya8Ptz5ewv\",\n \"theirDid\": \"\",\n \"theirLabel\": \"\",\n \"createdDate\": \"2022-06-06T12:09:07.844Z\",\n \"updatedDate\": \"2022-06-06T12:09:07.844Z\",\n \"isActive\": false\n },\n {\n \"id\": \"0b1eb233-0fdc-43ba-887e-01ca49f0984a\",\n \"connectionId\": \"1279a5c1-c7f1-4abe-bece-816f5e710050\",\n \"status\": \"invited\",\n \"participantDid\": \"4WZPvgYQoiiyKEwePV2th1\",\n \"theirDid\": \"\",\n \"theirLabel\": \"\",\n \"createdDate\": \"2022-06-07T12:39:18.101Z\",\n \"updatedDate\": \"2022-06-07T12:39:18.101Z\",\n \"isActive\": false\n },\n {\n \"id\": \"0b369941-5648-4475-aff3-4b12f6d8f3c2\",\n \"connectionId\": \"48afe258-dc0a-4c8b-a0f1-4b346e20f13c\",\n \"status\": \"invited\",\n \"participantDid\": \"NdDAdo5Kg2RvKCNZp62ehS\",\n \"theirDid\": \"\",\n \"theirLabel\": \"\",\n \"createdDate\": \"2022-06-08T14:14:37.972Z\",\n \"updatedDate\": \"2022-06-08T14:14:37.972Z\",\n \"isActive\": false\n },\n {\n \"id\": \"0e6c6705-9b8f-4cdb-a5ea-ab7651512e6a\",\n \"connectionId\": \"e0eb278f-3283-419c-95ae-85ed0b4007de\",\n \"status\": \"responded\",\n \"participantDid\": \"P7jc1nckvYDu4aVxGQeS1z\",\n \"theirDid\": \"NEfdsLk7xnxCui4RbNJj5S\",\n \"theirLabel\": \"alena@vomoto.com\",\n \"createdDate\": \"2022-06-09T13:44:50.029Z\",\n \"updatedDate\": \"2022-06-09T13:45:01.246Z\",\n \"isActive\": false\n },\n {\n \"id\": \"0ea21690-9127-47cf-aad6-5c55721dbae2\",\n \"connectionId\": \"9050c647-2931-4fdb-8f65-007c79f0bd33\",\n \"status\": \"trusted\",\n \"participantDid\": \"TaojhXfMbbKgoiE8FjMDUG\",\n \"theirDid\": \"JmQBgTUpfu8A7egsv1ib4s\",\n \"theirLabel\": \"sam\",\n \"createdDate\": \"2022-06-14T10:35:42.300Z\",\n \"updatedDate\": \"2022-06-14T10:43:59.067Z\",\n \"isActive\": true\n },\n {\n \"id\": \"0f8a7f07-f064-45af-ae0a-a98c5b721d04\",\n \"connectionId\": \"3d14a056-8e4d-4336-9a48-541ce7ec7a80\",\n \"status\": \"trusted\",\n \"participantDid\": \"R5LHJTmiuP8PRtH74SVHXb\",\n \"theirDid\": \"XpaT7i3hYHHHSMrw1rY3EB\",\n \"theirLabel\": \"test_corp@vomoto.com\",\n \"createdDate\": \"2022-06-15T09:24:15.248Z\",\n \"updatedDate\": \"2022-06-15T09:24:56.988Z\",\n \"isActive\": true\n },\n {\n \"id\": \"12870002-9220-4e3b-810f-369ef4351e51\",\n \"connectionId\": \"c559ed17-cbce-4992-8d36-4ffb3550988b\",\n \"status\": \"invited\",\n \"participantDid\": \"AeB43tLJgwCLPR3CsjwcSU\",\n \"theirDid\": \"\",\n \"theirLabel\": \"\",\n \"createdDate\": \"2022-06-06T11:42:52.186Z\",\n \"updatedDate\": \"2022-06-06T11:42:52.186Z\",\n \"isActive\": false\n }\n ]\n }\n}" + } + ] + }, + { + "name": "Accept-Connection", + "request": { + "method": "POST", + "header": [], + "body": { + "mode": "raw", + "raw": "{\r\n \"invitationUrl\": \"http://3.111.77.38:4021?c_i=eyJAdHlwZSI6ImRpZDpzb3Y6QnpDYnNOWWhNcmpIaXFaRFRVQVNIZztzcGVjL2Nvbm5lY3Rpb25zLzEuMC9pbnZpdGF0aW9uIiwiQGlkIjoiNTY0ZTM3NzQtZGViNy00ZTU2LWEyNTUtZWE3MmUyOWFlZmY4IiwibGFiZWwiOiJkZW1vNyIsInJlY2lwaWVudEtleXMiOlsiSHhVeVl4N1pIQnQ4ZHBCbk1MOVA4d0NqSm1jTmFFVGUzR2EzQjdHZ3l4VWoiXSwic2VydmljZUVuZHBvaW50IjoiaHR0cDovLzMuMTExLjc3LjM4OjQwMjEiLCJyb3V0aW5nS2V5cyI6W119\",\r\n \"autoAcceptConnection\": true\r\n}\r\n", + "options": { + "raw": { + "language": "json" + } + } + }, + "url": { + "raw": "http://3.111.77.38:3003/v1/accept-connection-invitation", + "protocol": "http", + "host": [ + "3", + "111", + "77", + "38" + ], + "port": "3003", + "path": [ + "v1", + "accept-connection-invitation" + ] + } + }, + "response": [] + }, + { + "name": "Get-Connection-Information", + "request": { + "method": "GET", + "header": [], + "url": { + "raw": "{{Con_man_baseURL}}/v1/connection-information?connectionId={{conn-id}}", + "host": [ + "{{Con_man_baseURL}}" + ], + "path": [ + "v1", + "connection-information" + ], + "query": [ + { + "key": "did", + "value": "MJys9zJZ1m2S6dFccFJQJs", + "disabled": true + }, + { + "key": "connectionId", + "value": "{{conn-id}}" + } + ] + }, + "description": "#### **Response :**\n\nThe positive response for this request comprises of following attributes :\n\n| **Key** | **Description** |\n| --- | --- |\n| `statusCode` | It return the http response code on the execution of this request. |\n| `message` | It returns the standard response with accordance to the action performed. |\n| `data` | It returns the requested information for the request. |\n| `data → records → issueCredentials` | It returns the array of issued credentials against connection id. |\n| `data → records → issueCredentials → id` | It returns the unique identifier for issued credentials record in table. |\n| `data → records → issueCredentials → credentialId` | It returns the unique identifier for issued credentials. |\n| `data → records → issueCredentials → state` | It returns the state of the issued credentials. |\n| `data → records → issueCredentials → principalDid` | It returns the principal DID. |\n| `data → records → issueCredentials → connectionId` | It returns the connection ID. |\n| `data → records → issueCredentials → createdDate` | It returns the created date. |\n| `data → records → issueCredentials → updatedDate` | It returns the updated date. |\n| `data → records → issueCredentials → expirationDate` | It returns the expiration date of issued credentials. |\n| `data → records → presenProofs` | It returns the list of proofs presentation. |\n| `data → records → presenProofs → id` | It returns the unique identifier for proofs record in table. |\n| `data → records → presenProofs → presentation_id` | It returns the unique identifier for proof presentation. |\n| `data → records → presenProofs → connectionId` | It returns the connection ID. |\n| `data → records → presenProofs → credential_def_id` | It returns the credential def id. |\n| `data → records → presenProofs → schemaId` | It returns the schema id. |\n| `data → records → presenProofs → their_did` | It returns the principal DID. |\n| `data → records → presenProofs → status` | It returns the status of proof presentation. |\n| `data → records → presenProofs → created_date` | It returns the created date. |\n| `data → records → presenProofs → updated_date` | It returns the updated date. |" + }, + "response": [ + { + "name": "Get-Connection-Information", + "originalRequest": { + "method": "GET", + "header": [], + "url": { + "raw": "{{Con_man_baseURL}}/v1/connection-information?did&connectionId={{conn-id}}", + "host": [ + "{{Con_man_baseURL}}" + ], + "path": [ + "v1", + "connection-information" + ], + "query": [ + { + "key": "did", + "value": null + }, + { + "key": "connectionId", + "value": "{{conn-id}}" + } + ] + } + }, + "status": "OK", + "code": 200, + "_postman_previewlanguage": "json", + "header": [ + { + "key": "date", + "value": "Wed, 15 Jun 2022 09:28:39 GMT" + }, + { + "key": "content-type", + "value": "application/json; charset=utf-8" + }, + { + "key": "content-length", + "value": "1320" + }, + { + "key": "x-powered-by", + "value": "Express" + }, + { + "key": "access-control-allow-origin", + "value": "*" + }, + { + "key": "etag", + "value": "W/\"528-EZqt2BArtofGni3d7fvQseXpEg8\"" + }, + { + "key": "strict-transport-security", + "value": "max-age=15724800; includeSubDomains" + } + ], + "cookie": [], + "body": "{\n \"statusCode\": 200,\n \"message\": \"Connection information fetch successfully\",\n \"data\": {\n \"records\": {\n \"issueCredentials\": [\n {\n \"id\": \"8bf0c9bf-c008-4324-b462-74ce2d0948ad\",\n \"credentialId\": \"1b7e0718-0eb0-4899-89b9-3fd04b95b148\",\n \"credDefId\": \"7KuDTpQh3GJ7Gp6kErpWvM:3:CL:322876:test_test_cred-def_140622-07\",\n \"state\": \"done\",\n \"principalDid\": \"XpaT7i3hYHHHSMrw1rY3EB\",\n \"connectionId\": \"3d14a056-8e4d-4336-9a48-541ce7ec7a80\",\n \"createdDate\": \"2022-06-15T09:25:59.053Z\",\n \"updatedDate\": \"2022-06-15T09:26:57.810Z\",\n \"expirationDate\": \"2022-07-15T09:25:59.052Z\"\n },\n {\n \"id\": \"04d6d4c9-0230-4441-a1de-9aec69ed2ff2\",\n \"credentialId\": \"12b0640c-99f7-4413-a27c-5b34b0ecfb0a\",\n \"credDefId\": \"7KuDTpQh3GJ7Gp6kErpWvM:3:CL:321508:princi_cred_def130622\",\n \"state\": \"done\",\n \"principalDid\": \"XpaT7i3hYHHHSMrw1rY3EB\",\n \"connectionId\": \"3d14a056-8e4d-4336-9a48-541ce7ec7a80\",\n \"createdDate\": \"2022-06-15T09:24:27.429Z\",\n \"updatedDate\": \"2022-06-15T09:24:56.976Z\",\n \"expirationDate\": \"2022-12-12T09:24:27.339Z\"\n }\n ],\n \"presenProofs\": [\n {\n \"id\": \"48b2b61d-a5d9-4c1d-a745-ed5cd018c5bd\",\n \"presentation_id\": \"07f27a99-4ff2-4d3c-82f9-0f49cd6d8203\",\n \"connectionId\": \"3d14a056-8e4d-4336-9a48-541ce7ec7a80\",\n \"credential_def_id\": \"\",\n \"schemaId\": \"7KuDTpQh3GJ7Gp6kErpWvM:2:test_test_schema140622-07:14.06.2207\",\n \"their_did\": \"\",\n \"status\": \"done\",\n \"created_date\": \"2022-06-15T09:27:07.302Z\",\n \"updated_date\": \"2022-06-15T09:27:26.804Z\"\n }\n ]\n }\n }\n}" + } + ] + } + ] +} \ No newline at end of file diff --git a/GAIAX-Complete-Flow-GX.postman_environment.json b/GAIAX-Complete-Flow-GX.postman_environment.json new file mode 100644 index 0000000000000000000000000000000000000000..ae6ccd5b2feb587ff6401ed2a324b52f13504de6 --- /dev/null +++ b/GAIAX-Complete-Flow-GX.postman_environment.json @@ -0,0 +1,163 @@ +{ + "id": "a78e1388-afe8-405d-8d5e-273f5dd3ad34", + "name": "GAIAX-Complete-Flow-GX", + "values": [ + { + "key": "email", + "value": "tagotejo@zetmail.com", + "type": "default", + "enabled": true + }, + { + "key": "password", + "value": "password@123", + "type": "default", + "enabled": true + }, + { + "key": "otp_received", + "value": "", + "type": "default", + "enabled": true + }, + { + "key": "otpId", + "value": "", + "type": "default", + "enabled": true + }, + { + "key": "part-id", + "value": "", + "type": "default", + "enabled": true + }, + { + "key": "conn-id", + "value": "", + "type": "default", + "enabled": true + }, + { + "key": "schema-id", + "value": "7KuDTpQh3GJ7Gp6kErpWvM:2:pizza_sandwich_230622:23.06.22", + "type": "default", + "enabled": true + }, + { + "key": "cred-def-id", + "value": "AXF7h6Jiz3At18H5Mgrcwh:3:CL:242632:KYC_Cred_Def", + "type": "default", + "enabled": true + }, + { + "key": "cred-offer-id", + "value": "", + "type": "default", + "enabled": true + }, + { + "key": "presentation-id", + "value": "", + "type": "default", + "enabled": true + }, + { + "key": "schema_attr", + "value": "[ \"fName\",\"lName\", \"gender\"]", + "type": "default", + "enabled": true + }, + { + "key": "email2", + "value": "", + "type": "default", + "enabled": true + }, + { + "key": "password2", + "value": "", + "type": "default", + "enabled": true + }, + { + "key": "pcm-vc-cred-def-id", + "value": "", + "type": "default", + "enabled": true + }, + { + "key": "oob-presentation-id", + "value": "", + "type": "any", + "enabled": true + }, + { + "key": "Con_man_baseURL", + "value": "https://gaiax.vereign.com/ocm/connection/", + "enabled": true + }, + { + "key": "Onboarding_man_baseURL", + "value": "http://3.111.77.38:3004", + "type": "default", + "enabled": true + }, + { + "key": "proof_man_baseURL", + "value": "https://gaiax.vereign.com/ocm/proof", + "enabled": true + }, + { + "key": "att_man_baseURL", + "value": "https://gaiax.vereign.com/ocm/attestation", + "type": "default", + "enabled": true + }, + { + "key": "pcm-schema-id", + "value": "", + "type": "any", + "enabled": true + }, + { + "key": "prpsl_conn-id", + "value": "", + "type": "any", + "enabled": true + }, + { + "key": "oob_type-presentation-id", + "value": "", + "type": "any", + "enabled": true + }, + { + "key": "princi_man_baseURL", + "value": "https://gaiax.vereign.com/ocm/principal", + "type": "default", + "enabled": true + }, + { + "key": "accptfa_conn-id", + "value": "", + "type": "any", + "enabled": true + }, + { + "key": "accptfa_credID", + "value": "", + "type": "any", + "enabled": true + }, + { + "key": "proofpfa_presentaionID", + "value": "", + "type": "any", + "enabled": true + } + ], + "_postman_variable_scope": "environment", + "_postman_exported_at": "2022-07-06T14:10:05.351Z", + "_postman_exported_using": "Postman/9.24.0" +} \ No newline at end of file diff --git a/Proof_Manager.postman_collection.json b/Proof_Manager.postman_collection.json new file mode 100644 index 0000000000000000000000000000000000000000..c5ce55deb99088e65939a000c67d6c4e1ed8b59f --- /dev/null +++ b/Proof_Manager.postman_collection.json @@ -0,0 +1,812 @@ +{ + "info": { + "_postman_id": "fc2cf79c-4e29-4101-a833-3fd2a9243c9e", + "name": "Proof Manager", + "description": "#### **Description** **:**\n\nThe Proof Manager is the collection of request which can be used to request proof presentation to connections and for out of band verifications. Also it returns all the proof presentation requests and their status.", + "schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json", + "_exporter_id": "17714957" + }, + "item": [ + { + "name": "Find-proof-presentation", + "request": { + "method": "GET", + "header": [], + "url": { + "raw": "{{proof_man_baseURL}}/v1/find-proof-presentation?pageSize=&page", + "host": [ + "{{proof_man_baseURL}}" + ], + "path": [ + "v1", + "find-proof-presentation" + ], + "query": [ + { + "key": "pageSize", + "value": "" + }, + { + "key": "page", + "value": null + } + ] + }, + "description": "#### **Description** **:**\n\nThis request fetches the all the proof presentation requests for the participant. The records can be filtered using provided query parameters.\n\n#### **Query Parameters :**\n\n| **Key** | **isRequired** | **Value** |\n| --- | --- | --- |\n| pageSize | no | `pageSize` <br>Should be provided in query parameter. It filters the list and sets the page size. |\n| page | no | `page` <br>Should be provided in query parameter. It filters the list and sets the page to land on. |\n\n#### **Response :**\n\nThe positive response for this request comprises of following attributes :\n\n| Key | Description |\n| --- | --- |\n| `statusCode` | It return the http response code on the execution of this request. |\n| `message` | It returns the standard response with accordance to the action performed. |\n| `data` | It returns the requested information for the request. |\n| `data → count` | It returns the total number of records available in the response. |\n| `data → records` | It returns the actual information that was requested in the form of JSON object array. |\n| `data → records → id` | It returns the id for the corresponding record in the database. |\n| `data → records → presentation_id` | It returns the presentation id for the corresponding record in the database. |\n| `data → records → connectionId` | It returns the connection id for the corresponding record in the database. |\n| `data → records → credential_def_id` | It returns the credential defination id for the corresponding record in the database. |\n| `data → records → schemaId` | It returns the corresponding unique id for schema on the ledger. |\n| `data → records → their_did` | It returns the their did for the corresponding record in the database. |\n| `data → records → status` | It returns the status for the corresponding record in the database. |\n| `data → records → created_date` | It returns the date the proof was created. |\n| `data → records → updated_date` | It returns the last proof updation date. |" + }, + "response": [ + { + "name": "Find-proof-presentation", + "originalRequest": { + "method": "GET", + "header": [], + "url": { + "raw": "{{proof_man_baseURL}}/v1/find-proof-presentation?pageSize=&page", + "host": [ + "{{proof_man_baseURL}}" + ], + "path": [ + "v1", + "find-proof-presentation" + ], + "query": [ + { + "key": "pageSize", + "value": "" + }, + { + "key": "page", + "value": null + } + ] + } + }, + "status": "OK", + "code": 200, + "_postman_previewlanguage": "json", + "header": [ + { + "key": "date", + "value": "Wed, 15 Jun 2022 09:28:21 GMT" + }, + { + "key": "content-type", + "value": "application/json; charset=utf-8" + }, + { + "key": "content-length", + "value": "3672" + }, + { + "key": "x-powered-by", + "value": "Express" + }, + { + "key": "access-control-allow-origin", + "value": "*" + }, + { + "key": "etag", + "value": "W/\"e58-XnEVMyMw0qXfuwsZQNiDlSRBjyQ\"" + }, + { + "key": "strict-transport-security", + "value": "max-age=15724800; includeSubDomains" + } + ], + "cookie": [], + "body": "{\n \"statusCode\": 200,\n \"message\": \"Proof presentation fetch successfully\",\n \"data\": {\n \"count\": 36,\n \"records\": [\n {\n \"id\": \"051bdceb-07df-419b-98f4-3c0dd92c4b68\",\n \"presentation_id\": \"a033c848-7d9c-448e-9336-8237882d4418\",\n \"connectionId\": \"\",\n \"credential_def_id\": \"\",\n \"schemaId\": \"7KuDTpQh3GJ7Gp6kErpWvM:2:test_test_schema130622:13.06.22\",\n \"their_did\": \"\",\n \"status\": \"request-sent\",\n \"created_date\": \"2022-06-13T13:56:09.864Z\",\n \"updated_date\": \"2022-06-13T13:56:09.864Z\"\n },\n {\n \"id\": \"095e6ea8-f580-4269-993a-8eef6758ba74\",\n \"presentation_id\": \"b0784df1-14a6-4f5d-b038-43c296bf715f\",\n \"connectionId\": \"9050c647-2931-4fdb-8f65-007c79f0bd33\",\n \"credential_def_id\": \"\",\n \"schemaId\": \"7KuDTpQh3GJ7Gp6kErpWvM:2:principal_schema_13-06-22:13.06.22\",\n \"their_did\": \"\",\n \"status\": \"done\",\n \"created_date\": \"2022-06-14T10:39:49.377Z\",\n \"updated_date\": \"2022-06-14T10:40:59.510Z\"\n },\n {\n \"id\": \"15107aeb-3a77-4b62-a3b6-0710cdc64225\",\n \"presentation_id\": \"bfbd97a8-efd9-4aa0-bdc4-b2fa1d342148\",\n \"connectionId\": \"\",\n \"credential_def_id\": \"\",\n \"schemaId\": \"7KuDTpQh3GJ7Gp6kErpWvM:2:test_test_schema130622:13.06.22\",\n \"their_did\": \"\",\n \"status\": \"done\",\n \"created_date\": \"2022-06-13T14:11:14.955Z\",\n \"updated_date\": \"2022-06-13T14:11:29.769Z\"\n },\n {\n \"id\": \"1b459690-849b-4f3d-b6a4-0316933590a4\",\n \"presentation_id\": \"bcda614b-bac8-41f7-9680-f95ff67f6382\",\n \"connectionId\": \"\",\n \"credential_def_id\": \"\",\n \"schemaId\": \"7KuDTpQh3GJ7Gp6kErpWvM:2:test_test_schema140622-07:14.06.2207\",\n \"their_did\": \"\",\n \"status\": \"done\",\n \"created_date\": \"2022-06-14T11:58:39.846Z\",\n \"updated_date\": \"2022-06-14T12:01:07.841Z\"\n },\n {\n \"id\": \"1f8df45a-0e53-461b-b90b-cfe40042e629\",\n \"presentation_id\": \"b00113d8-4aa7-4c6f-9bfa-90be89834355\",\n \"connectionId\": \"493f3aee-448d-4fc7-9698-e3d8aa6f862c\",\n \"credential_def_id\": \"\",\n \"schemaId\": \"7KuDTpQh3GJ7Gp6kErpWvM:2:principal_schema_06_09:1.0.4\",\n \"their_did\": \"\",\n \"status\": \"request-sent\",\n \"created_date\": \"2022-06-09T12:16:23.157Z\",\n \"updated_date\": \"2022-06-09T12:16:23.157Z\"\n },\n {\n \"id\": \"1fe91ebc-c086-43ef-8cac-ebb56f32e14d\",\n \"presentation_id\": \"f3c137d7-c945-4e1b-8c00-55c3dbc94cf4\",\n \"connectionId\": \"f4f39f80-3f9f-45b3-a6f9-e7eb3946353c\",\n \"credential_def_id\": \"\",\n \"schemaId\": \"7KuDTpQh3GJ7Gp6kErpWvM:2:principal_schema_13-06-22:13.06.22\",\n \"their_did\": \"\",\n \"status\": \"done\",\n \"created_date\": \"2022-06-14T10:20:54.732Z\",\n \"updated_date\": \"2022-06-14T10:21:06.573Z\"\n },\n {\n \"id\": \"2bf3377e-4d84-46c9-851a-98d8ab0244ec\",\n \"presentation_id\": \"0b3e2ec9-d5f7-4c34-8fba-d2b4120c0866\",\n \"connectionId\": \"9050c647-2931-4fdb-8f65-007c79f0bd33\",\n \"credential_def_id\": \"\",\n \"schemaId\": \"7KuDTpQh3GJ7Gp6kErpWvM:2:test_test_schema140622-04:14.06.2204\",\n \"their_did\": \"\",\n \"status\": \"request-sent\",\n \"created_date\": \"2022-06-14T10:36:51.670Z\",\n \"updated_date\": \"2022-06-14T10:36:51.670Z\"\n },\n {\n \"id\": \"2d725225-acfd-4aa3-96b0-2564aa2a71a3\",\n \"presentation_id\": \"0f65c623-f130-4895-8154-fb229b2484f8\",\n \"connectionId\": \"30df956f-e9f2-4421-9d5b-73d259106667\",\n \"credential_def_id\": \"\",\n \"schemaId\": \"7KuDTpQh3GJ7Gp6kErpWvM:2:principal_schema_13-06-22:13.06.22\",\n \"their_did\": \"\",\n \"status\": \"done\",\n \"created_date\": \"2022-06-13T13:54:43.312Z\",\n \"updated_date\": \"2022-06-13T13:55:13.701Z\"\n },\n {\n \"id\": \"377cbfc2-7055-48f1-8d69-ccb994e4dc0f\",\n \"presentation_id\": \"5732be89-cb54-40fc-81e6-7b9fe7676769\",\n \"connectionId\": \"9050c647-2931-4fdb-8f65-007c79f0bd33\",\n \"credential_def_id\": \"\",\n \"schemaId\": \"7KuDTpQh3GJ7Gp6kErpWvM:2:test_test_schema140622-06:14.06.2206\",\n \"their_did\": \"\",\n \"status\": \"request-sent\",\n \"created_date\": \"2022-06-14T10:46:12.010Z\",\n \"updated_date\": \"2022-06-14T10:46:12.010Z\"\n },\n {\n \"id\": \"3a2eae7d-1021-4ee8-8cfb-41ec7789d03e\",\n \"presentation_id\": \"62257855-af83-46dc-9f18-ea223db7e663\",\n \"connectionId\": \"\",\n \"credential_def_id\": \"\",\n \"schemaId\": \"7KuDTpQh3GJ7Gp6kErpWvM:2:test_test_schema140622-04:14.06.2204\",\n \"their_did\": \"\",\n \"status\": \"request-sent\",\n \"created_date\": \"2022-06-14T10:26:57.734Z\",\n \"updated_date\": \"2022-06-14T10:26:57.734Z\"\n }\n ]\n }\n}" + } + ] + }, + { + "name": "Send-presentation-request", + "event": [ + { + "listen": "test", + "script": { + "exec": [ + "const res = pm.response.json()\r", + "\r", + "if(res.statusCode == 201){\r", + " pm.environment.set(\"presentation-id\", res.data.presentationId);\r", + "}" + ], + "type": "text/javascript" + } + } + ], + "request": { + "method": "POST", + "header": [], + "body": { + "mode": "raw", + "raw": "{\r\n \"comment\": \"Tested participant\",\r\n \"attributes\": [\r\n {\r\n \"attribute_name\": \"{{array0}}\",\r\n \"value\": \"\",\r\n \"condition\": \"\"\r\n }\r\n ],\r\n \"schemaId\": \"\",\r\n \"credentialDefId\": \"{{cred-def-id}}\",\r\n \"connectionId\": \"{{conn-id}}\"\r\n}", + "options": { + "raw": { + "language": "json" + } + } + }, + "url": { + "raw": "{{proof_man_baseURL}}/v1/send-presentation-request", + "host": [ + "{{proof_man_baseURL}}" + ], + "path": [ + "v1", + "send-presentation-request" + ] + }, + "description": "#### **Description** **:**\n\nFrom a verifier to a prover, the presentation request message describes values that need to be revealed and predicates that need to be fulfilled.\n\n> In Hyperledger Indy, this message is required, because it forces the Issuer to make a cryptographic commitment to the set of fields in the final credential and thus prevents Issuers from inserting spurious data.\n\n#### **Body Parameters :**\n\n| **Key** | **isRequired** | **Value** |\n| --- | --- | --- |\n| connectionId | required | `\"`connectionId`\"` <br>should be provided in \"STRING\" format. It the peer to peer connection id for two aeries agent. |\n| credential_def_id | required | `\"cred_def_id\"` <br>key maps to the credential definition identifier of the credential with the current attribute. It should be provided in \"STRING\" format. Mandatory if schema_id is not provided. |\n| schemaId | required | `\"schema_name\"` <br>Should be valid existing schema and should be provided as \"STRING\". Mandatory if cred_def_id is not provided. |\n| attributes | required | `[{ \"`attribute_name`\" : \"attr_name\" }]` <br>should be provided JSON array. |\n\n \n\n#### **Response :**\n\nThe positive response for this request comprises of following attributes :\n\n| Key | Description |\n| --- | --- |\n| `statusCode` | It return the http response code on the execution of this request. |\n| `message` | It returns the standard response with accordance to the action performed. |\n| `data` | It returns the requested information for the request. |\n| `data → id` | It returns the id for the corresponding record in the database. |\n| `data → presentation_id` | It returns the presentation id for the corresponding record in the database. |\n| `data → connectionId` | It returns the connection id for the corresponding record in the database. |\n| `data → credential_def_id` | It returns the credential defination id for the corresponding record in the database. |\n| `data → schemaId` | It returns the corresponding unique id for schema on the ledger. |\n| `data → their_did` | It returns the their did for the corresponding record in the database. |\n| `data → status` | It returns the status for the corresponding record in the database. |\n| `data → created_date` | It returns the date the proof was created. |\n| `data → updated_date` | It returns the last proof updation date. |" + }, + "response": [ + { + "name": "Send-presentation-request", + "originalRequest": { + "method": "POST", + "header": [], + "body": { + "mode": "raw", + "raw": "{\r\n \"comment\": \"Tested participant\",\r\n \"attributes\": [\r\n {\r\n \"attribute_name\": \"{{array0}}\",\r\n \"value\": \"\",\r\n \"condition\": \"\"\r\n },\r\n {\r\n \"attribute_name\": \"{{array1}}\",\r\n \"value\": \"\",\r\n \"condition\": \"\"\r\n }\r\n ],\r\n \"schemaId\": \"{{schema-id}}\",\r\n \"credential_def_id\": \"\",\r\n \"connectionId\": \"{{conn-id}}\"\r\n}", + "options": { + "raw": { + "language": "json" + } + } + }, + "url": { + "raw": "{{proof_man_baseURL}}/v1/send-presentation-request", + "host": [ + "{{proof_man_baseURL}}" + ], + "path": [ + "v1", + "send-presentation-request" + ] + } + }, + "status": "Created", + "code": 201, + "_postman_previewlanguage": "json", + "header": [ + { + "key": "date", + "value": "Wed, 15 Jun 2022 09:27:07 GMT" + }, + { + "key": "content-type", + "value": "application/json; charset=utf-8" + }, + { + "key": "content-length", + "value": "454" + }, + { + "key": "x-powered-by", + "value": "Express" + }, + { + "key": "access-control-allow-origin", + "value": "*" + }, + { + "key": "etag", + "value": "W/\"1c6-E7pFwPlnxfbEOOkPcsFYYpmaWW8\"" + }, + { + "key": "strict-transport-security", + "value": "max-age=15724800; includeSubDomains" + } + ], + "cookie": [], + "body": "{\n \"statusCode\": 201,\n \"message\": \"Presentation request send successfully\",\n \"data\": {\n \"id\": \"48b2b61d-a5d9-4c1d-a745-ed5cd018c5bd\",\n \"presentation_id\": \"07f27a99-4ff2-4d3c-82f9-0f49cd6d8203\",\n \"connectionId\": \"3d14a056-8e4d-4336-9a48-541ce7ec7a80\",\n \"credential_def_id\": \"\",\n \"schemaId\": \"7KuDTpQh3GJ7Gp6kErpWvM:2:test_test_schema140622-07:14.06.2207\",\n \"their_did\": \"\",\n \"status\": \"request-sent\",\n \"created_date\": \"2022-06-15T09:27:07.302Z\",\n \"updated_date\": \"2022-06-15T09:27:07.302Z\"\n }\n}" + } + ] + }, + { + "name": "Check-Verification", + "event": [ + { + "listen": "test", + "script": { + "exec": [ + "const res = pm.response.json();\r", + "\r", + "if (res.statusCode == 200) {\r", + "\tif (res.data.isVerified == true && res.data.state == \"done\") {\r", + "\t\tlet template = `\r", + " <html>\r", + " <body> \r", + " <div style=\"text-align:center; color:green;\">\r", + " <h2>Proof verified successfully</h2>\r", + " </div>\r", + " </body>\r", + " </html>`;\r", + "\t\tpm.visualizer.set(template, res);\r", + "\t} else {\r", + "\t\tlet template = `\r", + " <html>\r", + " <body> \r", + " <div style=\"text-align:center; color:red;\">\r", + " <h2>Proof not presented yet.</h2>\r", + " </div>\r", + " </body>\r", + " </html>`;\r", + "\t\tpm.visualizer.set(template, res);\r", + "\t}\r", + "}" + ], + "type": "text/javascript" + } + } + ], + "protocolProfileBehavior": { + "disableBodyPruning": true + }, + "request": { + "method": "GET", + "header": [], + "body": { + "mode": "raw", + "raw": "", + "options": { + "raw": { + "language": "json" + } + } + }, + "url": { + "raw": "{{proof_man_baseURL}}/v1/find-by-presentation-id?presentationId={{presentation-id}}", + "host": [ + "{{proof_man_baseURL}}" + ], + "path": [ + "v1", + "find-by-presentation-id" + ], + "query": [ + { + "key": "presentationId", + "value": "{{presentation-id}}" + } + ] + }, + "description": "#### **Description** **:**\n\nThis request is used to fetch proof presentation request information for the presentation id provided in query parameter.\n\n> It also provides state of the proof presentation request.\n\n#### **Query Parameter** **:**\n\n| **Key** | **isRequired** | **Value** |\n| --- | --- | --- |\n| presentationId | required | `\"presentation_id\"` <br>presentation_id is fetched from the proof request. It provides the state of the request. |" + }, + "response": [ + { + "name": "Check-Verification", + "originalRequest": { + "method": "GET", + "header": [], + "body": { + "mode": "raw", + "raw": "", + "options": { + "raw": { + "language": "json" + } + } + }, + "url": { + "raw": "{{proof_man_baseURL}}/v1/find-by-presentation-id?presentation_id={{presentation-id}}", + "host": [ + "{{proof_man_baseURL}}" + ], + "path": [ + "v1", + "find-by-presentation-id" + ], + "query": [ + { + "key": "presentation_id", + "value": "{{presentation-id}}" + } + ] + } + }, + "status": "OK", + "code": 200, + "_postman_previewlanguage": "json", + "header": [ + { + "key": "date", + "value": "Wed, 15 Jun 2022 09:27:28 GMT" + }, + { + "key": "content-type", + "value": "application/json; charset=utf-8" + }, + { + "key": "content-length", + "value": "7040" + }, + { + "key": "x-powered-by", + "value": "Express" + }, + { + "key": "access-control-allow-origin", + "value": "*" + }, + { + "key": "etag", + "value": "W/\"1b80-KzH+KoJHRvjoAbq0eUEVKSnHnbc\"" + }, + { + "key": "strict-transport-security", + "value": "max-age=15724800; includeSubDomains" + } + ], + "cookie": [], + "body": "{\n \"statusCode\": 200,\n \"message\": \"Proof presentation fetch successfully\",\n \"data\": {\n \"_tags\": {\n \"threadId\": \"2037118f-1e63-4bd7-963b-c0e437f0ddd3\",\n \"state\": \"done\",\n \"connectionId\": \"3d14a056-8e4d-4336-9a48-541ce7ec7a80\"\n },\n \"metadata\": {},\n \"id\": \"07f27a99-4ff2-4d3c-82f9-0f49cd6d8203\",\n \"createdAt\": \"2022-06-15T09:27:07.209Z\",\n \"requestMessage\": {\n \"@type\": \"https://didcomm.org/present-proof/1.0/request-presentation\",\n \"@id\": \"2037118f-1e63-4bd7-963b-c0e437f0ddd3\",\n \"comment\": \"Tested participant\",\n \"request_presentations~attach\": [\n {\n \"@id\": \"libindy-request-presentation-0\",\n \"mime-type\": \"application/json\",\n \"data\": {\n \"base64\": \"eyJuYW1lIjoiUHJvb2YgUmVxdWVzdCIsInZlcnNpb24iOiJQcm9vZiBSZXF1ZXN0Iiwibm9uY2UiOiIxMTMzMjE0Mzg2ODU3IiwicmVxdWVzdGVkX2F0dHJpYnV0ZXMiOnsiYWRkaXRpb25hbFByb3AxIjp7Im5hbWVzIjpbImZOYW1lIiwibE5hbWUiXSwicmVzdHJpY3Rpb25zIjpbeyJzY2hlbWFfaWQiOiI3S3VEVHBRaDNHSjdHcDZrRXJwV3ZNOjI6dGVzdF90ZXN0X3NjaGVtYTE0MDYyMi0wNzoxNC4wNi4yMjA3In1dfX0sInJlcXVlc3RlZF9wcmVkaWNhdGVzIjp7fX0=\"\n }\n }\n ]\n },\n \"state\": \"done\",\n \"connectionId\": \"3d14a056-8e4d-4336-9a48-541ce7ec7a80\",\n \"threadId\": \"2037118f-1e63-4bd7-963b-c0e437f0ddd3\",\n \"isVerified\": true,\n \"presentationMessage\": {\n \"@type\": \"https://didcomm.org/present-proof/1.0/presentation\",\n \"@id\": \"7396b6fd-cde1-454f-b620-1014e363b723\",\n \"presentations~attach\": [\n {\n \"@id\": \"libindy-presentation-0\",\n \"mime-type\": \"application/json\",\n \"data\": {\n \"base64\": \"eyJwcm9vZiI6eyJwcm9vZnMiOlt7InByaW1hcnlfcHJvb2YiOnsiZXFfcHJvb2YiOnsicmV2ZWFsZWRfYXR0cnMiOnsiZm5hbWUiOiI0MjkzNDcxNDc0OTY3NTMwMzk1ODI1OTA0NDczMTAyOTQ2NDcxODMwODcxMjkzOTE0ODc5NjcyODk2ODQxNzI3MzY2NjYyMjUwNTA1MSIsImxuYW1lIjoiMjgxMzAxMTU0OTE5NzQ0MTU0MjQyND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iOlt7InNjaGVtYV9pZCI6IjdLdURUcFFoM0dKN0dwNmtFcnBXdk06Mjp0ZXN0X3Rlc3Rfc2NoZW1hMTQwNjIyLTA3OjE0LjA2LjIyMDciLCJjcmVkX2RlZl9pZCI6IjdLdURUcFFoM0dKN0dwNmtFcnBXdk06MzpDTDozMjI4NzY6dGVzdF90ZXN0X2NyZWQtZGVmXzE0MDYyMi0wNyIsInJldl9yZWdfaWQiOm51bGwsInRpbWVzdGFtcCI6bnVsbH1dfQ==\"\n }\n }\n ],\n \"~thread\": {\n \"thid\": \"2037118f-1e63-4bd7-963b-c0e437f0ddd3\"\n }\n }\n }\n}" + } + ] + }, + { + "name": "Out-of-band-proof-presentation", + "event": [ + { + "listen": "test", + "script": { + "exec": [ + "const res = pm.response.json();\r", + "\r", + "let template = `\r", + "<html>\r", + " <body> \r", + " <div>Scan the QR code below for out of band proof presentation</div>\r", + " <br>\r", + " <div style=\"text-align:center;\">\r", + " <img src='https://api.qrserver.com/v1/create-qr-code/?size=350x350&data=+{{data.presentationMessage}}'></img>\r", + " </div>\r", + " </body>\r", + "</html>`;\r", + "pm.visualizer.set(template, res);\r", + "\r", + "if(res.statusCode == 201){\r", + " pm.environment.set(\"oob-presentation-id\", res.data.presentationId);\r", + "}" + ], + "type": "text/javascript" + } + } + ], + "request": { + "method": "POST", + "header": [], + "body": { + "mode": "raw", + "raw": "{\r\n \"schemaName\":\"\",\r\n \"attributes\":[\"{{array0}}\",\"{{array1}}\"],\r\n \"options\": { \r\n \"type\":\"Aries1.0\",\r\n \"credentialDefinationName\":\"{{cred-def-id}}\"\r\n }\r\n}", + "options": { + "raw": { + "language": "json" + } + } + }, + "url": { + "raw": "{{proof_man_baseURL}}/v1/send-out-of-band-presentation-request", + "host": [ + "{{proof_man_baseURL}}" + ], + "path": [ + "v1", + "send-out-of-band-presentation-request" + ] + }, + "description": "#### **Description** **:**\n\nFrom a verifier to a prover, the out of band presentation request message describes values that need to be revealed and predicates that need to be fulfilled.\n\n> The Out-of-band protocol is used when you wish to engage with another agent and you don't have a DIDComm connection to use for the interaction.\n\n#### **Body Parameters :**\n\n| **Key** | **isRequired** | **Value** |\n| --- | --- | --- |\n| credential_def_id | required | `\"cred_def_id\"` <br>key maps to the credential definition identifier of the credential with the current attribute. It should be provided in \"STRING\" format. Mandatory if schema_id is not provided. |\n| schemaId | required | `\"schema_name\"` <br>Should be valid existing schema and should be provided as \"STRING\". Mandatory if cred_def_id is not provided. |\n| attributes | required | `[{ \"`attribute_name`\" : \"attr_name\" }]` <br>should be provided JSON array. |\n\n \n \n\n#### **Response :**\n\nThe positive response for this request comprises of following attributes :\n\n| Key | Description |\n| --- | --- |\n| `statusCode` | It return the http response code on the execution of this request. |\n| `message` | It returns the standard response with accordance to the action performed. |\n| `data` | It returns the requested information for the request. |\n| `data → id` | It returns the id for the corresponding record in the database. |\n| `data → presentation_id` | It returns the presentation id for the corresponding record in the database. |\n| `data → connectionId` | It returns the connection id for the corresponding record in the database. |\n| `data → credential_def_id` | It returns the credential defination id for the corresponding record in the database. |\n| `data → schemaId` | It returns the corresponding unique id for schema on the ledger. |\n| `data → their_did` | It returns the their did for the corresponding record in the database. |\n| `data → status` | It returns the status for the corresponding record in the database. |\n| `data → created_date` | It returns the date the presentation proof was created. |\n| `data → updated_date` | It returns the last presentation proof updation date. |\n| `data → presentationMessage` | It returns the presentation message for the corresponding record return by the mediator. |" + }, + "response": [ + { + "name": "Out-of-band-proof-presentation", + "originalRequest": { + "method": "POST", + "header": [], + "body": { + "mode": "raw", + "raw": "{\r\n \"comment\": \"Out of Band\",\r\n \"attributes\": [\r\n {\r\n \"attribute_name\": \"{{array0}}\",\r\n \"value\": \"\",\r\n \"condition\": \"\"\r\n },\r\n {\r\n \"attribute_name\": \"{{array1}}\",\r\n \"value\": \"\",\r\n \"condition\": \"\"\r\n }\r\n ],\r\n \"credential_def_id\": \"\",\r\n \"schemaId\": \"{{schema-id}}\"\r\n}", + "options": { + "raw": { + "language": "json" + } + } + }, + "url": { + "raw": "{{proof_man_baseURL}}/v1/send-out-of-band-presentation-request", + "host": [ + "{{proof_man_baseURL}}" + ], + "path": [ + "v1", + "send-out-of-band-presentation-request" + ] + } + }, + "status": "Created", + "code": 201, + "_postman_previewlanguage": "json", + "header": [ + { + "key": "date", + "value": "Wed, 15 Jun 2022 09:27:47 GMT" + }, + { + "key": "content-type", + "value": "application/json; charset=utf-8" + }, + { + "key": "content-length", + "value": "1570" + }, + { + "key": "x-powered-by", + "value": "Express" + }, + { + "key": "access-control-allow-origin", + "value": "*" + }, + { + "key": "etag", + "value": "W/\"622-ZaUMbvDBDS5ELn3jeaSKeedxEIQ\"" + }, + { + "key": "strict-transport-security", + "value": "max-age=15724800; includeSubDomains" + } + ], + "cookie": [], + "body": "{\n \"statusCode\": 201,\n \"message\": \"Presentation request send successfully\",\n \"data\": {\n \"id\": \"853d92b2-0260-41a7-a9af-3c026be8fe35\",\n \"presentation_id\": \"7fa03531-74f4-49a0-a94f-6feb30041c13\",\n \"connectionId\": \"\",\n \"credential_def_id\": \"\",\n \"schemaId\": \"7KuDTpQh3GJ7Gp6kErpWvM:2:test_test_schema140622-07:14.06.2207\",\n \"their_did\": \"\",\n \"status\": \"request-sent\",\n \"created_date\": \"2022-06-15T09:27:47.562Z\",\n \"updated_date\": \"2022-06-15T09:27:47.562Z\",\n \"presentationMessage\": \"https://gaiax.vereign.com:443/ocm/didcomm/?d_m=eyJAdHlwZSI6Imh0dHBzOi8vZGlkY29tbS5vcmcvcHJlc2VudC1wcm9vZi8xLjAvcmVxdWVzdC1wcmVzZW50YXRpb24iLCJAaWQiOiJlOGViZGQyZS0xOGM2LTRkY2EtOWFmMy05ZjZjNWYyNzk0YzYiLCJjb21tZW50IjoiT3V0IG9mIEJhbmQiLCJyZXF1ZXN0X3ByZXNlbnRhdGlvbnN-YXR0YWNoIjpbeyJAaWQiOiJsaWJpbmR5LXJlcXVlc3QtcHJlc2VudGF0aW9uLTAiLCJtaW1lLXR5cGUiOiJhcHBsaWNhdGlvbi9qc29uIiwiZGF0YSI6eyJiYXNlNjQiOiJleUp1WVcxbElqb2lUM1YwSUU5bUlFSmhibVFnVUhKdmIyWWdVbVZ4ZFdWemRDSXNJblpsY25OcGIyNGlPaUpQZFhRZ1QyWWdRbUZ1WkNCUWNtOXZaaUJTWlhGMVpYTjBJaXdpYm05dVkyVWlPaUk1TmprMk5qTTBNalkyTkRZMElpd2ljbVZ4ZFdWemRHVmtYMkYwZEhKcFluVjBaWE1pT25zaVlXUmthWFJwYjI1aGJGQnliM0F4SWpwN0ltNWhiV1Z6SWpwYkltWk9ZVzFsSWl3aWJFNWhiV1VpWFN3aWNtVnpkSEpwWTNScGIyNXpJanBiZXlKelkyaGxiV0ZmYVdRaU9pSTNTM1ZFVkhCUmFETkhTamRIY0RaclJYSndWM1pOT2pJNmRHVnpkRjkwWlhOMFgzTmphR1Z0WVRFME1EWXlNaTB3TnpveE5DNHdOaTR5TWpBM0luMWRmWDBzSW5KbGNYVmxjM1JsWkY5d2NtVmthV05oZEdWeklqcDdmWDA9In19XSwifnNlcnZpY2UiOnsicmVjaXBpZW50S2V5cyI6WyJCdWpMMnlmYTNYTkFXTHJ6dmVyc216OXpZdkpKTmRZaHBMa0tCNXpnM0JpTCJdLCJyb3V0aW5nS2V5cyI6W10sInNlcnZpY2VFbmRwb2ludCI6Imh0dHBzOi8vZ2FpYXgudmVyZWlnbi5jb206NDQzL29jbS9kaWRjb21tIn19\"\n }\n}" + } + ] + }, + { + "name": "Check-OOB-Verification", + "event": [ + { + "listen": "test", + "script": { + "exec": [ + "const res = pm.response.json();\r", + "\r", + "if (res.statusCode == 200) {\r", + "\tif (res.data.isVerified == true && res.data.state == \"done\") {\r", + "\t\tlet template = `\r", + " <html>\r", + " <body> \r", + " <div style=\"text-align:center; color:green;\">\r", + " <h2>Proof verified successfully</h2>\r", + " </div>\r", + " </body>\r", + " </html>`;\r", + "\t\tpm.visualizer.set(template, res);\r", + "\t} else {\r", + "\t\tlet template = `\r", + " <html>\r", + " <body> \r", + " <div style=\"text-align:center; color:red;\">\r", + " <h2>Proof not presented yet.</h2>\r", + " </div>\r", + " </body>\r", + " </html>`;\r", + "\t\tpm.visualizer.set(template, res);\r", + "\t}\r", + "}" + ], + "type": "text/javascript" + } + } + ], + "request": { + "method": "GET", + "header": [], + "url": { + "raw": "{{proof_man_baseURL}}/v1/find-by-presentation-id?presentationId={{oob-presentation-id}}", + "host": [ + "{{proof_man_baseURL}}" + ], + "path": [ + "v1", + "find-by-presentation-id" + ], + "query": [ + { + "key": "presentationId", + "value": "{{oob-presentation-id}}" + } + ] + }, + "description": "#### **Description** **:**\n\nThis request is used to fetch proof presentation request information for the presentation id provided in query parameter.\n\n> It also provides state of the proof presentation request.\n\n#### **Query Parameter** **:**\n\n| **Key** | **isRequired** | **Value** |\n| --- | --- | --- |\n| presentationId | required | `\"presentation_id\"` <br>presentation_id is fetched from the proof request. It provides the state of the request. |" + }, + "response": [ + { + "name": "Check-OOB-Verification", + "originalRequest": { + "method": "GET", + "header": [], + "url": { + "raw": "{{proof_man_baseURL}}/v1/find-by-presentation-id?presentation_id={{oob-presentation-id}}", + "host": [ + "{{proof_man_baseURL}}" + ], + "path": [ + "v1", + "find-by-presentation-id" + ], + "query": [ + { + "key": "presentation_id", + "value": "{{oob-presentation-id}}" + } + ] + } + }, + "status": "OK", + "code": 200, + "_postman_previewlanguage": "json", + "header": [ + { + "key": "date", + "value": "Wed, 15 Jun 2022 09:28:08 GMT" + }, + { + "key": "content-type", + "value": "application/json; charset=utf-8" + }, + { + "key": "content-length", + "value": "7384" + }, + { + "key": "x-powered-by", + "value": "Express" + }, + { + "key": "access-control-allow-origin", + "value": "*" + }, + { + "key": "etag", + "value": "W/\"1cd8-GlvND2hpBaJd1J2NNqI0bQBluQU\"" + }, + { + "key": "strict-transport-security", + "value": "max-age=15724800; includeSubDomains" + } + ], + "cookie": [], + "body": "{\n \"statusCode\": 200,\n \"message\": \"Proof presentation fetch successfully\",\n \"data\": {\n \"_tags\": {\n \"state\": \"done\",\n \"threadId\": \"e8ebdd2e-18c6-4dca-9af3-9f6c5f2794c6\"\n },\n \"metadata\": {},\n \"id\": \"7fa03531-74f4-49a0-a94f-6feb30041c13\",\n \"createdAt\": \"2022-06-15T09:27:47.528Z\",\n \"requestMessage\": {\n \"@type\": \"https://didcomm.org/present-proof/1.0/request-presentation\",\n \"@id\": \"e8ebdd2e-18c6-4dca-9af3-9f6c5f2794c6\",\n \"comment\": \"Out of Band\",\n \"request_presentations~attach\": [\n {\n \"@id\": \"libindy-request-presentation-0\",\n \"mime-type\": \"application/json\",\n \"data\": {\n \"base64\": \"eyJuYW1lIjoiT3V0IE9mIEJhbmQgUHJvb2YgUmVxdWVzdCIsInZlcnNpb24iOiJPdXQgT2YgQmFuZCBQcm9vZiBSZXF1ZXN0Iiwibm9uY2UiOiI5Njk2NjM0MjY2NDY0IiwicmVxdWVzdGVkX2F0dHJpYnV0ZXMiOnsiYWRkaXRpb25hbFByb3AxIjp7Im5hbWVzIjpbImZOYW1lIiwibE5hbWUiXSwicmVzdHJpY3Rpb25zIjpbeyJzY2hlbWFfaWQiOiI3S3VEVHBRaDNHSjdHcDZrRXJwV3ZNOjI6dGVzdF90ZXN0X3NjaGVtYTE0MDYyMi0wNzoxNC4wNi4yMjA3In1dfX0sInJlcXVlc3RlZF9wcmVkaWNhdGVzIjp7fX0=\"\n }\n }\n ],\n \"~service\": {\n \"recipientKeys\": [\n \"BujL2yfa3XNAWLrzversmz9zYvJJNdYhpLkKB5zg3BiL\"\n ],\n \"routingKeys\": [],\n \"serviceEndpoint\": \"https://gaiax.vereign.com:443/ocm/didcomm\"\n }\n },\n \"state\": \"done\",\n \"threadId\": \"e8ebdd2e-18c6-4dca-9af3-9f6c5f2794c6\",\n \"autoAcceptProof\": \"always\",\n \"isVerified\": true,\n \"presentationMessage\": {\n \"@type\": \"https://didcomm.org/present-proof/1.0/presentation\",\n \"@id\": \"8e2ce5d1-2f04-4edd-935e-75e6b5fed752\",\n \"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wNDQ3MzEwMjk0NjQ3MTgzMDg3MTI5MzkxNDg3OTY3Mjg5Njg0MTcyNzM2NjY2MjI1MDUwNTEifSwibE5hbWUiOnsicmF3IjoidGVzdF9sbmFtZV8zIiwiZW5jb2RlZCI6IjI4MTMwMTE1NDkxOTc0NDE1NDI0MjQwODA4MzEwNTQ3MzExOTMxNTA4ODcwNTc5MzE2ODY4ODg3NjIwNzM2MDEyNjcxNjU5MjkwODIzIn19fX0sInNlbGZfYXR0ZXN0ZWRfYXR0cnMiOnt9LCJ1bnJldmVhbGVkX2F0dHJzIjp7fSwicHJlZGljYXRlcyI6e319LCJpZGVudGlmaWVycyI6W3sic2NoZW1hX2lkIjoiN0t1RFRwUWgzR0o3R3A2a0VycFd2TToyOnRlc3RfdGVzdF9zY2hlbWExNDA2MjItMDc6MTQuMDYuMjIwNyIsImNyZWRfZGVmX2lkIjoiN0t1RFRwUWgzR0o3R3A2a0VycFd2TTozOkNMOjMyMjg3Njp0ZXN0X3Rlc3RfY3JlZC1kZWZfMTQwNjIyLTA3IiwicmV2X3JlZ19pZCI6bnVsbCwidGltZXN0YW1wIjpudWxsfV19\"\n }\n }\n ],\n \"~thread\": {\n \"thid\": \"e8ebdd2e-18c6-4dca-9af3-9f6c5f2794c6\"\n },\n \"~service\": {\n \"recipientKeys\": [\n \"evCcbASAsuvWGB4y2Z3tVeXKQLsgnF6MZ1NPWcPteiH\"\n ],\n \"routingKeys\": [\n \"3uq8CaLCKcP1Q2JW8KLyDQu9ZrHPbZw4Kix9oZqeY7Tf\"\n ],\n \"serviceEndpoint\": \"https://gaiax.vereign.com/mediator\"\n },\n \"~transport\": {\n \"return_route\": \"all\"\n }\n }\n }\n}" + } + ] + }, + { + "name": "Out-of-band-proof-for-type", + "event": [ + { + "listen": "test", + "script": { + "exec": [ + "const res = pm.response.json();\r", + "\r", + "let template = `\r", + "<html>\r", + " <body> \r", + " <div>Scan the QR code below for out of band proof presentation</div>\r", + " <br>\r", + " <div style=\"text-align:center;\">\r", + " <img src='https://api.qrserver.com/v1/create-qr-code/?size=350x350&data=+{{data.presentationMessage}}'></img>\r", + " </div>\r", + " </body>\r", + "</html>`;\r", + "pm.visualizer.set(template, res);\r", + "\r", + "if(res.statusCode == 201){\r", + " pm.environment.set(\"oob_type-presentation-id\", res.data.presentationId);\r", + "}" + ], + "type": "text/javascript" + } + } + ], + "request": { + "method": "POST", + "header": [ + { + "key": "accept", + "value": "*/*" + } + ], + "url": { + "raw": "{{proof_man_baseURL}}/v1/out-of-band-proof?type=principalMemberCredential", + "host": [ + "{{proof_man_baseURL}}" + ], + "path": [ + "v1", + "out-of-band-proof" + ], + "query": [ + { + "key": "type", + "value": "principalMemberCredential" + } + ] + } + }, + "response": [] + }, + { + "name": "Check-OOB-Type-Verification", + "event": [ + { + "listen": "test", + "script": { + "exec": [ + "const res = pm.response.json();\r", + "\r", + "if (res.statusCode == 200) {\r", + "\tif (res.data.isVerified == true && res.data.state == \"done\") {\r", + "\t\tlet template = `\r", + " <html>\r", + " <body> \r", + " <div style=\"text-align:center; color:green;\">\r", + " <h2>Proof verified successfully</h2>\r", + " </div>\r", + " </body>\r", + " </html>`;\r", + "\t\tpm.visualizer.set(template, res);\r", + "\t} else {\r", + "\t\tlet template = `\r", + " <html>\r", + " <body> \r", + " <div style=\"text-align:center; color:red;\">\r", + " <h2>Proof not presented yet.</h2>\r", + " </div>\r", + " </body>\r", + " </html>`;\r", + "\t\tpm.visualizer.set(template, res);\r", + "\t}\r", + "}" + ], + "type": "text/javascript" + } + } + ], + "request": { + "method": "GET", + "header": [], + "url": { + "raw": "{{proof_man_baseURL}}/v1/find-by-presentation-id?presentationId={{oob_type-presentation-id}}", + "host": [ + "{{proof_man_baseURL}}" + ], + "path": [ + "v1", + "find-by-presentation-id" + ], + "query": [ + { + "key": "presentationId", + "value": "{{oob_type-presentation-id}}" + } + ] + }, + "description": "#### **Description** **:**\n\nThis request is used to fetch proof presentation request information for the presentation id provided in query parameter.\n\n> It also provides state of the proof presentation request.\n\n#### **Query Parameter** **:**\n\n| **Key** | **isRequired** | **Value** |\n| --- | --- | --- |\n| presentationId | required | `\"presentation_id\"` <br>presentation_id is fetched from the proof request. It provides the state of the request. |" + }, + "response": [ + { + "name": "Check-OOB-Verification", + "originalRequest": { + "method": "GET", + "header": [], + "url": { + "raw": "{{proof_man_baseURL}}/v1/find-by-presentation-id?presentation_id={{oob-presentation-id}}", + "host": [ + "{{proof_man_baseURL}}" + ], + "path": [ + "v1", + "find-by-presentation-id" + ], + "query": [ + { + "key": "presentation_id", + "value": "{{oob-presentation-id}}" + } + ] + } + }, + "status": "OK", + "code": 200, + "_postman_previewlanguage": "json", + "header": [ + { + "key": "date", + "value": "Wed, 15 Jun 2022 09:28:08 GMT" + }, + { + "key": "content-type", + "value": "application/json; charset=utf-8" + }, + { + "key": "content-length", + "value": "7384" + }, + { + "key": "x-powered-by", + "value": "Express" + }, + { + "key": "access-control-allow-origin", + "value": "*" + }, + { + "key": "etag", + "value": "W/\"1cd8-GlvND2hpBaJd1J2NNqI0bQBluQU\"" + }, + { + "key": "strict-transport-security", + "value": "max-age=15724800; includeSubDomains" + } + ], + "cookie": [], + "body": "{\n \"statusCode\": 200,\n \"message\": \"Proof presentation fetch successfully\",\n \"data\": {\n \"_tags\": {\n \"state\": \"done\",\n \"threadId\": \"e8ebdd2e-18c6-4dca-9af3-9f6c5f2794c6\"\n },\n \"metadata\": {},\n \"id\": \"7fa03531-74f4-49a0-a94f-6feb30041c13\",\n \"createdAt\": \"2022-06-15T09:27:47.528Z\",\n \"requestMessage\": {\n \"@type\": \"https://didcomm.org/present-proof/1.0/request-presentation\",\n \"@id\": \"e8ebdd2e-18c6-4dca-9af3-9f6c5f2794c6\",\n \"comment\": \"Out of Band\",\n \"request_presentations~attach\": [\n {\n \"@id\": \"libindy-request-presentation-0\",\n \"mime-type\": \"application/json\",\n \"data\": {\n \"base64\": \"eyJuYW1lIjoiT3V0IE9mIEJhbmQgUHJvb2YgUmVxdWVzdCIsInZlcnNpb24iOiJPdXQgT2YgQmFuZCBQcm9vZiBSZXF1ZXN0Iiwibm9uY2UiOiI5Njk2NjM0MjY2NDY0IiwicmVxdWVzdGVkX2F0dHJpYnV0ZXMiOnsiYWRkaXRpb25hbFByb3AxIjp7Im5hbWVzIjpbImZOYW1lIiwibE5hbWUiXSwicmVzdHJpY3Rpb25zIjpbeyJzY2hlbWFfaWQiOiI3S3VEVHBRaDNHSjdHcDZrRXJwV3ZNOjI6dGVzdF90ZXN0X3NjaGVtYTE0MDYyMi0wNzoxNC4wNi4yMjA3In1dfX0sInJlcXVlc3RlZF9wcmVkaWNhdGVzIjp7fX0=\"\n }\n }\n ],\n \"~service\": {\n \"recipientKeys\": [\n \"BujL2yfa3XNAWLrzversmz9zYvJJNdYhpLkKB5zg3BiL\"\n ],\n \"routingKeys\": [],\n \"serviceEndpoint\": \"https://gaiax.vereign.com:443/ocm/didcomm\"\n }\n },\n \"state\": \"done\",\n \"threadId\": \"e8ebdd2e-18c6-4dca-9af3-9f6c5f2794c6\",\n \"autoAcceptProof\": \"always\",\n \"isVerified\": true,\n \"presentationMessage\": {\n \"@type\": \"https://didcomm.org/present-proof/1.0/presentation\",\n \"@id\": \"8e2ce5d1-2f04-4edd-935e-75e6b5fed752\",\n \"presentations~attach\": [\n {\n \"@id\": \"libindy-presentation-0\",\n \"mime-type\": \"application/json\",\n \"data\": {\n \"base64\": \"eyJwcm9vZiI6eyJwcm9vZnMiOlt7InByaW1hcnlfcHJvb2YiOnsiZXFfcHJvb2YiOnsicmV2ZWFsZWRfYXR0cnMiOnsiZm5hbWUiOiI0MjkzNDcxNDc0OTY3NTMwMzk1ODI1OTA0NDczMTAyOTQ2NDcxODMwODcxMjkzOTE0ODc5NjcyODk2ODQxNzI3MzY2NjYyMjUwNTA1MSIsImxuYW1lIjoiMjgxMzAxMTU0OTE5NzQ0MTU0MjQyNDA4MDgzMTA1NDczMTE5MzE1MDg4NzA1NzkzMTY4Njg4ODc2MjA3MzYwMTI2NzE2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2a0VycFd2TToyOnRlc3RfdGVzdF9zY2hlbWExNDA2MjItMDc6MTQuMDYuMjIwNyIsImNyZWRfZGVmX2lkIjoiN0t1RFRwUWgzR0o3R3A2a0VycFd2TTozOkNMOjMyMjg3Njp0ZXN0X3Rlc3RfY3JlZC1kZWZfMTQwNjIyLTA3IiwicmV2X3JlZ19pZCI6bnVsbCwidGltZXN0YW1wIjpudWxsfV19\"\n }\n }\n ],\n \"~thread\": {\n \"thid\": \"e8ebdd2e-18c6-4dca-9af3-9f6c5f2794c6\"\n },\n \"~service\": {\n \"recipientKeys\": [\n \"evCcbASAsuvWGB4y2Z3tVeXKQLsgnF6MZ1NPWcPteiH\"\n ],\n \"routingKeys\": [\n \"3uq8CaLCKcP1Q2JW8KLyDQu9ZrHPbZw4Kix9oZqeY7Tf\"\n ],\n \"serviceEndpoint\": \"https://gaiax.vereign.com/mediator\"\n },\n \"~transport\": {\n \"return_route\": \"all\"\n }\n }\n }\n}" + } + ] + }, + { + "name": "http://3.111.77.38:3007/v1/accept-presentation?presentation_id=5eceaa96-d08a-42a3-a083-98672ce55188", + "request": { + "method": "POST", + "header": [ + { + "key": "accept", + "value": "*/*" + } + ], + "url": { + "raw": "{{proof_man_baseURL}}/v1/accept-presentation?presentation_id=5eceaa96-d08a-42a3-a083-98672ce55188", + "host": [ + "{{proof_man_baseURL}}" + ], + "path": [ + "v1", + "accept-presentation" + ], + "query": [ + { + "key": "presentation_id", + "value": "5eceaa96-d08a-42a3-a083-98672ce55188" + } + ] + } + }, + "response": [] + }, + { + "name": "Get-agent-proofs-proposal", + "request": { + "method": "GET", + "header": [], + "url": { + "raw": "{{proof_man_baseURL}}/v1/agent-proofs?threadId=85054e0d-2c21-4711-88d0-0c66ad1959f5", + "host": [ + "{{proof_man_baseURL}}" + ], + "path": [ + "v1", + "agent-proofs" + ], + "query": [ + { + "key": "threadId", + "value": "85054e0d-2c21-4711-88d0-0c66ad1959f5" + } + ] + } + }, + "response": [] + } + ] +} \ No newline at end of file