Commit b8d61244 authored by Gladys Forte's avatar Gladys Forte

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

* commit 'ff003f2e':
  archive
  added is active
parents cffd69d9 ff003f2e
......@@ -442,7 +442,7 @@ class ChangeRequestFormsViewset(viewsets.ModelViewSet):
models.ChangeRequestFormHeader.objects.filter(
form_code=form_code
).update(status='Archived')
).update(is_active=False)
return Response(
{"message": "Change Request successfully archived!"},
......@@ -1058,6 +1058,49 @@ class ChangeRequestFormsViewset(viewsets.ModelViewSet):
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):
......
......@@ -41,10 +41,10 @@ class ChangeRequestTemplatesSerializer(
"contact_no": instance.requested_to_user.contact_no
}
ret['requested_to_company_object'] = model_to_dict(instance.requested_to_company)
ret['requested_to_department_object'] = model_to_dict(instance.requested_to_department)
ret['requested_to_user_object'] = requested_to_user_object
ret['requested_to_company'] = model_to_dict(instance.requested_to_company)
ret['requested_to_department'] = model_to_dict(instance.requested_to_department)
ret['requested_to_user'] = requested_to_user_object
ret['company'] = instance.requested_to_company.name
ret['department'] = instance.requested_to_department.name
ret['point_of_contact'] = instance.requested_to_user.name
......@@ -53,9 +53,9 @@ class ChangeRequestTemplatesSerializer(
return ret
except Exception as e:
ret['requested_to_company_object'] = "none"
ret['requested_to_department_object'] = "none"
ret['requested_to_user_object'] = "none"
ret['requested_to_company'] = "none"
ret['requested_to_department'] = "none"
ret['requested_to_user'] = "none"
ret['company'] = "none"
ret['department'] = "none"
......
......@@ -32,6 +32,7 @@ def list_by_user(user_id_number):
).values('group_pivots')
return_queryset = models.ChangeRequestFormHeader.objects.filter(
Q(is_active=True) |
Q(frm_approvers__user__code=user_id_number) |
Q(frm_stakes__user__code=user_id_number) |
Q(requested_by_user=user_id_number) |
......@@ -49,16 +50,44 @@ def list_by_user(user_id_number):
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(is_active=False) |
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):
try:
return_queryset = models.ChangeRequestFormHeader.objects.filter(
Q(is_active=True) |
Q(frm_approvers__user__code=user_id_number) |
Q(frm_stakes__user__code=user_id_number) |
Q(requested_by_user=user_id_number)
).exclude(
Q(status__icontains='Draft') &
~Q(requested_by_user=user_id_number)
~Q(requested_by_user=user_id_number) |
Q(status__icontains='Archived')
).distinct()
return return_queryset
......
# Generated by Django 2.2 on 2019-10-02 21:08
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('entities', '0012_auto_20191002_1023'),
]
operations = [
migrations.AddField(
model_name='changerequestformheader',
name='is_active',
field=models.BooleanField(default=True),
),
migrations.AddField(
model_name='changerequesttemplateheader',
name='is_active',
field=models.BooleanField(default=True),
),
]
......@@ -396,6 +396,8 @@ class BaseHeader(models.Model):
null=True)
created = models.DateTimeField(auto_now_add=True)
is_active = models.BooleanField(default=True)
class Meta:
abstract = True
......
{
"info": {
"_postman_id": "ad182d0e-3e1f-4d6f-bd7a-f4b728582a1a",
"name": "RMSv2",
"_postman_id": "733e6f05-1f26-4ab8-bcfb-a379c0263a73",
"name": "RMSv2 copy",
"schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json"
},
"item": [
......@@ -16,6 +16,10 @@
"request": {
"method": "GET",
"header": [],
"body": {
"mode": "raw",
"raw": ""
},
"url": {
"raw": "{{baseurl}}/master/companies/",
"host": [
......@@ -40,13 +44,13 @@
"formdata": [
{
"key": "url",
"value": "",
"type": "file"
"type": "file",
"src": ""
},
{
"key": "url",
"value": "",
"type": "file"
"type": "file",
"src": ""
}
]
},
......@@ -77,13 +81,13 @@
"formdata": [
{
"key": "url",
"value": "",
"type": "file"
"type": "file",
"src": ""
},
{
"key": "url",
"value": "",
"type": "file"
"type": "file",
"src": ""
}
]
},
......@@ -106,6 +110,10 @@
"request": {
"method": "GET",
"header": [],
"body": {
"mode": "raw",
"raw": ""
},
"url": {
"raw": "{{baseurl}}/master/departments/",
"host": [
......@@ -125,6 +133,10 @@
"request": {
"method": "GET",
"header": [],
"body": {
"mode": "raw",
"raw": ""
},
"url": {
"raw": "{{baseurl}}/master/user-types/",
"host": [
......@@ -144,6 +156,10 @@
"request": {
"method": "GET",
"header": [],
"body": {
"mode": "raw",
"raw": ""
},
"url": {
"raw": "{{baseurl}}/master/users/",
"host": [
......@@ -159,7 +175,6 @@
"response": []
}
],
"protocolProfileBehavior": {},
"_postman_isSubFolder": true
},
{
......@@ -173,6 +188,10 @@
"request": {
"method": "GET",
"header": [],
"body": {
"mode": "raw",
"raw": ""
},
"url": {
"raw": "{{baseurl}}/management/applications/",
"host": [
......@@ -192,6 +211,10 @@
"request": {
"method": "GET",
"header": [],
"body": {
"mode": "raw",
"raw": ""
},
"url": {
"raw": "{{baseurl}}/management/applications/APP-20190917-0000001/",
"host": [
......@@ -300,7 +323,6 @@
"response": []
}
],
"protocolProfileBehavior": {},
"_postman_isSubFolder": true
},
{
......@@ -311,6 +333,10 @@
"request": {
"method": "GET",
"header": [],
"body": {
"mode": "raw",
"raw": ""
},
"url": {
"raw": "{{baseurl}}/management/companies/",
"host": [
......@@ -330,6 +356,10 @@
"request": {
"method": "GET",
"header": [],
"body": {
"mode": "raw",
"raw": ""
},
"url": {
"raw": "{{baseurl}}/management/companies/COMPANY-20190909-0000001/",
"host": [
......@@ -438,7 +468,6 @@
"response": []
}
],
"protocolProfileBehavior": {},
"_postman_isSubFolder": true
},
{
......@@ -449,6 +478,10 @@
"request": {
"method": "GET",
"header": [],
"body": {
"mode": "raw",
"raw": ""
},
"url": {
"raw": "{{baseurl}}/management/departments/",
"host": [
......@@ -468,6 +501,10 @@
"request": {
"method": "GET",
"header": [],
"body": {
"mode": "raw",
"raw": ""
},
"url": {
"raw": "{{baseurl}}/management/departments/DEPARTMENT-20190919-0000001/",
"host": [
......@@ -576,7 +613,6 @@
"response": []
}
],
"protocolProfileBehavior": {},
"_postman_isSubFolder": true
},
{
......@@ -587,6 +623,10 @@
"request": {
"method": "GET",
"header": [],
"body": {
"mode": "raw",
"raw": ""
},
"url": {
"raw": "{{baseurl}}/management/modules/?page=2",
"host": [
......@@ -612,6 +652,10 @@
"request": {
"method": "GET",
"header": [],
"body": {
"mode": "raw",
"raw": ""
},
"url": {
"raw": "{{baseurl}}/management/modules/MODULE-20190919-0000007/",
"host": [
......@@ -724,7 +768,6 @@
"response": []
}
],
"protocolProfileBehavior": {},
"_postman_isSubFolder": true
},
{
......@@ -735,6 +778,10 @@
"request": {
"method": "GET",
"header": [],
"body": {
"mode": "raw",
"raw": ""
},
"url": {
"raw": "{{baseurl}}/management/users/",
"host": [
......@@ -754,6 +801,10 @@
"request": {
"method": "GET",
"header": [],
"body": {
"mode": "raw",
"raw": ""
},
"url": {
"raw": "{{baseurl}}/management/users/USER-20190919-0000028/",
"host": [
......@@ -830,6 +881,37 @@
},
"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",
"request": {
......@@ -891,6 +973,55 @@
},
"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",
"request": {
......@@ -956,11 +1087,9 @@
"response": []
}
],
"protocolProfileBehavior": {},
"_postman_isSubFolder": true
}
],
"protocolProfileBehavior": {},
"_postman_isSubFolder": true
},
{
......@@ -971,6 +1100,10 @@
"request": {
"method": "GET",
"header": [],
"body": {
"mode": "raw",
"raw": ""
},
"url": {
"raw": "{{baseurl}}/auth/current-user/",
"host": [
......@@ -1135,49 +1268,43 @@
"response": []
}
],
"protocolProfileBehavior": {},
"_postman_isSubFolder": true
}
],
"protocolProfileBehavior": {}
]
},
{
"name": "Change Request",
"item": [
{
"name": "CR Forms",
"name": "CR Templates",
"item": [
{
"name": "Dashboard",
"name": "CR Template Header",
"item": [
{
"name": "Form Dashboard",
"protocolProfileBehavior": {
"disableBodyPruning": true
},
"name": "Template Header Post",
"request": {
"method": "GET",
"method": "POST",
"header": [
{
"key": "Content-Type",
"name": "Content-Type",
"type": "text",
"value": "application/json"
"value": "application/json",
"type": "text"
}
],
"body": {
"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": {
"raw": "{{baseurl}}/change-request/form/dashboard/",
"raw": "{{baseurl}}/change-request/template-post/",
"host": [
"{{baseurl}}"
],
"path": [
"change-request",
"form",
"dashboard",
"template-post",
""
]
}
......@@ -1185,73 +1312,46 @@
"response": []
},
{
"name": "Form Status",
"protocolProfileBehavior": {
"disableBodyPruning": true
},
"name": "List of Templates",
"request": {
"method": "GET",
"header": [
{
"key": "Content-Type",
"name": "Content-Type",
"type": "text",
"value": "application/json"
}
],
"header": [],
"body": {
"mode": "raw",
"raw": ""
},
"url": {
"raw": "{{baseurl}}/change-request/form/status/?status=pending",
"raw": "{{baseurl}}/change-request/template/",
"host": [
"{{baseurl}}"
],
"path": [
"change-request",
"form",
"status",
"template",
""
],
"query": [
{
"key": "status",
"value": "pending"
}
]
}
},
"response": []
},
{
"name": "Form Overdue",
"protocolProfileBehavior": {
"disableBodyPruning": true
},
"name": "View Template",
"request": {
"method": "GET",
"header": [
{
"key": "Content-Type",
"name": "Content-Type",
"type": "text",
"value": "application/json"
}
],
"header": [],
"body": {
"mode": "raw",
"raw": ""
},
"url": {
"raw": "{{baseurl}}/change-request/form/overdue/",
"raw": "{{baseurl}}/change-request/template/TMP-20190927-0000001/",
"host": [
"{{baseurl}}"
],
"path": [
"change-request",
"form",
"overdue",
"template",
"TMP-20190927-0000001",
""
]
}
......@@ -1259,33 +1359,30 @@
"response": []
},
{
"name": "Form Awaiting",
"protocolProfileBehavior": {
"disableBodyPruning": true
},
"name": "Edit Template",
"request": {
"method": "GET",
"method": "PATCH",
"header": [
{
"key": "Content-Type",
"name": "Content-Type",
"type": "text",
"value": "application/json"
"value": "application/json",
"type": "text"
}
],
"body": {
"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": {
"raw": "{{baseurl}}/change-request/form/awaiting/",
"raw": "{{baseurl}}/change-request/template/TMP-20190911-0000001/",
"host": [
"{{baseurl}}"
],
"path": [
"change-request",
"form",
"awaiting",
"template",
"TMP-20190911-0000001",
""
]
}
......@@ -1293,96 +1390,47 @@
"response": []
},
{
"name": "Form History",
"protocolProfileBehavior": {
"disableBodyPruning": true
},
"name": "Archive Template",
"request": {
"auth": {
"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"
}
],
"method": "PATCH",
"header": [],
"body": {
"mode": "raw",
"raw": ""
},
"url": {
"raw": "{{baseurl}}/change-request-service/form/FRM-20190823-0000002/history/?page=2",
"raw": "{{baseurl}}/change-request/template/archived/",
"host": [
"{{baseurl}}"
],
"path": [
"change-request-service",
"form",
"FRM-20190823-0000002",
"history",
"change-request",
"template",
"archived",
""
],
"query": [
{
"key": "page",
"value": "2"
}
]
}
},
"response": []
}
],
"protocolProfileBehavior": {},
"_postman_isSubFolder": true
},
{
"name": "CR Form Header",
"item": [
},
{
"name": "Create Form Header",
"name": "Retrieve Template",
"request": {
"method": "POST",
"header": [
{
"key": "Content-Type",
"name": "Content-Type",
"type": "text",
"value": "application/json"
}
],
"method": "PATCH",
"header": [],
"body": {
"mode": "raw",
"raw": "{\r\n \"requested_to_template_name\": \"Security Projects\",\r\n \"requested_to_objective\": \"Sample Objective\",\r\n \"requested_to_target_date\": \"2019-09-03T13:59:29.694560\",\r\n \"requested_to_priority\": \"Normal\",\r\n \"description\": \"Lorem Ipsum\",\r\n \"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": {
"raw": "{{baseurl}}/change-request/form-post/",
"raw": "{{baseurl}}/change-request/template/TMP-20190909-0000002/",
"host": [
"{{baseurl}}"
],
"path": [
"change-request",
"form-post",
"template",
"TMP-20190909-0000002",
""
]
}
......@@ -1390,59 +1438,56 @@
"response": []
},
{
"name": "List of Forms",
"name": "Delete Template",
"request": {
"method": "GET",
"method": "DELETE",
"header": [],
"body": {
"mode": "raw",
"raw": ""
},
"url": {
"raw": "{{baseurl}}/change-request/form/",
"raw": "{{baseurl}}/change-request/template/TMP-20190916-0000003/",
"host": [
"{{baseurl}}"
],
"path": [
"change-request",
"form",
"template",
"TMP-20190916-0000003",
""
]
}
},
"response": []
},
{
"name": "View Form",
"request": {
"method": "GET",
"header": [],
"url": {
"raw": "{{baseurl}}/change-request/form/FRM-20190928-0000002/",
"host": [
"{{baseurl}}"
],
"path": [
"change-request",
"form",
"FRM-20190928-0000002",
""
]
}
},
"response": []
},
}
],
"_postman_isSubFolder": true
},
{
"name": "CR Template Approver",
"item": [
{
"name": "Re Route for Approval",
"name": "List of Approvers",
"request": {
"method": "PATCH",
"method": "GET",
"header": [],
"body": {
"mode": "raw",
"raw": ""
},
"url": {
"raw": "{{baseurl}}/change-request/form/FRM-20190927-0000004/re_route/",
"raw": "http://localhost:8000/api/v1/change-request/template-approvers/",
"protocol": "http",
"host": [
"{{baseurl}}"
"localhost"
],
"port": "8000",
"path": [
"api",
"v1",
"change-request",
"form",
"FRM-20190927-0000004",
"re_route",
"template-approvers",
""
]
}
......@@ -1450,93 +1495,52 @@
"response": []
},
{
"name": "Resubmit",
"name": "View Approver",
"request": {
"method": "PATCH",
"method": "GET",
"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": {
"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}",
"options": {
"raw": {
"language": "json"
}
}
"raw": ""
},
"url": {
"raw": "{{baseurl}}/change-request/form/actions/",
"raw": "{{baseurl}}/change-request/template-approvers/TMPAPR-20190911-0000001/",
"host": [
"{{baseurl}}"
],
"path": [
"change-request",
"form",
"actions",
"template-approvers",
"TMPAPR-20190911-0000001",
""
]
}
},
"response": []
},
}
],
"_postman_isSubFolder": true
},
{
"name": "CR Template Stakeholder",
"item": [
{
"name": "Submit",
"name": "List of Stakeholders",
"request": {
"method": "PATCH",
"header": [
{
"key": "Content-Type",
"name": "Content-Type",
"value": "application/json",
"type": "text"
}
],
"method": "GET",
"header": [],
"body": {
"mode": "raw",
"raw": "{\r\n \"requested_to_template_name\": \"Security Projects\",\r\n \"requested_to_objective\": \"Sample Objective\",\r\n \"requested_to_target_date\": \"2019-09-03T13:59:29.694560\",\r\n \"requested_to_priority\": \"Normal\",\r\n \"description\": \"Lorem Ipsum\",\r\n \"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"
}
}
"raw": ""
},
"url": {
"raw": "{{baseurl}}/change-request/form/FRM-20190928-0000002/submit/",
"raw": "{{baseurl}}/change-request/template-stakeholders/",
"host": [
"{{baseurl}}"
],
"path": [
"change-request",
"form",
"FRM-20190928-0000002",
"submit",
"template-stakeholders",
""
]
}
......@@ -1544,72 +1548,56 @@
"response": []
},
{
"name": "Save",
"name": "View Stakeholder",
"request": {
"method": "PATCH",
"header": [
{
"key": "Content-Type",
"name": "Content-Type",
"value": "application/json",
"type": "text"
}
],
"method": "GET",
"header": [],
"body": {
"mode": "raw",
"raw": "{\r\n \"requested_to_template_name\": \"Security Projects\",\r\n \"requested_to_objective\": \"Sample Objective\",\r\n \"requested_to_target_date\": \"2019-09-03T13:59:29.694560\",\r\n \"requested_to_priority\": \"Normal\",\r\n \"description\": \"Lorem Ipsum\",\r\n \"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"
}
}
"raw": ""
},
"url": {
"raw": "{{baseurl}}/change-request/form/FRM-20190927-0000001/save/",
"raw": "{{baseurl}}/change-request/template-stakeholders/TMPSTK-20190909-0000001/",
"host": [
"{{baseurl}}"
],
"path": [
"change-request",
"form",
"FRM-20190927-0000001",
"save",
"template-stakeholders",
"TMPSTK-20190909-0000001",
""
]
}
},
"response": []
},
}
],
"_postman_isSubFolder": true
},
{
"name": "CR Template Attachment",
"item": [
{
"name": "Delete Form",
"name": "List of Attachments",
"request": {
"method": "DELETE",
"header": [
{
"key": "Content-Type",
"name": "Content-Type",
"type": "text",
"value": "application/json"
}
],
"method": "GET",
"header": [],
"body": {
"mode": "raw",
"raw": "",
"options": {
"raw": {
"language": "json"
}
}
"raw": ""
},
"url": {
"raw": "{{baseurl}}/change-request/form/FRM-20190928-0000021/",
"raw": "http://localhost:8000/api/v1/change-request/template-attachments/",
"protocol": "http",
"host": [
"{{baseurl}}"
"localhost"
],
"port": "8000",
"path": [
"api",
"v1",
"change-request",
"form",
"FRM-20190928-0000021",
"template-attachments",
""
]
}
......@@ -1617,18 +1605,27 @@
"response": []
},
{
"name": "Download",
"name": "View Attachment",
"request": {
"method": "GET",
"header": [],
"body": {
"mode": "raw",
"raw": ""
},
"url": {
"raw": "{{baseurl}}/change-request/form-download/",
"raw": "http://localhost:8000/api/v1/change-request/template-attachments/TMPATCH-20190909-0000001/",
"protocol": "http",
"host": [
"{{baseurl}}"
"localhost"
],
"port": "8000",
"path": [
"api",
"v1",
"change-request",
"form-download",
"template-attachments",
"TMPATCH-20190909-0000001",
""
]
}
......@@ -1636,25 +1633,32 @@
"response": []
}
],
"protocolProfileBehavior": {},
"_postman_isSubFolder": true
},
{
"name": "CR Form Approver",
"name": "CR Template Detail",
"item": [
{
"name": "List of Approvers",
"name": "List of Details",
"request": {
"method": "GET",
"header": [],
"body": {
"mode": "raw",
"raw": ""
},
"url": {
"raw": "{{baseurl}}/change-request/form-approvers/",
"raw": "http://localhost:8000/api/v1/change-request/template-details/",
"protocol": "http",
"host": [
"{{baseurl}}"
"localhost"
],
"port": "8000",
"path": [
"api",
"v1",
"change-request",
"form-approvers",
"template-details",
""
]
}
......@@ -1662,19 +1666,27 @@
"response": []
},
{
"name": "View Approver",
"name": "View Detail",
"request": {
"method": "GET",
"header": [],
"body": {
"mode": "raw",
"raw": ""
},
"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": [
"{{baseurl}}"
"localhost"
],
"port": "8000",
"path": [
"api",
"v1",
"change-request",
"form-approvers",
"FRMAPR-20190927-0000001",
"template-details",
"TMPDETAIL-20190909-0000001",
""
]
}
......@@ -1682,25 +1694,45 @@
"response": []
}
],
"protocolProfileBehavior": {},
"_postman_isSubFolder": true
},
}
],
"_postman_isSubFolder": true
},
{
"name": "CR Forms",
"item": [
{
"name": "CR Form Stakeholder",
"name": "CR Form Header",
"item": [
{
"name": "List of Stakeholders",
"name": "Create Form Header",
"request": {
"method": "GET",
"header": [],
"method": "POST",
"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": {
"raw": "{{baseurl}}/change-request/form-stakeholders/",
"raw": "http://localhost:8000/api/v1/change-request/form-post/",
"protocol": "http",
"host": [
"{{baseurl}}"
"localhost"
],
"port": "8000",
"path": [
"api",
"v1",
"change-request",
"form-stakeholders",
"form-post",
""
]
}
......@@ -1708,45 +1740,46 @@
"response": []
},
{
"name": "View Stakeholder",
"name": "List of Forms",
"request": {
"method": "GET",
"header": [],
"body": {
"mode": "raw",
"raw": ""
},
"url": {
"raw": "{{baseurl}}/change-request/form-stakeholders/TMPSTK-20190909-0000001/",
"raw": "{{baseurl}}/change-request/form/",
"host": [
"{{baseurl}}"
],
"path": [
"change-request",
"form-stakeholders",
"TMPSTK-20190909-0000001",
"form",
""
]
}
},
"response": []
}
],
"protocolProfileBehavior": {},
"_postman_isSubFolder": true
},
{
"name": "CR Form Attachment",
"item": [
},
{
"name": "List of Attachments",
"name": "View Form",
"request": {
"method": "GET",
"header": [],
"body": {
"mode": "raw",
"raw": ""
},
"url": {
"raw": "{{baseurl}}/change-request/form-attachments/",
"raw": "{{baseurl}}/change-request/form/FRM-20190912-0000002/",
"host": [
"{{baseurl}}"
],
"path": [
"change-request",
"form-attachments",
"form",
"FRM-20190912-0000002",
""
]
}
......@@ -1754,12 +1787,9 @@
"response": []
},
{
"name": "View Attachment",
"protocolProfileBehavior": {
"disableBodyPruning": true
},
"name": "Edit Form",
"request": {
"method": "GET",
"method": "PUT",
"header": [
{
"key": "Content-Type",
......@@ -1770,43 +1800,59 @@
],
"body": {
"mode": "raw",
"raw": "{\r\n \"attachment_type\": \"Mandatory Attached\",\r\n \"attachment_name\": \"Mandatory Stakeholder\",\r\n \"file_name\": \"USER-20190909-0000005\",\r\n \"description\": \"Sample Desc 1\",\r\n \"file_upload\": null,\r\n \"code\": \"FRMATCH-20190909-0000001\",\r\n \"uploaded_by\": \"USER-20190909-0000005\",\r\n \"form_code\": \"FRM-20190909-0000005\",\r\n \"tmp_attach\": \"TMPATCH-20190909-0000001\"\r\n}"
"raw": "{\r\n \"requested_to_template_name\": \"Sample Templates\",\r\n \"requested_to_template_id\": \"Samp\",\r\n \"requested_to_objective\": \"hello objective\",\r\n \"requested_to_target_date\": \"2019-09-03T13:59:29.694560\",\r\n \"requested_to_priority\": \"High\",\r\n \"description\": \"sample description\",\r\n \"form_code\": \"FRM-20190909-0000006\",\r\n \"cancel_date\": null,\r\n \"status\": \"Pending\",\r\n \"company_desc\": \"Oneberry\",\r\n \"department_desc\": \"Oneberry Superuser\",\r\n \"requested_desc\": \"Super User\",\r\n \"old_form_code\": \"\",\r\n \"requested_to_company\": \"COMPANY-20190909-0000002\",\r\n \"requested_to_department\": \"DEPARTMENT-20190909-0000002\",\r\n \"requested_to_user\": \"USER-20190909-0000005\",\r\n \"requested_by_user\": \"USER-20190909-0000005\",\r\n \"requested_by_department\": \"admin\",\r\n \"template_no\": \"TMP-20190909-0000001\",\r\n \"action\": \"No\"\r\n}"
},
"url": {
"raw": "{{baseurl}}/change-request/form-attachments/FRMATCH-20190909-0000001/",
"raw": "http://localhost:8000/api/v1/change-request/form/FRM-20190909-0000006/",
"protocol": "http",
"host": [
"{{baseurl}}"
"localhost"
],
"port": "8000",
"path": [
"api",
"v1",
"change-request",
"form-attachments",
"FRMATCH-20190909-0000001",
"form",
"FRM-20190909-0000006",
""
]
}
},
"response": []
}
],
"protocolProfileBehavior": {},
"_postman_isSubFolder": true
},
{
"name": "CR Form Detail",
"item": [
},
{
"name": "List of Details",
"name": "Delete Form",
"request": {
"method": "GET",
"auth": {
"type": "bearer",
"bearer": [
{
"key": "token",
"value": "951574546a6d45af34dfef101840bba27f1ab574",
"type": "string"
}
]
},
"method": "DELETE",
"header": [],
"body": {
"mode": "raw",
"raw": ""
},
"url": {
"raw": "{{baseurl}}/change-request/form-details/",
"raw": "http://localhost:8000/api/v1/change-request/form/FRM-20190909-0000006/",
"protocol": "http",
"host": [
"{{baseurl}}"
"localhost"
],
"port": "8000",
"path": [
"api",
"v1",
"change-request",
"form-details",
"form",
"FRM-20190909-0000006",
""
]
}
......@@ -1814,63 +1860,28 @@
"response": []
},
{
"name": "View Detail",
"name": "Re Route for Approval",
"request": {
"method": "GET",
"method": "PATCH",
"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": {
"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": {
"raw": "{{baseurl}}/change-request/template-post/",
"raw": "http://localhost:8000/api/v1/change-request/form/FRM-20190913-0000002/re_route/",
"protocol": "http",
"host": [
"{{baseurl}}"
"localhost"
],
"port": "8000",
"path": [
"api",
"v1",
"change-request",
"template-post",
"form",
"FRM-20190913-0000002",
"re_route",
""
]
}
......@@ -1878,18 +1889,28 @@
"response": []
},
{
"name": "List of Templates",
"name": "Resubmit",
"request": {
"method": "GET",
"method": "PATCH",
"header": [],
"body": {
"mode": "raw",
"raw": ""
},
"url": {
"raw": "{{baseurl}}/change-request/template/",
"raw": "http://localhost:8000/api/v1/change-request/form/FRM-20190913-0000001/re_submit/",
"protocol": "http",
"host": [
"{{baseurl}}"
"localhost"
],
"port": "8000",
"path": [
"api",
"v1",
"change-request",
"template",
"form",
"FRM-20190913-0000001",
"re_submit",
""
]
}
......@@ -1897,19 +1918,34 @@
"response": []
},
{
"name": "View Template",
"name": "CR Action",
"request": {
"method": "GET",
"header": [],
"method": "PATCH",
"header": [
{
"key": "Content-Type",
"name": "Content-Type",
"value": "application/json",
"type": "text"
}
],
"body": {
"mode": "raw",
"raw": "{\r\n \"id\": 1,\r\n \"user\": \"\",\r\n \"form_code\": \"\",\r\n \"delegation\": \"\",\r\n \"action\": \"Approved\",\r\n \"level\": \"\",\r\n \"remarks\": \"Approver\"\r\n}"
},
"url": {
"raw": "{{baseurl}}/change-request/template/TMP-20190927-0000001/",
"raw": "http://localhost:8000/api/v1/change-request/form/actions/",
"protocol": "http",
"host": [
"{{baseurl}}"
"localhost"
],
"port": "8000",
"path": [
"api",
"v1",
"change-request",
"template",
"TMP-20190927-0000001",
"form",
"actions",
""
]
}
......@@ -1917,7 +1953,7 @@
"response": []
},
{
"name": "Edit Template",
"name": "Submit",
"request": {
"method": "PATCH",
"header": [
......@@ -1930,17 +1966,22 @@
],
"body": {
"mode": "raw",
"raw": "{\r\n \"requested_to_template_name\": \"Security Projects\",\r\n \"requested_to_objective\": \"Sample Objective\",\r\n \"requested_to_target_date\": \"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": {
"raw": "{{baseurl}}/change-request/template/TMP-20190928-0000003/",
"raw": "http://localhost:8000/api/v1/change-request/form/FRM-20190912-0000002/actions/",
"protocol": "http",
"host": [
"{{baseurl}}"
"localhost"
],
"port": "8000",
"path": [
"api",
"v1",
"change-request",
"template",
"TMP-20190928-0000003",
"form",
"FRM-20190912-0000002",
"actions",
""
]
}
......@@ -1948,7 +1989,7 @@
"response": []
},
{
"name": "Edit Template Copy",
"name": "Save",
"request": {
"method": "PATCH",
"header": [
......@@ -1961,17 +2002,22 @@
],
"body": {
"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": {
"raw": "{{baseurl}}/change-request/template/TMP-20190927-0000002/",
"raw": "http://localhost:8000/api/v1/change-request/form/FRM-20190912-0000002/actions/",
"protocol": "http",
"host": [
"{{baseurl}}"
"localhost"
],
"port": "8000",
"path": [
"api",
"v1",
"change-request",
"template",
"TMP-20190927-0000002",
"form",
"FRM-20190912-0000002",
"actions",
""
]
}
......@@ -1979,19 +2025,22 @@
"response": []
},
{
"name": "Delete Template",
"name": "Download",
"request": {
"method": "DELETE",
"method": "GET",
"header": [],
"body": {
"mode": "raw",
"raw": ""
},
"url": {
"raw": "{{baseurl}}/change-request/template/TMP-20190928-0000003/",
"raw": "{{baseurl}}/change-request/template/",
"host": [
"{{baseurl}}"
],
"path": [
"change-request",
"template",
"TMP-20190928-0000003",
""
]
}
......@@ -1999,25 +2048,32 @@
"response": []
}
],
"protocolProfileBehavior": {},
"_postman_isSubFolder": true
},
{
"name": "CR Template Approver",
"name": "CR Form Approver",
"item": [
{
"name": "List of Approvers",
"request": {
"method": "GET",
"header": [],
"body": {
"mode": "raw",
"raw": ""
},
"url": {
"raw": "{{baseurl}}/change-request/template-approvers/",
"raw": "http://localhost:8000/api/v1/change-request/form-approvers/",
"protocol": "http",
"host": [
"{{baseurl}}"
"localhost"
],
"port": "8000",
"path": [
"api",
"v1",
"change-request",
"template-approvers",
"form-approvers",
""
]
}
......@@ -2029,15 +2085,23 @@
"request": {
"method": "GET",
"header": [],
"body": {
"mode": "raw",
"raw": ""
},
"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": [
"{{baseurl}}"
"localhost"
],
"port": "8000",
"path": [
"api",
"v1",
"change-request",
"template-approvers",
"TMPAPR-20190924-0000015",
"form-approvers",
"TMPAPR-20190909-0000001",
""
]
}
......@@ -2045,25 +2109,32 @@
"response": []
}
],
"protocolProfileBehavior": {},
"_postman_isSubFolder": true
},
{
"name": "CR Template Stakeholder",
"name": "CR Form Stakeholder",
"item": [
{
"name": "List of Stakeholders",
"request": {
"method": "GET",
"header": [],
"body": {
"mode": "raw",
"raw": ""
},
"url": {
"raw": "{{baseurl}}/change-request/template-stakeholders/",
"raw": "http://localhost:8000/api/v1/change-request/form-stakeholders/",
"protocol": "http",
"host": [
"{{baseurl}}"
"localhost"
],
"port": "8000",
"path": [
"api",
"v1",
"change-request",
"template-stakeholders",
"form-stakeholders",
""
]
}
......@@ -2075,14 +2146,22 @@
"request": {
"method": "GET",
"header": [],
"body": {
"mode": "raw",
"raw": ""
},
"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": [
"{{baseurl}}"
"localhost"
],
"port": "8000",
"path": [
"api",
"v1",
"change-request",
"template-stakeholders",
"form-stakeholders",
"TMPSTK-20190909-0000001",
""
]
......@@ -2091,25 +2170,32 @@
"response": []
}
],
"protocolProfileBehavior": {},
"_postman_isSubFolder": true
},
{
"name": "CR Template Attachment",
"name": "CR Form Attachment",
"item": [
{
"name": "List of Attachments",
"request": {
"method": "GET",
"header": [],
"body": {
"mode": "raw",
"raw": ""
},
"url": {
"raw": "{{baseurl}}/change-request/template-attachments/",
"raw": "http://localhost:8000/api/v1/change-request/form-attachments/",
"protocol": "http",
"host": [
"{{baseurl}}"
"localhost"
],
"port": "8000",
"path": [
"api",
"v1",
"change-request",
"template-attachments",
"form-attachments",
""
]
}
......@@ -2118,18 +2204,36 @@
},
{
"name": "View Attachment",
"protocolProfileBehavior": {
"disableBodyPruning": true
},
"request": {
"method": "GET",
"header": [],
"header": [
{
"key": "Content-Type",
"name": "Content-Type",
"value": "application/json",
"type": "text"
}
],
"body": {
"mode": "raw",
"raw": "{\r\n \"attachment_type\": \"Mandatory Attached\",\r\n \"attachment_name\": \"Mandatory Stakeholder\",\r\n \"file_name\": \"USER-20190909-0000005\",\r\n \"description\": \"Sample Desc 1\",\r\n \"file_upload\": null,\r\n \"code\": \"FRMATCH-20190909-0000001\",\r\n \"uploaded_by\": \"USER-20190909-0000005\",\r\n \"form_code\": \"FRM-20190909-0000005\",\r\n \"tmp_attach\": \"TMPATCH-20190909-0000001\"\r\n}"
},
"url": {
"raw": "{{baseurl}}/change-request/template-attachments/TMPATCH-20190909-0000001/",
"raw": "http://localhost:8000/api/v1/change-request/form-attachments/FRMATCH-20190909-0000001/",
"protocol": "http",
"host": [
"{{baseurl}}"
"localhost"
],
"port": "8000",
"path": [
"api",
"v1",
"change-request",
"template-attachments",
"TMPATCH-20190909-0000001",
"form-attachments",
"FRMATCH-20190909-0000001",
""
]
}
......@@ -2137,25 +2241,32 @@
"response": []
}
],
"protocolProfileBehavior": {},
"_postman_isSubFolder": true
},
{
"name": "CR Template Detail",
"name": "CR Form Detail",
"item": [
{
"name": "List of Details",
"request": {
"method": "GET",
"header": [],
"body": {
"mode": "raw",
"raw": ""
},
"url": {
"raw": "{{baseurl}}/change-request/template-details/",
"raw": "http://localhost:8000/api/v1/change-request/form-details/",
"protocol": "http",
"host": [
"{{baseurl}}"
"localhost"
],
"port": "8000",
"path": [
"api",
"v1",
"change-request",
"template-details",
"form-details",
""
]
}
......@@ -2167,15 +2278,23 @@
"request": {
"method": "GET",
"header": [],
"body": {
"mode": "raw",
"raw": ""
},
"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": [
"{{baseurl}}"
"localhost"
],
"port": "8000",
"path": [
"api",
"v1",
"change-request",
"template-details",
"TMPDETAIL-20190909-0000001",
"form-details",
"FRMDETAIL-20190909-0000001",
""
]
}
......@@ -2183,11 +2302,9 @@
"response": []
}
],
"protocolProfileBehavior": {},
"_postman_isSubFolder": true
}
],
"protocolProfileBehavior": {},
"_postman_isSubFolder": true
},
{
......@@ -2198,6 +2315,10 @@
"request": {
"method": "GET",
"header": [],
"body": {
"mode": "raw",
"raw": ""
},
"url": {
"raw": "{{baseurl}}/change-request/allowed-companies/",
"host": [
......@@ -2243,25 +2364,28 @@
"response": []
}
],
"protocolProfileBehavior": {},
"_postman_isSubFolder": true
},
{
"name": "Master",
"name": "Filter by Allowed Company Template",
"item": [
{
"name": "List of Company",
"request": {
"method": "GET",
"header": [],
"body": {
"mode": "raw",
"raw": ""
},
"url": {
"raw": "{{baseurl}}/change-request/companies/",
"raw": "{{baseurl}}/change-request/template-companies/",
"host": [
"{{baseurl}}"
],
"path": [
"change-request",
"companies",
"template-companies",
""
]
}
......@@ -2273,20 +2397,24 @@
"request": {
"method": "GET",
"header": [],
"body": {
"mode": "raw",
"raw": ""
},
"url": {
"raw": "{{baseurl}}/change-request/departments/?company_code=COMPANY-20190917-0000001",
"raw": "{{baseurl}}/change-request/template-departments/?company_code=COMPANY-20190923-0000001",
"host": [
"{{baseurl}}"
],
"path": [
"change-request",
"departments",
"template-departments",
""
],
"query": [
{
"key": "company_code",
"value": "COMPANY-20190917-0000001"
"value": "COMPANY-20190923-0000001"
}
]
}
......@@ -2298,21 +2426,79 @@
"request": {
"method": "GET",
"header": [],
"body": {
"mode": "raw",
"raw": ""
},
"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": [
"{{baseurl}}"
],
"path": [
"change-request",
"user-list",
"template-user-list",
""
],
"query": [
{
"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",
"value": "COMPANY-20190923-0000001"
......@@ -2321,13 +2507,69 @@
}
},
"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
}
],
"protocolProfileBehavior": {}
]
},
{
"name": "Notifications",
......@@ -2338,6 +2580,16 @@
"disableBodyPruning": true
},
"request": {
"auth": {
"type": "bearer",
"bearer": [
{
"key": "token",
"value": "951574546a6d45af34dfef101840bba27f1ab574",
"type": "string"
}
]
},
"method": "GET",
"header": [],
"body": {
......@@ -2345,21 +2597,65 @@
"raw": ""
},
"url": {
"raw": "{{baseurl}}/management/notifications/?account_no=USER-20190927-0000011",
"raw": "http://localhost:8000/api/v1/management/notifications/",
"protocol": "http",
"host": [
"{{baseurl}}"
"localhost"
],
"port": "8000",
"path": [
"api",
"v1",
"management",
"notifications",
""
],
"query": [
]
}
},
"response": []
},
{
"name": "Create Notification",
"request": {
"auth": {
"type": "bearer",
"bearer": [
{
"key": "account_no",
"value": "USER-20190927-0000011"
"key": "token",
"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": []
......@@ -2367,6 +2663,21 @@
{
"name": "Update Read Status by ids",
"request": {
"auth": {
"type": "basic",
"basic": [
{
"key": "password",
"value": "password123",
"type": "string"
},
{
"key": "username",
"value": "admin",
"type": "string"
}
]
},
"method": "PATCH",
"header": [
{
......@@ -2378,17 +2689,22 @@
],
"body": {
"mode": "raw",
"raw": "{\n\t\"ids\": [5]\n}"
"raw": "{\n\t\"ids\": [8]\n}"
},
"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": [
"{{baseurl}}"
"devapi",
"rmsv2",
"oneberrysystem",
"com"
],
"path": [
"management",
"api",
"v1",
"notifications",
"USER-20190927-0000011",
"USER-20190903-0000002",
"seen",
""
]
......@@ -2399,6 +2715,21 @@
{
"name": "Update Read Status by account_no",
"request": {
"auth": {
"type": "basic",
"basic": [
{
"key": "password",
"value": "password123",
"type": "string"
},
{
"key": "username",
"value": "admin",
"type": "string"
}
]
},
"method": "PATCH",
"header": [
{
......@@ -2413,14 +2744,19 @@
"raw": ""
},
"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": [
"{{baseurl}}"
"devapi",
"rmsv2",
"oneberrysystem",
"com"
],
"path": [
"management",
"api",
"v1",
"notifications",
"USER-20190927-0000011",
"USER-20190903-0000002",
"seenall",
""
]
......@@ -2428,8 +2764,7 @@
},
"response": []
}
],
"protocolProfileBehavior": {}
]
}
],
"auth": {
......@@ -2437,7 +2772,7 @@
"bearer": [
{
"key": "token",
"value": "998954dc92b60118210623c52ff8ff7ac81112e2",
"value": "84053738abba94c9619a6bfc5905c9674f6b59a1",
"type": "string"
}
]
......@@ -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