{"collection":{"info":{"_postman_id":"c82829bb-6272-48e4-b31b-d6a9c9f66b2d","name":"PQM","schema":"https://schema.getpostman.com/json/collection/v2.1.0/collection.json","createdAt":"2023-10-19T10:37:37.000Z","updatedAt":"2023-10-25T10:27:20.000Z","lastUpdatedBy":"28207698","uid":"28207698-c82829bb-6272-48e4-b31b-d6a9c9f66b2d"},"item":[{"name":"http://localhost:8080/pqm-service/v1/_create","id":"1c9759cd-6945-4b26-986f-79d7b208db63","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n  \"requestInfo\": {\r\n    \"apiId\": \"string\",\r\n    \"ver\": \"string\",\r\n    \"ts\": 0,\r\n    \"action\": \"string\",\r\n    \"did\": \"string\",\r\n    \"key\": \"string\",\r\n    \"msgId\": \"string\",\r\n    \"requesterId\": \"string\",\r\n    \"authToken\": \"string\"\r\n  },\r\n  \"tests\": [\r\n      {\r\n    \"id\":\"3\",\r\n    \"tenantId\": \"pb.amritsar\",\r\n    \"plantCode\": \"FSTP_PLANT, WATER_TREATMENT_PLANT\",\r\n    \"processCode\": \"WATER_TREATMENT, FSTP\",\r\n    \"stageCode\": \"WT_FILTRATION, FST_DISINFECTION\",\r\n    \"materialCode\": \"WATER, SALT, ALUMINUM, CHLORINE, OXYGEN\",\r\n    \"wfStatus\":\"APPLIED\",\r\n    \"testType\":\"LAB\",\r\n    \"testCriteria\": [\r\n      {\r\n        \"criteriaCode\": \"PHGRT7\",\r\n        \"value\": 0,\r\n        \"isActive\": true\r\n      }\r\n    ],\r\n    \"isActive\": true,\r\n    \"documents\": [\r\n      {\r\n        \"id\": \"124\",\r\n        \"documentType\": \"string\",\r\n        \"fileStore\": \"string\",\r\n        \"documentUid\": \"string\",\r\n        \"additionalDetails\": {}\r\n      }\r\n    ],\r\n    \"additionalDetails\": {}\r\n  }],\r\n  \"workflow\": {\r\n    \"action\": \"APPLY\",\r\n    \"comment\": \"string\",\r\n    \"assignees\": [\r\n      \"string\"\r\n    ]\r\n  }\r\n}","options":{"raw":{"language":"json"}}},"url":{"raw":"http://localhost:8080/pqm-service/v1/_create","protocol":"http","host":["localhost"],"port":"8080","path":["pqm-service","v1","_create"]}},"response":[],"createdAt":"2023-10-19T10:37:38.000Z","updatedAt":"2023-10-19T10:37:38.000Z","uid":"28207698-1c9759cd-6945-4b26-986f-79d7b208db63"},{"name":"PQM BS Search","id":"648a4402-d03d-4f3b-8cab-4954d9363996","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n\t\"RequestInfo\": {\n    \"apiId\": \"Rainmaker\",\n    \"action\": \"\",\n    \"did\": 1,\n    \"key\": \"\",\n    \"msgId\": \"20170310130900|en_IN\",\n    \"requesterId\": \"\",\n    \"ts\": 1513579888683,\n    \"ver\": \".01\",\n    \"authToken\": \"3aa38cc8-74a4-4981-9947-f634f4b9ebc0\"\n  }\n}"},"url":{"raw":"http://localhost:8081/egov-workflow-v2/egov-wf/businessservice/_search?tenantId=pg.citya&businessServices=PQM","protocol":"http","host":["localhost"],"port":"8081","path":["egov-workflow-v2","egov-wf","businessservice","_search"],"query":[{"key":"tenantId","value":"pg.citya"},{"key":"businessServices","value":"PQM"}]}},"response":[],"createdAt":"2023-10-19T10:37:38.000Z","updatedAt":"2023-10-19T10:37:38.000Z","uid":"28207698-648a4402-d03d-4f3b-8cab-4954d9363996"},{"name":"http://localhost:8081/mdms-v2/v2/_create/PQM.TestStandard","id":"f44ca4a1-675e-4c13-ad95-033ce5dcc1e5","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n  \"RequestInfo\": {\n    \"apiId\": \"asset-services\",\n    \"ver\": null,\n    \"ts\": null,\n    \"action\": null,\n    \"did\": null,\n    \"key\": null,\n    \"msgId\": \"search with from and to values\",\n    \"authToken\": \"dfcca143-b5a6-4726-b5cd-c2c949cb0f2b\",\n    \"correlationId\": null,\n    \"userInfo\": {\n      \"id\": \"1\",\n      \"userName\": null,\n      \"uuid\":\"1\",\n      \"name\": null,\n      \"type\": null,\n      \"mobileNumber\": null,\n      \"emailId\": null,\n      \"roles\": null\n    }\n  },\n  \"Mdms\": {\n    \"tenantId\": \"pg\",\n    \"schemaCode\": \"PQM.TestStandard\",\n    // \"uniqueIdentifier\": \"PHGRT8\",\n    \"data\":  {\n        \"code\": \"PT1_WATER_TREATMENT_DISINFECTION_LB\",\n        \"plant\": \"PANJAB_WATER_TREATMENT_PLANT_0001\",\n        \"process\": \"WATER_FILTERING\",\n        \"stage\": \"WATER_FILTERING\",\n        \"material\": \"POTABLE_WATER\",\n        \"qualityCriteria\": \"PHEQ7\",\n        \"frequency\": \"7\",\n        \"sourceType\": \"LAB\",\n        \"effectiveFrom\": 1672531200,\n        \"effectiveTo\": \"\",\n        \"active\": true\n      },\n \n    \"isActive\": true\n  }\n}  ","options":{"raw":{"language":"json"}}},"url":{"raw":"http://localhost:8081/mdms-v2/v2/_create/PQM.TestStandard","protocol":"http","host":["localhost"],"port":"8081","path":["mdms-v2","v2","_create","PQM.TestStandard"]}},"response":[],"createdAt":"2023-10-19T10:37:38.000Z","updatedAt":"2023-10-19T10:37:38.000Z","uid":"28207698-f44ca4a1-675e-4c13-ad95-033ce5dcc1e5"},{"name":"TEST CREATE UNIFIED-DEV","id":"db59b614-ef11-4198-bb83-afcfcc43addb","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n    \"RequestInfo\": {\n        \"apiId\": \"string\",\n        \"ver\": \"string\",\n        \"ts\": 0,\n        \"action\": \"string\",\n        \"did\": \"string\",\n        \"key\": \"string\",\n        \"msgId\": \"string\",\n        \"requesterId\": \"string\",\n        \"authToken\": \"a6715f43-c30d-4138-8564-cf1f870ae216\",\n        \"userInfo\": {\n        \"id\": 749,\n        \"uuid\": \"94c7ca4c-9dd0-4b29-a07d-3560964a3c71\",\n        \"userName\": \"PLANTOPERATOR1\",\n        \"name\": \"PLANTOPERATOR1\",\n        \"mobileNumber\": \"9035169730\",\n        \"emailId\": null,\n        \"locale\": null,\n        \"type\": \"EMPLOYEE\",\n        \"roles\": [\n            {\n                \"name\": \"Employee\",\n                \"code\": \"EMPLOYEE\",\n                \"tenantId\": \"pg.citya\"\n            },\n            {\n                \"name\": \"PQM TP OPERATOR\",\n                \"code\": \"PQM_TP_OPERATOR\",\n                \"tenantId\": \"pg.citya\"\n            }\n        ],\n        \"active\": true,\n        \"tenantId\": \"pg.citya\",\n        \"permanentCity\": null\n    }\n    },\n    \"tests\": [\n        {\n            \"tenantId\": \"pg.citya\",\n            \"plantCode\": \"PURI_FSTP\",\n            \"processCode\": \"WATER_FILTERING\",\n            \"stageCode\": \"COAGULATION\",\n            \"materialCode\": \"POTABLE_WATER\",\n            \"testCriteria\": [\n                {\n                    \"criteriaCode\": \"ARSENIC_NEQ_75\",\n                    \"resultValue\": 63,\n                    \"resultStatus\": \"PENDING\",\n                    \"isActive\": true\n                }\n            ],\n            \"testType\":\"LAB\",\n            \"scheduledDate\": 1698237626000,\n            \"isActive\": true,\n            \"documents\": [\n                {\n                    \"id\": \"string\",\n                    \"documentType\": \"string\",\n                    \"fileStore\": \"string\",\n                    \"documentUid\": \"string\",\n                    \"additionalDetails\": {}\n                }\n            ],\n            \"additionalDetails\": {},\n            \"workflow\": null\n        }\n    ]\n}"},"url":{"raw":"{{uni}}/pqm-service/v1/_createWithWorkflow","host":["{{uni}}"],"path":["pqm-service","v1","_createWithWorkflow"]}},"response":[],"createdAt":"2023-10-19T10:37:38.000Z","updatedAt":"2023-10-19T10:37:38.000Z","uid":"28207698-db59b614-ef11-4198-bb83-afcfcc43addb"},{"name":"TEST UPDATE 2nd STEP WF ","id":"8d9ed98c-6b0a-4e27-b376-44ca9b4f442f","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n    \"RequestInfo\": {\n        \"apiId\": \"string\",\n        \"ver\": \"string\",\n        \"ts\": 0,\n        \"action\": \"string\",\n        \"did\": \"string\",\n        \"key\": \"string\",\n        \"msgId\": \"string\",\n        \"requesterId\": \"string\",\n        \"authToken\": \"a6715f43-c30d-4138-8564-cf1f870ae216\",\n        \"userInfo\": {\n        \"id\": 749,\n        \"uuid\": \"94c7ca4c-9dd0-4b29-a07d-3560964a3c71\",\n        \"userName\": \"PLANTOPERATOR1\",\n        \"name\": \"PLANTOPERATOR1\",\n        \"mobileNumber\": \"9035169730\",\n        \"emailId\": null,\n        \"locale\": null,\n        \"type\": \"EMPLOYEE\",\n        \"roles\": [\n            {\n                \"name\": \"Employee\",\n                \"code\": \"EMPLOYEE\",\n                \"tenantId\": \"pg.citya\"\n            },\n            {\n                \"name\": \"PQM TP OPERATOR\",\n                \"code\": \"PQM_TP_OPERATOR\",\n                \"tenantId\": \"pg.citya\"\n            }\n        ],\n        \"active\": true,\n        \"tenantId\": \"pg.citya\",\n        \"permanentCity\": null\n    }\n    },\n    \"tests\":[\n        {\n            \"id\": \"1013-PQM-2023-10-19-000320\",\n            \"tenantId\": \"pg.citya\",\n            \"plantCode\": \"PURI_FSTP\",\n            \"processCode\": \"WATER_FILTERING\",\n            \"stageCode\": \"COAGULATION\",\n            \"materialCode\": \"POTABLE_WATER\",\n            \"deviceCode\": null,\n            \"testCriteria\": [\n                {\n                    \"id\": \"2ded9fa9-857d-4cf8-9fb8-e64c0d54803d\",\n                    \"testId\": \"1013-PQM-2023-10-19-000320\",\n                    \"criteriaCode\": \"ARSENIC_NEQ_75\",\n                    \"resultValue\": 63,\n                    \"allowedDeviation\": null,\n                    \"resultStatus\": \"PENDING\",\n                    \"isActive\": true,\n                    \"auditDetails\": {\n                        \"createdBy\": \"60cf0229-3334-49bd-a83b-7354080ef2fc\",\n                        \"lastModifiedBy\": \"60cf0229-3334-49bd-a83b-7354080ef2fc\",\n                        \"createdTime\": 1697709700892,\n                        \"lastModifiedTime\": 1697709700892\n                    }\n                }\n            ],\n            \"status\": \"PENDING\",\n            \"wfStatus\": \"SCHEDULED\",\n            \"testType\": \"LAB\",\n            \"scheduledDate\": 1698237626000,\n            \"isActive\": true,\n            \"documents\": [\n                {\n                    \"id\": \"474e66e0-9c9c-4b2b-acf3-22f71ab16cb3\",\n                    \"testId\": \"1013-PQM-2023-10-19-000320\",\n                    \"documentType\": \"string\",\n                    \"documentUid\": \"string\",\n                    \"documentUri\": null,\n                    \"additionalDetails\": {},\n                    \"tenantId\": null,\n                    \"fileStoreId\": null,\n                    \"isActive\": false,\n                    \"auditDetails\": null\n                }\n            ],\n            \"additionalDetails\": {},\n            \"auditDetails\": {\n                \"createdBy\": \"60cf0229-3334-49bd-a83b-7354080ef2fc\",\n                \"lastModifiedBy\": \"60cf0229-3334-49bd-a83b-7354080ef2fc\",\n                \"createdTime\": 1697709700892,\n                \"lastModifiedTime\": 1697709700892\n            },\n            \"workflow\": {\n                \"action\": \"SUBMIT_SAMPLE\",\n                \"assignes\": null,\n                \"comments\": null,\n                \"verificationDocuments\": null,\n                \"rating\": null\n            }\n        }\n    ]\n}"},"url":{"raw":"{{uni}}/pqm-service/v1/_update","host":["{{uni}}"],"path":["pqm-service","v1","_update"]}},"response":[],"createdAt":"2023-10-19T10:37:38.000Z","updatedAt":"2023-10-19T10:37:38.000Z","uid":"28207698-8d9ed98c-6b0a-4e27-b376-44ca9b4f442f"},{"name":"TEST UPDATE (last step WF)","id":"4f69c331-c06b-413b-b4fe-c212497c44c5","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n    \"RequestInfo\": {\n        \"apiId\": \"string\",\n        \"ver\": \"string\",\n        \"ts\": 0,\n        \"action\": \"string\",\n        \"did\": \"string\",\n        \"key\": \"string\",\n        \"msgId\": \"string\",\n        \"requesterId\": \"string\",\n        \"authToken\": \"a6715f43-c30d-4138-8564-cf1f870ae216\",\n        \"userInfo\": {\n        \"id\": 749,\n        \"uuid\": \"94c7ca4c-9dd0-4b29-a07d-3560964a3c71\",\n        \"userName\": \"PLANTOPERATOR1\",\n        \"name\": \"PLANTOPERATOR1\",\n        \"mobileNumber\": \"9035169730\",\n        \"emailId\": null,\n        \"locale\": null,\n        \"type\": \"EMPLOYEE\",\n        \"roles\": [\n            {\n                \"name\": \"Employee\",\n                \"code\": \"EMPLOYEE\",\n                \"tenantId\": \"pg.citya\"\n            },\n            {\n                \"name\": \"PQM TP OPERATOR\",\n                \"code\": \"PQM_TP_OPERATOR\",\n                \"tenantId\": \"pg.citya\"\n            }\n        ],\n        \"active\": true,\n        \"tenantId\": \"pg.citya\",\n        \"permanentCity\": null\n    }\n    },\n    \"tests\": [\n     {\n            \"id\": \"1013-PQM-2023-10-19-000320\",\n            \"tenantId\": \"pg.citya\",\n            \"plantCode\": \"PURI_FSTP\",\n            \"processCode\": \"WATER_FILTERING\",\n            \"stageCode\": \"COAGULATION\",\n            \"materialCode\": \"POTABLE_WATER\",\n            \"deviceCode\": null,\n            \"testCriteria\": [\n                {\n                    \"id\": \"2ded9fa9-857d-4cf8-9fb8-e64c0d54803d\",\n                    \"testId\": \"1013-PQM-2023-10-19-000320\",\n                    \"criteriaCode\": \"ARSENIC_NEQ_75\",\n                    \"resultValue\": 70,\n                    \"allowedDeviation\": null,\n                    \"resultStatus\": \"PENDING\",\n                    \"isActive\": true,\n                    \"auditDetails\": {\n                        \"createdBy\": \"60cf0229-3334-49bd-a83b-7354080ef2fc\",\n                        \"lastModifiedBy\": \"60cf0229-3334-49bd-a83b-7354080ef2fc\",\n                        \"createdTime\": 1697709700892,\n                        \"lastModifiedTime\": 1697710305405\n                    }\n                }\n            ],\n            \"status\": \"PENDING\",\n            \"wfStatus\": \"PENDINGRESULTS\",\n            \"testType\": \"LAB\",\n            \"scheduledDate\": 1698237626000,\n            \"isActive\": true,\n            \"documents\": [\n                {\n                    \"id\": \"8f04cc1c-d6ec-44b9-b162-e0b2a86dc94f\",\n                    \"testId\": \"1013-PQM-2023-10-19-000320\",\n                    \"documentType\": \"string\",\n                    \"documentUid\": \"string\",\n                    \"documentUri\": null,\n                    \"additionalDetails\": {},\n                    \"tenantId\": null,\n                    \"fileStoreId\": null,\n                    \"isActive\": false,\n                    \"auditDetails\": null\n                }\n            ],\n            \"additionalDetails\": {},\n            \"auditDetails\": {\n                \"createdBy\": \"60cf0229-3334-49bd-a83b-7354080ef2fc\",\n                \"lastModifiedBy\": \"60cf0229-3334-49bd-a83b-7354080ef2fc\",\n                \"createdTime\": 1697709700892,\n                \"lastModifiedTime\": 1697710305405\n            },\n            \"workflow\": {\n                \"action\": \"UPDATE_RESULT\",\n                \"assignes\": null,\n                \"comments\": null,\n                \"verificationDocuments\": null,\n                \"rating\": null\n            }\n        }\n    ]\n}"},"url":{"raw":"{{uni}}/pqm-service/v1/_update","host":["{{uni}}"],"path":["pqm-service","v1","_update"]}},"response":[],"createdAt":"2023-10-19T10:37:38.000Z","updatedAt":"2023-10-19T10:37:38.000Z","uid":"28207698-4f69c331-c06b-413b-b4fe-c212497c44c5"},{"name":"SEARCH API UNIFIED-DEV","id":"a370ad08-1cc2-4578-90f1-9ef7048cc7bb","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n    \"testSearchCriteria\": {\n        \"ids\": [\n            \"1013-PQM-2023-10-19-000320\"\n        ],\n        \"plantCodes\":[\"PURI_FSTP\"]\n    },\n    \"pagination\": {},\n    \"RequestInfo\": {\n        \"apiId\": \"Rainmaker\",\n        \"authToken\": \"a6715f43-c30d-4138-8564-cf1f870ae216\",\n        \"userInfo\": {\n            \"id\": 718,\n            \"uuid\": \"f207b8c0-c213-4bc1-9f6f-c2d2c4672dda\",\n            \"userName\": \"PQMADMIN\",\n            \"name\": \"PQMADMIN\",\n            \"mobileNumber\": \"9035169728\",\n            \"emailId\": null,\n            \"locale\": null,\n            \"type\": \"EMPLOYEE\",\n            \"roles\": [\n                {\n                    \"name\": \"PQM Admin\",\n                    \"code\": \"PQM_ADMIN\",\n                    \"tenantId\": \"pg.citya\"\n                }\n            ],\n            \"active\": true,\n            \"tenantId\": \"pg.citya\",\n            \"permanentCity\": null\n        },\n        \"msgId\": \"1696316906982|en_IN\",\n        \"plainAccessRequest\": {}\n    }\n}"},"url":{"raw":"https://unified-dev.digit.org/pqm-service/v1/_search","protocol":"https","host":["unified-dev","digit","org"],"path":["pqm-service","v1","_search"]}},"response":[],"createdAt":"2023-10-19T10:37:38.000Z","updatedAt":"2023-10-19T10:37:38.000Z","uid":"28207698-a370ad08-1cc2-4578-90f1-9ef7048cc7bb"},{"name":"TEST ADHOC CREATE","id":"22df0f86-a91f-4934-911b-b557943a6672","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n    \"RequestInfo\": {\n        \"apiId\": \"string\",\n        \"ver\": \"string\",\n        \"ts\": 0,\n        \"action\": \"string\",\n        \"did\": \"string\",\n        \"key\": \"string\",\n        \"msgId\": \"string\",\n        \"requesterId\": \"string\",\n        \"authToken\": \"a6715f43-c30d-4138-8564-cf1f870ae216\",\n        \"userInfo\": {\n            \"id\": 749,\n            \"uuid\": \"94c7ca4c-9dd0-4b29-a07d-3560964a3c71\",\n            \"userName\": \"PLANTOPERATOR1\",\n            \"name\": \"PLANTOPERATOR1\",\n            \"mobileNumber\": \"9035169730\",\n            \"emailId\": null,\n            \"locale\": null,\n            \"type\": \"EMPLOYEE\",\n            \"roles\": [\n                {\n                    \"name\": \"Employee\",\n                    \"code\": \"EMPLOYEE\",\n                    \"tenantId\": \"pg.citya\"\n                },\n                {\n                    \"name\": \"PQM TP OPERATOR\",\n                    \"code\": \"PQM_TP_OPERATOR\",\n                    \"tenantId\": \"pg.citya\"\n                }\n            ],\n            \"active\": true,\n            \"tenantId\": \"pg.citya\",\n            \"permanentCity\": null\n        }\n    },\n    \"tests\": [\n        {\n            \"tenantId\": \"pg.citya\",\n            \"plantCode\": \"PURI_FSTP\",\n            \"processCode\": \"WATER_FILTERING\",\n            \"stageCode\": \"COAGULATION\",\n            \"materialCode\": \"POTABLE_WATER\",\n            \"testCriteria\": [\n                {\n                    \"criteriaCode\": \"ARSENIC_LSTOREQ_75\",\n                    \"resultValue\": 80,\n                    \"isActive\": true\n                }\n            ],\n            \"testType\":\"LAB\",\n            \"scheduledDate\":1698237626000,\n            \"isActive\": true,\n            \"documents\": [\n                {\n                    \"id\": \"string\",\n                    \"documentType\": \"string\",\n                    \"fileStore\": \"string\",\n                    \"documentUid\": \"string\",\n                    \"additionalDetails\": {}\n                }\n            ],\n            \"additionalDetails\": {},\n            \"workflow\": null\n        }\n    ]\n}"},"url":{"raw":"{{wf-local}}/pqm-service/v1/_create","host":["{{wf-local}}"],"path":["pqm-service","v1","_create"]}},"response":[],"createdAt":"2023-10-19T10:37:38.000Z","updatedAt":"2023-10-19T10:37:38.000Z","uid":"28207698-22df0f86-a91f-4934-911b-b557943a6672"}]}}