Commit 28ca8592 authored by Gladys Forte's avatar Gladys Forte

Merge pull request #262 in RMS/api-main-service from gladys-dev2 to RMSv2

* commit 'f0c89196':
  postman
parents 16dd9e7f f0c89196
...@@ -32,11 +32,11 @@ def list_by_user(user_id_number): ...@@ -32,11 +32,11 @@ def list_by_user(user_id_number):
).values('group_pivots') ).values('group_pivots')
return_queryset = models.ChangeRequestFormHeader.objects.filter( return_queryset = models.ChangeRequestFormHeader.objects.filter(
Q(is_active=True) |
Q(frm_approvers__user__code=user_id_number) | Q(frm_approvers__user__code=user_id_number) |
Q(frm_stakes__user__code=user_id_number) | Q(frm_stakes__user__code=user_id_number) |
Q(requested_by_user=user_id_number) | Q(requested_by_user=user_id_number) |
Q(requested_to_department__in=priviledgeCrs) Q(requested_to_department__in=priviledgeCrs) |
Q(is_active=True)
).exclude( ).exclude(
Q(status__icontains='Draft') & Q(status__icontains='Draft') &
~Q(requested_by_user=user_id_number) ~Q(requested_by_user=user_id_number)
...@@ -59,6 +59,7 @@ def list_by_user_archived(user_id_number): ...@@ -59,6 +59,7 @@ def list_by_user_archived(user_id_number):
).values('group_pivots') ).values('group_pivots')
return_queryset = models.ChangeRequestFormHeader.objects.filter( return_queryset = models.ChangeRequestFormHeader.objects.filter(
Q(is_active=False) |
Q(frm_approvers__user__code=user_id_number) | Q(frm_approvers__user__code=user_id_number) |
Q(frm_stakes__user__code=user_id_number) | Q(frm_stakes__user__code=user_id_number) |
Q(requested_by_user=user_id_number) | Q(requested_by_user=user_id_number) |
...@@ -85,8 +86,7 @@ def list_by_user_without_dept(user_id_number): ...@@ -85,8 +86,7 @@ def list_by_user_without_dept(user_id_number):
Q(requested_by_user=user_id_number) Q(requested_by_user=user_id_number)
).exclude( ).exclude(
Q(status__icontains='Draft') & Q(status__icontains='Draft') &
~Q(requested_by_user=user_id_number) | ~Q(requested_by_user=user_id_number)
Q(status__icontains='Archived')
).distinct() ).distinct()
return return_queryset return return_queryset
......
{ {
"info": { "info": {
"_postman_id": "733e6f05-1f26-4ab8-bcfb-a379c0263a73", "_postman_id": "30240930-2f51-45d9-8cfe-5cb4a6e29069",
"name": "RMSv2 copy", "name": "RMSv2",
"schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json" "schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json"
}, },
"item": [ "item": [
...@@ -16,10 +16,6 @@ ...@@ -16,10 +16,6 @@
"request": { "request": {
"method": "GET", "method": "GET",
"header": [], "header": [],
"body": {
"mode": "raw",
"raw": ""
},
"url": { "url": {
"raw": "{{baseurl}}/master/companies/", "raw": "{{baseurl}}/master/companies/",
"host": [ "host": [
...@@ -44,13 +40,13 @@ ...@@ -44,13 +40,13 @@
"formdata": [ "formdata": [
{ {
"key": "url", "key": "url",
"type": "file", "value": "",
"src": "" "type": "file"
}, },
{ {
"key": "url", "key": "url",
"type": "file", "value": "",
"src": "" "type": "file"
} }
] ]
}, },
...@@ -81,13 +77,13 @@ ...@@ -81,13 +77,13 @@
"formdata": [ "formdata": [
{ {
"key": "url", "key": "url",
"type": "file", "value": "",
"src": "" "type": "file"
}, },
{ {
"key": "url", "key": "url",
"type": "file", "value": "",
"src": "" "type": "file"
} }
] ]
}, },
...@@ -110,10 +106,6 @@ ...@@ -110,10 +106,6 @@
"request": { "request": {
"method": "GET", "method": "GET",
"header": [], "header": [],
"body": {
"mode": "raw",
"raw": ""
},
"url": { "url": {
"raw": "{{baseurl}}/master/departments/", "raw": "{{baseurl}}/master/departments/",
"host": [ "host": [
...@@ -133,10 +125,6 @@ ...@@ -133,10 +125,6 @@
"request": { "request": {
"method": "GET", "method": "GET",
"header": [], "header": [],
"body": {
"mode": "raw",
"raw": ""
},
"url": { "url": {
"raw": "{{baseurl}}/master/user-types/", "raw": "{{baseurl}}/master/user-types/",
"host": [ "host": [
...@@ -156,10 +144,6 @@ ...@@ -156,10 +144,6 @@
"request": { "request": {
"method": "GET", "method": "GET",
"header": [], "header": [],
"body": {
"mode": "raw",
"raw": ""
},
"url": { "url": {
"raw": "{{baseurl}}/master/users/", "raw": "{{baseurl}}/master/users/",
"host": [ "host": [
...@@ -175,6 +159,7 @@ ...@@ -175,6 +159,7 @@
"response": [] "response": []
} }
], ],
"protocolProfileBehavior": {},
"_postman_isSubFolder": true "_postman_isSubFolder": true
}, },
{ {
...@@ -188,10 +173,6 @@ ...@@ -188,10 +173,6 @@
"request": { "request": {
"method": "GET", "method": "GET",
"header": [], "header": [],
"body": {
"mode": "raw",
"raw": ""
},
"url": { "url": {
"raw": "{{baseurl}}/management/applications/", "raw": "{{baseurl}}/management/applications/",
"host": [ "host": [
...@@ -211,10 +192,6 @@ ...@@ -211,10 +192,6 @@
"request": { "request": {
"method": "GET", "method": "GET",
"header": [], "header": [],
"body": {
"mode": "raw",
"raw": ""
},
"url": { "url": {
"raw": "{{baseurl}}/management/applications/APP-20190917-0000001/", "raw": "{{baseurl}}/management/applications/APP-20190917-0000001/",
"host": [ "host": [
...@@ -323,6 +300,7 @@ ...@@ -323,6 +300,7 @@
"response": [] "response": []
} }
], ],
"protocolProfileBehavior": {},
"_postman_isSubFolder": true "_postman_isSubFolder": true
}, },
{ {
...@@ -333,10 +311,6 @@ ...@@ -333,10 +311,6 @@
"request": { "request": {
"method": "GET", "method": "GET",
"header": [], "header": [],
"body": {
"mode": "raw",
"raw": ""
},
"url": { "url": {
"raw": "{{baseurl}}/management/companies/", "raw": "{{baseurl}}/management/companies/",
"host": [ "host": [
...@@ -356,10 +330,6 @@ ...@@ -356,10 +330,6 @@
"request": { "request": {
"method": "GET", "method": "GET",
"header": [], "header": [],
"body": {
"mode": "raw",
"raw": ""
},
"url": { "url": {
"raw": "{{baseurl}}/management/companies/COMPANY-20190909-0000001/", "raw": "{{baseurl}}/management/companies/COMPANY-20190909-0000001/",
"host": [ "host": [
...@@ -468,6 +438,7 @@ ...@@ -468,6 +438,7 @@
"response": [] "response": []
} }
], ],
"protocolProfileBehavior": {},
"_postman_isSubFolder": true "_postman_isSubFolder": true
}, },
{ {
...@@ -478,10 +449,6 @@ ...@@ -478,10 +449,6 @@
"request": { "request": {
"method": "GET", "method": "GET",
"header": [], "header": [],
"body": {
"mode": "raw",
"raw": ""
},
"url": { "url": {
"raw": "{{baseurl}}/management/departments/", "raw": "{{baseurl}}/management/departments/",
"host": [ "host": [
...@@ -501,10 +468,6 @@ ...@@ -501,10 +468,6 @@
"request": { "request": {
"method": "GET", "method": "GET",
"header": [], "header": [],
"body": {
"mode": "raw",
"raw": ""
},
"url": { "url": {
"raw": "{{baseurl}}/management/departments/DEPARTMENT-20190919-0000001/", "raw": "{{baseurl}}/management/departments/DEPARTMENT-20190919-0000001/",
"host": [ "host": [
...@@ -613,6 +576,7 @@ ...@@ -613,6 +576,7 @@
"response": [] "response": []
} }
], ],
"protocolProfileBehavior": {},
"_postman_isSubFolder": true "_postman_isSubFolder": true
}, },
{ {
...@@ -623,10 +587,6 @@ ...@@ -623,10 +587,6 @@
"request": { "request": {
"method": "GET", "method": "GET",
"header": [], "header": [],
"body": {
"mode": "raw",
"raw": ""
},
"url": { "url": {
"raw": "{{baseurl}}/management/modules/?page=2", "raw": "{{baseurl}}/management/modules/?page=2",
"host": [ "host": [
...@@ -652,10 +612,6 @@ ...@@ -652,10 +612,6 @@
"request": { "request": {
"method": "GET", "method": "GET",
"header": [], "header": [],
"body": {
"mode": "raw",
"raw": ""
},
"url": { "url": {
"raw": "{{baseurl}}/management/modules/MODULE-20190919-0000007/", "raw": "{{baseurl}}/management/modules/MODULE-20190919-0000007/",
"host": [ "host": [
...@@ -768,6 +724,7 @@ ...@@ -768,6 +724,7 @@
"response": [] "response": []
} }
], ],
"protocolProfileBehavior": {},
"_postman_isSubFolder": true "_postman_isSubFolder": true
}, },
{ {
...@@ -778,10 +735,6 @@ ...@@ -778,10 +735,6 @@
"request": { "request": {
"method": "GET", "method": "GET",
"header": [], "header": [],
"body": {
"mode": "raw",
"raw": ""
},
"url": { "url": {
"raw": "{{baseurl}}/management/users/", "raw": "{{baseurl}}/management/users/",
"host": [ "host": [
...@@ -801,10 +754,6 @@ ...@@ -801,10 +754,6 @@
"request": { "request": {
"method": "GET", "method": "GET",
"header": [], "header": [],
"body": {
"mode": "raw",
"raw": ""
},
"url": { "url": {
"raw": "{{baseurl}}/management/users/USER-20190919-0000028/", "raw": "{{baseurl}}/management/users/USER-20190919-0000028/",
"host": [ "host": [
...@@ -991,8 +940,8 @@ ...@@ -991,8 +940,8 @@
"formdata": [ "formdata": [
{ {
"key": "image", "key": "image",
"type": "file", "value": "",
"src": "" "type": "file"
}, },
{ {
"key": "name", "key": "name",
...@@ -1087,9 +1036,11 @@ ...@@ -1087,9 +1036,11 @@
"response": [] "response": []
} }
], ],
"protocolProfileBehavior": {},
"_postman_isSubFolder": true "_postman_isSubFolder": true
} }
], ],
"protocolProfileBehavior": {},
"_postman_isSubFolder": true "_postman_isSubFolder": true
}, },
{ {
...@@ -1100,10 +1051,6 @@ ...@@ -1100,10 +1051,6 @@
"request": { "request": {
"method": "GET", "method": "GET",
"header": [], "header": [],
"body": {
"mode": "raw",
"raw": ""
},
"url": { "url": {
"raw": "{{baseurl}}/auth/current-user/", "raw": "{{baseurl}}/auth/current-user/",
"host": [ "host": [
...@@ -1268,43 +1215,49 @@ ...@@ -1268,43 +1215,49 @@
"response": [] "response": []
} }
], ],
"protocolProfileBehavior": {},
"_postman_isSubFolder": true "_postman_isSubFolder": true
} }
] ],
"protocolProfileBehavior": {}
}, },
{ {
"name": "Change Request", "name": "Change Request",
"item": [ "item": [
{ {
"name": "CR Templates", "name": "CR Forms",
"item": [ "item": [
{ {
"name": "CR Template Header", "name": "Dashboard",
"item": [ "item": [
{ {
"name": "Template Header Post", "name": "Form Dashboard",
"protocolProfileBehavior": {
"disableBodyPruning": true
},
"request": { "request": {
"method": "POST", "method": "GET",
"header": [ "header": [
{ {
"key": "Content-Type", "key": "Content-Type",
"name": "Content-Type", "name": "Content-Type",
"value": "application/json", "type": "text",
"type": "text" "value": "application/json"
} }
], ],
"body": { "body": {
"mode": "raw", "mode": "raw",
"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\"file_upload\": \"1\",\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\"file_upload\": \"2\",\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}" "raw": ""
}, },
"url": { "url": {
"raw": "{{baseurl}}/change-request/template-post/", "raw": "{{baseurl}}/change-request/form/dashboard/",
"host": [ "host": [
"{{baseurl}}" "{{baseurl}}"
], ],
"path": [ "path": [
"change-request", "change-request",
"template-post", "form",
"dashboard",
"" ""
] ]
} }
...@@ -1312,77 +1265,151 @@ ...@@ -1312,77 +1265,151 @@
"response": [] "response": []
}, },
{ {
"name": "List of Templates", "name": "Form Dashboard Copy",
"protocolProfileBehavior": {
"disableBodyPruning": true
},
"request": { "request": {
"method": "GET", "method": "GET",
"header": [], "header": [
{
"key": "Content-Type",
"name": "Content-Type",
"type": "text",
"value": "application/json"
}
],
"body": { "body": {
"mode": "raw", "mode": "raw",
"raw": "" "raw": ""
}, },
"url": { "url": {
"raw": "{{baseurl}}/change-request/template/", "raw": "http://devapi.rmsv2.oneberrysystem.com/api/v1/change-request/form/dashboard/?date_required_from=2019-09-01&date_required_to=2019-09-02&date_modified_from=2019-09-04&date_modified_to=2019-09-05&company_requested_to=COMPANY-20190923-0000001&department_requested_to=DEPARTMENT-20190923-0000002&form_type=closed",
"protocol": "http",
"host": [ "host": [
"{{baseurl}}" "devapi",
"rmsv2",
"oneberrysystem",
"com"
], ],
"path": [ "path": [
"api",
"v1",
"change-request", "change-request",
"template", "form",
"dashboard",
"" ""
],
"query": [
{
"key": "date_required_from",
"value": "2019-09-01"
},
{
"key": "date_required_to",
"value": "2019-09-02"
},
{
"key": "date_modified_from",
"value": "2019-09-04"
},
{
"key": "date_modified_to",
"value": "2019-09-05"
},
{
"key": "company_requested_to",
"value": "COMPANY-20190923-0000001"
},
{
"key": "department_requested_to",
"value": "DEPARTMENT-20190923-0000002"
},
{
"key": "form_type",
"value": "closed"
}
] ]
} }
}, },
"response": [] "response": []
}, },
{ {
"name": "View Template", "name": "Form Status",
"protocolProfileBehavior": {
"disableBodyPruning": true
},
"request": { "request": {
"method": "GET", "method": "GET",
"header": [], "header": [
{
"key": "Content-Type",
"name": "Content-Type",
"type": "text",
"value": "application/json"
}
],
"body": { "body": {
"mode": "raw", "mode": "raw",
"raw": "" "raw": ""
}, },
"url": { "url": {
"raw": "{{baseurl}}/change-request/template/TMP-20190927-0000001/", "raw": "{{baseurl}}/change-request/form/status/?status=pending&ordering=created&page_size=1",
"host": [ "host": [
"{{baseurl}}" "{{baseurl}}"
], ],
"path": [ "path": [
"change-request", "change-request",
"template", "form",
"TMP-20190927-0000001", "status",
"" ""
],
"query": [
{
"key": "status",
"value": "pending"
},
{
"key": "ordering",
"value": "created"
},
{
"key": "page_size",
"value": "1"
}
] ]
} }
}, },
"response": [] "response": []
}, },
{ {
"name": "Edit Template", "name": "Form Overdue",
"protocolProfileBehavior": {
"disableBodyPruning": true
},
"request": { "request": {
"method": "PATCH", "method": "GET",
"header": [ "header": [
{ {
"key": "Content-Type", "key": "Content-Type",
"name": "Content-Type", "name": "Content-Type",
"value": "application/json", "type": "text",
"type": "text" "value": "application/json"
} }
], ],
"body": { "body": {
"mode": "raw", "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}" "raw": ""
}, },
"url": { "url": {
"raw": "{{baseurl}}/change-request/template/TMP-20190911-0000001/", "raw": "{{baseurl}}/change-request/form/overdue/",
"host": [ "host": [
"{{baseurl}}" "{{baseurl}}"
], ],
"path": [ "path": [
"change-request", "change-request",
"template", "form",
"TMP-20190911-0000001", "overdue",
"" ""
] ]
} }
...@@ -1390,23 +1417,33 @@ ...@@ -1390,23 +1417,33 @@
"response": [] "response": []
}, },
{ {
"name": "Archive Template", "name": "Form Awaiting",
"protocolProfileBehavior": {
"disableBodyPruning": true
},
"request": { "request": {
"method": "PATCH", "method": "GET",
"header": [], "header": [
{
"key": "Content-Type",
"name": "Content-Type",
"type": "text",
"value": "application/json"
}
],
"body": { "body": {
"mode": "raw", "mode": "raw",
"raw": "" "raw": ""
}, },
"url": { "url": {
"raw": "{{baseurl}}/change-request/template/archived/", "raw": "{{baseurl}}/change-request/form/awaiting/",
"host": [ "host": [
"{{baseurl}}" "{{baseurl}}"
], ],
"path": [ "path": [
"change-request", "change-request",
"template", "form",
"archived", "awaiting",
"" ""
] ]
} }
...@@ -1414,80 +1451,115 @@ ...@@ -1414,80 +1451,115 @@
"response": [] "response": []
}, },
{ {
"name": "Retrieve Template", "name": "Form History",
"protocolProfileBehavior": {
"disableBodyPruning": true
},
"request": { "request": {
"method": "PATCH", "auth": {
"header": [], "type": "oauth2",
"oauth2": [
{
"key": "accessToken",
"value": "cJeBxXT2KVtu7yPUQ5HlESDqTmss8G6m",
"type": "string"
},
{
"key": "tokenType",
"type": "any"
},
{
"key": "addTokenTo",
"value": "header",
"type": "string"
}
]
},
"method": "GET",
"header": [
{
"key": "Content-Type",
"name": "Content-Type",
"type": "text",
"value": "application/json"
}
],
"body": { "body": {
"mode": "raw", "mode": "raw",
"raw": "" "raw": ""
}, },
"url": { "url": {
"raw": "{{baseurl}}/change-request/template/TMP-20190909-0000002/", "raw": "{{baseurl}}/change-request-service/form/FRM-20190823-0000002/history/?page=2",
"host": [ "host": [
"{{baseurl}}" "{{baseurl}}"
], ],
"path": [ "path": [
"change-request", "change-request-service",
"template", "form",
"TMP-20190909-0000002", "FRM-20190823-0000002",
"history",
"" ""
],
"query": [
{
"key": "page",
"value": "2"
}
] ]
} }
}, },
"response": [] "response": []
}, }
],
"protocolProfileBehavior": {},
"_postman_isSubFolder": true
},
{
"name": "CR Form Header",
"item": [
{ {
"name": "Delete Template", "name": "Create Form Header",
"request": { "request": {
"method": "DELETE", "method": "POST",
"header": [], "header": [
{
"key": "Content-Type",
"name": "Content-Type",
"type": "text",
"value": "application/json"
}
],
"body": { "body": {
"mode": "raw", "mode": "raw",
"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 \"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\": \"werwer\",\r\n \"requested_to_company\": \"COMPANY-20190923-0000001\",\r\n \"requested_to_department\": \"DEPARTMENT-20190923-0000002\",\r\n \"requested_to_user\": \"USER-20190923-0000010\",\r\n \"requested_by_user\": \"USER-20190923-0000010\",\r\n \"requested_by_department\": \"DEPARTMENT-20190923-0000002\",\r\n \"template_no\": \"TMP-20190930-0000016\",\r\n \"frm_approvers\": [\r\n {\r\n \"level\": 1,\r\n \"delegation\": \"Approver\",\r\n \"code\": \"FRMAPR-20190928-0000015\",\r\n \"remarks\": null,\r\n \"action\": null,\r\n \"action_date\": null,\r\n \"date_sent\": null,\r\n \"user\": \"USER-20190923-0000010\",\r\n \"form_code\": \"FRM-20190928-0000003\",\r\n \"tmp_approver\": null\r\n }\r\n ],\r\n \"frm_stakes\": [\r\n {\r\n \"delegation\": \"Mandatory Stakeholder\",\r\n \"created\": \"2019-09-28T12:35:03.866080\",\r\n \"code\": \"FRMSTK-20190928-0000003\",\r\n \"date_added\": null,\r\n \"user\": \"USER-20190923-0000010\",\r\n \"tmp_stake\": null\r\n }\r\n ],\r\n \"frm_attachments\": [\r\n ],\r\n \"frm_details\": [\r\n {\r\n \"field_idx\": \"2\",\r\n \"field_ref\": \"SHRQSTN-8mf1mtpahnjk13d3jia\",\r\n \"field_val\": \"\\\"\\\"\",\r\n \"field_props\": \"{\\\"id\\\":\\\"5d28715801c3f9e2d74e61e71\\\",\\\"code\\\":\\\"SHRQSTN\\\",\\\"name\\\":\\\"Short Answer\\\",\\\"description\\\":\\\"Text Field\\\",\\\"kvps\\\":[{\\\"code\\\":\\\"QSTN1\\\",\\\"hint\\\":\\\"Ask short question here.\\\",\\\"type\\\":\\\"String\\\",\\\"name\\\":\\\"Enter one here\\\",\\\"value\\\":\\\"\\\",\\\"items\\\":[]},{\\\"code\\\":\\\"REQUIRED\\\",\\\"hint\\\":\\\"Required\\\",\\\"type\\\":\\\"Boolean\\\",\\\"name\\\":true,\\\"value\\\":\\\"\\\",\\\"items\\\":[]}],\\\"template\\\":\\\"\\\\n <span class=\\\\\\\"subtitle-1\\\\\\\">Enter one here</span>\\\\n <input-field\\\\n :value=\\\\\\\"value\\\\\\\"\\\\n @input=\\\\\\\"(e) => { $emit('input', e) }\\\\\\\"\\\\n :max_text = \\\\\\\"'80'\\\\\\\"\\\\n :type=\\\\\\\"'String'\\\\\\\"\\\\n :required=\\\\\\\"true\\\\\\\"\\\\n />\\\\n \\\"}\",\r\n \"created\": \"2019-09-28T17:38:53.441175\",\r\n \"code\": \"TMPDETAIL-20190928-0000006\",\r\n \"template_no\": \"TMP-20190928-0000008\"\r\n },\r\n {\r\n \"field_idx\": \"3\",\r\n \"field_ref\": \"SHRQSTN-1l3zgkkoszahk13d4ag0\",\r\n \"field_val\": \"\\\"\\\"\",\r\n \"field_props\": \"{\\\"id\\\":\\\"5d28715801c3f9e2d74e61e71\\\",\\\"code\\\":\\\"SHRQSTN\\\",\\\"name\\\":\\\"Short Answer\\\",\\\"description\\\":\\\"Text Field\\\",\\\"kvps\\\":[{\\\"code\\\":\\\"QSTN1\\\",\\\"hint\\\":\\\"Ask short question here.\\\",\\\"type\\\":\\\"String\\\",\\\"name\\\":\\\"Enter two here\\\",\\\"value\\\":\\\"\\\",\\\"items\\\":[]},{\\\"code\\\":\\\"REQUIRED\\\",\\\"hint\\\":\\\"Required\\\",\\\"type\\\":\\\"Boolean\\\",\\\"name\\\":false,\\\"value\\\":\\\"\\\",\\\"items\\\":[]}],\\\"template\\\":\\\"\\\\n <span class=\\\\\\\"subtitle-1\\\\\\\">Enter two here</span>\\\\n <input-field\\\\n :value=\\\\\\\"value\\\\\\\"\\\\n @input=\\\\\\\"(e) => { $emit('input', e) }\\\\\\\"\\\\n :max_text = \\\\\\\"'80'\\\\\\\"\\\\n :type=\\\\\\\"'String'\\\\\\\"\\\\n :required=\\\\\\\"false\\\\\\\"\\\\n />\\\\n \\\"}\",\r\n \"created\": \"2019-09-28T17:38:53.443366\",\r\n \"code\": \"TMPDETAIL-20190928-0000007\",\r\n \"template_no\": \"TMP-20190928-0000008\"\r\n }\r\n ]\r\n}"
}, },
"url": { "url": {
"raw": "{{baseurl}}/change-request/template/TMP-20190916-0000003/", "raw": "{{baseurl}}/change-request/form-post/",
"host": [ "host": [
"{{baseurl}}" "{{baseurl}}"
], ],
"path": [ "path": [
"change-request", "change-request",
"template", "form-post",
"TMP-20190916-0000003",
"" ""
] ]
} }
}, },
"response": [] "response": []
} },
],
"_postman_isSubFolder": true
},
{
"name": "CR Template Approver",
"item": [
{ {
"name": "List of Approvers", "name": "List of Forms",
"request": { "request": {
"method": "GET", "method": "GET",
"header": [], "header": [],
"body": {
"mode": "raw",
"raw": ""
},
"url": { "url": {
"raw": "http://localhost:8000/api/v1/change-request/template-approvers/", "raw": "{{baseurl}}/change-request/form/",
"protocol": "http",
"host": [ "host": [
"localhost" "{{baseurl}}"
], ],
"port": "8000",
"path": [ "path": [
"api",
"v1",
"change-request", "change-request",
"template-approvers", "form",
"" ""
] ]
} }
...@@ -1495,52 +1567,97 @@ ...@@ -1495,52 +1567,97 @@
"response": [] "response": []
}, },
{ {
"name": "View Approver", "name": "View Form",
"request": { "request": {
"method": "GET", "method": "GET",
"header": [], "header": [],
"body": {
"mode": "raw",
"raw": ""
},
"url": { "url": {
"raw": "{{baseurl}}/change-request/template-approvers/TMPAPR-20190911-0000001/", "raw": "{{baseurl}}/change-request/form/FRM-20190930-0000031/",
"host": [ "host": [
"{{baseurl}}" "{{baseurl}}"
], ],
"path": [ "path": [
"change-request", "change-request",
"template-approvers", "form",
"TMPAPR-20190911-0000001", "FRM-20190930-0000031",
"" ""
] ]
} }
}, },
"response": [] "response": []
} },
],
"_postman_isSubFolder": true
},
{
"name": "CR Template Stakeholder",
"item": [
{ {
"name": "List of Stakeholders", "name": "Re Route for Approval",
"request": { "request": {
"method": "GET", "method": "PATCH",
"header": [], "header": [],
"url": {
"raw": "{{baseurl}}/change-request/form/FRM-20190930-0000035/re_route/",
"host": [
"{{baseurl}}"
],
"path": [
"change-request",
"form",
"FRM-20190930-0000035",
"re_route",
""
]
}
},
"response": []
},
{
"name": "Resubmit",
"request": {
"method": "PATCH",
"header": [],
"url": {
"raw": "{{baseurl}}/change-request/form/FRM-20190930-0000035/re_submit/",
"host": [
"{{baseurl}}"
],
"path": [
"change-request",
"form",
"FRM-20190930-0000035",
"re_submit",
""
]
}
},
"response": []
},
{
"name": "CR Action",
"request": {
"method": "PATCH",
"header": [
{
"key": "Content-Type",
"name": "Content-Type",
"value": "application/x-www-form-urlencoded",
"type": "text"
}
],
"body": { "body": {
"mode": "raw", "mode": "raw",
"raw": "" "raw": "{\r\n \"id\": 116,\r\n \"form_code\": \"FRM-20191001-0000042\",\r\n \"delegation\": \"Head of Department\",\r\n \"action\": \"rejected\",\r\n \"level\": \"1\",\r\n \"remarks\": \"due to lack of docu\"\r\n}",
"options": {
"raw": {
"language": "json"
}
}
}, },
"url": { "url": {
"raw": "{{baseurl}}/change-request/template-stakeholders/", "raw": "{{baseurl}}/change-request/form/actions/",
"host": [ "host": [
"{{baseurl}}" "{{baseurl}}"
], ],
"path": [ "path": [
"change-request", "change-request",
"template-stakeholders", "form",
"actions",
"" ""
] ]
} }
...@@ -1548,56 +1665,73 @@ ...@@ -1548,56 +1665,73 @@
"response": [] "response": []
}, },
{ {
"name": "View Stakeholder", "name": "Submit",
"request": { "request": {
"method": "GET", "method": "PATCH",
"header": [], "header": [
{
"key": "Content-Type",
"name": "Content-Type",
"value": "application/json",
"type": "text"
}
],
"body": { "body": {
"mode": "raw", "mode": "raw",
"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 \"company_desc\": \"Oneberry\",\r\n \"department_desc\": \"Oneberry Superuser\",\r\n \"requested_desc\": \"Super User\",\r\n \"requested_to_template_id\": \"JTC\",\r\n \"requested_to_company\": \"COMPANY-20190923-0000002\",\r\n \"requested_to_department\": \"DEPARTMENT-20190923-0000002\",\r\n \"requested_to_user\": \"USER-20190923-0000001\",\r\n \"requested_by_user\": \"USER-20190923-0000001\",\r\n \"requested_by_department\": \"DEPARTMENT-20190923-0000002\",\r\n \"template_no\": \"TMP-20190928-0000006\",\r\n \"frm_approvers\": [\r\n {\r\n \"id\": 1,\r\n \"level\": \"1\",\r\n \"delegation\": \"HOD\",\r\n \"created\": \"2019-09-27T16:33:40.650391\",\r\n \"code\": \"FRMAPR-20190927-0000001\",\r\n \"remarks\": null,\r\n \"action\": null,\r\n \"action_date\": null,\r\n \"date_sent\": null,\r\n \"user\": \"USER-20190923-0000001\",\r\n \"form_code\": \"FRM-20190927-0000001\",\r\n \"tmp_approver\": null\r\n },\r\n {\r\n \"id\": 2,\r\n \"level\": \"2\",\r\n \"delegation\": \"Approver\",\r\n \"created\": \"2019-09-27T16:33:40.698423\",\r\n \"code\": \"FRMAPR-20190927-0000002\",\r\n \"remarks\": null,\r\n \"action\": null,\r\n \"action_date\": null,\r\n \"date_sent\": null,\r\n \"user\": \"USER-20190923-0000001\",\r\n \"form_code\": \"FRM-20190927-0000001\",\r\n \"tmp_approver\": null\r\n }\r\n ],\r\n \"frm_stakes\": [\r\n {\r\n \"id\": 1,\r\n \"delegation\": \"Mandatory Stakeholder\",\r\n \"created\": \"2019-09-27T16:33:40.712421\",\r\n \"code\": \"FRMSTK-20190927-0000001\",\r\n \"date_added\": null,\r\n \"user\": \"USER-20190923-0000001\",\r\n \"form_code\": \"FRM-20190927-0000001\",\r\n \"tmp_stake\": null\r\n }\r\n ],\r\n \"frm_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 \"created\": \"2019-09-27T16:33:40.720390\",\r\n \"code\": \"FRMATCH-20190927-0000001\",\r\n \"uploaded_by\": \"USER-20190923-0000001\",\r\n \"form_code\": \"FRM-20190927-0000001\",\r\n \"file_upload\": null,\r\n \"tmp_attach\": null\r\n }\r\n ],\r\n \"frm_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-27T16:33:40.765389\",\r\n \"code\": \"FRMDETAIL-20190927-0000001\",\r\n \"form_code\": \"FRM-20190927-0000001\",\r\n \"tmp_detail\": null\r\n }\r\n ]\r\n}",
"options": {
"raw": {
"language": "json"
}
}
}, },
"url": { "url": {
"raw": "{{baseurl}}/change-request/template-stakeholders/TMPSTK-20190909-0000001/", "raw": "{{baseurl}}/change-request/form/FRM-20190928-0000002/submit/",
"host": [ "host": [
"{{baseurl}}" "{{baseurl}}"
], ],
"path": [ "path": [
"change-request", "change-request",
"template-stakeholders", "form",
"TMPSTK-20190909-0000001", "FRM-20190928-0000002",
"submit",
"" ""
] ]
} }
}, },
"response": [] "response": []
} },
],
"_postman_isSubFolder": true
},
{
"name": "CR Template Attachment",
"item": [
{ {
"name": "List of Attachments", "name": "Save",
"request": { "request": {
"method": "GET", "method": "PATCH",
"header": [], "header": [
{
"key": "Content-Type",
"name": "Content-Type",
"value": "application/json",
"type": "text"
}
],
"body": { "body": {
"mode": "raw", "mode": "raw",
"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 \"company_desc\": \"Oneberry\",\r\n \"department_desc\": \"Oneberry Superuser\",\r\n \"requested_desc\": \"Super User\",\r\n \"requested_to_template_id\": \"JTC\",\r\n \"requested_to_company\": \"COMPANY-20190923-0000002\",\r\n \"requested_to_department\": \"DEPARTMENT-20190923-0000002\",\r\n \"requested_to_user\": \"USER-20190923-0000001\",\r\n \"requested_by_user\": \"USER-20190923-0000001\",\r\n \"requested_by_department\": \"DEPARTMENT-20190923-0000002\",\r\n \"template_no\": \"TMP-20190927-0000001\",\r\n \"frm_approvers\": [\r\n {\r\n \"id\": 1,\r\n \"level\": \"1\",\r\n \"delegation\": \"HOD\",\r\n \"created\": \"2019-09-27T16:33:40.650391\",\r\n \"code\": \"FRMAPR-20190927-0000001\",\r\n \"remarks\": null,\r\n \"action\": null,\r\n \"action_date\": null,\r\n \"date_sent\": null,\r\n \"user\": \"USER-20190923-0000001\",\r\n \"form_code\": \"FRM-20190927-0000001\",\r\n \"tmp_approver\": null\r\n },\r\n {\r\n \"id\": 2,\r\n \"level\": \"2\",\r\n \"delegation\": \"Approver\",\r\n \"created\": \"2019-09-27T16:33:40.698423\",\r\n \"code\": \"FRMAPR-20190927-0000002\",\r\n \"remarks\": null,\r\n \"action\": null,\r\n \"action_date\": null,\r\n \"date_sent\": null,\r\n \"user\": \"USER-20190923-0000001\",\r\n \"form_code\": \"FRM-20190927-0000001\",\r\n \"tmp_approver\": null\r\n }\r\n ],\r\n \"frm_stakes\": [\r\n {\r\n \"id\": 1,\r\n \"delegation\": \"Mandatory Stakeholder\",\r\n \"created\": \"2019-09-27T16:33:40.712421\",\r\n \"code\": \"FRMSTK-20190927-0000001\",\r\n \"date_added\": null,\r\n \"user\": \"USER-20190923-0000001\",\r\n \"form_code\": \"FRM-20190927-0000001\",\r\n \"tmp_stake\": null\r\n }\r\n ],\r\n \"frm_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 \"created\": \"2019-09-27T16:33:40.720390\",\r\n \"code\": \"FRMATCH-20190927-0000001\",\r\n \"uploaded_by\": \"USER-20190923-0000001\",\r\n \"form_code\": \"FRM-20190927-0000001\",\r\n \"file_upload\": null,\r\n \"tmp_attach\": null\r\n }\r\n ],\r\n \"frm_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-27T16:33:40.765389\",\r\n \"code\": \"FRMDETAIL-20190927-0000001\",\r\n \"form_code\": \"FRM-20190927-0000001\",\r\n \"tmp_detail\": null\r\n }\r\n ]\r\n}",
"options": {
"raw": {
"language": "json"
}
}
}, },
"url": { "url": {
"raw": "http://localhost:8000/api/v1/change-request/template-attachments/", "raw": "{{baseurl}}/change-request/form/FRM-20190927-0000001/save/",
"protocol": "http",
"host": [ "host": [
"localhost" "{{baseurl}}"
], ],
"port": "8000",
"path": [ "path": [
"api",
"v1",
"change-request", "change-request",
"template-attachments", "form",
"FRM-20190927-0000001",
"save",
"" ""
] ]
} }
...@@ -1605,27 +1739,85 @@ ...@@ -1605,27 +1739,85 @@
"response": [] "response": []
}, },
{ {
"name": "View Attachment", "name": "Delete Form",
"request": { "request": {
"method": "GET", "method": "DELETE",
"header": [], "header": [
{
"key": "Content-Type",
"name": "Content-Type",
"type": "text",
"value": "application/json"
}
],
"body": { "body": {
"mode": "raw", "mode": "raw",
"raw": "" "raw": "",
"options": {
"raw": {
"language": "json"
}
}
}, },
"url": { "url": {
"raw": "http://localhost:8000/api/v1/change-request/template-attachments/TMPATCH-20190909-0000001/", "raw": "{{baseurl}}/change-request/form/FRM-20191002-0000037/",
"protocol": "http",
"host": [ "host": [
"localhost" "{{baseurl}}"
], ],
"port": "8000",
"path": [ "path": [
"api",
"v1",
"change-request", "change-request",
"template-attachments", "form",
"TMPATCH-20190909-0000001", "FRM-20191002-0000037",
""
]
}
},
"response": []
},
{
"name": "Archived List",
"request": {
"method": "GET",
"header": [],
"url": {
"raw": "{{baseurl}}/change-request/form/archived/",
"host": [
"{{baseurl}}"
],
"path": [
"change-request",
"form",
"archived",
""
]
}
},
"response": []
},
{
"name": "Restore Archive",
"request": {
"method": "PATCH",
"header": [],
"url": {
"raw": ""
}
},
"response": []
},
{
"name": "Download",
"request": {
"method": "GET",
"header": [],
"url": {
"raw": "{{baseurl}}/change-request/form-download/",
"host": [
"{{baseurl}}"
],
"path": [
"change-request",
"form-download",
"" ""
] ]
} }
...@@ -1633,32 +1825,25 @@ ...@@ -1633,32 +1825,25 @@
"response": [] "response": []
} }
], ],
"protocolProfileBehavior": {},
"_postman_isSubFolder": true "_postman_isSubFolder": true
}, },
{ {
"name": "CR Template Detail", "name": "CR Form Approver",
"item": [ "item": [
{ {
"name": "List of Details", "name": "List of Approvers",
"request": { "request": {
"method": "GET", "method": "GET",
"header": [], "header": [],
"body": {
"mode": "raw",
"raw": ""
},
"url": { "url": {
"raw": "http://localhost:8000/api/v1/change-request/template-details/", "raw": "{{baseurl}}/change-request/form-approvers/",
"protocol": "http",
"host": [ "host": [
"localhost" "{{baseurl}}"
], ],
"port": "8000",
"path": [ "path": [
"api",
"v1",
"change-request", "change-request",
"template-details", "form-approvers",
"" ""
] ]
} }
...@@ -1666,27 +1851,19 @@ ...@@ -1666,27 +1851,19 @@
"response": [] "response": []
}, },
{ {
"name": "View Detail", "name": "View Approver",
"request": { "request": {
"method": "GET", "method": "GET",
"header": [], "header": [],
"body": {
"mode": "raw",
"raw": ""
},
"url": { "url": {
"raw": "http://localhost:8000/api/v1/change-request/template-details/TMPDETAIL-20190909-0000001/", "raw": "{{baseurl}}/change-request/form-approvers/FRMAPR-20190927-0000001/",
"protocol": "http",
"host": [ "host": [
"localhost" "{{baseurl}}"
], ],
"port": "8000",
"path": [ "path": [
"api",
"v1",
"change-request", "change-request",
"template-details", "form-approvers",
"TMPDETAIL-20190909-0000001", "FRMAPR-20190927-0000001",
"" ""
] ]
} }
...@@ -1694,45 +1871,25 @@ ...@@ -1694,45 +1871,25 @@
"response": [] "response": []
} }
], ],
"protocolProfileBehavior": {},
"_postman_isSubFolder": true "_postman_isSubFolder": true
} },
],
"_postman_isSubFolder": true
},
{
"name": "CR Forms",
"item": [
{ {
"name": "CR Form Header", "name": "CR Form Stakeholder",
"item": [ "item": [
{ {
"name": "Create Form Header", "name": "List of Stakeholders",
"request": { "request": {
"method": "POST", "method": "GET",
"header": [ "header": [],
{
"key": "Content-Type",
"name": "Content-Type",
"type": "text",
"value": "application/json"
}
],
"body": {
"mode": "raw",
"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": { "url": {
"raw": "http://localhost:8000/api/v1/change-request/form-post/", "raw": "{{baseurl}}/change-request/form-stakeholders/",
"protocol": "http",
"host": [ "host": [
"localhost" "{{baseurl}}"
], ],
"port": "8000",
"path": [ "path": [
"api",
"v1",
"change-request", "change-request",
"form-post", "form-stakeholders",
"" ""
] ]
} }
...@@ -1740,46 +1897,45 @@ ...@@ -1740,46 +1897,45 @@
"response": [] "response": []
}, },
{ {
"name": "List of Forms", "name": "View Stakeholder",
"request": { "request": {
"method": "GET", "method": "GET",
"header": [], "header": [],
"body": {
"mode": "raw",
"raw": ""
},
"url": { "url": {
"raw": "{{baseurl}}/change-request/form/", "raw": "{{baseurl}}/change-request/form-stakeholders/TMPSTK-20190909-0000001/",
"host": [ "host": [
"{{baseurl}}" "{{baseurl}}"
], ],
"path": [ "path": [
"change-request", "change-request",
"form", "form-stakeholders",
"TMPSTK-20190909-0000001",
"" ""
] ]
} }
}, },
"response": [] "response": []
}, }
],
"protocolProfileBehavior": {},
"_postman_isSubFolder": true
},
{
"name": "CR Form Attachment",
"item": [
{ {
"name": "View Form", "name": "List of Attachments",
"request": { "request": {
"method": "GET", "method": "GET",
"header": [], "header": [],
"body": {
"mode": "raw",
"raw": ""
},
"url": { "url": {
"raw": "{{baseurl}}/change-request/form/FRM-20190912-0000002/", "raw": "{{baseurl}}/change-request/form-attachments/",
"host": [ "host": [
"{{baseurl}}" "{{baseurl}}"
], ],
"path": [ "path": [
"change-request", "change-request",
"form", "form-attachments",
"FRM-20190912-0000002",
"" ""
] ]
} }
...@@ -1787,9 +1943,12 @@ ...@@ -1787,9 +1943,12 @@
"response": [] "response": []
}, },
{ {
"name": "Edit Form", "name": "View Attachment",
"protocolProfileBehavior": {
"disableBodyPruning": true
},
"request": { "request": {
"method": "PUT", "method": "GET",
"header": [ "header": [
{ {
"key": "Content-Type", "key": "Content-Type",
...@@ -1800,59 +1959,43 @@ ...@@ -1800,59 +1959,43 @@
], ],
"body": { "body": {
"mode": "raw", "mode": "raw",
"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}" "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": { "url": {
"raw": "http://localhost:8000/api/v1/change-request/form/FRM-20190909-0000006/", "raw": "{{baseurl}}/change-request/form-attachments/FRMATCH-20190909-0000001/",
"protocol": "http",
"host": [ "host": [
"localhost" "{{baseurl}}"
], ],
"port": "8000",
"path": [ "path": [
"api",
"v1",
"change-request", "change-request",
"form", "form-attachments",
"FRM-20190909-0000006", "FRMATCH-20190909-0000001",
"" ""
] ]
} }
}, },
"response": [] "response": []
}, }
],
"protocolProfileBehavior": {},
"_postman_isSubFolder": true
},
{
"name": "CR Form Detail",
"item": [
{ {
"name": "Delete Form", "name": "List of Details",
"request": { "request": {
"auth": { "method": "GET",
"type": "bearer",
"bearer": [
{
"key": "token",
"value": "951574546a6d45af34dfef101840bba27f1ab574",
"type": "string"
}
]
},
"method": "DELETE",
"header": [], "header": [],
"body": {
"mode": "raw",
"raw": ""
},
"url": { "url": {
"raw": "http://localhost:8000/api/v1/change-request/form/FRM-20190909-0000006/", "raw": "{{baseurl}}/change-request/form-details/",
"protocol": "http",
"host": [ "host": [
"localhost" "{{baseurl}}"
], ],
"port": "8000",
"path": [ "path": [
"api",
"v1",
"change-request", "change-request",
"form", "form-details",
"FRM-20190909-0000006",
"" ""
] ]
} }
...@@ -1860,128 +2003,108 @@ ...@@ -1860,128 +2003,108 @@
"response": [] "response": []
}, },
{ {
"name": "Re Route for Approval", "name": "View Detail",
"request": { "request": {
"method": "PATCH", "method": "GET",
"header": [], "header": [],
"body": {
"mode": "raw",
"raw": ""
},
"url": { "url": {
"raw": "http://localhost:8000/api/v1/change-request/form/FRM-20190913-0000002/re_route/", "raw": "{{baseurl}}/change-request/form-details/FRMDETAIL-20190909-0000001/",
"protocol": "http",
"host": [ "host": [
"localhost" "{{baseurl}}"
], ],
"port": "8000",
"path": [ "path": [
"api",
"v1",
"change-request", "change-request",
"form", "form-details",
"FRM-20190913-0000002", "FRMDETAIL-20190909-0000001",
"re_route",
"" ""
] ]
} }
}, },
"response": [] "response": []
}, }
],
"protocolProfileBehavior": {},
"_postman_isSubFolder": true
}
],
"protocolProfileBehavior": {},
"_postman_isSubFolder": true
},
{
"name": "CR Templates",
"item": [
{
"name": "CR Template Header",
"item": [
{ {
"name": "Resubmit", "name": "Template Header Post",
"request": { "request": {
"method": "PATCH", "method": "POST",
"header": [], "header": [
{
"key": "Content-Type",
"name": "Content-Type",
"value": "application/json",
"type": "text"
}
],
"body": { "body": {
"mode": "raw", "mode": "raw",
"raw": "" "raw": "{\r\n\t\"requested_to_template_name\": \"Security Projects\",\r\n\t\"requested_to_template_id\": \"unionsq\",\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-20190923-0000001\",\r\n\t\"requested_to_company\": \"COMPANY-20190923-0000001\",\r\n\t\"requested_to_department\": \"DEPARTMENT-20190923-0000002\",\r\n\t\"requested_to_user\": \"USER-20190923-0000001\",\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],\r\n\t\r\n\t\"tmp_stakes\": [{\r\n\t\t\"delegation\": \"Mandatory Stakeholder\",\r\n\t\t\"user\": \"USER-20190923-0000001\"\r\n\t}\r\n\t],\r\n\t\r\n\t\"tmp_attachments\": [{\r\n\t\t\"attachment_type\": \"hello\",\r\n\t\t\"attachment_name\": \"hello name\",\r\n\t\t\"file_name\": \"hello\",\r\n\t\t\"description\": \"hello desc\",\r\n\t\t\"file_upload\": 1,\r\n\t\t\"uploaded_by\": \"USER-20190923-0000001\"\r\n\t}\r\n\t],\r\n\t\r\n\t\"tmp_details\": [{\r\n\t\t\"field_idx\": \"ss\",\r\n\t\t\"field_ref\": \"ss\",\r\n\t\t\"field_val\": \"ss\",\r\n\t\t\"field_props\": \"ss\"\r\n\t}\r\n\t]\r\n}"
}, },
"url": { "url": {
"raw": "http://localhost:8000/api/v1/change-request/form/FRM-20190913-0000001/re_submit/", "raw": "{{baseurl}}/change-request/template-post/",
"protocol": "http",
"host": [ "host": [
"localhost" "{{baseurl}}"
], ],
"port": "8000",
"path": [ "path": [
"api",
"v1",
"change-request", "change-request",
"form", "template-post",
"FRM-20190913-0000001",
"re_submit",
"" ""
] ]
} }
}, },
"response": [] "response": []
}, },
{ {
"name": "CR Action", "name": "List of Templates",
"request": { "request": {
"method": "PATCH", "method": "GET",
"header": [ "header": [],
{
"key": "Content-Type",
"name": "Content-Type",
"value": "application/json",
"type": "text"
}
],
"body": {
"mode": "raw",
"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": { "url": {
"raw": "http://localhost:8000/api/v1/change-request/form/actions/", "raw": "{{baseurl}}/change-request/template/?ordering=template_no",
"protocol": "http",
"host": [ "host": [
"localhost" "{{baseurl}}"
], ],
"port": "8000",
"path": [ "path": [
"api",
"v1",
"change-request", "change-request",
"form", "template",
"actions",
"" ""
],
"query": [
{
"key": "ordering",
"value": "template_no"
}
] ]
} }
}, },
"response": [] "response": []
}, },
{ {
"name": "Submit", "name": "View Template",
"request": { "request": {
"method": "PATCH", "method": "GET",
"header": [ "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": { "url": {
"raw": "http://localhost:8000/api/v1/change-request/form/FRM-20190912-0000002/actions/", "raw": "{{baseurl}}/change-request/template/TMP-20190930-0000016/",
"protocol": "http",
"host": [ "host": [
"localhost" "{{baseurl}}"
], ],
"port": "8000",
"path": [ "path": [
"api",
"v1",
"change-request", "change-request",
"form", "template",
"FRM-20190912-0000002", "TMP-20190930-0000016",
"actions",
"" ""
] ]
} }
...@@ -1989,7 +2112,7 @@ ...@@ -1989,7 +2112,7 @@
"response": [] "response": []
}, },
{ {
"name": "Save", "name": "Edit Template",
"request": { "request": {
"method": "PATCH", "method": "PATCH",
"header": [ "header": [
...@@ -2002,22 +2125,17 @@ ...@@ -2002,22 +2125,17 @@
], ],
"body": { "body": {
"mode": "raw", "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}" "raw": "{\r\n \"requested_to_template_name\": \"Security Projects\",\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\": \"BPSI\",\r\n \"requested_to_company\": \"COMPANY-20190923-0000001\",\r\n \"requested_to_department\": \"DEPARTMENT-20190923-0000002\",\r\n \"requested_to_user\": \"USER-20190923-0000001\",\r\n \"created_by_user\": \"USER-20190923-0000001\",\r\n \"created_by_department\": \"DEPARTMENT-20190923-0000002\",\r\n \"tmp_approvers\": [\r\n {\r\n \"id\": 2,\r\n \"level\": \"1\",\r\n \"delegation\": \"Head of Department\",\r\n \"user\": null\r\n },\r\n {\r\n \"level\": \"2\",\r\n \"delegation\": \"Approver\",\r\n \"user\": \"USER-20190923-0000001\"\r\n }\r\n ],\r\n \"tmp_stakes\": [\r\n {\r\n \"id\": 1,\r\n \"delegation\": \"Mandatory Stakeholder\",\r\n \"created\": \"2019-09-27T15:05:56.221176\",\r\n \"code\": \"TMPSTK-20190927-0000001\",\r\n \"user\": \"USER-20190923-0000001\",\r\n \"company\": \"COMPANY-20190923-0000001\",\r\n \"department\": \"DEPARTMENT-20190923-0000001\"\r\n }\r\n ],\r\n \"tmp_attachments\": [\r\n {\r\n \"id\": 1,\r\n \"attachment_type\": \"hello\",\r\n \"attachment_name\": \"hello name\",\r\n \"file_name\": \"hello\",\r\n \"description\": \"hello desc\",\r\n \"created\": \"2019-09-27T15:05:56.254174\",\r\n \"code\": \"TMPATCH-20190927-0000001\",\r\n \"uploaded_by\": \"USER-20190923-0000001\",\r\n \"file_upload\": null\r\n }\r\n ],\r\n \"tmp_details\": [\r\n {\r\n \"id\": 1,\r\n \"field_idx\": \"ss\",\r\n \"field_ref\": \"ss\",\r\n \"field_val\": \"ss\",\r\n \"field_props\": \"ss\",\r\n \"created\": \"2019-09-27T15:05:56.287185\",\r\n \"code\": \"TMPDETAIL-20190927-0000001\",\r\n \"template_no\": \"TMP-20190927-0000002\"\r\n }\r\n ]\r\n}"
}, },
"url": { "url": {
"raw": "http://localhost:8000/api/v1/change-request/form/FRM-20190912-0000002/actions/", "raw": "{{baseurl}}/change-request/template/TMP-20190928-0000003/",
"protocol": "http",
"host": [ "host": [
"localhost" "{{baseurl}}"
], ],
"port": "8000",
"path": [ "path": [
"api",
"v1",
"change-request", "change-request",
"form", "template",
"FRM-20190912-0000002", "TMP-20190928-0000003",
"actions",
"" ""
] ]
} }
...@@ -2025,22 +2143,19 @@ ...@@ -2025,22 +2143,19 @@
"response": [] "response": []
}, },
{ {
"name": "Download", "name": "Delete Template",
"request": { "request": {
"method": "GET", "method": "DELETE",
"header": [], "header": [],
"body": {
"mode": "raw",
"raw": ""
},
"url": { "url": {
"raw": "{{baseurl}}/change-request/template/", "raw": "{{baseurl}}/change-request/template/TMP-20190928-0000003/",
"host": [ "host": [
"{{baseurl}}" "{{baseurl}}"
], ],
"path": [ "path": [
"change-request", "change-request",
"template", "template",
"TMP-20190928-0000003",
"" ""
] ]
} }
...@@ -2048,32 +2163,25 @@ ...@@ -2048,32 +2163,25 @@
"response": [] "response": []
} }
], ],
"protocolProfileBehavior": {},
"_postman_isSubFolder": true "_postman_isSubFolder": true
}, },
{ {
"name": "CR Form Approver", "name": "CR Template Approver",
"item": [ "item": [
{ {
"name": "List of Approvers", "name": "List of Approvers",
"request": { "request": {
"method": "GET", "method": "GET",
"header": [], "header": [],
"body": {
"mode": "raw",
"raw": ""
},
"url": { "url": {
"raw": "http://localhost:8000/api/v1/change-request/form-approvers/", "raw": "{{baseurl}}/change-request/template-approvers/",
"protocol": "http",
"host": [ "host": [
"localhost" "{{baseurl}}"
], ],
"port": "8000",
"path": [ "path": [
"api",
"v1",
"change-request", "change-request",
"form-approvers", "template-approvers",
"" ""
] ]
} }
...@@ -2085,23 +2193,15 @@ ...@@ -2085,23 +2193,15 @@
"request": { "request": {
"method": "GET", "method": "GET",
"header": [], "header": [],
"body": {
"mode": "raw",
"raw": ""
},
"url": { "url": {
"raw": "http://localhost:8000/api/v1/change-request/form-approvers/TMPAPR-20190909-0000001/", "raw": "{{baseurl}}/change-request/template-approvers/TMPAPR-20190924-0000015/",
"protocol": "http",
"host": [ "host": [
"localhost" "{{baseurl}}"
], ],
"port": "8000",
"path": [ "path": [
"api",
"v1",
"change-request", "change-request",
"form-approvers", "template-approvers",
"TMPAPR-20190909-0000001", "TMPAPR-20190924-0000015",
"" ""
] ]
} }
...@@ -2109,32 +2209,25 @@ ...@@ -2109,32 +2209,25 @@
"response": [] "response": []
} }
], ],
"protocolProfileBehavior": {},
"_postman_isSubFolder": true "_postman_isSubFolder": true
}, },
{ {
"name": "CR Form Stakeholder", "name": "CR Template Stakeholder",
"item": [ "item": [
{ {
"name": "List of Stakeholders", "name": "List of Stakeholders",
"request": { "request": {
"method": "GET", "method": "GET",
"header": [], "header": [],
"body": {
"mode": "raw",
"raw": ""
},
"url": { "url": {
"raw": "http://localhost:8000/api/v1/change-request/form-stakeholders/", "raw": "{{baseurl}}/change-request/template-stakeholders/",
"protocol": "http",
"host": [ "host": [
"localhost" "{{baseurl}}"
], ],
"port": "8000",
"path": [ "path": [
"api",
"v1",
"change-request", "change-request",
"form-stakeholders", "template-stakeholders",
"" ""
] ]
} }
...@@ -2146,22 +2239,14 @@ ...@@ -2146,22 +2239,14 @@
"request": { "request": {
"method": "GET", "method": "GET",
"header": [], "header": [],
"body": {
"mode": "raw",
"raw": ""
},
"url": { "url": {
"raw": "http://localhost:8000/api/v1/change-request/form-stakeholders/TMPSTK-20190909-0000001/", "raw": "{{baseurl}}/change-request/template-stakeholders/TMPSTK-20190909-0000001/",
"protocol": "http",
"host": [ "host": [
"localhost" "{{baseurl}}"
], ],
"port": "8000",
"path": [ "path": [
"api",
"v1",
"change-request", "change-request",
"form-stakeholders", "template-stakeholders",
"TMPSTK-20190909-0000001", "TMPSTK-20190909-0000001",
"" ""
] ]
...@@ -2170,32 +2255,25 @@ ...@@ -2170,32 +2255,25 @@
"response": [] "response": []
} }
], ],
"protocolProfileBehavior": {},
"_postman_isSubFolder": true "_postman_isSubFolder": true
}, },
{ {
"name": "CR Form Attachment", "name": "CR Template Attachment",
"item": [ "item": [
{ {
"name": "List of Attachments", "name": "List of Attachments",
"request": { "request": {
"method": "GET", "method": "GET",
"header": [], "header": [],
"body": {
"mode": "raw",
"raw": ""
},
"url": { "url": {
"raw": "http://localhost:8000/api/v1/change-request/form-attachments/", "raw": "{{baseurl}}/change-request/template-attachments/",
"protocol": "http",
"host": [ "host": [
"localhost" "{{baseurl}}"
], ],
"port": "8000",
"path": [ "path": [
"api",
"v1",
"change-request", "change-request",
"form-attachments", "template-attachments",
"" ""
] ]
} }
...@@ -2204,36 +2282,18 @@ ...@@ -2204,36 +2282,18 @@
}, },
{ {
"name": "View Attachment", "name": "View Attachment",
"protocolProfileBehavior": {
"disableBodyPruning": true
},
"request": { "request": {
"method": "GET", "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": { "url": {
"raw": "http://localhost:8000/api/v1/change-request/form-attachments/FRMATCH-20190909-0000001/", "raw": "{{baseurl}}/change-request/template-attachments/TMPATCH-20190909-0000001/",
"protocol": "http",
"host": [ "host": [
"localhost" "{{baseurl}}"
], ],
"port": "8000",
"path": [ "path": [
"api",
"v1",
"change-request", "change-request",
"form-attachments", "template-attachments",
"FRMATCH-20190909-0000001", "TMPATCH-20190909-0000001",
"" ""
] ]
} }
...@@ -2241,32 +2301,25 @@ ...@@ -2241,32 +2301,25 @@
"response": [] "response": []
} }
], ],
"protocolProfileBehavior": {},
"_postman_isSubFolder": true "_postman_isSubFolder": true
}, },
{ {
"name": "CR Form Detail", "name": "CR Template Detail",
"item": [ "item": [
{ {
"name": "List of Details", "name": "List of Details",
"request": { "request": {
"method": "GET", "method": "GET",
"header": [], "header": [],
"body": {
"mode": "raw",
"raw": ""
},
"url": { "url": {
"raw": "http://localhost:8000/api/v1/change-request/form-details/", "raw": "{{baseurl}}/change-request/template-details/",
"protocol": "http",
"host": [ "host": [
"localhost" "{{baseurl}}"
], ],
"port": "8000",
"path": [ "path": [
"api",
"v1",
"change-request", "change-request",
"form-details", "template-details",
"" ""
] ]
} }
...@@ -2278,23 +2331,15 @@ ...@@ -2278,23 +2331,15 @@
"request": { "request": {
"method": "GET", "method": "GET",
"header": [], "header": [],
"body": {
"mode": "raw",
"raw": ""
},
"url": { "url": {
"raw": "http://localhost:8000/api/v1/change-request/form-details/FRMDETAIL-20190909-0000001/", "raw": "{{baseurl}}/change-request/template-details/TMPDETAIL-20190909-0000001/",
"protocol": "http",
"host": [ "host": [
"localhost" "{{baseurl}}"
], ],
"port": "8000",
"path": [ "path": [
"api",
"v1",
"change-request", "change-request",
"form-details", "template-details",
"FRMDETAIL-20190909-0000001", "TMPDETAIL-20190909-0000001",
"" ""
] ]
} }
...@@ -2302,9 +2347,11 @@ ...@@ -2302,9 +2347,11 @@
"response": [] "response": []
} }
], ],
"protocolProfileBehavior": {},
"_postman_isSubFolder": true "_postman_isSubFolder": true
} }
], ],
"protocolProfileBehavior": {},
"_postman_isSubFolder": true "_postman_isSubFolder": true
}, },
{ {
...@@ -2315,10 +2362,6 @@ ...@@ -2315,10 +2362,6 @@
"request": { "request": {
"method": "GET", "method": "GET",
"header": [], "header": [],
"body": {
"mode": "raw",
"raw": ""
},
"url": { "url": {
"raw": "{{baseurl}}/change-request/allowed-companies/", "raw": "{{baseurl}}/change-request/allowed-companies/",
"host": [ "host": [
...@@ -2364,6 +2407,7 @@ ...@@ -2364,6 +2407,7 @@
"response": [] "response": []
} }
], ],
"protocolProfileBehavior": {},
"_postman_isSubFolder": true "_postman_isSubFolder": true
}, },
{ {
...@@ -2374,10 +2418,6 @@ ...@@ -2374,10 +2418,6 @@
"request": { "request": {
"method": "GET", "method": "GET",
"header": [], "header": [],
"body": {
"mode": "raw",
"raw": ""
},
"url": { "url": {
"raw": "{{baseurl}}/change-request/template-companies/", "raw": "{{baseurl}}/change-request/template-companies/",
"host": [ "host": [
...@@ -2397,10 +2437,6 @@ ...@@ -2397,10 +2437,6 @@
"request": { "request": {
"method": "GET", "method": "GET",
"header": [], "header": [],
"body": {
"mode": "raw",
"raw": ""
},
"url": { "url": {
"raw": "{{baseurl}}/change-request/template-departments/?company_code=COMPANY-20190923-0000001", "raw": "{{baseurl}}/change-request/template-departments/?company_code=COMPANY-20190923-0000001",
"host": [ "host": [
...@@ -2426,10 +2462,6 @@ ...@@ -2426,10 +2462,6 @@
"request": { "request": {
"method": "GET", "method": "GET",
"header": [], "header": [],
"body": {
"mode": "raw",
"raw": ""
},
"url": { "url": {
"raw": "{{baseurl}}/change-request/template-user-list/?department_code=DEPARTMENT-20191001-0000017", "raw": "{{baseurl}}/change-request/template-user-list/?department_code=DEPARTMENT-20191001-0000017",
"host": [ "host": [
...@@ -2451,6 +2483,7 @@ ...@@ -2451,6 +2483,7 @@
"response": [] "response": []
} }
], ],
"protocolProfileBehavior": {},
"_postman_isSubFolder": true "_postman_isSubFolder": true
}, },
{ {
...@@ -2461,10 +2494,6 @@ ...@@ -2461,10 +2494,6 @@
"request": { "request": {
"method": "GET", "method": "GET",
"header": [], "header": [],
"body": {
"mode": "raw",
"raw": ""
},
"url": { "url": {
"raw": "{{baseurl}}/change-request/form-companies/", "raw": "{{baseurl}}/change-request/form-companies/",
"host": [ "host": [
...@@ -2484,10 +2513,6 @@ ...@@ -2484,10 +2513,6 @@
"request": { "request": {
"method": "GET", "method": "GET",
"header": [], "header": [],
"body": {
"mode": "raw",
"raw": ""
},
"url": { "url": {
"raw": "{{baseurl}}/change-request/form-departments/?company_code=COMPANY-20190923-0000001", "raw": "{{baseurl}}/change-request/form-departments/?company_code=COMPANY-20190923-0000001",
"host": [ "host": [
...@@ -2513,10 +2538,6 @@ ...@@ -2513,10 +2538,6 @@
"request": { "request": {
"method": "GET", "method": "GET",
"header": [], "header": [],
"body": {
"mode": "raw",
"raw": ""
},
"url": { "url": {
"raw": "{{baseurl}}/change-request/form-user-list/?department_code=DEPARTMENT-20191001-0000017", "raw": "{{baseurl}}/change-request/form-user-list/?department_code=DEPARTMENT-20191001-0000017",
"host": [ "host": [
...@@ -2542,10 +2563,6 @@ ...@@ -2542,10 +2563,6 @@
"request": { "request": {
"method": "GET", "method": "GET",
"header": [], "header": [],
"body": {
"mode": "raw",
"raw": ""
},
"url": { "url": {
"raw": "{{baseurl}}/change-request/allowed-templates/?department_code=DEPARTMENT-20190923-0000001", "raw": "{{baseurl}}/change-request/allowed-templates/?department_code=DEPARTMENT-20190923-0000001",
"host": [ "host": [
...@@ -2567,9 +2584,11 @@ ...@@ -2567,9 +2584,11 @@
"response": [] "response": []
} }
], ],
"protocolProfileBehavior": {},
"_postman_isSubFolder": true "_postman_isSubFolder": true
} }
] ],
"protocolProfileBehavior": {}
}, },
{ {
"name": "Notifications", "name": "Notifications",
...@@ -2580,16 +2599,6 @@ ...@@ -2580,16 +2599,6 @@
"disableBodyPruning": true "disableBodyPruning": true
}, },
"request": { "request": {
"auth": {
"type": "bearer",
"bearer": [
{
"key": "token",
"value": "951574546a6d45af34dfef101840bba27f1ab574",
"type": "string"
}
]
},
"method": "GET", "method": "GET",
"header": [], "header": [],
"body": { "body": {
...@@ -2597,65 +2606,21 @@ ...@@ -2597,65 +2606,21 @@
"raw": "" "raw": ""
}, },
"url": { "url": {
"raw": "http://localhost:8000/api/v1/management/notifications/", "raw": "{{baseurl}}/management/notifications/?account_no=USER-20190927-0000011",
"protocol": "http",
"host": [ "host": [
"localhost" "{{baseurl}}"
], ],
"port": "8000",
"path": [ "path": [
"api",
"v1",
"management", "management",
"notifications", "notifications",
"" ""
] ],
} "query": [
},
"response": []
},
{
"name": "Create Notification",
"request": {
"auth": {
"type": "bearer",
"bearer": [
{ {
"key": "token", "key": "account_no",
"value": "37d5c7c08f82cc0f8a3a73634d3b6a78ead3da37", "value": "USER-20190927-0000011"
"type": "string"
} }
] ]
},
"method": "POST",
"header": [
{
"key": "Content-Type",
"name": "Content-Type",
"type": "text",
"value": "application/json"
}
],
"body": {
"mode": "raw",
"raw": "{\n \"form_header_code\": \"FRM-20190902-000001\",\n \"notif_type\": \"ACTIVITY\",\n \"message\": \"Oneberry CCTV Replacement Request due in 5 days\",\n \"is_read\": false,\n \"app\": \"APP-20190903-0000002\",\n \"account_no\": \"USER-20190904-0000002\",\n \"sender_account_no\": \"USER-20190904-0000002\"\n}"
},
"url": {
"raw": "http://devapi.rmsv2.oneberrysystem.com:7020/api/v1/notifications/",
"protocol": "http",
"host": [
"devapi",
"rmsv2",
"oneberrysystem",
"com"
],
"port": "7020",
"path": [
"api",
"v1",
"notifications",
""
]
} }
}, },
"response": [] "response": []
...@@ -2663,21 +2628,6 @@ ...@@ -2663,21 +2628,6 @@
{ {
"name": "Update Read Status by ids", "name": "Update Read Status by ids",
"request": { "request": {
"auth": {
"type": "basic",
"basic": [
{
"key": "password",
"value": "password123",
"type": "string"
},
{
"key": "username",
"value": "admin",
"type": "string"
}
]
},
"method": "PATCH", "method": "PATCH",
"header": [ "header": [
{ {
...@@ -2689,22 +2639,17 @@ ...@@ -2689,22 +2639,17 @@
], ],
"body": { "body": {
"mode": "raw", "mode": "raw",
"raw": "{\n\t\"ids\": [8]\n}" "raw": "{\n\t\"ids\": [5]\n}"
}, },
"url": { "url": {
"raw": "http://devapi.rmsv2.oneberrysystem.com/api/v1/notifications/USER-20190903-0000002/seen/", "raw": "{{baseurl}}/management/notifications/USER-20190927-0000011/seen/",
"protocol": "http",
"host": [ "host": [
"devapi", "{{baseurl}}"
"rmsv2",
"oneberrysystem",
"com"
], ],
"path": [ "path": [
"api", "management",
"v1",
"notifications", "notifications",
"USER-20190903-0000002", "USER-20190927-0000011",
"seen", "seen",
"" ""
] ]
...@@ -2715,21 +2660,6 @@ ...@@ -2715,21 +2660,6 @@
{ {
"name": "Update Read Status by account_no", "name": "Update Read Status by account_no",
"request": { "request": {
"auth": {
"type": "basic",
"basic": [
{
"key": "password",
"value": "password123",
"type": "string"
},
{
"key": "username",
"value": "admin",
"type": "string"
}
]
},
"method": "PATCH", "method": "PATCH",
"header": [ "header": [
{ {
...@@ -2744,19 +2674,14 @@ ...@@ -2744,19 +2674,14 @@
"raw": "" "raw": ""
}, },
"url": { "url": {
"raw": "http://devapi.rmsv2.oneberrysystem.com/api/v1/notifications/USER-20190903-0000002/seenall/", "raw": "{{baseurl}}/management/notifications/USER-20190927-0000011/seenall/",
"protocol": "http",
"host": [ "host": [
"devapi", "{{baseurl}}"
"rmsv2",
"oneberrysystem",
"com"
], ],
"path": [ "path": [
"api", "management",
"v1",
"notifications", "notifications",
"USER-20190903-0000002", "USER-20190927-0000011",
"seenall", "seenall",
"" ""
] ]
...@@ -2764,7 +2689,8 @@ ...@@ -2764,7 +2689,8 @@
}, },
"response": [] "response": []
} }
] ],
"protocolProfileBehavior": {}
} }
], ],
"auth": { "auth": {
...@@ -2772,7 +2698,7 @@ ...@@ -2772,7 +2698,7 @@
"bearer": [ "bearer": [
{ {
"key": "token", "key": "token",
"value": "84053738abba94c9619a6bfc5905c9674f6b59a1", "value": "d157c0d54e592d1ff0c746e0e58a8406d952353c",
"type": "string" "type": "string"
} }
] ]
...@@ -2798,5 +2724,6 @@ ...@@ -2798,5 +2724,6 @@
] ]
} }
} }
] ],
"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