Commit c5abfae8 authored by Gladys Forte's avatar Gladys Forte

added is active

parent a6bf5ce1
...@@ -1058,6 +1058,49 @@ class ChangeRequestFormsViewset(viewsets.ModelViewSet): ...@@ -1058,6 +1058,49 @@ class ChangeRequestFormsViewset(viewsets.ModelViewSet):
return Response(message, status=status.HTTP_200_OK) return Response(message, status=status.HTTP_200_OK)
@action(
methods=['GET'], detail=False,
url_path='archived', url_name='archived'
)
def archived(self, request, *args, **kwargs):
self.serializer_class = ChangeRequestFormHeaderSerializerList
id_number = self.request.user.code
self.queryset = change_request.list_by_user_archived(id_number)
self.queryset = change_request.filter_base(
self.queryset,
request.query_params.get('company_requested_to'),
request.query_params.get('department_requested_to'),
request.query_params.get('date_modified_from'),
request.query_params.get('date_modified_to'),
request.query_params.get('date_required_from'),
request.query_params.get('date_required_to'),
request.query_params.get('form_type'),
)
queryset = self.filter_queryset(self.queryset)
page = self.paginate_queryset(queryset)
if page is not None:
serializer = self.get_serializer(page, many=True)
message = status_message_response(
200,
'success',
'List of Archived Change Request Form found',
serializer.data
)
return self.get_paginated_response(message)
serializer = self.get_serializer(self.queryset, many=True)
return Response(
serializer.data,
status=status.HTTP_200_OK
)
class ChangeRequestFormPost(APIView): class ChangeRequestFormPost(APIView):
......
...@@ -38,7 +38,8 @@ def list_by_user(user_id_number): ...@@ -38,7 +38,8 @@ def list_by_user(user_id_number):
Q(requested_to_department__in=priviledgeCrs) Q(requested_to_department__in=priviledgeCrs)
).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
...@@ -49,6 +50,32 @@ def list_by_user(user_id_number): ...@@ -49,6 +50,32 @@ def list_by_user(user_id_number):
return return_queryset return return_queryset
def list_by_user_archived(user_id_number):
try:
priviledgeCrs = models.AllowedCompany.objects.filter(
Q(id_number=user_id_number) &
Q(view_all_change_request=True)
).values('group_pivots')
return_queryset = models.ChangeRequestFormHeader.objects.filter(
Q(status__icontains='Archived') |
Q(frm_approvers__user__code=user_id_number) |
Q(frm_stakes__user__code=user_id_number) |
Q(requested_by_user=user_id_number) |
Q(requested_to_department__in=priviledgeCrs)
).exclude(
Q(status__icontains='Draft') &
~Q(requested_by_user=user_id_number)
).distinct()
return return_queryset
except Exception as e:
return_queryset = None
return return_queryset
def list_by_user_without_dept(user_id_number): def list_by_user_without_dept(user_id_number):
try: try:
...@@ -58,7 +85,8 @@ def list_by_user_without_dept(user_id_number): ...@@ -58,7 +85,8 @@ 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
......
...@@ -397,6 +397,8 @@ class BaseHeader(models.Model): ...@@ -397,6 +397,8 @@ class BaseHeader(models.Model):
created = models.DateTimeField(auto_now_add=True) created = models.DateTimeField(auto_now_add=True)
is_active = models.BooleanField(default=False)
class Meta: class Meta:
abstract = True abstract = True
......
{ {
"info": { "info": {
"_postman_id": "ad182d0e-3e1f-4d6f-bd7a-f4b728582a1a", "_postman_id": "733e6f05-1f26-4ab8-bcfb-a379c0263a73",
"name": "RMSv2", "name": "RMSv2 copy",
"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,6 +16,10 @@ ...@@ -16,6 +16,10 @@
"request": { "request": {
"method": "GET", "method": "GET",
"header": [], "header": [],
"body": {
"mode": "raw",
"raw": ""
},
"url": { "url": {
"raw": "{{baseurl}}/master/companies/", "raw": "{{baseurl}}/master/companies/",
"host": [ "host": [
...@@ -40,13 +44,13 @@ ...@@ -40,13 +44,13 @@
"formdata": [ "formdata": [
{ {
"key": "url", "key": "url",
"value": "", "type": "file",
"type": "file" "src": ""
}, },
{ {
"key": "url", "key": "url",
"value": "", "type": "file",
"type": "file" "src": ""
} }
] ]
}, },
...@@ -77,13 +81,13 @@ ...@@ -77,13 +81,13 @@
"formdata": [ "formdata": [
{ {
"key": "url", "key": "url",
"value": "", "type": "file",
"type": "file" "src": ""
}, },
{ {
"key": "url", "key": "url",
"value": "", "type": "file",
"type": "file" "src": ""
} }
] ]
}, },
...@@ -106,6 +110,10 @@ ...@@ -106,6 +110,10 @@
"request": { "request": {
"method": "GET", "method": "GET",
"header": [], "header": [],
"body": {
"mode": "raw",
"raw": ""
},
"url": { "url": {
"raw": "{{baseurl}}/master/departments/", "raw": "{{baseurl}}/master/departments/",
"host": [ "host": [
...@@ -125,6 +133,10 @@ ...@@ -125,6 +133,10 @@
"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": [
...@@ -144,6 +156,10 @@ ...@@ -144,6 +156,10 @@
"request": { "request": {
"method": "GET", "method": "GET",
"header": [], "header": [],
"body": {
"mode": "raw",
"raw": ""
},
"url": { "url": {
"raw": "{{baseurl}}/master/users/", "raw": "{{baseurl}}/master/users/",
"host": [ "host": [
...@@ -159,7 +175,6 @@ ...@@ -159,7 +175,6 @@
"response": [] "response": []
} }
], ],
"protocolProfileBehavior": {},
"_postman_isSubFolder": true "_postman_isSubFolder": true
}, },
{ {
...@@ -173,6 +188,10 @@ ...@@ -173,6 +188,10 @@
"request": { "request": {
"method": "GET", "method": "GET",
"header": [], "header": [],
"body": {
"mode": "raw",
"raw": ""
},
"url": { "url": {
"raw": "{{baseurl}}/management/applications/", "raw": "{{baseurl}}/management/applications/",
"host": [ "host": [
...@@ -192,6 +211,10 @@ ...@@ -192,6 +211,10 @@
"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": [
...@@ -300,7 +323,6 @@ ...@@ -300,7 +323,6 @@
"response": [] "response": []
} }
], ],
"protocolProfileBehavior": {},
"_postman_isSubFolder": true "_postman_isSubFolder": true
}, },
{ {
...@@ -311,6 +333,10 @@ ...@@ -311,6 +333,10 @@
"request": { "request": {
"method": "GET", "method": "GET",
"header": [], "header": [],
"body": {
"mode": "raw",
"raw": ""
},
"url": { "url": {
"raw": "{{baseurl}}/management/companies/", "raw": "{{baseurl}}/management/companies/",
"host": [ "host": [
...@@ -330,6 +356,10 @@ ...@@ -330,6 +356,10 @@
"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": [
...@@ -438,7 +468,6 @@ ...@@ -438,7 +468,6 @@
"response": [] "response": []
} }
], ],
"protocolProfileBehavior": {},
"_postman_isSubFolder": true "_postman_isSubFolder": true
}, },
{ {
...@@ -449,6 +478,10 @@ ...@@ -449,6 +478,10 @@
"request": { "request": {
"method": "GET", "method": "GET",
"header": [], "header": [],
"body": {
"mode": "raw",
"raw": ""
},
"url": { "url": {
"raw": "{{baseurl}}/management/departments/", "raw": "{{baseurl}}/management/departments/",
"host": [ "host": [
...@@ -468,6 +501,10 @@ ...@@ -468,6 +501,10 @@
"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": [
...@@ -576,7 +613,6 @@ ...@@ -576,7 +613,6 @@
"response": [] "response": []
} }
], ],
"protocolProfileBehavior": {},
"_postman_isSubFolder": true "_postman_isSubFolder": true
}, },
{ {
...@@ -587,6 +623,10 @@ ...@@ -587,6 +623,10 @@
"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": [
...@@ -612,6 +652,10 @@ ...@@ -612,6 +652,10 @@
"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": [
...@@ -724,7 +768,6 @@ ...@@ -724,7 +768,6 @@
"response": [] "response": []
} }
], ],
"protocolProfileBehavior": {},
"_postman_isSubFolder": true "_postman_isSubFolder": true
}, },
{ {
...@@ -735,6 +778,10 @@ ...@@ -735,6 +778,10 @@
"request": { "request": {
"method": "GET", "method": "GET",
"header": [], "header": [],
"body": {
"mode": "raw",
"raw": ""
},
"url": { "url": {
"raw": "{{baseurl}}/management/users/", "raw": "{{baseurl}}/management/users/",
"host": [ "host": [
...@@ -754,6 +801,10 @@ ...@@ -754,6 +801,10 @@
"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": [
...@@ -830,6 +881,37 @@ ...@@ -830,6 +881,37 @@
}, },
"response": [] "response": []
}, },
{
"name": "Edit User Level",
"request": {
"method": "PUT",
"header": [
{
"key": "Content-Type",
"name": "Content-Type",
"value": "application/json",
"type": "text"
}
],
"body": {
"mode": "raw",
"raw": "{\r\n\t\"application\":[\"APP-20190917-0000001\",\"APP-20190917-0000003\"],\r\n\t\"department\": \"DEPARTMENT-20190917-0000002\",\r\n\t\"user_type\": \"OUA\",\r\n\t\"name\": \"Ritas\",\r\n\t\"username\": \"obrit1a\",\r\n\t\"doa\":\"\",\r\n\t\"default_app\": \"APP-20190917-0000001\",\r\n\t\"contact_no\": \"1312313\",\r\n\t\"email\": \"test@gmail.com\"\r\n}\r\n"
},
"url": {
"raw": "{{baseurl}}/management/users/USER-20190919-0000028/",
"host": [
"{{baseurl}}"
],
"path": [
"management",
"users",
"USER-20190919-0000028",
""
]
}
},
"response": []
},
{ {
"name": "Change Password", "name": "Change Password",
"request": { "request": {
...@@ -891,6 +973,55 @@ ...@@ -891,6 +973,55 @@
}, },
"response": [] "response": []
}, },
{
"name": "Upload Profile Picture",
"request": {
"method": "PUT",
"header": [
{
"key": "Content-Type",
"name": "Content-Type",
"type": "text",
"value": "application/json",
"disabled": true
}
],
"body": {
"mode": "formdata",
"formdata": [
{
"key": "image",
"type": "file",
"src": ""
},
{
"key": "name",
"value": "test",
"type": "text"
},
{
"key": "user",
"value": "USER-20190927-0000012",
"type": "text"
}
]
},
"url": {
"raw": "{{baseurl}}/management/users/USER-20190927-0000012/picture/",
"host": [
"{{baseurl}}"
],
"path": [
"management",
"users",
"USER-20190927-0000012",
"picture",
""
]
}
},
"response": []
},
{ {
"name": "Change Password", "name": "Change Password",
"request": { "request": {
...@@ -956,11 +1087,9 @@ ...@@ -956,11 +1087,9 @@
"response": [] "response": []
} }
], ],
"protocolProfileBehavior": {},
"_postman_isSubFolder": true "_postman_isSubFolder": true
} }
], ],
"protocolProfileBehavior": {},
"_postman_isSubFolder": true "_postman_isSubFolder": true
}, },
{ {
...@@ -971,6 +1100,10 @@ ...@@ -971,6 +1100,10 @@
"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": [
...@@ -1135,49 +1268,43 @@ ...@@ -1135,49 +1268,43 @@
"response": [] "response": []
} }
], ],
"protocolProfileBehavior": {},
"_postman_isSubFolder": true "_postman_isSubFolder": true
} }
], ]
"protocolProfileBehavior": {}
}, },
{ {
"name": "Change Request", "name": "Change Request",
"item": [ "item": [
{ {
"name": "CR Forms", "name": "CR Templates",
"item": [ "item": [
{ {
"name": "Dashboard", "name": "CR Template Header",
"item": [ "item": [
{ {
"name": "Form Dashboard", "name": "Template Header Post",
"protocolProfileBehavior": {
"disableBodyPruning": true
},
"request": { "request": {
"method": "GET", "method": "POST",
"header": [ "header": [
{ {
"key": "Content-Type", "key": "Content-Type",
"name": "Content-Type", "name": "Content-Type",
"type": "text", "value": "application/json",
"value": "application/json" "type": "text"
} }
], ],
"body": { "body": {
"mode": "raw", "mode": "raw",
"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}"
}, },
"url": { "url": {
"raw": "{{baseurl}}/change-request/form/dashboard/", "raw": "{{baseurl}}/change-request/template-post/",
"host": [ "host": [
"{{baseurl}}" "{{baseurl}}"
], ],
"path": [ "path": [
"change-request", "change-request",
"form", "template-post",
"dashboard",
"" ""
] ]
} }
...@@ -1185,73 +1312,46 @@ ...@@ -1185,73 +1312,46 @@
"response": [] "response": []
}, },
{ {
"name": "Form Status", "name": "List of Templates",
"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/form/status/?status=pending", "raw": "{{baseurl}}/change-request/template/",
"host": [ "host": [
"{{baseurl}}" "{{baseurl}}"
], ],
"path": [ "path": [
"change-request", "change-request",
"form", "template",
"status",
"" ""
],
"query": [
{
"key": "status",
"value": "pending"
}
] ]
} }
}, },
"response": [] "response": []
}, },
{ {
"name": "Form Overdue", "name": "View Template",
"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/form/overdue/", "raw": "{{baseurl}}/change-request/template/TMP-20190927-0000001/",
"host": [ "host": [
"{{baseurl}}" "{{baseurl}}"
], ],
"path": [ "path": [
"change-request", "change-request",
"form", "template",
"overdue", "TMP-20190927-0000001",
"" ""
] ]
} }
...@@ -1259,33 +1359,30 @@ ...@@ -1259,33 +1359,30 @@
"response": [] "response": []
}, },
{ {
"name": "Form Awaiting", "name": "Edit Template",
"protocolProfileBehavior": {
"disableBodyPruning": true
},
"request": { "request": {
"method": "GET", "method": "PATCH",
"header": [ "header": [
{ {
"key": "Content-Type", "key": "Content-Type",
"name": "Content-Type", "name": "Content-Type",
"type": "text", "value": "application/json",
"value": "application/json" "type": "text"
} }
], ],
"body": { "body": {
"mode": "raw", "mode": "raw",
"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": { "url": {
"raw": "{{baseurl}}/change-request/form/awaiting/", "raw": "{{baseurl}}/change-request/template/TMP-20190911-0000001/",
"host": [ "host": [
"{{baseurl}}" "{{baseurl}}"
], ],
"path": [ "path": [
"change-request", "change-request",
"form", "template",
"awaiting", "TMP-20190911-0000001",
"" ""
] ]
} }
...@@ -1293,96 +1390,47 @@ ...@@ -1293,96 +1390,47 @@
"response": [] "response": []
}, },
{ {
"name": "Form History", "name": "Archive Template",
"protocolProfileBehavior": {
"disableBodyPruning": true
},
"request": { "request": {
"auth": { "method": "PATCH",
"type": "oauth2", "header": [],
"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-service/form/FRM-20190823-0000002/history/?page=2", "raw": "{{baseurl}}/change-request/template/archived/",
"host": [ "host": [
"{{baseurl}}" "{{baseurl}}"
], ],
"path": [ "path": [
"change-request-service", "change-request",
"form", "template",
"FRM-20190823-0000002", "archived",
"history",
"" ""
],
"query": [
{
"key": "page",
"value": "2"
}
] ]
} }
}, },
"response": [] "response": []
} },
],
"protocolProfileBehavior": {},
"_postman_isSubFolder": true
},
{
"name": "CR Form Header",
"item": [
{ {
"name": "Create Form Header", "name": "Retrieve Template",
"request": { "request": {
"method": "POST", "method": "PATCH",
"header": [ "header": [],
{
"key": "Content-Type",
"name": "Content-Type",
"type": "text",
"value": "application/json"
}
],
"body": { "body": {
"mode": "raw", "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 \"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-20190928-0000006\",\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 \"attachment_type\": \"Mandatory\",\r\n \"attachment_name\": \"heyu\",\r\n \"file_name\": \"Sample\",\r\n \"description\": \"Sameple Desc\",\r\n \"created\": \"2019-09-28T12:35:03.873650\",\r\n \"code\": \"FRMATCH-20190928-0000003\",\r\n \"uploaded_by\": \"USER-20190923-0000010\",\r\n \"form_code\": \"FRM-20190928-0000003\",\r\n \"file_upload\": 1,\r\n \"tmp_attach\": null\r\n }\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}" "raw": ""
}, },
"url": { "url": {
"raw": "{{baseurl}}/change-request/form-post/", "raw": "{{baseurl}}/change-request/template/TMP-20190909-0000002/",
"host": [ "host": [
"{{baseurl}}" "{{baseurl}}"
], ],
"path": [ "path": [
"change-request", "change-request",
"form-post", "template",
"TMP-20190909-0000002",
"" ""
] ]
} }
...@@ -1390,59 +1438,56 @@ ...@@ -1390,59 +1438,56 @@
"response": [] "response": []
}, },
{ {
"name": "List of Forms", "name": "Delete Template",
"request": { "request": {
"method": "GET", "method": "DELETE",
"header": [], "header": [],
"body": {
"mode": "raw",
"raw": ""
},
"url": { "url": {
"raw": "{{baseurl}}/change-request/form/", "raw": "{{baseurl}}/change-request/template/TMP-20190916-0000003/",
"host": [ "host": [
"{{baseurl}}" "{{baseurl}}"
], ],
"path": [ "path": [
"change-request", "change-request",
"form", "template",
"TMP-20190916-0000003",
"" ""
] ]
} }
}, },
"response": [] "response": []
}, }
{ ],
"name": "View Form", "_postman_isSubFolder": true
"request": { },
"method": "GET", {
"header": [], "name": "CR Template Approver",
"url": { "item": [
"raw": "{{baseurl}}/change-request/form/FRM-20190928-0000002/",
"host": [
"{{baseurl}}"
],
"path": [
"change-request",
"form",
"FRM-20190928-0000002",
""
]
}
},
"response": []
},
{ {
"name": "Re Route for Approval", "name": "List of Approvers",
"request": { "request": {
"method": "PATCH", "method": "GET",
"header": [], "header": [],
"body": {
"mode": "raw",
"raw": ""
},
"url": { "url": {
"raw": "{{baseurl}}/change-request/form/FRM-20190927-0000004/re_route/", "raw": "http://localhost:8000/api/v1/change-request/template-approvers/",
"protocol": "http",
"host": [ "host": [
"{{baseurl}}" "localhost"
], ],
"port": "8000",
"path": [ "path": [
"api",
"v1",
"change-request", "change-request",
"form", "template-approvers",
"FRM-20190927-0000004",
"re_route",
"" ""
] ]
} }
...@@ -1450,93 +1495,52 @@ ...@@ -1450,93 +1495,52 @@
"response": [] "response": []
}, },
{ {
"name": "Resubmit", "name": "View Approver",
"request": { "request": {
"method": "PATCH", "method": "GET",
"header": [], "header": [],
"url": {
"raw": "{{baseurl}}/change-request/form/FRM-20190927-0000004/re_submit/",
"host": [
"{{baseurl}}"
],
"path": [
"change-request",
"form",
"FRM-20190927-0000004",
"re_submit",
""
]
}
},
"response": []
},
{
"name": "CR Action",
"request": {
"method": "PATCH",
"header": [
{
"key": "Content-Type",
"name": "Content-Type",
"value": "application/json",
"type": "text"
}
],
"body": { "body": {
"mode": "raw", "mode": "raw",
"raw": "{\r\n \"id\": 4,\r\n \"form_code\": \"FRM-20190928-0000001\",\r\n \"delegation\": \"Vendor/Implementor\",\r\n \"action\": \"completed\",\r\n \"level\": \"4\",\r\n \"remarks\": \"\",\r\n \"form_status\": \"Approved\"\r\n}", "raw": ""
"options": {
"raw": {
"language": "json"
}
}
}, },
"url": { "url": {
"raw": "{{baseurl}}/change-request/form/actions/", "raw": "{{baseurl}}/change-request/template-approvers/TMPAPR-20190911-0000001/",
"host": [ "host": [
"{{baseurl}}" "{{baseurl}}"
], ],
"path": [ "path": [
"change-request", "change-request",
"form", "template-approvers",
"actions", "TMPAPR-20190911-0000001",
"" ""
] ]
} }
}, },
"response": [] "response": []
}, }
],
"_postman_isSubFolder": true
},
{
"name": "CR Template Stakeholder",
"item": [
{ {
"name": "Submit", "name": "List of Stakeholders",
"request": { "request": {
"method": "PATCH", "method": "GET",
"header": [ "header": [],
{
"key": "Content-Type",
"name": "Content-Type",
"value": "application/json",
"type": "text"
}
],
"body": { "body": {
"mode": "raw", "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 \"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}", "raw": ""
"options": {
"raw": {
"language": "json"
}
}
}, },
"url": { "url": {
"raw": "{{baseurl}}/change-request/form/FRM-20190928-0000002/submit/", "raw": "{{baseurl}}/change-request/template-stakeholders/",
"host": [ "host": [
"{{baseurl}}" "{{baseurl}}"
], ],
"path": [ "path": [
"change-request", "change-request",
"form", "template-stakeholders",
"FRM-20190928-0000002",
"submit",
"" ""
] ]
} }
...@@ -1544,72 +1548,56 @@ ...@@ -1544,72 +1548,56 @@
"response": [] "response": []
}, },
{ {
"name": "Save", "name": "View Stakeholder",
"request": { "request": {
"method": "PATCH", "method": "GET",
"header": [ "header": [],
{
"key": "Content-Type",
"name": "Content-Type",
"value": "application/json",
"type": "text"
}
],
"body": { "body": {
"mode": "raw", "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 \"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}", "raw": ""
"options": {
"raw": {
"language": "json"
}
}
}, },
"url": { "url": {
"raw": "{{baseurl}}/change-request/form/FRM-20190927-0000001/save/", "raw": "{{baseurl}}/change-request/template-stakeholders/TMPSTK-20190909-0000001/",
"host": [ "host": [
"{{baseurl}}" "{{baseurl}}"
], ],
"path": [ "path": [
"change-request", "change-request",
"form", "template-stakeholders",
"FRM-20190927-0000001", "TMPSTK-20190909-0000001",
"save",
"" ""
] ]
} }
}, },
"response": [] "response": []
}, }
],
"_postman_isSubFolder": true
},
{
"name": "CR Template Attachment",
"item": [
{ {
"name": "Delete Form", "name": "List of Attachments",
"request": { "request": {
"method": "DELETE", "method": "GET",
"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": "{{baseurl}}/change-request/form/FRM-20190928-0000021/", "raw": "http://localhost:8000/api/v1/change-request/template-attachments/",
"protocol": "http",
"host": [ "host": [
"{{baseurl}}" "localhost"
], ],
"port": "8000",
"path": [ "path": [
"api",
"v1",
"change-request", "change-request",
"form", "template-attachments",
"FRM-20190928-0000021",
"" ""
] ]
} }
...@@ -1617,18 +1605,27 @@ ...@@ -1617,18 +1605,27 @@
"response": [] "response": []
}, },
{ {
"name": "Download", "name": "View Attachment",
"request": { "request": {
"method": "GET", "method": "GET",
"header": [], "header": [],
"body": {
"mode": "raw",
"raw": ""
},
"url": { "url": {
"raw": "{{baseurl}}/change-request/form-download/", "raw": "http://localhost:8000/api/v1/change-request/template-attachments/TMPATCH-20190909-0000001/",
"protocol": "http",
"host": [ "host": [
"{{baseurl}}" "localhost"
], ],
"port": "8000",
"path": [ "path": [
"api",
"v1",
"change-request", "change-request",
"form-download", "template-attachments",
"TMPATCH-20190909-0000001",
"" ""
] ]
} }
...@@ -1636,25 +1633,32 @@ ...@@ -1636,25 +1633,32 @@
"response": [] "response": []
} }
], ],
"protocolProfileBehavior": {},
"_postman_isSubFolder": true "_postman_isSubFolder": true
}, },
{ {
"name": "CR Form Approver", "name": "CR Template Detail",
"item": [ "item": [
{ {
"name": "List of Approvers", "name": "List of Details",
"request": { "request": {
"method": "GET", "method": "GET",
"header": [], "header": [],
"body": {
"mode": "raw",
"raw": ""
},
"url": { "url": {
"raw": "{{baseurl}}/change-request/form-approvers/", "raw": "http://localhost:8000/api/v1/change-request/template-details/",
"protocol": "http",
"host": [ "host": [
"{{baseurl}}" "localhost"
], ],
"port": "8000",
"path": [ "path": [
"api",
"v1",
"change-request", "change-request",
"form-approvers", "template-details",
"" ""
] ]
} }
...@@ -1662,19 +1666,27 @@ ...@@ -1662,19 +1666,27 @@
"response": [] "response": []
}, },
{ {
"name": "View Approver", "name": "View Detail",
"request": { "request": {
"method": "GET", "method": "GET",
"header": [], "header": [],
"body": {
"mode": "raw",
"raw": ""
},
"url": { "url": {
"raw": "{{baseurl}}/change-request/form-approvers/FRMAPR-20190927-0000001/", "raw": "http://localhost:8000/api/v1/change-request/template-details/TMPDETAIL-20190909-0000001/",
"protocol": "http",
"host": [ "host": [
"{{baseurl}}" "localhost"
], ],
"port": "8000",
"path": [ "path": [
"api",
"v1",
"change-request", "change-request",
"form-approvers", "template-details",
"FRMAPR-20190927-0000001", "TMPDETAIL-20190909-0000001",
"" ""
] ]
} }
...@@ -1682,25 +1694,45 @@ ...@@ -1682,25 +1694,45 @@
"response": [] "response": []
} }
], ],
"protocolProfileBehavior": {},
"_postman_isSubFolder": true "_postman_isSubFolder": true
}, }
],
"_postman_isSubFolder": true
},
{
"name": "CR Forms",
"item": [
{ {
"name": "CR Form Stakeholder", "name": "CR Form Header",
"item": [ "item": [
{ {
"name": "List of Stakeholders", "name": "Create Form Header",
"request": { "request": {
"method": "GET", "method": "POST",
"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": "{{baseurl}}/change-request/form-stakeholders/", "raw": "http://localhost:8000/api/v1/change-request/form-post/",
"protocol": "http",
"host": [ "host": [
"{{baseurl}}" "localhost"
], ],
"port": "8000",
"path": [ "path": [
"api",
"v1",
"change-request", "change-request",
"form-stakeholders", "form-post",
"" ""
] ]
} }
...@@ -1708,45 +1740,46 @@ ...@@ -1708,45 +1740,46 @@
"response": [] "response": []
}, },
{ {
"name": "View Stakeholder", "name": "List of Forms",
"request": { "request": {
"method": "GET", "method": "GET",
"header": [], "header": [],
"body": {
"mode": "raw",
"raw": ""
},
"url": { "url": {
"raw": "{{baseurl}}/change-request/form-stakeholders/TMPSTK-20190909-0000001/", "raw": "{{baseurl}}/change-request/form/",
"host": [ "host": [
"{{baseurl}}" "{{baseurl}}"
], ],
"path": [ "path": [
"change-request", "change-request",
"form-stakeholders", "form",
"TMPSTK-20190909-0000001",
"" ""
] ]
} }
}, },
"response": [] "response": []
} },
],
"protocolProfileBehavior": {},
"_postman_isSubFolder": true
},
{
"name": "CR Form Attachment",
"item": [
{ {
"name": "List of Attachments", "name": "View Form",
"request": { "request": {
"method": "GET", "method": "GET",
"header": [], "header": [],
"body": {
"mode": "raw",
"raw": ""
},
"url": { "url": {
"raw": "{{baseurl}}/change-request/form-attachments/", "raw": "{{baseurl}}/change-request/form/FRM-20190912-0000002/",
"host": [ "host": [
"{{baseurl}}" "{{baseurl}}"
], ],
"path": [ "path": [
"change-request", "change-request",
"form-attachments", "form",
"FRM-20190912-0000002",
"" ""
] ]
} }
...@@ -1754,12 +1787,9 @@ ...@@ -1754,12 +1787,9 @@
"response": [] "response": []
}, },
{ {
"name": "View Attachment", "name": "Edit Form",
"protocolProfileBehavior": {
"disableBodyPruning": true
},
"request": { "request": {
"method": "GET", "method": "PUT",
"header": [ "header": [
{ {
"key": "Content-Type", "key": "Content-Type",
...@@ -1770,43 +1800,59 @@ ...@@ -1770,43 +1800,59 @@
], ],
"body": { "body": {
"mode": "raw", "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 \"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": { "url": {
"raw": "{{baseurl}}/change-request/form-attachments/FRMATCH-20190909-0000001/", "raw": "http://localhost:8000/api/v1/change-request/form/FRM-20190909-0000006/",
"protocol": "http",
"host": [ "host": [
"{{baseurl}}" "localhost"
], ],
"port": "8000",
"path": [ "path": [
"api",
"v1",
"change-request", "change-request",
"form-attachments", "form",
"FRMATCH-20190909-0000001", "FRM-20190909-0000006",
"" ""
] ]
} }
}, },
"response": [] "response": []
} },
],
"protocolProfileBehavior": {},
"_postman_isSubFolder": true
},
{
"name": "CR Form Detail",
"item": [
{ {
"name": "List of Details", "name": "Delete Form",
"request": { "request": {
"method": "GET", "auth": {
"type": "bearer",
"bearer": [
{
"key": "token",
"value": "951574546a6d45af34dfef101840bba27f1ab574",
"type": "string"
}
]
},
"method": "DELETE",
"header": [], "header": [],
"body": {
"mode": "raw",
"raw": ""
},
"url": { "url": {
"raw": "{{baseurl}}/change-request/form-details/", "raw": "http://localhost:8000/api/v1/change-request/form/FRM-20190909-0000006/",
"protocol": "http",
"host": [ "host": [
"{{baseurl}}" "localhost"
], ],
"port": "8000",
"path": [ "path": [
"api",
"v1",
"change-request", "change-request",
"form-details", "form",
"FRM-20190909-0000006",
"" ""
] ]
} }
...@@ -1814,63 +1860,28 @@ ...@@ -1814,63 +1860,28 @@
"response": [] "response": []
}, },
{ {
"name": "View Detail", "name": "Re Route for Approval",
"request": { "request": {
"method": "GET", "method": "PATCH",
"header": [], "header": [],
"url": {
"raw": "{{baseurl}}/change-request/form-details/FRMDETAIL-20190909-0000001/",
"host": [
"{{baseurl}}"
],
"path": [
"change-request",
"form-details",
"FRMDETAIL-20190909-0000001",
""
]
}
},
"response": []
}
],
"protocolProfileBehavior": {},
"_postman_isSubFolder": true
}
],
"protocolProfileBehavior": {},
"_postman_isSubFolder": true
},
{
"name": "CR Templates",
"item": [
{
"name": "CR Template Header",
"item": [
{
"name": "Template Header Post",
"request": {
"method": "POST",
"header": [
{
"key": "Content-Type",
"name": "Content-Type",
"value": "application/json",
"type": "text"
}
],
"body": { "body": {
"mode": "raw", "mode": "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}" "raw": ""
}, },
"url": { "url": {
"raw": "{{baseurl}}/change-request/template-post/", "raw": "http://localhost:8000/api/v1/change-request/form/FRM-20190913-0000002/re_route/",
"protocol": "http",
"host": [ "host": [
"{{baseurl}}" "localhost"
], ],
"port": "8000",
"path": [ "path": [
"api",
"v1",
"change-request", "change-request",
"template-post", "form",
"FRM-20190913-0000002",
"re_route",
"" ""
] ]
} }
...@@ -1878,18 +1889,28 @@ ...@@ -1878,18 +1889,28 @@
"response": [] "response": []
}, },
{ {
"name": "List of Templates", "name": "Resubmit",
"request": { "request": {
"method": "GET", "method": "PATCH",
"header": [], "header": [],
"body": {
"mode": "raw",
"raw": ""
},
"url": { "url": {
"raw": "{{baseurl}}/change-request/template/", "raw": "http://localhost:8000/api/v1/change-request/form/FRM-20190913-0000001/re_submit/",
"protocol": "http",
"host": [ "host": [
"{{baseurl}}" "localhost"
], ],
"port": "8000",
"path": [ "path": [
"api",
"v1",
"change-request", "change-request",
"template", "form",
"FRM-20190913-0000001",
"re_submit",
"" ""
] ]
} }
...@@ -1897,19 +1918,34 @@ ...@@ -1897,19 +1918,34 @@
"response": [] "response": []
}, },
{ {
"name": "View Template", "name": "CR Action",
"request": { "request": {
"method": "GET", "method": "PATCH",
"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": "{{baseurl}}/change-request/template/TMP-20190927-0000001/", "raw": "http://localhost:8000/api/v1/change-request/form/actions/",
"protocol": "http",
"host": [ "host": [
"{{baseurl}}" "localhost"
], ],
"port": "8000",
"path": [ "path": [
"api",
"v1",
"change-request", "change-request",
"template", "form",
"TMP-20190927-0000001", "actions",
"" ""
] ]
} }
...@@ -1917,7 +1953,7 @@ ...@@ -1917,7 +1953,7 @@
"response": [] "response": []
}, },
{ {
"name": "Edit Template", "name": "Submit",
"request": { "request": {
"method": "PATCH", "method": "PATCH",
"header": [ "header": [
...@@ -1930,17 +1966,22 @@ ...@@ -1930,17 +1966,22 @@
], ],
"body": { "body": {
"mode": "raw", "mode": "raw",
"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}" "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": "{{baseurl}}/change-request/template/TMP-20190928-0000003/", "raw": "http://localhost:8000/api/v1/change-request/form/FRM-20190912-0000002/actions/",
"protocol": "http",
"host": [ "host": [
"{{baseurl}}" "localhost"
], ],
"port": "8000",
"path": [ "path": [
"api",
"v1",
"change-request", "change-request",
"template", "form",
"TMP-20190928-0000003", "FRM-20190912-0000002",
"actions",
"" ""
] ]
} }
...@@ -1948,7 +1989,7 @@ ...@@ -1948,7 +1989,7 @@
"response": [] "response": []
}, },
{ {
"name": "Edit Template Copy", "name": "Save",
"request": { "request": {
"method": "PATCH", "method": "PATCH",
"header": [ "header": [
...@@ -1961,17 +2002,22 @@ ...@@ -1961,17 +2002,22 @@
], ],
"body": { "body": {
"mode": "raw", "mode": "raw",
"raw": "{\r\n \"template_no\":\"TMP-20190927-0000002\",\r\n \"requested_to_company\":\"COMPANY-20190923-0000001\",\r\n \"requested_to_department\":\"DEPARTMENT-20190923-0000002\",\r\n \"requested_to_user\":\"USER-20190927-0000012\",\r\n \"requested_to_template_name\":\"asdf\",\r\n \"requested_to_template_id\":\"2\",\r\n \"requested_to_objective\":\"sdeef\",\r\n \"requested_to_target_date\":\"\",\r\n \"requested_to_priority\":\"High\",\r\n \"description\":\"sdf\",\r\n \"created_by_user\":\"USER-20190927-0000011\",\r\n \"created_by_department\":\"DEPARTMENT-20190923-0000002\",\r\n \"tmp_approvers\":[\r\n {\r\n \"id\":2,\r\n \"level\":\"1\",\r\n \"user\":\"USER-20190927-0000013\",\r\n \"delegation\":\"Approver\"\r\n }\r\n ],\r\n \"tmp_stakes\":[\r\n\r\n ],\r\n \"tmp_attachments\":[\r\n {\r\n \"id\":1,\r\n \"attachment_type\":\"Mandatorys\",\r\n \"attachment_name\":\"aaaa\",\r\n \"file_name\":\"test.png\",\r\n \"description\":\"a\",\r\n \"created\":\"2019-09-27T14:35:34.666934\",\r\n \"code\":\"TMPATCH-20190927-0000001\",\r\n \"uploaded_by\":\"USER-20190927-0000011\",\r\n \"file_upload\":1\r\n }\r\n ],\r\n \"tmp_details\":[\r\n {\r\n \"id\":1,\r\n \"field_idx\":\"0\",\r\n \"field_ref\":\"CHKS-w24wz95jypbk11r40fe\",\r\n \"field_val\":\"[]\",\r\n \"field_props\":\"{\\\"id\\\":\\\"5d28715801c3f9e2d74e61e74\\\",\\\"code\\\":\\\"CHKS\\\",\\\"name\\\":\\\"Checkboxes\\\",\\\"description\\\":\\\"Multiple checkboxes\\\",\\\"kvps\\\":[{\\\"code\\\":\\\"QSTN1\\\",\\\"hint\\\":\\\"Ask question here.\\\",\\\"type\\\":\\\"String\\\",\\\"name\\\":\\\"dfsf\\\",\\\"value\\\":\\\"\\\",\\\"items\\\":[]},{\\\"code\\\":\\\"CHOICES\\\",\\\"hint\\\":\\\"Add checkboxes here.\\\",\\\"type\\\":\\\"Array\\\",\\\"name\\\":\\\"\\\",\\\"value\\\":\\\"\\\",\\\"items\\\":[{\\\"itemKey\\\":\\\"dr3ibbc1ngk11r421j\\\",\\\"label\\\":\\\"Item text here\\\",\\\"item_label\\\":\\\"fs\\\"}]}],\\\"template\\\":\\\"\\\\n <span class=\\\\\\\"subtitle-1\\\\\\\">dfsf</span>\\\\n <v-checkbox \\\\n v-for='loopItem in [{\\\\\\\"itemKey\\\\\\\":\\\\\\\"dr3ibbc1ngk11r421j\\\\\\\",\\\\\\\"label\\\\\\\":\\\\\\\"Item text here\\\\\\\",\\\\\\\"item_label\\\\\\\":\\\\\\\"fs\\\\\\\"}]'\\\\n :key='loopItem.itemKey'\\\\n multiple\\\\n v-model=\\\\\\\"value\\\\\\\"\\\\n @change=\\\\\\\"(e) => { $emit('change',value) }\\\\\\\"\\\\n :label=\\\\\\\"loopItem ? loopItem.item_label : ''\\\\\\\"\\\\n :value=\\\\\\\"loopItem ? loopItem.item_label : ''\\\\\\\"\\\\n >\\\\n </v-checkbox>\\\\n \\\\n \\\"}\",\r\n \"created\":\"2019-09-27T14:35:34.672068\",\r\n \"code\":\"TMPDETAIL-20190927-0000001\"\r\n }\r\n ]\r\n}" "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": "{{baseurl}}/change-request/template/TMP-20190927-0000002/", "raw": "http://localhost:8000/api/v1/change-request/form/FRM-20190912-0000002/actions/",
"protocol": "http",
"host": [ "host": [
"{{baseurl}}" "localhost"
], ],
"port": "8000",
"path": [ "path": [
"api",
"v1",
"change-request", "change-request",
"template", "form",
"TMP-20190927-0000002", "FRM-20190912-0000002",
"actions",
"" ""
] ]
} }
...@@ -1979,19 +2025,22 @@ ...@@ -1979,19 +2025,22 @@
"response": [] "response": []
}, },
{ {
"name": "Delete Template", "name": "Download",
"request": { "request": {
"method": "DELETE", "method": "GET",
"header": [], "header": [],
"body": {
"mode": "raw",
"raw": ""
},
"url": { "url": {
"raw": "{{baseurl}}/change-request/template/TMP-20190928-0000003/", "raw": "{{baseurl}}/change-request/template/",
"host": [ "host": [
"{{baseurl}}" "{{baseurl}}"
], ],
"path": [ "path": [
"change-request", "change-request",
"template", "template",
"TMP-20190928-0000003",
"" ""
] ]
} }
...@@ -1999,25 +2048,32 @@ ...@@ -1999,25 +2048,32 @@
"response": [] "response": []
} }
], ],
"protocolProfileBehavior": {},
"_postman_isSubFolder": true "_postman_isSubFolder": true
}, },
{ {
"name": "CR Template Approver", "name": "CR Form 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": "{{baseurl}}/change-request/template-approvers/", "raw": "http://localhost:8000/api/v1/change-request/form-approvers/",
"protocol": "http",
"host": [ "host": [
"{{baseurl}}" "localhost"
], ],
"port": "8000",
"path": [ "path": [
"api",
"v1",
"change-request", "change-request",
"template-approvers", "form-approvers",
"" ""
] ]
} }
...@@ -2029,15 +2085,23 @@ ...@@ -2029,15 +2085,23 @@
"request": { "request": {
"method": "GET", "method": "GET",
"header": [], "header": [],
"body": {
"mode": "raw",
"raw": ""
},
"url": { "url": {
"raw": "{{baseurl}}/change-request/template-approvers/TMPAPR-20190924-0000015/", "raw": "http://localhost:8000/api/v1/change-request/form-approvers/TMPAPR-20190909-0000001/",
"protocol": "http",
"host": [ "host": [
"{{baseurl}}" "localhost"
], ],
"port": "8000",
"path": [ "path": [
"api",
"v1",
"change-request", "change-request",
"template-approvers", "form-approvers",
"TMPAPR-20190924-0000015", "TMPAPR-20190909-0000001",
"" ""
] ]
} }
...@@ -2045,25 +2109,32 @@ ...@@ -2045,25 +2109,32 @@
"response": [] "response": []
} }
], ],
"protocolProfileBehavior": {},
"_postman_isSubFolder": true "_postman_isSubFolder": true
}, },
{ {
"name": "CR Template Stakeholder", "name": "CR Form 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": "{{baseurl}}/change-request/template-stakeholders/", "raw": "http://localhost:8000/api/v1/change-request/form-stakeholders/",
"protocol": "http",
"host": [ "host": [
"{{baseurl}}" "localhost"
], ],
"port": "8000",
"path": [ "path": [
"api",
"v1",
"change-request", "change-request",
"template-stakeholders", "form-stakeholders",
"" ""
] ]
} }
...@@ -2075,14 +2146,22 @@ ...@@ -2075,14 +2146,22 @@
"request": { "request": {
"method": "GET", "method": "GET",
"header": [], "header": [],
"body": {
"mode": "raw",
"raw": ""
},
"url": { "url": {
"raw": "{{baseurl}}/change-request/template-stakeholders/TMPSTK-20190909-0000001/", "raw": "http://localhost:8000/api/v1/change-request/form-stakeholders/TMPSTK-20190909-0000001/",
"protocol": "http",
"host": [ "host": [
"{{baseurl}}" "localhost"
], ],
"port": "8000",
"path": [ "path": [
"api",
"v1",
"change-request", "change-request",
"template-stakeholders", "form-stakeholders",
"TMPSTK-20190909-0000001", "TMPSTK-20190909-0000001",
"" ""
] ]
...@@ -2091,25 +2170,32 @@ ...@@ -2091,25 +2170,32 @@
"response": [] "response": []
} }
], ],
"protocolProfileBehavior": {},
"_postman_isSubFolder": true "_postman_isSubFolder": true
}, },
{ {
"name": "CR Template Attachment", "name": "CR Form 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": "{{baseurl}}/change-request/template-attachments/", "raw": "http://localhost:8000/api/v1/change-request/form-attachments/",
"protocol": "http",
"host": [ "host": [
"{{baseurl}}" "localhost"
], ],
"port": "8000",
"path": [ "path": [
"api",
"v1",
"change-request", "change-request",
"template-attachments", "form-attachments",
"" ""
] ]
} }
...@@ -2118,18 +2204,36 @@ ...@@ -2118,18 +2204,36 @@
}, },
{ {
"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": "{{baseurl}}/change-request/template-attachments/TMPATCH-20190909-0000001/", "raw": "http://localhost:8000/api/v1/change-request/form-attachments/FRMATCH-20190909-0000001/",
"protocol": "http",
"host": [ "host": [
"{{baseurl}}" "localhost"
], ],
"port": "8000",
"path": [ "path": [
"api",
"v1",
"change-request", "change-request",
"template-attachments", "form-attachments",
"TMPATCH-20190909-0000001", "FRMATCH-20190909-0000001",
"" ""
] ]
} }
...@@ -2137,25 +2241,32 @@ ...@@ -2137,25 +2241,32 @@
"response": [] "response": []
} }
], ],
"protocolProfileBehavior": {},
"_postman_isSubFolder": true "_postman_isSubFolder": true
}, },
{ {
"name": "CR Template Detail", "name": "CR Form 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": "{{baseurl}}/change-request/template-details/", "raw": "http://localhost:8000/api/v1/change-request/form-details/",
"protocol": "http",
"host": [ "host": [
"{{baseurl}}" "localhost"
], ],
"port": "8000",
"path": [ "path": [
"api",
"v1",
"change-request", "change-request",
"template-details", "form-details",
"" ""
] ]
} }
...@@ -2167,15 +2278,23 @@ ...@@ -2167,15 +2278,23 @@
"request": { "request": {
"method": "GET", "method": "GET",
"header": [], "header": [],
"body": {
"mode": "raw",
"raw": ""
},
"url": { "url": {
"raw": "{{baseurl}}/change-request/template-details/TMPDETAIL-20190909-0000001/", "raw": "http://localhost:8000/api/v1/change-request/form-details/FRMDETAIL-20190909-0000001/",
"protocol": "http",
"host": [ "host": [
"{{baseurl}}" "localhost"
], ],
"port": "8000",
"path": [ "path": [
"api",
"v1",
"change-request", "change-request",
"template-details", "form-details",
"TMPDETAIL-20190909-0000001", "FRMDETAIL-20190909-0000001",
"" ""
] ]
} }
...@@ -2183,11 +2302,9 @@ ...@@ -2183,11 +2302,9 @@
"response": [] "response": []
} }
], ],
"protocolProfileBehavior": {},
"_postman_isSubFolder": true "_postman_isSubFolder": true
} }
], ],
"protocolProfileBehavior": {},
"_postman_isSubFolder": true "_postman_isSubFolder": true
}, },
{ {
...@@ -2198,6 +2315,10 @@ ...@@ -2198,6 +2315,10 @@
"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": [
...@@ -2243,25 +2364,28 @@ ...@@ -2243,25 +2364,28 @@
"response": [] "response": []
} }
], ],
"protocolProfileBehavior": {},
"_postman_isSubFolder": true "_postman_isSubFolder": true
}, },
{ {
"name": "Master", "name": "Filter by Allowed Company Template",
"item": [ "item": [
{ {
"name": "List of Company", "name": "List of Company",
"request": { "request": {
"method": "GET", "method": "GET",
"header": [], "header": [],
"body": {
"mode": "raw",
"raw": ""
},
"url": { "url": {
"raw": "{{baseurl}}/change-request/companies/", "raw": "{{baseurl}}/change-request/template-companies/",
"host": [ "host": [
"{{baseurl}}" "{{baseurl}}"
], ],
"path": [ "path": [
"change-request", "change-request",
"companies", "template-companies",
"" ""
] ]
} }
...@@ -2273,20 +2397,24 @@ ...@@ -2273,20 +2397,24 @@
"request": { "request": {
"method": "GET", "method": "GET",
"header": [], "header": [],
"body": {
"mode": "raw",
"raw": ""
},
"url": { "url": {
"raw": "{{baseurl}}/change-request/departments/?company_code=COMPANY-20190917-0000001", "raw": "{{baseurl}}/change-request/template-departments/?company_code=COMPANY-20190923-0000001",
"host": [ "host": [
"{{baseurl}}" "{{baseurl}}"
], ],
"path": [ "path": [
"change-request", "change-request",
"departments", "template-departments",
"" ""
], ],
"query": [ "query": [
{ {
"key": "company_code", "key": "company_code",
"value": "COMPANY-20190917-0000001" "value": "COMPANY-20190923-0000001"
} }
] ]
} }
...@@ -2298,21 +2426,79 @@ ...@@ -2298,21 +2426,79 @@
"request": { "request": {
"method": "GET", "method": "GET",
"header": [], "header": [],
"body": {
"mode": "raw",
"raw": ""
},
"url": { "url": {
"raw": "{{baseurl}}/change-request/user-list/?department_code=DEPARTMENT-20190923-0000001&company_code=COMPANY-20190923-0000001", "raw": "{{baseurl}}/change-request/template-user-list/?department_code=DEPARTMENT-20191001-0000017",
"host": [ "host": [
"{{baseurl}}" "{{baseurl}}"
], ],
"path": [ "path": [
"change-request", "change-request",
"user-list", "template-user-list",
"" ""
], ],
"query": [ "query": [
{ {
"key": "department_code", "key": "department_code",
"value": "DEPARTMENT-20190923-0000001" "value": "DEPARTMENT-20191001-0000017"
}, }
]
}
},
"response": []
}
],
"_postman_isSubFolder": true
},
{
"name": "Filter by Allowed Company Form",
"item": [
{
"name": "List of Company",
"request": {
"method": "GET",
"header": [],
"body": {
"mode": "raw",
"raw": ""
},
"url": {
"raw": "{{baseurl}}/change-request/form-companies/",
"host": [
"{{baseurl}}"
],
"path": [
"change-request",
"form-companies",
""
]
}
},
"response": []
},
{
"name": "List of Department",
"request": {
"method": "GET",
"header": [],
"body": {
"mode": "raw",
"raw": ""
},
"url": {
"raw": "{{baseurl}}/change-request/form-departments/?company_code=COMPANY-20190923-0000001",
"host": [
"{{baseurl}}"
],
"path": [
"change-request",
"form-departments",
""
],
"query": [
{ {
"key": "company_code", "key": "company_code",
"value": "COMPANY-20190923-0000001" "value": "COMPANY-20190923-0000001"
...@@ -2321,13 +2507,69 @@ ...@@ -2321,13 +2507,69 @@
} }
}, },
"response": [] "response": []
},
{
"name": "List of User ",
"request": {
"method": "GET",
"header": [],
"body": {
"mode": "raw",
"raw": ""
},
"url": {
"raw": "{{baseurl}}/change-request/form-user-list/?department_code=DEPARTMENT-20191001-0000017",
"host": [
"{{baseurl}}"
],
"path": [
"change-request",
"form-user-list",
""
],
"query": [
{
"key": "department_code",
"value": "DEPARTMENT-20191001-0000017"
}
]
}
},
"response": []
},
{
"name": "List of templates ",
"request": {
"method": "GET",
"header": [],
"body": {
"mode": "raw",
"raw": ""
},
"url": {
"raw": "{{baseurl}}/change-request/allowed-templates/?department_code=DEPARTMENT-20190923-0000001",
"host": [
"{{baseurl}}"
],
"path": [
"change-request",
"allowed-templates",
""
],
"query": [
{
"key": "department_code",
"value": "DEPARTMENT-20190923-0000001"
}
]
}
},
"response": []
} }
], ],
"protocolProfileBehavior": {},
"_postman_isSubFolder": true "_postman_isSubFolder": true
} }
], ]
"protocolProfileBehavior": {}
}, },
{ {
"name": "Notifications", "name": "Notifications",
...@@ -2338,6 +2580,16 @@ ...@@ -2338,6 +2580,16 @@
"disableBodyPruning": true "disableBodyPruning": true
}, },
"request": { "request": {
"auth": {
"type": "bearer",
"bearer": [
{
"key": "token",
"value": "951574546a6d45af34dfef101840bba27f1ab574",
"type": "string"
}
]
},
"method": "GET", "method": "GET",
"header": [], "header": [],
"body": { "body": {
...@@ -2345,21 +2597,65 @@ ...@@ -2345,21 +2597,65 @@
"raw": "" "raw": ""
}, },
"url": { "url": {
"raw": "{{baseurl}}/management/notifications/?account_no=USER-20190927-0000011", "raw": "http://localhost:8000/api/v1/management/notifications/",
"protocol": "http",
"host": [ "host": [
"{{baseurl}}" "localhost"
], ],
"port": "8000",
"path": [ "path": [
"api",
"v1",
"management", "management",
"notifications", "notifications",
"" ""
], ]
"query": [ }
},
"response": []
},
{
"name": "Create Notification",
"request": {
"auth": {
"type": "bearer",
"bearer": [
{ {
"key": "account_no", "key": "token",
"value": "USER-20190927-0000011" "value": "37d5c7c08f82cc0f8a3a73634d3b6a78ead3da37",
"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": []
...@@ -2367,6 +2663,21 @@ ...@@ -2367,6 +2663,21 @@
{ {
"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": [
{ {
...@@ -2378,17 +2689,22 @@ ...@@ -2378,17 +2689,22 @@
], ],
"body": { "body": {
"mode": "raw", "mode": "raw",
"raw": "{\n\t\"ids\": [5]\n}" "raw": "{\n\t\"ids\": [8]\n}"
}, },
"url": { "url": {
"raw": "{{baseurl}}/management/notifications/USER-20190927-0000011/seen/", "raw": "http://devapi.rmsv2.oneberrysystem.com/api/v1/notifications/USER-20190903-0000002/seen/",
"protocol": "http",
"host": [ "host": [
"{{baseurl}}" "devapi",
"rmsv2",
"oneberrysystem",
"com"
], ],
"path": [ "path": [
"management", "api",
"v1",
"notifications", "notifications",
"USER-20190927-0000011", "USER-20190903-0000002",
"seen", "seen",
"" ""
] ]
...@@ -2399,6 +2715,21 @@ ...@@ -2399,6 +2715,21 @@
{ {
"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": [
{ {
...@@ -2413,14 +2744,19 @@ ...@@ -2413,14 +2744,19 @@
"raw": "" "raw": ""
}, },
"url": { "url": {
"raw": "{{baseurl}}/management/notifications/USER-20190927-0000011/seenall/", "raw": "http://devapi.rmsv2.oneberrysystem.com/api/v1/notifications/USER-20190903-0000002/seenall/",
"protocol": "http",
"host": [ "host": [
"{{baseurl}}" "devapi",
"rmsv2",
"oneberrysystem",
"com"
], ],
"path": [ "path": [
"management", "api",
"v1",
"notifications", "notifications",
"USER-20190927-0000011", "USER-20190903-0000002",
"seenall", "seenall",
"" ""
] ]
...@@ -2428,8 +2764,7 @@ ...@@ -2428,8 +2764,7 @@
}, },
"response": [] "response": []
} }
], ]
"protocolProfileBehavior": {}
} }
], ],
"auth": { "auth": {
...@@ -2437,7 +2772,7 @@ ...@@ -2437,7 +2772,7 @@
"bearer": [ "bearer": [
{ {
"key": "token", "key": "token",
"value": "998954dc92b60118210623c52ff8ff7ac81112e2", "value": "84053738abba94c9619a6bfc5905c9674f6b59a1",
"type": "string" "type": "string"
} }
] ]
...@@ -2463,6 +2798,5 @@ ...@@ -2463,6 +2798,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