Commit 617c68a3 authored by John Red Medrano's avatar John Red Medrano

update postman collection

parent 4a4e7be9
{
"info": {
"_postman_id": "2bf303e7-1321-4d01-bc03-3f94211d4712",
"_postman_id": "733e6f05-1f26-4ab8-bcfb-a379c0263a73",
"name": "RMSv2 copy",
"schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json"
},
......@@ -16,6 +16,10 @@
"request": {
"method": "GET",
"header": [],
"body": {
"mode": "raw",
"raw": ""
},
"url": {
"raw": "{{baseurl}}/master/companies/",
"host": [
......@@ -30,13 +34,88 @@
},
"response": []
},
{
"name": "Upload Attachment",
"request": {
"method": "POST",
"header": [],
"body": {
"mode": "formdata",
"formdata": [
{
"key": "url",
"type": "file",
"src": ""
},
{
"key": "url",
"type": "file",
"src": ""
}
]
},
"url": {
"raw": "{{baseurl}}/master/attachments/",
"host": [
"{{baseurl}}"
],
"path": [
"master",
"attachments",
""
]
}
},
"response": []
},
{
"name": "Upload Attachment Copy",
"protocolProfileBehavior": {
"disableBodyPruning": true
},
"request": {
"method": "GET",
"header": [],
"body": {
"mode": "formdata",
"formdata": [
{
"key": "url",
"type": "file",
"src": ""
},
{
"key": "url",
"type": "file",
"src": ""
}
]
},
"url": {
"raw": "{{baseurl}}/master/attachments/",
"host": [
"{{baseurl}}"
],
"path": [
"master",
"attachments",
""
]
}
},
"response": []
},
{
"name": "Department Listing",
"request": {
"method": "GET",
"header": [],
"body": {
"mode": "raw",
"raw": ""
},
"url": {
"raw": "{{baseurl}}/master/departments/?company=COMPANY-20190917-0000001",
"raw": "{{baseurl}}/master/departments/",
"host": [
"{{baseurl}}"
],
......@@ -44,12 +123,6 @@
"master",
"departments",
""
],
"query": [
{
"key": "company",
"value": "COMPANY-20190917-0000001"
}
]
}
},
......@@ -60,6 +133,10 @@
"request": {
"method": "GET",
"header": [],
"body": {
"mode": "raw",
"raw": ""
},
"url": {
"raw": "{{baseurl}}/master/user-types/",
"host": [
......@@ -79,6 +156,10 @@
"request": {
"method": "GET",
"header": [],
"body": {
"mode": "raw",
"raw": ""
},
"url": {
"raw": "{{baseurl}}/master/users/",
"host": [
......@@ -94,7 +175,6 @@
"response": []
}
],
"protocolProfileBehavior": {},
"_postman_isSubFolder": true
},
{
......@@ -108,6 +188,10 @@
"request": {
"method": "GET",
"header": [],
"body": {
"mode": "raw",
"raw": ""
},
"url": {
"raw": "{{baseurl}}/management/applications/",
"host": [
......@@ -127,6 +211,10 @@
"request": {
"method": "GET",
"header": [],
"body": {
"mode": "raw",
"raw": ""
},
"url": {
"raw": "{{baseurl}}/management/applications/APP-20190917-0000001/",
"host": [
......@@ -189,14 +277,14 @@
"raw": "{\n\t\"name\": \"rms2\"\n}"
},
"url": {
"raw": "{{baseurl}}/management/applications/APP-20190917-0000001/",
"raw": "{{baseurl}}/management/applications/APP-20190925-0000004/",
"host": [
"{{baseurl}}"
],
"path": [
"management",
"applications",
"APP-20190917-0000001",
"APP-20190925-0000004",
""
]
}
......@@ -235,7 +323,6 @@
"response": []
}
],
"protocolProfileBehavior": {},
"_postman_isSubFolder": true
},
{
......@@ -246,6 +333,10 @@
"request": {
"method": "GET",
"header": [],
"body": {
"mode": "raw",
"raw": ""
},
"url": {
"raw": "{{baseurl}}/management/companies/",
"host": [
......@@ -265,6 +356,10 @@
"request": {
"method": "GET",
"header": [],
"body": {
"mode": "raw",
"raw": ""
},
"url": {
"raw": "{{baseurl}}/management/companies/COMPANY-20190909-0000001/",
"host": [
......@@ -373,7 +468,6 @@
"response": []
}
],
"protocolProfileBehavior": {},
"_postman_isSubFolder": true
},
{
......@@ -384,6 +478,10 @@
"request": {
"method": "GET",
"header": [],
"body": {
"mode": "raw",
"raw": ""
},
"url": {
"raw": "{{baseurl}}/management/departments/",
"host": [
......@@ -403,6 +501,10 @@
"request": {
"method": "GET",
"header": [],
"body": {
"mode": "raw",
"raw": ""
},
"url": {
"raw": "{{baseurl}}/management/departments/DEPARTMENT-20190919-0000001/",
"host": [
......@@ -511,7 +613,6 @@
"response": []
}
],
"protocolProfileBehavior": {},
"_postman_isSubFolder": true
},
{
......@@ -522,6 +623,10 @@
"request": {
"method": "GET",
"header": [],
"body": {
"mode": "raw",
"raw": ""
},
"url": {
"raw": "{{baseurl}}/management/modules/?page=2",
"host": [
......@@ -547,6 +652,10 @@
"request": {
"method": "GET",
"header": [],
"body": {
"mode": "raw",
"raw": ""
},
"url": {
"raw": "{{baseurl}}/management/modules/MODULE-20190919-0000007/",
"host": [
......@@ -659,7 +768,6 @@
"response": []
}
],
"protocolProfileBehavior": {},
"_postman_isSubFolder": true
},
{
......@@ -670,6 +778,10 @@
"request": {
"method": "GET",
"header": [],
"body": {
"mode": "raw",
"raw": ""
},
"url": {
"raw": "{{baseurl}}/management/users/",
"host": [
......@@ -689,6 +801,10 @@
"request": {
"method": "GET",
"header": [],
"body": {
"mode": "raw",
"raw": ""
},
"url": {
"raw": "{{baseurl}}/management/users/USER-20190919-0000028/",
"host": [
......@@ -891,11 +1007,9 @@
"response": []
}
],
"protocolProfileBehavior": {},
"_postman_isSubFolder": true
}
],
"protocolProfileBehavior": {},
"_postman_isSubFolder": true
},
{
......@@ -906,6 +1020,10 @@
"request": {
"method": "GET",
"header": [],
"body": {
"mode": "raw",
"raw": ""
},
"url": {
"raw": "{{baseurl}}/auth/current-user/",
"host": [
......@@ -1070,49 +1188,43 @@
"response": []
}
],
"protocolProfileBehavior": {},
"_postman_isSubFolder": true
}
],
"protocolProfileBehavior": {}
]
},
{
"name": "Change Request",
"item": [
{
"name": "CR Forms",
"name": "CR Templates",
"item": [
{
"name": "CR Form Header",
"name": "CR Template Header",
"item": [
{
"name": "Create Form Header",
"name": "Template Header Post",
"request": {
"method": "POST",
"header": [
{
"key": "Content-Type",
"name": "Content-Type",
"type": "text",
"value": "application/json"
"value": "application/json",
"type": "text"
}
],
"body": {
"mode": "raw",
"raw": "{\r\n \"requested_to_template_name\": \"Security Project\",\r\n \"requested_to_objective\": \"Sample Objective\",\r\n \"requested_to_target_date\": \"2019-09-03T13:59:29.694560\",\r\n \"requested_to_priority\": \"Normal\",\r\n \"description\": \"Lorem Ipsum\",\r\n \"company_desc\": \"Oneberry\",\r\n \"status\": \"Pending\",\r\n \"requested_to_template_id\": \"JTC\",\r\n \"department_desc\": \"Oneberry Superuser\",\r\n \"requested_desc\": \"Super User\",\r\n \"requested_to_company\": \"COMPANY-20190909-0000002\",\r\n \"requested_to_department\": \"DEPARTMENT-20190909-0000002\",\r\n \"requested_to_user\": \"USER-20190913-0000007\",\r\n \"requested_by_user\": \"USER-20190913-0000006\",\r\n \"requested_by_department\": \"admin\",\r\n \"template_no\": \"TMP-20190924-0000001\",\r\n \"frm_approvers\": [\r\n {\r\n \"level\": \"1\",\r\n \"delegation\": \"HOD\",\r\n \"user\": \"USER-20190913-0000009\",\r\n \"tmp_approver\": \"TMPAPR-20190924-0000001\"\r\n },\r\n {\r\n \"level\": \"2\",\r\n \"delegation\": \"Approver\",\r\n \"user\": \"USER-20190913-0000009\",\r\n \"tmp_approver\": \"TMPAPR-20190924-0000002\"\r\n },\r\n {\r\n \"level\": \"3\",\r\n \"delegation\": \"Approver\",\r\n \"user\": \"USER-20190913-0000008\",\r\n \"tmp_approver\": \"TMPAPR-20190924-0000003\"\r\n }\r\n ],\r\n \"frm_stakes\": [\r\n\t{\r\n \"delegation\": \"Mandatory Stakeholder\",\r\n \"user\": \"USER-20190913-0000009\",\r\n \"tmp_stake\": \"TMPSTK-20190924-0000001\"\r\n },\r\n {\r\n \"delegation\": \"Stake Approver\",\r\n \"user\": \"USER-20190913-0000008\",\r\n \"tmp_stake\": \"TMPSTK-20190924-0000002\"\r\n }\r\n\t\r\n ],\r\n \r\n \"frm_attachments\": [\r\n {\r\n \"attachment_type\": \"Hello\",\r\n \"attachment_name\": \"heyu\",\r\n \"file_name\": \"Sample\",\r\n \"description\": \"Sameple Desc\",\r\n \"file_upload\": null,\r\n \"uploaded_by\": \"USER-20190913-0000006\",\r\n \"tmp_attach\": \"TMPATCH-20190924-0000001\"\r\n },\r\n {\r\n \"attachment_type\": \"Hello\",\r\n \"attachment_name\": \"heyu\",\r\n \"file_name\": \"Sample\",\r\n \"description\": \"Sameple Desc\",\r\n \"file_upload\": null,\r\n \"uploaded_by\": \"USER-20190913-0000006\",\r\n \"tmp_attach\": \"TMPATCH-20190924-0000002\"\r\n }\r\n ],\r\n \"frm_details\": [\r\n {\r\n \"field_idx\": \"Hello\",\r\n \"field_ref\": \"heyu\",\r\n \"field_val\": \"Sample\",\r\n \"field_props\": \"Sameple Desc\",\r\n \"tmp_detail\": \"TMPDETAIL-20190924-0000001\"\r\n },\r\n {\r\n \"field_idx\": \"Hello\",\r\n \"field_ref\": \"heyu\",\r\n \"field_val\": \"Sample\",\r\n \"field_props\": \"Sameple Desc\",\r\n \"tmp_detail\": \"TMPDETAIL-20190924-0000002\"\r\n }\r\n ]\r\n}"
"raw": "{\r\n\t\"requested_to_template_name\": \"Sample Template\",\r\n\t\"requested_to_template_id\": \"JTC21\",\r\n\t\"requested_to_objective\": \"Sample Objective\",\r\n\t\"requested_to_target_date\": \"10\",\r\n\t\"requested_to_priority\": \"High\",\r\n\t\"description\": \"sample description\",\r\n\t\"created_by_department\": \"admin\",\r\n\t\"created_by_user\": \"USER-20190913-0000006\",\r\n\t\"requested_to_company\": \"COMPANY-20190909-0000002\",\r\n\t\"requested_to_department\": \"DEPARTMENT-20190909-0000002\",\r\n\t\"requested_to_user\": \"USER-20190913-0000007\",\r\n\t\r\n\t\r\n\t\"tmp_approvers\": [{\r\n\t\t\t\"level\": \"1\",\r\n\t\t\t\"delegation\": \"HOD\",\r\n\t\t\t\"user\": \"\"\r\n\t\t},\r\n\t\t{\r\n\t\t\t\"level\": \"2\",\r\n\t\t\t\"delegation\": \"Approver\",\r\n\t\t\t\"user\": \"USER-20190913-0000009\"\r\n\t\t},\r\n\t\t{\r\n\t\t\t\"level\": \"3\",\r\n\t\t\t\"delegation\": \"Approver\",\r\n\t\t\t\"user\": \"USER-20190913-0000008\"\r\n\t\t}\r\n\t],\r\n\t\r\n\t\"tmp_stakes\": [{\r\n\t\t\t\"delegation\": \"Mandatory Stakeholder\",\r\n\t\t\t\"user\": \"USER-20190913-0000009\"\r\n\t\t},\r\n\t\t{\r\n\t\t\t\"delegation\": \"Stake Approver\",\r\n\t\t\t\"user\": \"USER-20190913-0000008\"\r\n\t\t}\r\n\t],\r\n\t\r\n\t\"tmp_attachments\": [{\r\n\t\t\t\"attachment_type\": \"Hello\",\r\n\t\t\t\"attachment_name\": \"heyu\",\r\n\t\t\t\"file_name\": \"Sample\",\r\n\t\t\t\"description\": \"Sameple Desc\",\r\n\t\t\t\"uploaded_by\": \"USER-20190913-0000006\"\r\n\t\t},\r\n\t\t{\r\n\t\t\t\"attachment_type\": \"Hello\",\r\n\t\t\t\"attachment_name\": \"heyu\",\r\n\t\t\t\"file_name\": \"Sample\",\r\n\t\t\t\"description\": \"Sameple Desc\",\r\n\t\t\t\"uploaded_by\": \"USER-20190913-0000006\"\r\n\t\t}\r\n\t],\r\n\t\r\n\t\"tmp_details\": [{\r\n\t\t\t\"field_idx\": \"Hello\",\r\n\t\t\t\"field_ref\": \"heyu\",\r\n\t\t\t\"field_val\": \"Sample\",\r\n\t\t\t\"field_props\": \"Sameple Desc\"\r\n\t\t},\r\n\t\t{\r\n\t\t\t\"field_idx\": \"Hello\",\r\n\t\t\t\"field_ref\": \"heyu\",\r\n\t\t\t\"field_val\": \"Sample\",\r\n\t\t\t\"field_props\": \"Sameple Desc\"\r\n\t\t}\r\n\t]\r\n}"
},
"url": {
"raw": "http://localhost:8000/api/v1/change-request/form-post/",
"protocol": "http",
"raw": "{{baseurl}}/change-request/template-post/",
"host": [
"localhost"
"{{baseurl}}"
],
"port": "8000",
"path": [
"api",
"v1",
"change-request",
"form-post",
"template-post",
""
]
}
......@@ -1120,12 +1232,16 @@
"response": []
},
{
"name": "List of Forms",
"name": "List of Templates",
"request": {
"method": "GET",
"header": [],
"body": {
"mode": "raw",
"raw": ""
},
"url": {
"raw": "http://localhost:8000/api/v1/change-request/form/",
"raw": "http://localhost:8000/api/v1/change-request/template/",
"protocol": "http",
"host": [
"localhost"
......@@ -1135,7 +1251,7 @@
"api",
"v1",
"change-request",
"form",
"template",
""
]
}
......@@ -1143,12 +1259,16 @@
"response": []
},
{
"name": "View Form",
"name": "View Template",
"request": {
"method": "GET",
"header": [],
"body": {
"mode": "raw",
"raw": ""
},
"url": {
"raw": "http://localhost:8000/api/v1/change-request/form/FRM-20190924-0000001/",
"raw": "http://localhost:8000/api/v1/change-request/template/TMP-20190916-0000002/",
"protocol": "http",
"host": [
"localhost"
......@@ -1158,8 +1278,8 @@
"api",
"v1",
"change-request",
"form",
"FRM-20190924-0000001",
"template",
"TMP-20190916-0000002",
""
]
}
......@@ -1167,12 +1287,23 @@
"response": []
},
{
"name": "Delete Form",
"name": "Edit Template",
"request": {
"method": "DELETE",
"header": [],
"method": "PATCH",
"header": [
{
"key": "Content-Type",
"name": "Content-Type",
"value": "application/json",
"type": "text"
}
],
"body": {
"mode": "raw",
"raw": "{\r\n \"template_no\": \"TMP-20190911-0000001\",\r\n \"requested_to_template_name\": \"Sample Template\",\r\n \"requested_to_objective\": \"hello objective\",\r\n \"requested_to_target_date\": \"2019-09-03T13:59:29.694560\",\r\n \"requested_to_priority\": \"High\",\r\n \"description\": \"sample description\",\r\n \"archived_at\": \"2019-09-11T18:59:09.296883\",\r\n \"requested_to_template_id\": \"temp\",\r\n \"requested_to_company\": \"COMPANY-20190909-0000002\",\r\n \"requested_to_department\": \"DEPARTMENT-20190909-0000002\",\r\n \"requested_to_user\": \"USER-20190909-0000005\",\r\n \"created_by_user\": \"USER-20190909-0000005\",\r\n \"created_by_department\": \"admin\",\r\n \r\n \"tmp_approvers\": [\r\n {\r\n \"id\": 1,\r\n \"level\": \"1\",\r\n \"delegation\": \"Approver\",\r\n \"created\": \"2019-09-11T18:59:09.509901\",\r\n \"archived_at\": null,\r\n \"code\": \"TMPAPR-20190911-0000001\",\r\n \"user\": \"USER-20190909-0000005\",\r\n \"template_no\": \"TMP-20190911-0000001\"\r\n },\r\n {\r\n \"id\": 2,\r\n \"level\": \"2\",\r\n \"delegation\": \"Approver\",\r\n \"created\": \"2019-09-11T18:59:09.607909\",\r\n \"archived_at\": null,\r\n \"code\": \"TMPAPR-20190911-0000002\",\r\n \"user\": \"USER-20190909-0000005\",\r\n \"template_no\": \"TMP-20190911-0000001\"\r\n }\r\n ],\r\n \"tmp_stakes\": [\r\n {\r\n \"id\": 1,\r\n \"delegation\": \"Mandatory Approver\",\r\n \"created\": \"2019-09-11T18:59:09.618924\",\r\n \"archived_at\": null,\r\n \"code\": \"TMPSTK-20190911-0000001\",\r\n \"user\": \"USER-20190909-0000005\",\r\n \"template_no\": \"TMP-20190911-0000001\"\r\n },\r\n {\r\n \"id\": 2,\r\n \"delegation\": \"Stake Approver\",\r\n \"created\": \"2019-09-11T18:59:09.619886\",\r\n \"archived_at\": null,\r\n \"code\": \"TMPSTK-20190911-0000002\",\r\n \"user\": \"USER-20190909-0000005\",\r\n \"template_no\": \"TMP-20190911-0000001\"\r\n }\r\n ],\r\n \"tmp_attachments\": [\r\n {\r\n \"id\": 1,\r\n \"attachment_type\": \"Hello\",\r\n \"attachment_name\": \"heyu\",\r\n \"file_name\": \"Sample\",\r\n \"description\": \"Sameple Desc\",\r\n \"file_upload\": null,\r\n \"created\": \"2019-09-11T18:59:09.631923\",\r\n \"archived_at\": null,\r\n \"code\": \"TMPATCH-20190911-0000001\",\r\n \"uploaded_by\": \"USER-20190909-0000005\",\r\n \"template_no\": \"TMP-20190911-0000001\"\r\n },\r\n {\r\n \"id\": 2,\r\n \"attachment_type\": \"Hello\",\r\n \"attachment_name\": \"heyu\",\r\n \"file_name\": \"Sample\",\r\n \"description\": \"Sameple Desc\",\r\n \"file_upload\": null,\r\n \"created\": \"2019-09-11T18:59:09.674881\",\r\n \"archived_at\": null,\r\n \"code\": \"TMPATCH-20190911-0000002\",\r\n \"uploaded_by\": \"USER-20190909-0000005\",\r\n \"template_no\": \"TMP-20190911-0000001\"\r\n }\r\n ],\r\n \"tmp_details\": [\r\n {\r\n \"id\": 1,\r\n \"field_idx\": \"Hello\",\r\n \"field_ref\": \"heyu\",\r\n \"field_val\": \"Sample\",\r\n \"field_props\": \"Sameple Desc\",\r\n \"created\": \"2019-09-11T18:59:09.684922\",\r\n \"archived_at\": null,\r\n \"code\": \"TMPDETAIL-20190911-0000001\",\r\n \"template_no\": \"TMP-20190911-0000001\"\r\n },\r\n {\r\n \"id\": 2,\r\n \"field_idx\": \"Hello\",\r\n \"field_ref\": \"heyu\",\r\n \"field_val\": \"Sample\",\r\n \"field_props\": \"Sameple Desc\",\r\n \"created\": \"2019-09-11T18:59:09.685887\",\r\n \"archived_at\": null,\r\n \"code\": \"TMPDETAIL-20190911-0000002\",\r\n \"template_no\": \"TMP-20190911-0000001\"\r\n }\r\n ]\r\n}"
},
"url": {
"raw": "http://localhost:8000/api/v1/change-request/form/FRM-20190909-0000006/",
"raw": "http://localhost:8000/api/v1/change-request/template/TMP-20190911-0000001/",
"protocol": "http",
"host": [
"localhost"
......@@ -1182,8 +1313,8 @@
"api",
"v1",
"change-request",
"form",
"FRM-20190909-0000006",
"template",
"TMP-20190911-0000001",
""
]
}
......@@ -1191,12 +1322,16 @@
"response": []
},
{
"name": "Re Route for Approval",
"name": "Archive Template",
"request": {
"method": "PATCH",
"header": [],
"body": {
"mode": "raw",
"raw": ""
},
"url": {
"raw": "http://localhost:8000/api/v1/change-request/form/FRM-20190913-0000002/re_route/",
"raw": "http://localhost:8000/api/v1/change-request/template/archived/",
"protocol": "http",
"host": [
"localhost"
......@@ -1206,9 +1341,8 @@
"api",
"v1",
"change-request",
"form",
"FRM-20190913-0000002",
"re_route",
"template",
"archived",
""
]
}
......@@ -1216,12 +1350,16 @@
"response": []
},
{
"name": "Resubmit",
"name": "Retrieve Template",
"request": {
"method": "PATCH",
"header": [],
"body": {
"mode": "raw",
"raw": ""
},
"url": {
"raw": "http://localhost:8000/api/v1/change-request/form/FRM-20190913-0000002/re_submit/",
"raw": "http://localhost:8000/api/v1/change-request/template/TMP-20190909-0000002/",
"protocol": "http",
"host": [
"localhost"
......@@ -1231,9 +1369,8 @@
"api",
"v1",
"change-request",
"form",
"FRM-20190913-0000002",
"re_submit",
"template",
"TMP-20190909-0000002",
""
]
}
......@@ -1241,68 +1378,46 @@
"response": []
},
{
"name": "CR Action",
"name": "Delete Template",
"request": {
"method": "PATCH",
"header": [
{
"key": "Content-Type",
"name": "Content-Type",
"value": "application/json",
"type": "text"
}
],
"method": "DELETE",
"header": [],
"body": {
"mode": "raw",
"raw": "{\r\n \"id\": 1,\r\n \"form_code\": \"FRM-20190913-0000001\",\r\n \"delegation\": \"Requestor\",\r\n \"action\": \"Rejected\",\r\n \"level\": \"1\",\r\n \"remarks\": \"\",\r\n \"form_status\": \"Pending\"\r\n}",
"options": {
"raw": {
"language": "json"
}
}
"raw": ""
},
"url": {
"raw": "http://localhost:8000/api/v1/change-request/form/actions/",
"protocol": "http",
"raw": "{{baseurl}}/change-request/template/TMP-20190916-0000003/",
"host": [
"localhost"
"{{baseurl}}"
],
"port": "8000",
"path": [
"api",
"v1",
"change-request",
"form",
"actions",
"template",
"TMP-20190916-0000003",
""
]
}
},
"response": []
}
],
"_postman_isSubFolder": true
},
{
"name": "Submit",
"request": {
"method": "PATCH",
"header": [
"name": "CR Template Approver",
"item": [
{
"key": "Content-Type",
"name": "Content-Type",
"value": "application/json",
"type": "text"
}
],
"name": "List of Approvers",
"request": {
"method": "GET",
"header": [],
"body": {
"mode": "raw",
"raw": "{\r\n \"requested_to_template_name\": \"Security Projects\",\r\n \"requested_to_objective\": \"Sample Objective\",\r\n \"requested_to_target_date\": \"2019-09-03T13:59:29.694560\",\r\n \"requested_to_priority\": \"Normal\",\r\n \"description\": \"Lorem Ipsum\",\r\n \"cancel_date\": null,\r\n \"status\": \"Pending\",\r\n \"company_desc\": \"Oneberry\",\r\n \"department_desc\": \"Oneberry Superuser\",\r\n \"requested_desc\": \"Super User\",\r\n \"requested_to_template_id\": \"JTC-20190924-0000001\",\r\n \"requested_to_company\": \"COMPANY-20190909-0000002\",\r\n \"requested_to_department\": \"DEPARTMENT-20190909-0000002\",\r\n \"requested_to_user\": \"USER-20190913-0000007\",\r\n \"requested_by_user\": \"USER-20190913-0000006\",\r\n \"requested_by_department\": \"admin\",\r\n \"template_no\": \"TMP-20190924-0000001\",\r\n \"frm_approvers\": [\r\n {\r\n \"id\": 1,\r\n \"level\": \"1\",\r\n \"delegation\": \"HOD\",\r\n \"created\": \"2019-09-24T19:08:26.539805\",\r\n \"code\": \"FRMAPR-20190924-0000001\",\r\n \"remarks\": null,\r\n \"action\": null,\r\n \"action_date\": null,\r\n \"date_sent\": null,\r\n \"user\": \"USER-20190913-0000009\",\r\n \"form_code\": \"FRM-20190924-0000001\",\r\n \"tmp_approver\": \"TMPAPR-20190924-0000001\",\r\n \"name\": \"Kath\",\r\n \"department\": \"Superuser\",\r\n \"company\": \"Total Integrated Resources\"\r\n },\r\n {\r\n \"id\": 2,\r\n \"level\": \"2\",\r\n \"delegation\": \"Approver\",\r\n \"created\": \"2019-09-24T19:08:26.582803\",\r\n \"code\": \"FRMAPR-20190924-0000002\",\r\n \"remarks\": null,\r\n \"action\": null,\r\n \"action_date\": null,\r\n \"date_sent\": null,\r\n \"user\": \"USER-20190913-0000009\",\r\n \"form_code\": \"FRM-20190924-0000001\",\r\n \"tmp_approver\": \"TMPAPR-20190924-0000002\",\r\n \"name\": \"Kath\",\r\n \"department\": \"Superuser\",\r\n \"company\": \"Total Integrated Resources\"\r\n },\r\n {\r\n \"level\": \"3\",\r\n \"delegation\": \"Approver\",\r\n \"remarks\": null,\r\n \"action\": null,\r\n \"action_date\": null,\r\n \"date_sent\": null,\r\n \"user\": \"USER-20190913-0000008\",\r\n \"form_code\": \"FRM-20190924-0000001\"\r\n }\r\n ],\r\n \"frm_stakes\": [\r\n {\r\n \"id\": 2,\r\n \"delegation\": \"Stake Approver\",\r\n \"created\": \"2019-09-24T19:08:26.607806\",\r\n \"code\": \"FRMSTK-20190924-0000002\",\r\n \"date_added\": null,\r\n \"user\": \"USER-20190913-0000008\",\r\n \"form_code\": \"FRM-20190924-0000001\",\r\n \"tmp_stake\": \"TMPSTK-20190924-0000002\"\r\n }\r\n ],\r\n \"frm_attachments\": [\r\n {\r\n \"id\": 2,\r\n \"attachment_type\": \"Hello\",\r\n \"attachment_name\": \"heyu\",\r\n \"file_name\": \"Sample\",\r\n \"description\": \"Sameple Desc\",\r\n \"file_upload\": null,\r\n \"created\": \"2019-09-24T19:08:26.657804\",\r\n \"code\": \"FRMATCH-20190924-0000002\",\r\n \"uploaded_by\": \"USER-20190913-0000006\",\r\n \"form_code\": \"FRM-20190924-0000001\",\r\n \"tmp_attach\": \"TMPATCH-20190924-0000002\"\r\n }\r\n ],\r\n \"frm_details\": [\r\n {\r\n \"id\": 2,\r\n \"field_idx\": \"Hello\",\r\n \"field_ref\": \"heyu\",\r\n \"field_val\": \"Sample\",\r\n \"field_props\": \"Sameple Desc\",\r\n \"created\": \"2019-09-24T19:08:26.672805\",\r\n \"code\": \"FRMDETAIL-20190924-0000002\",\r\n \"form_code\": \"FRM-20190924-0000001\",\r\n \"tmp_detail\": \"TMPDETAIL-20190924-0000002\"\r\n }\r\n ],\r\n \"action\": \"No\"\r\n}",
"options": {
"raw": {
"language": "json"
}
}
"raw": ""
},
"url": {
"raw": "http://localhost:8000/api/v1/change-request/form/FRM-20190924-0000001/submit/",
"raw": "http://localhost:8000/api/v1/change-request/template-approvers/",
"protocol": "http",
"host": [
"localhost"
......@@ -1312,9 +1427,7 @@
"api",
"v1",
"change-request",
"form",
"FRM-20190924-0000001",
"submit",
"template-approvers",
""
]
}
......@@ -1322,28 +1435,16 @@
"response": []
},
{
"name": "Save",
"name": "View Approver",
"request": {
"method": "PATCH",
"header": [
{
"key": "Content-Type",
"name": "Content-Type",
"value": "application/json",
"type": "text"
}
],
"method": "GET",
"header": [],
"body": {
"mode": "raw",
"raw": "{\r\n \"requested_to_template_name\": \"Security Projects\",\r\n \"requested_to_objective\": \"Sample Objective\",\r\n \"requested_to_target_date\": \"2019-09-03T13:59:29.694560\",\r\n \"requested_to_priority\": \"Normal\",\r\n \"description\": \"Lorem Ipsum\",\r\n \"cancel_date\": null,\r\n \"status\": \"Draft\",\r\n \"company_desc\": \"Oneberry\",\r\n \"department_desc\": \"Oneberry Superuser\",\r\n \"requested_desc\": \"Super User\",\r\n \"requested_to_template_id\": \"JTC-20190924-0000001\",\r\n \"requested_to_company\": \"COMPANY-20190909-0000002\",\r\n \"requested_to_department\": \"DEPARTMENT-20190909-0000002\",\r\n \"requested_to_user\": \"USER-20190913-0000007\",\r\n \"requested_by_user\": \"USER-20190913-0000006\",\r\n \"requested_by_department\": \"admin\",\r\n \"template_no\": \"TMP-20190924-0000001\",\r\n \"frm_approvers\": [\r\n {\r\n \"id\": 1,\r\n \"level\": \"1\",\r\n \"delegation\": \"HOD\",\r\n \"created\": \"2019-09-24T19:08:26.539805\",\r\n \"code\": \"FRMAPR-20190924-0000001\",\r\n \"remarks\": null,\r\n \"action\": null,\r\n \"action_date\": null,\r\n \"date_sent\": null,\r\n \"user\": \"USER-20190913-0000009\",\r\n \"form_code\": \"FRM-20190924-0000001\",\r\n \"tmp_approver\": \"TMPAPR-20190924-0000001\",\r\n \"name\": \"Kath\",\r\n \"department\": \"Superuser\",\r\n \"company\": \"Total Integrated Resources\"\r\n },\r\n {\r\n \"id\": 2,\r\n \"level\": \"2\",\r\n \"delegation\": \"Approver\",\r\n \"created\": \"2019-09-24T19:08:26.582803\",\r\n \"code\": \"FRMAPR-20190924-0000002\",\r\n \"remarks\": null,\r\n \"action\": null,\r\n \"action_date\": null,\r\n \"date_sent\": null,\r\n \"user\": \"USER-20190913-0000009\",\r\n \"form_code\": \"FRM-20190924-0000001\",\r\n \"tmp_approver\": \"TMPAPR-20190924-0000002\",\r\n \"name\": \"Kath\",\r\n \"department\": \"Superuser\",\r\n \"company\": \"Total Integrated Resources\"\r\n },\r\n {\r\n \"level\": \"3\",\r\n \"delegation\": \"Approver\",\r\n \"remarks\": null,\r\n \"action\": null,\r\n \"action_date\": null,\r\n \"date_sent\": null,\r\n \"user\": \"USER-20190913-0000008\",\r\n \"form_code\": \"FRM-20190924-0000001\"\r\n }\r\n ],\r\n \"frm_stakes\": [\r\n {\r\n \"id\": 2,\r\n \"delegation\": \"Stake Approver\",\r\n \"created\": \"2019-09-24T19:08:26.607806\",\r\n \"code\": \"FRMSTK-20190924-0000002\",\r\n \"date_added\": null,\r\n \"user\": \"USER-20190913-0000008\",\r\n \"form_code\": \"FRM-20190924-0000001\",\r\n \"tmp_stake\": \"TMPSTK-20190924-0000002\"\r\n }\r\n ],\r\n \"frm_attachments\": [\r\n {\r\n \"id\": 2,\r\n \"attachment_type\": \"Hello\",\r\n \"attachment_name\": \"heyu\",\r\n \"file_name\": \"Sample\",\r\n \"description\": \"Sameple Desc\",\r\n \"file_upload\": null,\r\n \"created\": \"2019-09-24T19:08:26.657804\",\r\n \"code\": \"FRMATCH-20190924-0000002\",\r\n \"uploaded_by\": \"USER-20190913-0000006\",\r\n \"form_code\": \"FRM-20190924-0000001\",\r\n \"tmp_attach\": \"TMPATCH-20190924-0000002\"\r\n }\r\n ],\r\n \"frm_details\": [\r\n {\r\n \"id\": 2,\r\n \"field_idx\": \"Hello\",\r\n \"field_ref\": \"heyu\",\r\n \"field_val\": \"Sample\",\r\n \"field_props\": \"Sameple Desc\",\r\n \"created\": \"2019-09-24T19:08:26.672805\",\r\n \"code\": \"FRMDETAIL-20190924-0000002\",\r\n \"form_code\": \"FRM-20190924-0000001\",\r\n \"tmp_detail\": \"TMPDETAIL-20190924-0000002\"\r\n }\r\n ],\r\n \"action\": \"No\"\r\n}",
"options": {
"raw": {
"language": "json"
}
}
"raw": ""
},
"url": {
"raw": "http://localhost:8000/api/v1/change-request/form/FRM-20190924-0000001/save/",
"raw": "http://localhost:8000/api/v1/change-request/template-approvers/TMPAPR-20190911-0000001/",
"protocol": "http",
"host": [
"localhost"
......@@ -1353,9 +1454,8 @@
"api",
"v1",
"change-request",
"form",
"FRM-20190924-0000001",
"save",
"template-approvers",
"TMPAPR-20190911-0000001",
""
]
}
......@@ -1363,19 +1463,22 @@
"response": []
}
],
"protocolProfileBehavior": {},
"_postman_isSubFolder": true
},
{
"name": "CR Form Approver",
"name": "CR Template Stakeholder",
"item": [
{
"name": "List of Approvers",
"name": "List of Stakeholders",
"request": {
"method": "GET",
"header": [],
"body": {
"mode": "raw",
"raw": ""
},
"url": {
"raw": "http://localhost:8000/api/v1/change-request/form-approvers/",
"raw": "http://localhost:8000/api/v1/change-request/template-stakeholders/",
"protocol": "http",
"host": [
"localhost"
......@@ -1385,7 +1488,7 @@
"api",
"v1",
"change-request",
"form-approvers",
"template-stakeholders",
""
]
}
......@@ -1393,12 +1496,16 @@
"response": []
},
{
"name": "View Approver",
"name": "View Stakeholder",
"request": {
"method": "GET",
"header": [],
"body": {
"mode": "raw",
"raw": ""
},
"url": {
"raw": "http://localhost:8000/api/v1/change-request/form-approvers/TMPAPR-20190909-0000001/",
"raw": "http://localhost:8000/api/v1/change-request/template-stakeholders/TMPSTK-20190909-0000001/",
"protocol": "http",
"host": [
"localhost"
......@@ -1408,8 +1515,8 @@
"api",
"v1",
"change-request",
"form-approvers",
"TMPAPR-20190909-0000001",
"template-stakeholders",
"TMPSTK-20190909-0000001",
""
]
}
......@@ -1417,19 +1524,22 @@
"response": []
}
],
"protocolProfileBehavior": {},
"_postman_isSubFolder": true
},
{
"name": "CR Form Stakeholder",
"name": "CR Template Attachment",
"item": [
{
"name": "List of Stakeholders",
"name": "List of Attachments",
"request": {
"method": "GET",
"header": [],
"body": {
"mode": "raw",
"raw": ""
},
"url": {
"raw": "http://localhost:8000/api/v1/change-request/form-stakeholders/",
"raw": "http://localhost:8000/api/v1/change-request/template-attachments/",
"protocol": "http",
"host": [
"localhost"
......@@ -1439,7 +1549,7 @@
"api",
"v1",
"change-request",
"form-stakeholders",
"template-attachments",
""
]
}
......@@ -1447,12 +1557,16 @@
"response": []
},
{
"name": "View Stakeholder",
"name": "View Attachment",
"request": {
"method": "GET",
"header": [],
"body": {
"mode": "raw",
"raw": ""
},
"url": {
"raw": "http://localhost:8000/api/v1/change-request/form-stakeholders/TMPSTK-20190909-0000001/",
"raw": "http://localhost:8000/api/v1/change-request/template-attachments/TMPATCH-20190909-0000001/",
"protocol": "http",
"host": [
"localhost"
......@@ -1462,8 +1576,8 @@
"api",
"v1",
"change-request",
"form-stakeholders",
"TMPSTK-20190909-0000001",
"template-attachments",
"TMPATCH-20190909-0000001",
""
]
}
......@@ -1471,19 +1585,22 @@
"response": []
}
],
"protocolProfileBehavior": {},
"_postman_isSubFolder": true
},
{
"name": "CR Form Attachment",
"name": "CR Template Detail",
"item": [
{
"name": "List of Attachments",
"name": "List of Details",
"request": {
"method": "GET",
"header": [],
"body": {
"mode": "raw",
"raw": ""
},
"url": {
"raw": "http://localhost:8000/api/v1/change-request/form-attachments/",
"raw": "http://localhost:8000/api/v1/change-request/template-details/",
"protocol": "http",
"host": [
"localhost"
......@@ -1493,7 +1610,7 @@
"api",
"v1",
"change-request",
"form-attachments",
"template-details",
""
]
}
......@@ -1501,26 +1618,63 @@
"response": []
},
{
"name": "View Attachment",
"protocolProfileBehavior": {
"disableBodyPruning": true
},
"name": "View Detail",
"request": {
"method": "GET",
"header": [],
"body": {
"mode": "raw",
"raw": ""
},
"url": {
"raw": "http://localhost:8000/api/v1/change-request/template-details/TMPDETAIL-20190909-0000001/",
"protocol": "http",
"host": [
"localhost"
],
"port": "8000",
"path": [
"api",
"v1",
"change-request",
"template-details",
"TMPDETAIL-20190909-0000001",
""
]
}
},
"response": []
}
],
"_postman_isSubFolder": true
}
],
"_postman_isSubFolder": true
},
{
"name": "CR Forms",
"item": [
{
"name": "CR Form Header",
"item": [
{
"name": "Create Form Header",
"request": {
"method": "POST",
"header": [
{
"key": "Content-Type",
"name": "Content-Type",
"value": "application/json",
"type": "text"
"type": "text",
"value": "application/json"
}
],
"body": {
"mode": "raw",
"raw": "{\r\n \"attachment_type\": \"Mandatory Attached\",\r\n \"attachment_name\": \"Mandatory Stakeholder\",\r\n \"file_name\": \"USER-20190909-0000005\",\r\n \"description\": \"Sample Desc 1\",\r\n \"file_upload\": null,\r\n \"code\": \"FRMATCH-20190909-0000001\",\r\n \"uploaded_by\": \"USER-20190909-0000005\",\r\n \"form_code\": \"FRM-20190909-0000005\",\r\n \"tmp_attach\": \"TMPATCH-20190909-0000001\"\r\n}"
"raw": "{\r\n\t\"requested_to_template_name\": \"Sample Template\",\r\n\t\"requested_to_template_id\": \"JTC\",\r\n\t\"requested_to_objective\": \"Sample Objective\",\r\n\t\"requested_to_target_date\": \"2019-09-03 13:59:29.694560\",\r\n\t\"requested_to_priority\": \"High\",\r\n\t\"description\": \"sample description\",\r\n\t\"status\": \"Pending\",\r\n\t\"company_desc\": \"Oneberry\",\r\n\t\"department_desc\": \"Oneberry Superuser\",\r\n\t\"requested_desc\": \"Super User\",\r\n\t\"requested_by_department\": \"admin\",\r\n\t\"requested_by_user\": \"USER-20190913-0000006\",\r\n\t\"requested_to_company\": \"COMPANY-20190909-0000002\",\r\n\t\"requested_to_department\": \"DEPARTMENT-20190909-0000002\",\r\n\t\"requested_to_user\": \"USER-20190913-0000007\",\r\n\t\"template_no\": \"TMP-20190916-0000002\",\r\n\t\r\n\t\"frm_approvers\": [{\r\n\t\t\t\"level\": \"1\",\r\n\t\t\t\"delegation\": \"HOD\",\r\n\t\t\t\"user\": \"USER-20190913-0000008\",\r\n\t\t\t\"tmp_approver\": \"TMPAPR-20190916-0000004\"\r\n\t\t},\r\n\t\t{\r\n\t\t\t\"level\": \"2\",\r\n\t\t\t\"delegation\": \"Approver\",\r\n\t\t\t\"user\": \"USER-20190913-0000009\",\r\n\t\t\t\"tmp_approver\": \"TMPAPR-20190913-0000002\"\r\n\t\t},\r\n\t\t{\r\n\t\t\t\"level\": \"3\",\r\n\t\t\t\"delegation\": \"Approver\",\r\n\t\t\t\"user\": \"USER-20190913-0000008\",\r\n\t\t\t\"tmp_approver\": \"TMPAPR-20190913-0000003\"\r\n\t\t}\r\n\t],\r\n\t\r\n\t\"frm_stakes\": [{\r\n\t\t\t\"date_added\": \"2019-09-03 13:59:29.694560\",\r\n\t\t\t\"delegation\": \"Mandatory Stakeholder\",\r\n\t\t\t\"user\": \"USER-20190913-0000009\",\r\n\t\t\t\"tmp_stake\": \"TMPSTK-20190913-0000001\"\r\n\t\t},\r\n\t\t{\r\n\t\t\t\"date_added\": \"2019-09-03 13:59:29.694560\",\r\n\t\t\t\"delegation\": \"Stake Approver\",\r\n\t\t\t\"user\": \"USER-20190913-0000008\",\r\n\t\t\t\"tmp_stake\": \"TMPSTK-20190913-0000002\"\r\n\t\t}\r\n\t],\r\n\t\r\n\t\"frm_attachments\": [{\r\n\t\t\t\"attachment_type\": \"Hello\",\r\n\t\t\t\"attachment_name\": \"heyu\",\r\n\t\t\t\"file_name\": \"Sample\",\r\n\t\t\t\"description\": \"Sameple Desc\",\r\n\t\t\t\"uploaded_by\": \"USER-20190913-0000006\",\r\n\t\t\t\"tmp_attach\": \"TMPATCH-20190913-0000001\"\r\n\t\t},\r\n\t\t{\r\n\t\t\t\"attachment_type\": \"Hello\",\r\n\t\t\t\"attachment_name\": \"heyu\",\r\n\t\t\t\"file_name\": \"Sample\",\r\n\t\t\t\"description\": \"Sameple Desc\",\r\n\t\t\t\"uploaded_by\": \"USER-20190913-0000006\",\r\n\t\t\t\"tmp_attach\": \"TMPATCH-20190913-0000002\"\r\n\t\t}\r\n\t],\r\n\t\r\n\t\"frm_details\": [{\r\n\t\t\t\"field_idx\": \"Hello\",\r\n\t\t\t\"field_ref\": \"heyu\",\r\n\t\t\t\"field_val\": \"Sample\",\r\n\t\t\t\"field_props\": \"Sameple Desc\",\r\n\t\t\t\"tmp_detail\": \"TMPDETAIL-20190913-0000001\"\r\n\t\t},\r\n\t\t{\r\n\t\t\t\"field_idx\": \"Hello\",\r\n\t\t\t\"field_ref\": \"heyu\",\r\n\t\t\t\"field_val\": \"Sample\",\r\n\t\t\t\"field_props\": \"Sameple Desc\",\r\n\t\t\t\"tmp_detail\": \"TMPDETAIL-20190913-0000002\"\r\n\t\t}\r\n\t]\r\n}"
},
"url": {
"raw": "http://localhost:8000/api/v1/change-request/form-attachments/FRMATCH-20190909-0000001/",
"raw": "http://localhost:8000/api/v1/change-request/form-post/",
"protocol": "http",
"host": [
"localhost"
......@@ -1530,28 +1684,24 @@
"api",
"v1",
"change-request",
"form-attachments",
"FRMATCH-20190909-0000001",
"form-post",
""
]
}
},
"response": []
}
],
"protocolProfileBehavior": {},
"_postman_isSubFolder": true
},
{
"name": "CR Form Detail",
"item": [
{
"name": "List of Details",
"name": "List of Forms",
"request": {
"method": "GET",
"header": [],
"body": {
"mode": "raw",
"raw": ""
},
"url": {
"raw": "http://localhost:8000/api/v1/change-request/form-details/",
"raw": "http://localhost:8000/api/v1/change-request/form/",
"protocol": "http",
"host": [
"localhost"
......@@ -1561,7 +1711,7 @@
"api",
"v1",
"change-request",
"form-details",
"form",
""
]
}
......@@ -1569,12 +1719,16 @@
"response": []
},
{
"name": "View Detail",
"name": "View Form",
"request": {
"method": "GET",
"header": [],
"body": {
"mode": "raw",
"raw": ""
},
"url": {
"raw": "http://localhost:8000/api/v1/change-request/form-details/FRMDETAIL-20190909-0000001/",
"raw": "http://localhost:8000/api/v1/change-request/form/FRM-20190912-0000002/",
"protocol": "http",
"host": [
"localhost"
......@@ -1584,32 +1738,18 @@
"api",
"v1",
"change-request",
"form-details",
"FRMDETAIL-20190909-0000001",
"form",
"FRM-20190912-0000002",
""
]
}
},
"response": []
}
],
"protocolProfileBehavior": {},
"_postman_isSubFolder": true
}
],
"protocolProfileBehavior": {},
"_postman_isSubFolder": true
},
{
"name": "CR Templates",
"item": [
{
"name": "CR Template Header",
"item": [
{
"name": "Template Header Post",
"name": "Edit Form",
"request": {
"method": "POST",
"method": "PUT",
"header": [
{
"key": "Content-Type",
......@@ -1620,16 +1760,21 @@
],
"body": {
"mode": "raw",
"raw": "{\r\n\t\"requested_to_template_name\": \"Security Project\",\r\n\t\"requested_to_template_id\": \"JTC\",\r\n\t\"requested_to_objective\": \"Sample Objective\",\r\n\t\"requested_to_target_date\": \"10\",\r\n\t\"requested_to_priority\": \"Normal\",\r\n\t\"description\": \"Lorem Ipsum\",\r\n\t\"created_by_department\": \"DEPARTMENT-20190923-0000002\",\r\n\t\"created_by_user\": \"USER-20190924-0000043\",\r\n\t\"requested_to_company\": \"COMPANY-20190923-0000001\",\r\n\t\"requested_to_department\": \"DEPARTMENT-20190923-0000001\",\r\n\t\"requested_to_user\": \"USER-20190925-0000045\",\r\n\t\r\n\t\"tmp_approvers\": [{\r\n\t\t\t\"level\": \"1\",\r\n\t\t\t\"delegation\": \"Head of Department\"\r\n\t\t},\r\n\t\t{\r\n\t\t\t\"level\": \"2\",\r\n\t\t\t\"delegation\": \"Approver\",\r\n\t\t\t\"user\": \"USER-20190924-0000042\"\r\n\t\t},\r\n\t\t{\r\n\t\t\t\"level\": \"3\",\r\n\t\t\t\"delegation\": \"SD/OD\",\r\n\t\t\t\"user\": \"USER-20190924-0000041\"\r\n\t\t}\r\n\t],\r\n\t\r\n\t\"tmp_stakes\": [{\r\n\t\t\t\"delegation\": \"Mandatory Stakeholder\",\r\n\t\t\t\"user\": \"USER-20190924-0000042\"\r\n\t\t},\r\n\t\t{\r\n\t\t\t\"delegation\": \"Mandatory Stakeholder\",\r\n\t\t\t\"user\": \"USER-20190924-0000041\"\r\n\t\t}\r\n\t],\r\n\t\r\n\t\"tmp_attachments\": [{\r\n\t\t\t\"attachment_type\": \"Hello\",\r\n\t\t\t\"attachment_name\": \"Attachment 1\",\r\n\t\t\t\"file_name\": \"Sample Attachment 1\",\r\n\t\t\t\"file_upload\": null,\r\n\t\t\t\"description\": \"Sameple Description\",\r\n\t\t\t\"uploaded_by\": \"USER-20190924-0000043\"\r\n\t\t}\r\n\t],\r\n\t\r\n\t\"tmp_details\": [{\r\n\t\t\t\"field_idx\": \"Hello\",\r\n\t\t\t\"field_ref\": \"heyu\",\r\n\t\t\t\"field_val\": \"Sample\",\r\n\t\t\t\"field_props\": \"Sample Desc\"\r\n\t\t}\r\n\t]\r\n}"
"raw": "{\r\n \"requested_to_template_name\": \"Sample Templates\",\r\n \"requested_to_template_id\": \"Samp\",\r\n \"requested_to_objective\": \"hello objective\",\r\n \"requested_to_target_date\": \"2019-09-03T13:59:29.694560\",\r\n \"requested_to_priority\": \"High\",\r\n \"description\": \"sample description\",\r\n \"form_code\": \"FRM-20190909-0000006\",\r\n \"cancel_date\": null,\r\n \"status\": \"Pending\",\r\n \"company_desc\": \"Oneberry\",\r\n \"department_desc\": \"Oneberry Superuser\",\r\n \"requested_desc\": \"Super User\",\r\n \"old_form_code\": \"\",\r\n \"requested_to_company\": \"COMPANY-20190909-0000002\",\r\n \"requested_to_department\": \"DEPARTMENT-20190909-0000002\",\r\n \"requested_to_user\": \"USER-20190909-0000005\",\r\n \"requested_by_user\": \"USER-20190909-0000005\",\r\n \"requested_by_department\": \"admin\",\r\n \"template_no\": \"TMP-20190909-0000001\",\r\n \"action\": \"No\"\r\n}"
},
"url": {
"raw": "{{baseurl}}/change-request/template-post/",
"raw": "http://localhost:8000/api/v1/change-request/form/FRM-20190909-0000006/",
"protocol": "http",
"host": [
"{{baseurl}}"
"localhost"
],
"port": "8000",
"path": [
"api",
"v1",
"change-request",
"template-post",
"form",
"FRM-20190909-0000006",
""
]
}
......@@ -1637,18 +1782,37 @@
"response": []
},
{
"name": "List of Templates",
"name": "Delete Form",
"request": {
"method": "GET",
"auth": {
"type": "bearer",
"bearer": [
{
"key": "token",
"value": "951574546a6d45af34dfef101840bba27f1ab574",
"type": "string"
}
]
},
"method": "DELETE",
"header": [],
"body": {
"mode": "raw",
"raw": ""
},
"url": {
"raw": "{{baseurl}}/change-request/template/",
"raw": "http://localhost:8000/api/v1/change-request/form/FRM-20190909-0000006/",
"protocol": "http",
"host": [
"{{baseurl}}"
"localhost"
],
"port": "8000",
"path": [
"api",
"v1",
"change-request",
"template",
"form",
"FRM-20190909-0000006",
""
]
}
......@@ -1656,19 +1820,28 @@
"response": []
},
{
"name": "View Template",
"name": "Re Route for Approval",
"request": {
"method": "GET",
"method": "PATCH",
"header": [],
"body": {
"mode": "raw",
"raw": ""
},
"url": {
"raw": "{{baseurl}}/change-request/template/TMP-20190925-0000002/",
"raw": "http://localhost:8000/api/v1/change-request/form/FRM-20190913-0000002/re_route/",
"protocol": "http",
"host": [
"{{baseurl}}"
"localhost"
],
"port": "8000",
"path": [
"api",
"v1",
"change-request",
"template",
"TMP-20190925-0000002",
"form",
"FRM-20190913-0000002",
"re_route",
""
]
}
......@@ -1676,7 +1849,36 @@
"response": []
},
{
"name": "Edit Template",
"name": "Resubmit",
"request": {
"method": "PATCH",
"header": [],
"body": {
"mode": "raw",
"raw": ""
},
"url": {
"raw": "http://localhost:8000/api/v1/change-request/form/FRM-20190913-0000001/re_submit/",
"protocol": "http",
"host": [
"localhost"
],
"port": "8000",
"path": [
"api",
"v1",
"change-request",
"form",
"FRM-20190913-0000001",
"re_submit",
""
]
}
},
"response": []
},
{
"name": "CR Action",
"request": {
"method": "PATCH",
"header": [
......@@ -1689,17 +1891,21 @@
],
"body": {
"mode": "raw",
"raw": "{\r\n \"requested_to_template_name\": \"Security Project\",\r\n \"requested_to_objective\": \"Sample Objective\",\r\n \"requested_to_target_date\": \"10\",\r\n \"requested_to_priority\": \"Normal\",\r\n \"description\": \"Lorem Ipsum\",\r\n \"requested_to_template_id\": \"JTC\",\r\n \"requested_to_company\": \"COMPANY-20190923-0000001\",\r\n \"requested_to_department\": \"DEPARTMENT-20190923-0000001\",\r\n \"requested_to_user\": \"USER-20190925-0000045\",\r\n \"created_by_user\": \"USER-20190924-0000043\",\r\n \"created_by_department\": \"DEPARTMENT-20190923-0000002\",\r\n \"tmp_approvers\": [\r\n {\r\n \"id\": 4,\r\n \"level\": \"1\",\r\n \"delegation\": \"Head of Department\",\r\n \"user\": null,\r\n \"template_no\": \"TMP-20190925-0000002\"\r\n },\r\n {\r\n \"id\": 5,\r\n \"level\": \"2\",\r\n \"delegation\": \"Approver\",\r\n \"user\": \"USER-20190924-0000042\",\r\n \"template_no\": \"TMP-20190925-0000002\"\r\n },\r\n {\r\n \"id\": 6,\r\n \"level\": \"3\",\r\n \"delegation\": \"SD/OD\",\r\n \"user\": \"USER-20190924-0000041\",\r\n \"template_no\": \"TMP-20190925-0000002\"\r\n }\r\n ],\r\n \"tmp_stakes\": [\r\n {\r\n \"id\": 1,\r\n \"delegation\": \"Mandatory Stakeholder\",\r\n \"user\": \"USER-20190924-0000042\",\r\n \"template_no\": \"TMP-20190925-0000002\"\r\n },\r\n {\r\n \"id\": 2,\r\n \"delegation\": \"Mandatory Stakeholder\",\r\n \"user\": \"USER-20190924-0000041\",\r\n \"template_no\": \"TMP-20190925-0000002\"\r\n }\r\n ],\r\n \"tmp_attachments\": [\r\n {\r\n \"id\": 1,\r\n \"attachment_type\": \"Hellos\",\r\n \"attachment_name\": \"Attachment 1\",\r\n \"file_name\": \"Sample Attachment 1\",\r\n \"description\": \"Sameple Description\",\r\n \"file_upload\": null,\r\n \"uploaded_by\": \"USER-20190924-0000043\",\r\n \"template_no\": \"TMP-20190925-0000002\"\r\n }\r\n ],\r\n \"tmp_details\": [\r\n {\r\n \"id\": 1,\r\n \"field_idx\": \"Hellos\",\r\n \"field_ref\": \"heyu\",\r\n \"field_val\": \"Sample\",\r\n \"field_props\": \"Sample Desc\",\r\n \"template_no\": \"TMP-20190925-0000002\"\r\n }\r\n ]\r\n}"
"raw": "{\r\n \"id\": 1,\r\n \"user\": \"\",\r\n \"form_code\": \"\",\r\n \"delegation\": \"\",\r\n \"action\": \"Approved\",\r\n \"level\": \"\",\r\n \"remarks\": \"Approver\"\r\n}"
},
"url": {
"raw": "{{baseurl}}/change-request/template/TMP-20190925-0000002/",
"raw": "http://localhost:8000/api/v1/change-request/form/actions/",
"protocol": "http",
"host": [
"{{baseurl}}"
"localhost"
],
"port": "8000",
"path": [
"api",
"v1",
"change-request",
"template",
"TMP-20190925-0000002",
"form",
"actions",
""
]
}
......@@ -1707,19 +1913,71 @@
"response": []
},
{
"name": "Delete Template",
"name": "Submit",
"request": {
"method": "DELETE",
"header": [],
"method": "PATCH",
"header": [
{
"key": "Content-Type",
"name": "Content-Type",
"value": "application/json",
"type": "text"
}
],
"body": {
"mode": "raw",
"raw": "{\r\n \"id\": 1,\r\n \"created\": \"2019-09-10T17:21:10.794834\",\r\n \"remarks\": \"Approver\",\r\n \"action\": \"Approved\",\r\n \"date_sent\": \"2019-09-03T13:59:29.694560\",\r\n \"user\": \"USER-20190909-0000005\",\r\n \"form_code\": \"FRM-20190910-0000001\",\r\n \"tmp_approver\": \"TMPAPR-20190910-0000001\"\r\n}"
},
"url": {
"raw": "{{baseurl}}/change-request/template/TMP-20190925-0000002/",
"raw": "http://localhost:8000/api/v1/change-request/form/FRM-20190912-0000002/actions/",
"protocol": "http",
"host": [
"{{baseurl}}"
"localhost"
],
"port": "8000",
"path": [
"api",
"v1",
"change-request",
"template",
"TMP-20190925-0000002",
"form",
"FRM-20190912-0000002",
"actions",
""
]
}
},
"response": []
},
{
"name": "Save",
"request": {
"method": "PATCH",
"header": [
{
"key": "Content-Type",
"name": "Content-Type",
"value": "application/json",
"type": "text"
}
],
"body": {
"mode": "raw",
"raw": "{\r\n \"id\": 1,\r\n \"created\": \"2019-09-10T17:21:10.794834\",\r\n \"remarks\": \"Approver\",\r\n \"action\": \"Approved\",\r\n \"date_sent\": \"2019-09-03T13:59:29.694560\",\r\n \"user\": \"USER-20190909-0000005\",\r\n \"form_code\": \"FRM-20190910-0000001\",\r\n \"tmp_approver\": \"TMPAPR-20190910-0000001\"\r\n}"
},
"url": {
"raw": "http://localhost:8000/api/v1/change-request/form/FRM-20190912-0000002/actions/",
"protocol": "http",
"host": [
"localhost"
],
"port": "8000",
"path": [
"api",
"v1",
"change-request",
"form",
"FRM-20190912-0000002",
"actions",
""
]
}
......@@ -1727,19 +1985,22 @@
"response": []
}
],
"protocolProfileBehavior": {},
"_postman_isSubFolder": true
},
{
"name": "CR Template Approver",
"name": "CR Form Approver",
"item": [
{
"name": "List of Approvers",
"request": {
"method": "GET",
"header": [],
"body": {
"mode": "raw",
"raw": ""
},
"url": {
"raw": "http://localhost:8000/api/v1/change-request/template-approvers/",
"raw": "http://localhost:8000/api/v1/change-request/form-approvers/",
"protocol": "http",
"host": [
"localhost"
......@@ -1749,7 +2010,7 @@
"api",
"v1",
"change-request",
"template-approvers",
"form-approvers",
""
]
}
......@@ -1761,8 +2022,12 @@
"request": {
"method": "GET",
"header": [],
"body": {
"mode": "raw",
"raw": ""
},
"url": {
"raw": "http://localhost:8000/api/v1/change-request/template-approvers/TMPAPR-20190924-0000015/",
"raw": "http://localhost:8000/api/v1/change-request/form-approvers/TMPAPR-20190909-0000001/",
"protocol": "http",
"host": [
"localhost"
......@@ -1772,8 +2037,8 @@
"api",
"v1",
"change-request",
"template-approvers",
"TMPAPR-20190924-0000015",
"form-approvers",
"TMPAPR-20190909-0000001",
""
]
}
......@@ -1781,19 +2046,22 @@
"response": []
}
],
"protocolProfileBehavior": {},
"_postman_isSubFolder": true
},
{
"name": "CR Template Stakeholder",
"name": "CR Form Stakeholder",
"item": [
{
"name": "List of Stakeholders",
"request": {
"method": "GET",
"header": [],
"body": {
"mode": "raw",
"raw": ""
},
"url": {
"raw": "http://localhost:8000/api/v1/change-request/template-stakeholders/",
"raw": "http://localhost:8000/api/v1/change-request/form-stakeholders/",
"protocol": "http",
"host": [
"localhost"
......@@ -1803,7 +2071,7 @@
"api",
"v1",
"change-request",
"template-stakeholders",
"form-stakeholders",
""
]
}
......@@ -1815,8 +2083,12 @@
"request": {
"method": "GET",
"header": [],
"body": {
"mode": "raw",
"raw": ""
},
"url": {
"raw": "http://localhost:8000/api/v1/change-request/template-stakeholders/TMPSTK-20190909-0000001/",
"raw": "http://localhost:8000/api/v1/change-request/form-stakeholders/TMPSTK-20190909-0000001/",
"protocol": "http",
"host": [
"localhost"
......@@ -1826,7 +2098,7 @@
"api",
"v1",
"change-request",
"template-stakeholders",
"form-stakeholders",
"TMPSTK-20190909-0000001",
""
]
......@@ -1835,19 +2107,22 @@
"response": []
}
],
"protocolProfileBehavior": {},
"_postman_isSubFolder": true
},
{
"name": "CR Template Attachment",
"name": "CR Form Attachment",
"item": [
{
"name": "List of Attachments",
"request": {
"method": "GET",
"header": [],
"body": {
"mode": "raw",
"raw": ""
},
"url": {
"raw": "http://localhost:8000/api/v1/change-request/template-attachments/",
"raw": "http://localhost:8000/api/v1/change-request/form-attachments/",
"protocol": "http",
"host": [
"localhost"
......@@ -1857,7 +2132,7 @@
"api",
"v1",
"change-request",
"template-attachments",
"form-attachments",
""
]
}
......@@ -1866,11 +2141,25 @@
},
{
"name": "View Attachment",
"protocolProfileBehavior": {
"disableBodyPruning": true
},
"request": {
"method": "GET",
"header": [],
"header": [
{
"key": "Content-Type",
"name": "Content-Type",
"value": "application/json",
"type": "text"
}
],
"body": {
"mode": "raw",
"raw": "{\r\n \"attachment_type\": \"Mandatory Attached\",\r\n \"attachment_name\": \"Mandatory Stakeholder\",\r\n \"file_name\": \"USER-20190909-0000005\",\r\n \"description\": \"Sample Desc 1\",\r\n \"file_upload\": null,\r\n \"code\": \"FRMATCH-20190909-0000001\",\r\n \"uploaded_by\": \"USER-20190909-0000005\",\r\n \"form_code\": \"FRM-20190909-0000005\",\r\n \"tmp_attach\": \"TMPATCH-20190909-0000001\"\r\n}"
},
"url": {
"raw": "http://localhost:8000/api/v1/change-request/template-attachments/TMPATCH-20190909-0000001/",
"raw": "http://localhost:8000/api/v1/change-request/form-attachments/FRMATCH-20190909-0000001/",
"protocol": "http",
"host": [
"localhost"
......@@ -1880,8 +2169,8 @@
"api",
"v1",
"change-request",
"template-attachments",
"TMPATCH-20190909-0000001",
"form-attachments",
"FRMATCH-20190909-0000001",
""
]
}
......@@ -1889,19 +2178,22 @@
"response": []
}
],
"protocolProfileBehavior": {},
"_postman_isSubFolder": true
},
{
"name": "CR Template Detail",
"name": "CR Form Detail",
"item": [
{
"name": "List of Details",
"request": {
"method": "GET",
"header": [],
"body": {
"mode": "raw",
"raw": ""
},
"url": {
"raw": "http://localhost:8000/api/v1/change-request/template-details/",
"raw": "http://localhost:8000/api/v1/change-request/form-details/",
"protocol": "http",
"host": [
"localhost"
......@@ -1911,7 +2203,7 @@
"api",
"v1",
"change-request",
"template-details",
"form-details",
""
]
}
......@@ -1923,8 +2215,12 @@
"request": {
"method": "GET",
"header": [],
"body": {
"mode": "raw",
"raw": ""
},
"url": {
"raw": "http://localhost:8000/api/v1/change-request/template-details/TMPDETAIL-20190909-0000001/",
"raw": "http://localhost:8000/api/v1/change-request/form-details/FRMDETAIL-20190909-0000001/",
"protocol": "http",
"host": [
"localhost"
......@@ -1934,8 +2230,8 @@
"api",
"v1",
"change-request",
"template-details",
"TMPDETAIL-20190909-0000001",
"form-details",
"FRMDETAIL-20190909-0000001",
""
]
}
......@@ -1943,11 +2239,9 @@
"response": []
}
],
"protocolProfileBehavior": {},
"_postman_isSubFolder": true
}
],
"protocolProfileBehavior": {},
"_postman_isSubFolder": true
},
{
......@@ -1958,6 +2252,10 @@
"request": {
"method": "GET",
"header": [],
"body": {
"mode": "raw",
"raw": ""
},
"url": {
"raw": "{{baseurl}}/change-request/allowed-companies/",
"host": [
......@@ -2003,17 +2301,20 @@
"response": []
}
],
"protocolProfileBehavior": {},
"_postman_isSubFolder": true
},
{
"name": "Master",
"name": "Filter by Allowed Company",
"item": [
{
"name": "List of Company",
"request": {
"method": "GET",
"header": [],
"body": {
"mode": "raw",
"raw": ""
},
"url": {
"raw": "{{baseurl}}/change-request/companies/",
"host": [
......@@ -2033,6 +2334,10 @@
"request": {
"method": "GET",
"header": [],
"body": {
"mode": "raw",
"raw": ""
},
"url": {
"raw": "{{baseurl}}/change-request/departments/?company_code=COMPANY-20190917-0000001",
"host": [
......@@ -2058,8 +2363,12 @@
"request": {
"method": "GET",
"header": [],
"body": {
"mode": "raw",
"raw": ""
},
"url": {
"raw": "{{baseurl}}/change-request/user-list/?department_code=DEPARTMENT-20190917-0000001&company_code=COMPANY-20190917-0000001",
"raw": "{{baseurl}}/change-request/user-list/?department_code=DEPARTMENT-20190923-0000001&company_code=COMPANY-20190923-0000001",
"host": [
"{{baseurl}}"
],
......@@ -2071,11 +2380,11 @@
"query": [
{
"key": "department_code",
"value": "DEPARTMENT-20190917-0000001"
"value": "DEPARTMENT-20190923-0000001"
},
{
"key": "company_code",
"value": "COMPANY-20190917-0000001"
"value": "COMPANY-20190923-0000001"
}
]
}
......@@ -2083,11 +2392,9 @@
"response": []
}
],
"protocolProfileBehavior": {},
"_postman_isSubFolder": true
}
],
"protocolProfileBehavior": {}
]
},
{
"name": "Notifications",
......@@ -2282,8 +2589,7 @@
},
"response": []
}
],
"protocolProfileBehavior": {}
]
}
],
"auth": {
......@@ -2291,7 +2597,7 @@
"bearer": [
{
"key": "token",
"value": "ba9a275c67036d872f5cfd6862488fc115569fd3",
"value": "84b7b325abedd50a537f78504ab2ff93dfe2d61b",
"type": "string"
}
]
......@@ -2317,6 +2623,5 @@
]
}
}
],
"protocolProfileBehavior": {}
]
}
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment