Commit fd5ab454 authored by Gladys Forte's avatar Gladys Forte

delete form

parent 156b9f9f
......@@ -44,20 +44,8 @@ class ChangeRequestFormHeaderSerializer(
approver = 'Yes'
else:
approver = 'No'
ret['action'] = approver
requested_to_company = {
"id": instance.requested_to_company.id,
"name": instance.requested_to_company.name,
"contact": instance.requested_to_company.contact_details,
"code": instance.requested_to_company.code
}
requested_to_department = {
"id": instance.requested_to_department.id,
"name": instance.requested_to_department.name,
"code": instance.requested_to_department.code
}
ret['action'] = approver
requested_to_user = {
"id": instance.requested_to_user.id,
......@@ -77,17 +65,11 @@ class ChangeRequestFormHeaderSerializer(
"contact_no": instance.requested_by_user.contact_no
}
requested_by_department = {
"id": instance.requested_by_department.id,
"name": instance.requested_by_department.name,
"code": instance.requested_by_department.code
}
ret['requested_to_company'] = requested_to_company
ret['requested_to_department'] = requested_to_department
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
ret['requested_by_user'] = requested_by_user
ret['requested_by_department'] = requested_by_department
ret['requested_by_department'] = model_to_dict(instance.requested_by_department)
return ret
except Exception as e:
......
......@@ -26,7 +26,8 @@ from app.applicationlayer.cms.utils_cr import (number_generator,
send_mail_vendor,
get_max_batchno,
generate_template_id,
crhistory_create_save)
crhistory_create_save,
entity_log_bulk)
from app.entities import enums
from django.forms.models import model_to_dict
......@@ -367,6 +368,83 @@ class ChangeRequestFormsViewset(viewsets.ModelViewSet):
serializer = self.get_serializer(instance)
return Response(serializer.data)
@transaction.atomic()
def destroy(self, request, *args, **kwargs):
try:
form_code = self.kwargs['form_code']
existing_transaction = models.ChangeRequestHistory.objects.filter(
form_code=form_code
)
if not existing_transaction.count() > 0:
enum_approver = enums.LogEntitiesEnum.ChangeRequestFormApprovers.value
enum_stake = enums.LogEntitiesEnum.ChangeRequestFormStakeHolders.value
enum_attach = enums.LogEntitiesEnum.ChangeRequestFormAttachments.value
enum_detail = enums.LogEntitiesEnum.ChangeRequestFormDetails.value
enum_header = enums.LogEntitiesEnum.ChangeRequestFormHeader.value
approver = models.ChangeRequestFormApprovers.objects.filter(
form_code=form_code
)
if approver.count() > 0:
entity_log_bulk(
approver, enum_approver,
models.ChangeRequestFormApprovers
)
stake = models.ChangeRequestFormStakeHolders.objects.filter(
form_code=form_code
)
if stake.count() > 0:
entity_log_bulk(
stake, enum_stake,
models.ChangeRequestFormStakeHolders
)
attachment = models.ChangeRequestFormAttachments.objects.filter(
form_code=form_code
)
if attachment.count() > 0:
entity_log_bulk(
attachment, enum_attach,
models.ChangeRequestFormAttachments
)
details = models.ChangeRequestFormDetails.objects.filter(
form_code=form_code
)
if details.count() > 0:
entity_log_bulk(
details, enum_detail,
models.ChangeRequestFormDetails
)
header = models.ChangeRequestFormHeader.objects.filter(
form_code=form_code
)
if header.count() > 0:
entity_log_bulk(
header, enum_header,
models.ChangeRequestFormHeader
)
return Response({"message": "Deleted"},
status=status.HTTP_200_OK)
else:
return Response(
{"message": "Change request cannot be deleted due to previous transaction/s"},
status=status.HTTP_400_BAD_REQUEST)
except Exception as e:
return Response(e,
status=status.HTTP_500_INTERNAL_SERVER_ERROR)
@action(
methods=['PATCH'], detail=True,
url_path='re_route', url_name='re_route'
......
......@@ -32,7 +32,6 @@ class ChangeRequestTemplatesSerializer(
def to_representation(self, instance):
ret = super().to_representation(instance)
try:
requested_to_user_object = {
"id": instance.requested_to_user.id,
"name": instance.requested_to_user.name,
......@@ -54,6 +53,10 @@ 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['company'] = "none"
ret['department'] = "none"
ret['point_of_contact'] = "none"
......@@ -83,20 +86,6 @@ class ChangeRequestTemplatesSerializerList(
def to_representation(self, instance):
ret = super().to_representation(instance)
try:
requested_to_user_object = {
"id": instance.requested_to_user.id,
"name": instance.requested_to_user.name,
"username": instance.requested_to_user.username,
"code": instance.requested_to_user.code,
"email": instance.requested_to_user.email,
"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['company'] = instance.requested_to_company.name
ret['department'] = instance.requested_to_department.name
ret['point_of_contact'] = instance.requested_to_user.name
......
......@@ -67,6 +67,12 @@ class LogEntitiesEnum(Enum):
ChangeRequestTemplateAttachments = "ChangeRequestTemplateAttachments"
ChangeRequestTemplateDetails = "ChangeRequestTemplateDetails"
ChangeRequestFormHeader = "ChangeRequestFormHeader"
ChangeRequestFormApprovers = "ChangeRequestFormApprovers"
ChangeRequestFormStakeHolders = "ChangeRequestFormStakeHolders"
ChangeRequestFormAttachments = "ChangeRequestFormAttachments"
ChangeRequestFormDetails = "ChangeRequestFormDetails"
# BRAND = "Brand"
# CATEGORY = "Category"
# CURRENCY = "Currency"
......
{
"info": {
"_postman_id": "733e6f05-1f26-4ab8-bcfb-a379c0263a73",
"name": "RMSv2 copy",
"schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json"
},
"item": [
{
"name": "RMS",
"item": [
{
"name": "Master",
"item": [
{
"name": "Company Listing",
"request": {
"method": "GET",
"header": [],
"body": {
"mode": "raw",
"raw": ""
},
"url": {
"raw": "{{baseurl}}/master/companies/",
"host": [
"{{baseurl}}"
],
"path": [
"master",
"companies",
""
]
}
},
"response": []
},
{
"name": "Upload Attachment",
"request": {
"method": "POST",
"header": [],
"body": {
"mode": "formdata",
"formdata": [
{
"key": "url",
"type": "file",
"src": ""
},
{
"key": "url",
"type": "file",
"src": ""
}
]
},
"url": {
"raw": "{{baseurl}}/master/attachments/",
"host": [
"{{baseurl}}"
],
"path": [
"master",
"attachments",
""
]
}
},
"response": []
},
{
"name": "Upload Attachment Copy",
"protocolProfileBehavior": {
"disableBodyPruning": true
},
"request": {
"method": "GET",
"header": [],
"body": {
"mode": "formdata",
"formdata": [
{
"key": "url",
"type": "file",
"src": ""
},
{
"key": "url",
"type": "file",
"src": ""
}
]
},
"url": {
"raw": "{{baseurl}}/master/attachments/",
"host": [
"{{baseurl}}"
],
"path": [
"master",
"attachments",
""
]
}
},
"response": []
},
{
"name": "Department Listing",
"request": {
"method": "GET",
"header": [],
"body": {
"mode": "raw",
"raw": ""
},
"url": {
"raw": "{{baseurl}}/master/departments/",
"host": [
"{{baseurl}}"
],
"path": [
"master",
"departments",
""
]
}
},
"response": []
},
{
"name": "User type listing",
"request": {
"method": "GET",
"header": [],
"body": {
"mode": "raw",
"raw": ""
},
"url": {
"raw": "{{baseurl}}/master/user-types/",
"host": [
"{{baseurl}}"
],
"path": [
"master",
"user-types",
""
]
}
},
"response": []
},
{
"name": "User Listing",
"request": {
"method": "GET",
"header": [],
"body": {
"mode": "raw",
"raw": ""
},
"url": {
"raw": "{{baseurl}}/master/users/",
"host": [
"{{baseurl}}"
],
"path": [
"master",
"users",
""
]
}
},
"response": []
}
],
"_postman_isSubFolder": true
},
{
"name": "Management",
"item": [
{
"name": "Application Management",
"item": [
{
"name": "List of Applications",
"request": {
"method": "GET",
"header": [],
"body": {
"mode": "raw",
"raw": ""
},
"url": {
"raw": "{{baseurl}}/management/applications/",
"host": [
"{{baseurl}}"
],
"path": [
"management",
"applications",
""
]
}
},
"response": []
},
{
"name": "View Application",
"request": {
"method": "GET",
"header": [],
"body": {
"mode": "raw",
"raw": ""
},
"url": {
"raw": "{{baseurl}}/management/applications/APP-20190917-0000001/",
"host": [
"{{baseurl}}"
],
"path": [
"management",
"applications",
"APP-20190917-0000001",
""
]
}
},
"response": []
},
{
"name": "Create Application",
"request": {
"method": "POST",
"header": [
{
"key": "Content-Type",
"name": "Content-Type",
"type": "text",
"value": "application/json"
}
],
"body": {
"mode": "raw",
"raw": "{\n\t\"name\": \"Asset Management System\"\n}"
},
"url": {
"raw": "{{baseurl}}/management/applications/",
"host": [
"{{baseurl}}"
],
"path": [
"management",
"applications",
""
]
}
},
"response": []
},
{
"name": "Edit Application",
"request": {
"method": "PUT",
"header": [
{
"key": "Content-Type",
"name": "Content-Type",
"value": "application/json",
"type": "text"
}
],
"body": {
"mode": "raw",
"raw": "{\n\t\"name\": \"rms2\"\n}"
},
"url": {
"raw": "{{baseurl}}/management/applications/APP-20190925-0000004/",
"host": [
"{{baseurl}}"
],
"path": [
"management",
"applications",
"APP-20190925-0000004",
""
]
}
},
"response": []
},
{
"name": "Delete Application",
"request": {
"method": "DELETE",
"header": [
{
"key": "Content-Type",
"name": "Content-Type",
"type": "text",
"value": "application/json"
}
],
"body": {
"mode": "raw",
"raw": "{\n\t\"name\": \"rms2\"\n}"
},
"url": {
"raw": "{{baseurl}}/management/applications/APP-20190917-0000004/",
"host": [
"{{baseurl}}"
],
"path": [
"management",
"applications",
"APP-20190917-0000004",
""
]
}
},
"response": []
}
],
"_postman_isSubFolder": true
},
{
"name": "Companies Management",
"item": [
{
"name": "List of Companies",
"request": {
"method": "GET",
"header": [],
"body": {
"mode": "raw",
"raw": ""
},
"url": {
"raw": "{{baseurl}}/management/companies/",
"host": [
"{{baseurl}}"
],
"path": [
"management",
"companies",
""
]
}
},
"response": []
},
{
"name": "View Company",
"request": {
"method": "GET",
"header": [],
"body": {
"mode": "raw",
"raw": ""
},
"url": {
"raw": "{{baseurl}}/management/companies/COMPANY-20190909-0000001/",
"host": [
"{{baseurl}}"
],
"path": [
"management",
"companies",
"COMPANY-20190909-0000001",
""
]
}
},
"response": []
},
{
"name": "Create Company",
"request": {
"method": "POST",
"header": [
{
"key": "Content-Type",
"name": "Content-Type",
"value": "application/json",
"type": "text"
}
],
"body": {
"mode": "raw",
"raw": "{\n\t\"name\": \"Total Integrated Resources\",\n\t\"contact_details\": \"2152509\"\n}"
},
"url": {
"raw": "{{baseurl}}/management/companies/",
"host": [
"{{baseurl}}"
],
"path": [
"management",
"companies",
""
]
}
},
"response": []
},
{
"name": "Edit Company",
"request": {
"method": "PUT",
"header": [
{
"key": "Content-Type",
"name": "Content-Type",
"value": "application/json",
"type": "text"
}
],
"body": {
"mode": "raw",
"raw": "{\n\t\"name\": \"Oneberry Technologies\",\n\t\"contact_details\": \"2152509\"\n}"
},
"url": {
"raw": "{{baseurl}}/management/companies/COMPANY-20190923-0000001/",
"host": [
"{{baseurl}}"
],
"path": [
"management",
"companies",
"COMPANY-20190923-0000001",
""
]
}
},
"response": []
},
{
"name": "Delete Company",
"request": {
"method": "DELETE",
"header": [
{
"key": "Content-Type",
"name": "Content-Type",
"type": "text",
"value": "application/json"
}
],
"body": {
"mode": "raw",
"raw": "{\n\t\"name\": \"TIR2\",\n\t\"contact_details\": \"2152509\"\n}"
},
"url": {
"raw": "{{baseurl}}/management/companies/COMPANY-20190917-0000002/",
"host": [
"{{baseurl}}"
],
"path": [
"management",
"companies",
"COMPANY-20190917-0000002",
""
]
}
},
"response": []
}
],
"_postman_isSubFolder": true
},
{
"name": "Department Management",
"item": [
{
"name": "List of Department",
"request": {
"method": "GET",
"header": [],
"body": {
"mode": "raw",
"raw": ""
},
"url": {
"raw": "{{baseurl}}/management/departments/",
"host": [
"{{baseurl}}"
],
"path": [
"management",
"departments",
""
]
}
},
"response": []
},
{
"name": "View Department",
"request": {
"method": "GET",
"header": [],
"body": {
"mode": "raw",
"raw": ""
},
"url": {
"raw": "{{baseurl}}/management/departments/DEPARTMENT-20190919-0000001/",
"host": [
"{{baseurl}}"
],
"path": [
"management",
"departments",
"DEPARTMENT-20190919-0000001",
""
]
}
},
"response": []
},
{
"name": "Create Department",
"request": {
"method": "POST",
"header": [
{
"key": "Content-Type",
"name": "Content-Type",
"value": "application/json",
"type": "text"
}
],
"body": {
"mode": "raw",
"raw": "{\n \"name\": \"Business Develsopment\",\n \"company\": \"COMPANY-20190923-0000001\"\n}"
},
"url": {
"raw": "{{baseurl}}/management/departments/",
"host": [
"{{baseurl}}"
],
"path": [
"management",
"departments",
""
]
}
},
"response": []
},
{
"name": "Edit Department",
"request": {
"method": "PUT",
"header": [
{
"key": "Content-Type",
"name": "Content-Type",
"type": "text",
"value": "application/json"
}
],
"body": {
"mode": "raw",
"raw": "{\n \"name\": \"Business Development\",\n \"company\": \"COMPANY-20190917-0000001\"\n}"
},
"url": {
"raw": "{{baseurl}}/management/departments/DEPARTMENT-20190919-0000001/",
"host": [
"{{baseurl}}"
],
"path": [
"management",
"departments",
"DEPARTMENT-20190919-0000001",
""
]
}
},
"response": []
},
{
"name": "Delete Department",
"request": {
"method": "DELETE",
"header": [
{
"key": "Content-Type",
"name": "Content-Type",
"type": "text",
"value": "application/json"
}
],
"body": {
"mode": "raw",
"raw": "{\n \"name\": \"Business Developments\",\n \"company\": 2\n}"
},
"url": {
"raw": "{{baseurl}}/management/departments/DEPARTMENT-20190917-0000001/",
"host": [
"{{baseurl}}"
],
"path": [
"management",
"departments",
"DEPARTMENT-20190917-0000001",
""
]
}
},
"response": []
}
],
"_postman_isSubFolder": true
},
{
"name": "Module Management",
"item": [
{
"name": "List of Module",
"request": {
"method": "GET",
"header": [],
"body": {
"mode": "raw",
"raw": ""
},
"url": {
"raw": "{{baseurl}}/management/modules/?page=2",
"host": [
"{{baseurl}}"
],
"path": [
"management",
"modules",
""
],
"query": [
{
"key": "page",
"value": "2"
}
]
}
},
"response": []
},
{
"name": "View Module",
"request": {
"method": "GET",
"header": [],
"body": {
"mode": "raw",
"raw": ""
},
"url": {
"raw": "{{baseurl}}/management/modules/MODULE-20190919-0000007/",
"host": [
"{{baseurl}}"
],
"path": [
"management",
"modules",
"MODULE-20190919-0000007",
""
]
}
},
"response": []
},
{
"name": "Create Module",
"request": {
"method": "POST",
"header": [
{
"key": "Content-Type",
"name": "Content-Type",
"value": "application/json",
"type": "text"
}
],
"body": {
"mode": "raw",
"raw": "{\n \"name\": \"User Managementdd\",\n \"parent\": 0,\n \"sort_id\": 1,\n \"application\": \"APP-20190917-0000001\"\n}"
},
"url": {
"raw": "{{baseurl}}/management/modules/",
"host": [
"{{baseurl}}"
],
"path": [
"management",
"modules",
""
]
}
},
"response": []
},
{
"name": "Edit Module",
"request": {
"method": "PUT",
"header": [
{
"key": "Content-Type",
"name": "Content-Type",
"type": "text",
"value": "application/json"
}
],
"body": {
"mode": "raw",
"raw": "{\n \"name\": \"Assets NVM\",\n \"parent\": 10,\n \"sort_id\": 1,\n \"application\": \"APP-20190917-0000001\"\n}"
},
"url": {
"raw": "{{baseurl}}/management/modules/MODULE-20190919-0000007/",
"host": [
"{{baseurl}}"
],
"path": [
"management",
"modules",
"MODULE-20190919-0000007",
""
]
}
},
"response": []
},
{
"name": "Edit Module Copy",
"request": {
"method": "DELETE",
"header": [
{
"key": "Content-Type",
"name": "Content-Type",
"type": "text",
"value": "application/json"
}
],
"body": {
"mode": "raw",
"raw": "{\n \"name\": \"Assets NVM\",\n \"parent\": 10,\n \"sort_id\": 1,\n \"application\": 2\n}"
},
"url": {
"raw": "http://localhost:8000/api/v1/management/modules/12/",
"protocol": "http",
"host": [
"localhost"
],
"port": "8000",
"path": [
"api",
"v1",
"management",
"modules",
"12",
""
]
}
},
"response": []
}
],
"_postman_isSubFolder": true
},
{
"name": "User",
"item": [
{
"name": "List of Users",
"request": {
"method": "GET",
"header": [],
"body": {
"mode": "raw",
"raw": ""
},
"url": {
"raw": "{{baseurl}}/management/users/",
"host": [
"{{baseurl}}"
],
"path": [
"management",
"users",
""
]
}
},
"response": []
},
{
"name": "View Users",
"request": {
"method": "GET",
"header": [],
"body": {
"mode": "raw",
"raw": ""
},
"url": {
"raw": "{{baseurl}}/management/users/USER-20190919-0000028/",
"host": [
"{{baseurl}}"
],
"path": [
"management",
"users",
"USER-20190919-0000028",
""
]
}
},
"response": []
},
{
"name": "Create User",
"request": {
"method": "POST",
"header": [
{
"key": "Content-Type",
"name": "Content-Type",
"value": "application/json",
"type": "text"
}
],
"body": {
"mode": "raw",
"raw": "{\r\n\t\"application\":[\"APP-20190923-0000001\"],\r\n\t\"department\": \"DEPARTMENT-20190923-0000002\",\r\n\t\"user_type\": \"OUA\",\r\n\t\"name\": \"Rita\",\r\n\t\"username\": \"obrita\",\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/",
"host": [
"{{baseurl}}"
],
"path": [
"management",
"users",
""
]
}
},
"response": []
},
{
"name": "Edit User",
"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": {
"method": "PUT",
"header": [
{
"key": "Content-Type",
"name": "Content-Type",
"value": "application/json",
"type": "text"
}
],
"body": {
"mode": "raw",
"raw": "{\r\n\t\"application\":[1,3],\r\n\t\"department\": 1,\r\n\t\"user_type\": \"OUA\",\r\n\t\"name\": \"Ritas\",\r\n\t\"username\": \"OBRITA\",\r\n\t\"password\": \"password123\",\r\n\t\"doa\":\"\",\r\n\t\"default_app\": \"RMS\",\r\n\t\"contact_no\": \"1312313\",\r\n\t\"email\": \"test@gmail.com\"\r\n}\r\n"
},
"url": {
"raw": "{{baseurl}}/users/3/",
"host": [
"{{baseurl}}"
],
"path": [
"users",
"3",
""
]
}
},
"response": []
},
{
"name": "Delete User",
"request": {
"method": "DELETE",
"header": [
{
"key": "Content-Type",
"name": "Content-Type",
"value": "application/json",
"type": "text"
}
],
"body": {
"mode": "raw",
"raw": ""
},
"url": {
"raw": "{{baseurl}}/management/users/USER-20190920-0000065/",
"host": [
"{{baseurl}}"
],
"path": [
"management",
"users",
"USER-20190920-0000065",
""
]
}
},
"response": []
},
{
"name": "Change Password",
"request": {
"method": "PUT",
"header": [
{
"key": "Content-Type",
"name": "Content-Type",
"value": "application/json",
"type": "text"
}
],
"body": {
"mode": "raw",
"raw": "{\n\t\"old_password\": \"password123\",\n\t\"new_password\": \"newpassword011\",\n\t\"new_password_confirm\": \"newpassword011\"\n}"
},
"url": {
"raw": "{{baseurl}}/management/users/USER-20190920-0000028/change-password/",
"host": [
"{{baseurl}}"
],
"path": [
"management",
"users",
"USER-20190920-0000028",
"change-password",
""
]
}
},
"response": []
},
{
"name": "Reset Password SUPERUSER LEVEL",
"request": {
"method": "PUT",
"header": [
{
"key": "Content-Type",
"name": "Content-Type",
"value": "application/json",
"type": "text"
}
],
"body": {
"mode": "raw",
"raw": ""
},
"url": {
"raw": "{{baseurl}}/management/users/USER-20190920-0000028/reset-password/",
"host": [
"{{baseurl}}"
],
"path": [
"management",
"users",
"USER-20190920-0000028",
"reset-password",
""
]
}
},
"response": []
}
],
"_postman_isSubFolder": true
}
],
"_postman_isSubFolder": true
},
{
"name": "Access Token",
"item": [
{
"name": "current-user",
"request": {
"method": "GET",
"header": [],
"body": {
"mode": "raw",
"raw": ""
},
"url": {
"raw": "{{baseurl}}/auth/current-user/",
"host": [
"{{baseurl}}"
],
"path": [
"auth",
"current-user",
""
]
}
},
"response": []
},
{
"name": "Login",
"request": {
"auth": {
"type": "noauth"
},
"method": "POST",
"header": [
{
"key": "Authorization",
"value": "JWT eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoxLCJ1c2VybmFtZSI6ImFkbWluIiwiZXhwIjoxNTU2OTM5MDI4LCJlbWFpbCI6IiJ9.eAA6vSTOhrto5yfy3IQsCdR7iaZxfApNcvdJsFdFmsc",
"type": "text",
"disabled": true
}
],
"body": {
"mode": "formdata",
"formdata": [
{
"key": "username",
"value": "superuser",
"type": "text"
},
{
"key": "password",
"value": "password123",
"type": "text"
}
]
},
"url": {
"raw": "{{baseurl}}/auth/login/",
"host": [
"{{baseurl}}"
],
"path": [
"auth",
"login",
""
]
}
},
"response": []
},
{
"name": "Forgot Password",
"request": {
"auth": {
"type": "noauth"
},
"method": "POST",
"header": [
{
"key": "Content-Type",
"name": "Content-Type",
"value": "application/json",
"type": "text"
}
],
"body": {
"mode": "raw",
"raw": "{\n\t\"email\": \"red@tirsolutions.com\"\n}"
},
"url": {
"raw": "http://localhost:8000/api/v1/auth/forgot-password/",
"protocol": "http",
"host": [
"localhost"
],
"port": "8000",
"path": [
"api",
"v1",
"auth",
"forgot-password",
""
]
}
},
"response": []
},
{
"name": "Validate Token",
"request": {
"method": "POST",
"header": [
{
"key": "Content-Type",
"name": "Content-Type",
"value": "application/json",
"type": "text"
}
],
"body": {
"mode": "raw",
"raw": "{\n\t\"token\": \"31290f51d6ea2d476b02942d1d53b7200ed13a89\"\n}"
},
"url": {
"raw": "http://localhost:8000/api/v1/auth/reset-password-link/",
"protocol": "http",
"host": [
"localhost"
],
"port": "8000",
"path": [
"api",
"v1",
"auth",
"reset-password-link",
""
]
}
},
"response": []
},
{
"name": "Forgot Password Reset",
"request": {
"method": "POST",
"header": [
{
"key": "Content-Type",
"name": "Content-Type",
"value": "application/json",
"type": "text"
}
],
"body": {
"mode": "raw",
"raw": "{\n \"username\": \"213\",\n \"password\": \"password123\",\n \"password_confirm\": \"password123\",\n \"passcode\": \"9676\",\n \"token\": \"c90b0833d83b97cdbfd181f8685e06c2ab646e35\"\n}"
},
"url": {
"raw": "http://localhost:8000/api/v1/auth/forgot-password-reset/",
"protocol": "http",
"host": [
"localhost"
],
"port": "8000",
"path": [
"api",
"v1",
"auth",
"forgot-password-reset",
""
]
}
},
"response": []
}
],
"_postman_isSubFolder": true
}
]
},
{
"name": "Change Request",
"item": [
{
"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\": \"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/template-post/",
"host": [
"{{baseurl}}"
],
"path": [
"change-request",
"template-post",
""
]
}
},
"response": []
},
{
"name": "List of Templates",
"request": {
"method": "GET",
"header": [],
"body": {
"mode": "raw",
"raw": ""
},
"url": {
"raw": "{{baseurl}}/change-request/template/",
"host": [
"{{baseurl}}"
],
"path": [
"change-request",
"template",
""
]
}
},
"response": []
},
{
"name": "View Template",
"request": {
"method": "GET",
"header": [],
"body": {
"mode": "raw",
"raw": ""
},
"url": {
"raw": "{{baseurl}}/change-request/template/TMP-20190927-0000001/",
"host": [
"{{baseurl}}"
],
"path": [
"change-request",
"template",
"TMP-20190927-0000001",
""
]
}
},
"response": []
},
{
"name": "Edit Template",
"request": {
"method": "PATCH",
"header": [
{
"key": "Content-Type",
"name": "Content-Type",
"value": "application/json",
"type": "text"
}
],
"body": {
"mode": "raw",
"raw": "{\r\n \"template_no\": \"TMP-20190911-0000001\",\r\n \"requested_to_template_name\": \"Sample Template\",\r\n \"requested_to_objective\": \"hello objective\",\r\n \"requested_to_target_date\": \"2019-09-03T13:59:29.694560\",\r\n \"requested_to_priority\": \"High\",\r\n \"description\": \"sample description\",\r\n \"archived_at\": \"2019-09-11T18:59:09.296883\",\r\n \"requested_to_template_id\": \"temp\",\r\n \"requested_to_company\": \"COMPANY-20190909-0000002\",\r\n \"requested_to_department\": \"DEPARTMENT-20190909-0000002\",\r\n \"requested_to_user\": \"USER-20190909-0000005\",\r\n \"created_by_user\": \"USER-20190909-0000005\",\r\n \"created_by_department\": \"admin\",\r\n \r\n \"tmp_approvers\": [\r\n {\r\n \"id\": 1,\r\n \"level\": \"1\",\r\n \"delegation\": \"Approver\",\r\n \"created\": \"2019-09-11T18:59:09.509901\",\r\n \"archived_at\": null,\r\n \"code\": \"TMPAPR-20190911-0000001\",\r\n \"user\": \"USER-20190909-0000005\",\r\n \"template_no\": \"TMP-20190911-0000001\"\r\n },\r\n {\r\n \"id\": 2,\r\n \"level\": \"2\",\r\n \"delegation\": \"Approver\",\r\n \"created\": \"2019-09-11T18:59:09.607909\",\r\n \"archived_at\": null,\r\n \"code\": \"TMPAPR-20190911-0000002\",\r\n \"user\": \"USER-20190909-0000005\",\r\n \"template_no\": \"TMP-20190911-0000001\"\r\n }\r\n ],\r\n \"tmp_stakes\": [\r\n {\r\n \"id\": 1,\r\n \"delegation\": \"Mandatory Approver\",\r\n \"created\": \"2019-09-11T18:59:09.618924\",\r\n \"archived_at\": null,\r\n \"code\": \"TMPSTK-20190911-0000001\",\r\n \"user\": \"USER-20190909-0000005\",\r\n \"template_no\": \"TMP-20190911-0000001\"\r\n },\r\n {\r\n \"id\": 2,\r\n \"delegation\": \"Stake Approver\",\r\n \"created\": \"2019-09-11T18:59:09.619886\",\r\n \"archived_at\": null,\r\n \"code\": \"TMPSTK-20190911-0000002\",\r\n \"user\": \"USER-20190909-0000005\",\r\n \"template_no\": \"TMP-20190911-0000001\"\r\n }\r\n ],\r\n \"tmp_attachments\": [\r\n {\r\n \"id\": 1,\r\n \"attachment_type\": \"Hello\",\r\n \"attachment_name\": \"heyu\",\r\n \"file_name\": \"Sample\",\r\n \"description\": \"Sameple Desc\",\r\n \"file_upload\": null,\r\n \"created\": \"2019-09-11T18:59:09.631923\",\r\n \"archived_at\": null,\r\n \"code\": \"TMPATCH-20190911-0000001\",\r\n \"uploaded_by\": \"USER-20190909-0000005\",\r\n \"template_no\": \"TMP-20190911-0000001\"\r\n },\r\n {\r\n \"id\": 2,\r\n \"attachment_type\": \"Hello\",\r\n \"attachment_name\": \"heyu\",\r\n \"file_name\": \"Sample\",\r\n \"description\": \"Sameple Desc\",\r\n \"file_upload\": null,\r\n \"created\": \"2019-09-11T18:59:09.674881\",\r\n \"archived_at\": null,\r\n \"code\": \"TMPATCH-20190911-0000002\",\r\n \"uploaded_by\": \"USER-20190909-0000005\",\r\n \"template_no\": \"TMP-20190911-0000001\"\r\n }\r\n ],\r\n \"tmp_details\": [\r\n {\r\n \"id\": 1,\r\n \"field_idx\": \"Hello\",\r\n \"field_ref\": \"heyu\",\r\n \"field_val\": \"Sample\",\r\n \"field_props\": \"Sameple Desc\",\r\n \"created\": \"2019-09-11T18:59:09.684922\",\r\n \"archived_at\": null,\r\n \"code\": \"TMPDETAIL-20190911-0000001\",\r\n \"template_no\": \"TMP-20190911-0000001\"\r\n },\r\n {\r\n \"id\": 2,\r\n \"field_idx\": \"Hello\",\r\n \"field_ref\": \"heyu\",\r\n \"field_val\": \"Sample\",\r\n \"field_props\": \"Sameple Desc\",\r\n \"created\": \"2019-09-11T18:59:09.685887\",\r\n \"archived_at\": null,\r\n \"code\": \"TMPDETAIL-20190911-0000002\",\r\n \"template_no\": \"TMP-20190911-0000001\"\r\n }\r\n ]\r\n}"
},
"url": {
"raw": "{{baseurl}}/change-request/template/TMP-20190911-0000001/",
"host": [
"{{baseurl}}"
],
"path": [
"change-request",
"template",
"TMP-20190911-0000001",
""
]
}
},
"response": []
},
{
"name": "Archive Template",
"request": {
"method": "PATCH",
"header": [],
"body": {
"mode": "raw",
"raw": ""
},
"url": {
"raw": "{{baseurl}}/change-request/template/archived/",
"host": [
"{{baseurl}}"
],
"path": [
"change-request",
"template",
"archived",
""
]
}
},
"response": []
},
{
"name": "Retrieve Template",
"request": {
"method": "PATCH",
"header": [],
"body": {
"mode": "raw",
"raw": ""
},
"url": {
"raw": "{{baseurl}}/change-request/template/TMP-20190909-0000002/",
"host": [
"{{baseurl}}"
],
"path": [
"change-request",
"template",
"TMP-20190909-0000002",
""
]
}
},
"response": []
},
{
"name": "Delete Template",
"request": {
"method": "DELETE",
"header": [],
"body": {
"mode": "raw",
"raw": ""
},
"url": {
"raw": "{{baseurl}}/change-request/template/TMP-20190916-0000003/",
"host": [
"{{baseurl}}"
],
"path": [
"change-request",
"template",
"TMP-20190916-0000003",
""
]
}
},
"response": []
}
],
"_postman_isSubFolder": true
},
{
"name": "CR Template Approver",
"item": [
{
"name": "List of Approvers",
"request": {
"method": "GET",
"header": [],
"body": {
"mode": "raw",
"raw": ""
},
"url": {
"raw": "http://localhost:8000/api/v1/change-request/template-approvers/",
"protocol": "http",
"host": [
"localhost"
],
"port": "8000",
"path": [
"api",
"v1",
"change-request",
"template-approvers",
""
]
}
},
"response": []
},
{
"name": "View Approver",
"request": {
"method": "GET",
"header": [],
"body": {
"mode": "raw",
"raw": ""
},
"url": {
"raw": "{{baseurl}}/change-request/template-approvers/TMPAPR-20190911-0000001/",
"host": [
"{{baseurl}}"
],
"path": [
"change-request",
"template-approvers",
"TMPAPR-20190911-0000001",
""
]
}
},
"response": []
}
],
"_postman_isSubFolder": true
},
{
"name": "CR Template Stakeholder",
"item": [
{
"name": "List of Stakeholders",
"request": {
"method": "GET",
"header": [],
"body": {
"mode": "raw",
"raw": ""
},
"url": {
"raw": "{{baseurl}}/change-request/template-stakeholders/",
"host": [
"{{baseurl}}"
],
"path": [
"change-request",
"template-stakeholders",
""
]
}
},
"response": []
},
{
"name": "View Stakeholder",
"request": {
"method": "GET",
"header": [],
"body": {
"mode": "raw",
"raw": ""
},
"url": {
"raw": "{{baseurl}}/change-request/template-stakeholders/TMPSTK-20190909-0000001/",
"host": [
"{{baseurl}}"
],
"path": [
"change-request",
"template-stakeholders",
"TMPSTK-20190909-0000001",
""
]
}
},
"response": []
}
],
"_postman_isSubFolder": true
},
{
"name": "CR Template Attachment",
"item": [
{
"name": "List of Attachments",
"request": {
"method": "GET",
"header": [],
"body": {
"mode": "raw",
"raw": ""
},
"url": {
"raw": "http://localhost:8000/api/v1/change-request/template-attachments/",
"protocol": "http",
"host": [
"localhost"
],
"port": "8000",
"path": [
"api",
"v1",
"change-request",
"template-attachments",
""
]
}
},
"response": []
},
{
"name": "View Attachment",
"request": {
"method": "GET",
"header": [],
"body": {
"mode": "raw",
"raw": ""
},
"url": {
"raw": "http://localhost:8000/api/v1/change-request/template-attachments/TMPATCH-20190909-0000001/",
"protocol": "http",
"host": [
"localhost"
],
"port": "8000",
"path": [
"api",
"v1",
"change-request",
"template-attachments",
"TMPATCH-20190909-0000001",
""
]
}
},
"response": []
}
],
"_postman_isSubFolder": true
},
{
"name": "CR Template Detail",
"item": [
{
"name": "List of Details",
"request": {
"method": "GET",
"header": [],
"body": {
"mode": "raw",
"raw": ""
},
"url": {
"raw": "http://localhost:8000/api/v1/change-request/template-details/",
"protocol": "http",
"host": [
"localhost"
],
"port": "8000",
"path": [
"api",
"v1",
"change-request",
"template-details",
""
]
}
},
"response": []
},
{
"name": "View Detail",
"request": {
"method": "GET",
"header": [],
"body": {
"mode": "raw",
"raw": ""
},
"url": {
"raw": "http://localhost:8000/api/v1/change-request/template-details/TMPDETAIL-20190909-0000001/",
"protocol": "http",
"host": [
"localhost"
],
"port": "8000",
"path": [
"api",
"v1",
"change-request",
"template-details",
"TMPDETAIL-20190909-0000001",
""
]
}
},
"response": []
}
],
"_postman_isSubFolder": true
}
],
"_postman_isSubFolder": true
},
{
"name": "CR Forms",
"item": [
{
"name": "CR Form Header",
"item": [
{
"name": "Create Form Header",
"request": {
"method": "POST",
"header": [
{
"key": "Content-Type",
"name": "Content-Type",
"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": "http://localhost:8000/api/v1/change-request/form-post/",
"protocol": "http",
"host": [
"localhost"
],
"port": "8000",
"path": [
"api",
"v1",
"change-request",
"form-post",
""
]
}
},
"response": []
},
{
"name": "List of Forms",
"request": {
"method": "GET",
"header": [],
"body": {
"mode": "raw",
"raw": ""
},
"url": {
"raw": "http://localhost:8000/api/v1/change-request/form/",
"protocol": "http",
"host": [
"localhost"
],
"port": "8000",
"path": [
"api",
"v1",
"change-request",
"form",
""
]
}
},
"response": []
},
{
"name": "View Form",
"request": {
"method": "GET",
"header": [],
"body": {
"mode": "raw",
"raw": ""
},
"url": {
"raw": "http://localhost:8000/api/v1/change-request/form/FRM-20190912-0000002/",
"protocol": "http",
"host": [
"localhost"
],
"port": "8000",
"path": [
"api",
"v1",
"change-request",
"form",
"FRM-20190912-0000002",
""
]
}
},
"response": []
},
{
"name": "Edit Form",
"request": {
"method": "PUT",
"header": [
{
"key": "Content-Type",
"name": "Content-Type",
"value": "application/json",
"type": "text"
}
],
"body": {
"mode": "raw",
"raw": "{\r\n \"requested_to_template_name\": \"Sample Templates\",\r\n \"requested_to_template_id\": \"Samp\",\r\n \"requested_to_objective\": \"hello objective\",\r\n \"requested_to_target_date\": \"2019-09-03T13:59:29.694560\",\r\n \"requested_to_priority\": \"High\",\r\n \"description\": \"sample description\",\r\n \"form_code\": \"FRM-20190909-0000006\",\r\n \"cancel_date\": null,\r\n \"status\": \"Pending\",\r\n \"company_desc\": \"Oneberry\",\r\n \"department_desc\": \"Oneberry Superuser\",\r\n \"requested_desc\": \"Super User\",\r\n \"old_form_code\": \"\",\r\n \"requested_to_company\": \"COMPANY-20190909-0000002\",\r\n \"requested_to_department\": \"DEPARTMENT-20190909-0000002\",\r\n \"requested_to_user\": \"USER-20190909-0000005\",\r\n \"requested_by_user\": \"USER-20190909-0000005\",\r\n \"requested_by_department\": \"admin\",\r\n \"template_no\": \"TMP-20190909-0000001\",\r\n \"action\": \"No\"\r\n}"
},
"url": {
"raw": "http://localhost:8000/api/v1/change-request/form/FRM-20190909-0000006/",
"protocol": "http",
"host": [
"localhost"
],
"port": "8000",
"path": [
"api",
"v1",
"change-request",
"form",
"FRM-20190909-0000006",
""
]
}
},
"response": []
},
{
"name": "Delete Form",
"request": {
"auth": {
"type": "bearer",
"bearer": [
{
"key": "token",
"value": "951574546a6d45af34dfef101840bba27f1ab574",
"type": "string"
}
]
},
"method": "DELETE",
"header": [],
"body": {
"mode": "raw",
"raw": ""
},
"url": {
"raw": "http://localhost:8000/api/v1/change-request/form/FRM-20190909-0000006/",
"protocol": "http",
"host": [
"localhost"
],
"port": "8000",
"path": [
"api",
"v1",
"change-request",
"form",
"FRM-20190909-0000006",
""
]
}
},
"response": []
},
{
"name": "Re Route for Approval",
"request": {
"method": "PATCH",
"header": [],
"body": {
"mode": "raw",
"raw": ""
},
"url": {
"raw": "http://localhost:8000/api/v1/change-request/form/FRM-20190913-0000002/re_route/",
"protocol": "http",
"host": [
"localhost"
],
"port": "8000",
"path": [
"api",
"v1",
"change-request",
"form",
"FRM-20190913-0000002",
"re_route",
""
]
}
},
"response": []
},
{
"name": "Resubmit",
"request": {
"method": "PATCH",
"header": [],
"body": {
"mode": "raw",
"raw": ""
},
"url": {
"raw": "http://localhost:8000/api/v1/change-request/form/FRM-20190913-0000001/re_submit/",
"protocol": "http",
"host": [
"localhost"
],
"port": "8000",
"path": [
"api",
"v1",
"change-request",
"form",
"FRM-20190913-0000001",
"re_submit",
""
]
}
},
"response": []
},
{
"name": "CR Action",
"request": {
"method": "PATCH",
"header": [
{
"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": "http://localhost:8000/api/v1/change-request/form/actions/",
"protocol": "http",
"host": [
"localhost"
],
"port": "8000",
"path": [
"api",
"v1",
"change-request",
"form",
"actions",
""
]
}
},
"response": []
},
{
"name": "Submit",
"request": {
"method": "PATCH",
"header": [
{
"key": "Content-Type",
"name": "Content-Type",
"value": "application/json",
"type": "text"
}
],
"body": {
"mode": "raw",
"raw": "{\r\n \"id\": 1,\r\n \"created\": \"2019-09-10T17:21:10.794834\",\r\n \"remarks\": \"Approver\",\r\n \"action\": \"Approved\",\r\n \"date_sent\": \"2019-09-03T13:59:29.694560\",\r\n \"user\": \"USER-20190909-0000005\",\r\n \"form_code\": \"FRM-20190910-0000001\",\r\n \"tmp_approver\": \"TMPAPR-20190910-0000001\"\r\n}"
},
"url": {
"raw": "http://localhost:8000/api/v1/change-request/form/FRM-20190912-0000002/actions/",
"protocol": "http",
"host": [
"localhost"
],
"port": "8000",
"path": [
"api",
"v1",
"change-request",
"form",
"FRM-20190912-0000002",
"actions",
""
]
}
},
"response": []
},
{
"name": "Save",
"request": {
"method": "PATCH",
"header": [
{
"key": "Content-Type",
"name": "Content-Type",
"value": "application/json",
"type": "text"
}
],
"body": {
"mode": "raw",
"raw": "{\r\n \"id\": 1,\r\n \"created\": \"2019-09-10T17:21:10.794834\",\r\n \"remarks\": \"Approver\",\r\n \"action\": \"Approved\",\r\n \"date_sent\": \"2019-09-03T13:59:29.694560\",\r\n \"user\": \"USER-20190909-0000005\",\r\n \"form_code\": \"FRM-20190910-0000001\",\r\n \"tmp_approver\": \"TMPAPR-20190910-0000001\"\r\n}"
},
"url": {
"raw": "http://localhost:8000/api/v1/change-request/form/FRM-20190912-0000002/actions/",
"protocol": "http",
"host": [
"localhost"
],
"port": "8000",
"path": [
"api",
"v1",
"change-request",
"form",
"FRM-20190912-0000002",
"actions",
""
]
}
},
"response": []
},
{
"name": "Download",
"request": {
"method": "GET",
"header": [],
"body": {
"mode": "raw",
"raw": ""
},
"url": {
"raw": "{{baseurl}}/change-request/template/",
"host": [
"{{baseurl}}"
],
"path": [
"change-request",
"template",
""
]
}
},
"response": []
}
],
"_postman_isSubFolder": true
},
{
"name": "CR Form Approver",
"item": [
{
"name": "List of Approvers",
"request": {
"method": "GET",
"header": [],
"body": {
"mode": "raw",
"raw": ""
},
"url": {
"raw": "http://localhost:8000/api/v1/change-request/form-approvers/",
"protocol": "http",
"host": [
"localhost"
],
"port": "8000",
"path": [
"api",
"v1",
"change-request",
"form-approvers",
""
]
}
},
"response": []
},
{
"name": "View Approver",
"request": {
"method": "GET",
"header": [],
"body": {
"mode": "raw",
"raw": ""
},
"url": {
"raw": "http://localhost:8000/api/v1/change-request/form-approvers/TMPAPR-20190909-0000001/",
"protocol": "http",
"host": [
"localhost"
],
"port": "8000",
"path": [
"api",
"v1",
"change-request",
"form-approvers",
"TMPAPR-20190909-0000001",
""
]
}
},
"response": []
}
],
"_postman_isSubFolder": true
},
{
"name": "CR Form Stakeholder",
"item": [
{
"name": "List of Stakeholders",
"request": {
"method": "GET",
"header": [],
"body": {
"mode": "raw",
"raw": ""
},
"url": {
"raw": "http://localhost:8000/api/v1/change-request/form-stakeholders/",
"protocol": "http",
"host": [
"localhost"
],
"port": "8000",
"path": [
"api",
"v1",
"change-request",
"form-stakeholders",
""
]
}
},
"response": []
},
{
"name": "View Stakeholder",
"request": {
"method": "GET",
"header": [],
"body": {
"mode": "raw",
"raw": ""
},
"url": {
"raw": "http://localhost:8000/api/v1/change-request/form-stakeholders/TMPSTK-20190909-0000001/",
"protocol": "http",
"host": [
"localhost"
],
"port": "8000",
"path": [
"api",
"v1",
"change-request",
"form-stakeholders",
"TMPSTK-20190909-0000001",
""
]
}
},
"response": []
}
],
"_postman_isSubFolder": true
},
{
"name": "CR Form Attachment",
"item": [
{
"name": "List of Attachments",
"request": {
"method": "GET",
"header": [],
"body": {
"mode": "raw",
"raw": ""
},
"url": {
"raw": "http://localhost:8000/api/v1/change-request/form-attachments/",
"protocol": "http",
"host": [
"localhost"
],
"port": "8000",
"path": [
"api",
"v1",
"change-request",
"form-attachments",
""
]
}
},
"response": []
},
{
"name": "View Attachment",
"protocolProfileBehavior": {
"disableBodyPruning": true
},
"request": {
"method": "GET",
"header": [
{
"key": "Content-Type",
"name": "Content-Type",
"value": "application/json",
"type": "text"
}
],
"body": {
"mode": "raw",
"raw": "{\r\n \"attachment_type\": \"Mandatory Attached\",\r\n \"attachment_name\": \"Mandatory Stakeholder\",\r\n \"file_name\": \"USER-20190909-0000005\",\r\n \"description\": \"Sample Desc 1\",\r\n \"file_upload\": null,\r\n \"code\": \"FRMATCH-20190909-0000001\",\r\n \"uploaded_by\": \"USER-20190909-0000005\",\r\n \"form_code\": \"FRM-20190909-0000005\",\r\n \"tmp_attach\": \"TMPATCH-20190909-0000001\"\r\n}"
},
"url": {
"raw": "http://localhost:8000/api/v1/change-request/form-attachments/FRMATCH-20190909-0000001/",
"protocol": "http",
"host": [
"localhost"
],
"port": "8000",
"path": [
"api",
"v1",
"change-request",
"form-attachments",
"FRMATCH-20190909-0000001",
""
]
}
},
"response": []
}
],
"_postman_isSubFolder": true
},
{
"name": "CR Form Detail",
"item": [
{
"name": "List of Details",
"request": {
"method": "GET",
"header": [],
"body": {
"mode": "raw",
"raw": ""
},
"url": {
"raw": "http://localhost:8000/api/v1/change-request/form-details/",
"protocol": "http",
"host": [
"localhost"
],
"port": "8000",
"path": [
"api",
"v1",
"change-request",
"form-details",
""
]
}
},
"response": []
},
{
"name": "View Detail",
"request": {
"method": "GET",
"header": [],
"body": {
"mode": "raw",
"raw": ""
},
"url": {
"raw": "http://localhost:8000/api/v1/change-request/form-details/FRMDETAIL-20190909-0000001/",
"protocol": "http",
"host": [
"localhost"
],
"port": "8000",
"path": [
"api",
"v1",
"change-request",
"form-details",
"FRMDETAIL-20190909-0000001",
""
]
}
},
"response": []
}
],
"_postman_isSubFolder": true
}
],
"_postman_isSubFolder": true
},
{
"name": "Allowed Company",
"item": [
{
"name": "List of Allowed Company",
"request": {
"method": "GET",
"header": [],
"body": {
"mode": "raw",
"raw": ""
},
"url": {
"raw": "{{baseurl}}/change-request/allowed-companies/",
"host": [
"{{baseurl}}"
],
"path": [
"change-request",
"allowed-companies",
""
]
}
},
"response": []
},
{
"name": "Create Allowed Company",
"request": {
"method": "POST",
"header": [
{
"key": "Content-Type",
"name": "Content-Type",
"value": "application/json",
"type": "text"
}
],
"body": {
"mode": "raw",
"raw": "{\n\t\"form\": [\n {\n \"create_change_request\": true,\n \"create_change_request_template\": true,\n \"view_all_change_request\": true,\n \"id_number\": \"USER-20190917-0000001\",\n \"company_pivot\": \"COMPANY-20190917-0000001\",\n \"group_pivots\": \"DEPARTMENT-20190917-0000001\"\n },\n {\n \"create_change_request\": true,\n \"create_change_request_template\": true,\n \"view_all_change_request\": true,\n \"id_number\": \"USER-20190917-0000001\",\n \"company_pivot\": \"COMPANY-20190917-0000002\",\n \"group_pivots\": \"DEPARTMENT-20190917-0000002\"\n }\n ]\n}"
},
"url": {
"raw": "{{baseurl}}/change-request/allowed-companies/",
"host": [
"{{baseurl}}"
],
"path": [
"change-request",
"allowed-companies",
""
]
}
},
"response": []
}
],
"_postman_isSubFolder": true
},
{
"name": "Filter by Allowed Company",
"item": [
{
"name": "List of Company",
"request": {
"method": "GET",
"header": [],
"body": {
"mode": "raw",
"raw": ""
},
"url": {
"raw": "{{baseurl}}/change-request/companies/",
"host": [
"{{baseurl}}"
],
"path": [
"change-request",
"companies",
""
]
}
},
"response": []
},
{
"name": "List of Department",
"request": {
"method": "GET",
"header": [],
"body": {
"mode": "raw",
"raw": ""
},
"url": {
"raw": "{{baseurl}}/change-request/departments/?company_code=COMPANY-20190917-0000001",
"host": [
"{{baseurl}}"
],
"path": [
"change-request",
"departments",
""
],
"query": [
{
"key": "company_code",
"value": "COMPANY-20190917-0000001"
}
]
}
},
"response": []
},
{
"name": "List of User ",
"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",
"host": [
"{{baseurl}}"
],
"path": [
"change-request",
"user-list",
""
],
"query": [
{
"key": "department_code",
"value": "DEPARTMENT-20190923-0000001"
},
{
"key": "company_code",
"value": "COMPANY-20190923-0000001"
}
]
}
},
"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": []
}
],
"_postman_isSubFolder": true
}
]
},
{
"name": "Notifications",
"item": [
{
"name": "List Notifications by account_no",
"protocolProfileBehavior": {
"disableBodyPruning": true
},
"request": {
"auth": {
"type": "bearer",
"bearer": [
{
"key": "token",
"value": "951574546a6d45af34dfef101840bba27f1ab574",
"type": "string"
}
]
},
"method": "GET",
"header": [],
"body": {
"mode": "raw",
"raw": ""
},
"url": {
"raw": "http://localhost:8000/api/v1/management/notifications/",
"protocol": "http",
"host": [
"localhost"
],
"port": "8000",
"path": [
"api",
"v1",
"management",
"notifications",
""
]
}
},
"response": []
},
{
"name": "Create Notification",
"request": {
"auth": {
"type": "bearer",
"bearer": [
{
"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": []
},
{
"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": [
{
"key": "Content-Type",
"name": "Content-Type",
"type": "text",
"value": "application/json"
}
],
"body": {
"mode": "raw",
"raw": "{\n\t\"ids\": [8]\n}"
},
"url": {
"raw": "http://devapi.rmsv2.oneberrysystem.com/api/v1/notifications/USER-20190903-0000002/seen/",
"protocol": "http",
"host": [
"devapi",
"rmsv2",
"oneberrysystem",
"com"
],
"path": [
"api",
"v1",
"notifications",
"USER-20190903-0000002",
"seen",
""
]
}
},
"response": []
},
{
"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": [
{
"key": "Content-Type",
"name": "Content-Type",
"type": "text",
"value": "application/json"
}
],
"body": {
"mode": "raw",
"raw": ""
},
"url": {
"raw": "http://devapi.rmsv2.oneberrysystem.com/api/v1/notifications/USER-20190903-0000002/seenall/",
"protocol": "http",
"host": [
"devapi",
"rmsv2",
"oneberrysystem",
"com"
],
"path": [
"api",
"v1",
"notifications",
"USER-20190903-0000002",
"seenall",
""
]
}
},
"response": []
}
]
}
],
"auth": {
"type": "bearer",
"bearer": [
{
"key": "token",
"value": "9139808ae1e35399e754f615084197f6bcfbacaa",
"type": "string"
}
]
},
"event": [
{
"listen": "prerequest",
"script": {
"id": "ab5de420-cb55-4194-97ae-c22e953c38ce",
"type": "text/javascript",
"exec": [
""
]
}
},
{
"listen": "test",
"script": {
"id": "6de844e2-8111-4f18-ac32-517a9571afb2",
"type": "text/javascript",
"exec": [
""
]
}
}
]
}
\ No newline at end of file
{
"info": {
"_postman_id": "16c53f6d-d612-483b-ab87-a817e8d71c9c",
"name": "RMSv2 copy",
"_postman_id": "ad182d0e-3e1f-4d6f-bd7a-f4b728582a1a",
"name": "RMSv2",
"schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json"
},
"item": [
......@@ -1049,11 +1049,15 @@
"raw": "{\n\t\"email\": \"red@tirsolutions.com\"\n}"
},
"url": {
"raw": "{{baseurl}}/auth/forgot-password/",
"raw": "http://localhost:8000/api/v1/auth/forgot-password/",
"protocol": "http",
"host": [
"{{baseurl}}"
"localhost"
],
"port": "8000",
"path": [
"api",
"v1",
"auth",
"forgot-password",
""
......@@ -1079,11 +1083,15 @@
"raw": "{\n\t\"token\": \"31290f51d6ea2d476b02942d1d53b7200ed13a89\"\n}"
},
"url": {
"raw": "{{baseurl}}/auth/reset-password-link/",
"raw": "http://localhost:8000/api/v1/auth/reset-password-link/",
"protocol": "http",
"host": [
"{{baseurl}}"
"localhost"
],
"port": "8000",
"path": [
"api",
"v1",
"auth",
"reset-password-link",
""
......@@ -1109,11 +1117,15 @@
"raw": "{\n \"username\": \"213\",\n \"password\": \"password123\",\n \"password_confirm\": \"password123\",\n \"passcode\": \"9676\",\n \"token\": \"c90b0833d83b97cdbfd181f8685e06c2ab646e35\"\n}"
},
"url": {
"raw": "{{baseurl}}/auth/forgot-password-reset/",
"raw": "http://localhost:8000/api/v1/auth/forgot-password-reset/",
"protocol": "http",
"host": [
"{{baseurl}}"
"localhost"
],
"port": "8000",
"path": [
"api",
"v1",
"auth",
"forgot-password-reset",
""
......@@ -1371,7 +1383,7 @@
],
"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 \"status\": \"Pending\",\r\n \"requested_to_template_id\": \"JTC\",\r\n \"department_desc\": \"Oneberry Superuser\",\r\n \"requested_desc\": \"Super User\",\r\n \"requested_to_company\": \"COMPANY-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-0000002\",\r\n \"frm_approvers\": [\r\n {\r\n \"level\": \"1\",\r\n \"delegation\": \"HOD\",\r\n \"user\": \"USER-20190923-0000001\"\r\n },\r\n\t\t{\r\n\t\t \"level\": \"2\",\r\n \"delegation\": \"Approver\",\r\n \"user\": \"USER-20190923-0000001\"\r\n\t\t},\r\n\t\t{\r\n\t\t \"level\": \"3\",\r\n \"delegation\": \"SD/OD\",\r\n \"user\": \"USER-20190923-0000001\"\r\n\t\t}\r\n ],\r\n \"frm_stakes\": [\r\n\t\t{\r\n \"delegation\": \"Mandatory Stakeholder\",\r\n \"user\": \"USER-20190923-0000001\"\r\n }\r\n ],\r\n \r\n \"frm_attachments\": [\r\n {\r\n \"attachment_type\": \"Hello\",\r\n \"attachment_name\": \"heyu\",\r\n \"file_name\": \"Sample\",\r\n \"description\": \"Sameple Desc\",\r\n \"file_upload\": null,\r\n \"uploaded_by\": \"USER-20190923-0000001\"\r\n }\r\n ],\r\n \"frm_details\": [\r\n {\r\n \"field_idx\": \"Hello\",\r\n \"field_ref\": \"heyu\",\r\n \"field_val\": \"Sample\",\r\n \"field_props\": \"Sameple Desc\"\r\n }\r\n ]\r\n}"
"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}"
},
"url": {
"raw": "{{baseurl}}/change-request/form-post/",
......@@ -1412,14 +1424,14 @@
"method": "GET",
"header": [],
"url": {
"raw": "{{baseurl}}/change-request/form/FRM-20190927-0000001/",
"raw": "{{baseurl}}/change-request/form/FRM-20190927-0000002/",
"host": [
"{{baseurl}}"
],
"path": [
"change-request",
"form",
"FRM-20190927-0000001",
"FRM-20190927-0000002",
""
]
}
......@@ -1432,14 +1444,14 @@
"method": "PATCH",
"header": [],
"url": {
"raw": "{{baseurl}}/change-request/form/FRM-20190926-0000003/re_route/",
"raw": "{{baseurl}}/change-request/form/FRM-20190927-0000004/re_route/",
"host": [
"{{baseurl}}"
],
"path": [
"change-request",
"form",
"FRM-20190926-0000003",
"FRM-20190927-0000004",
"re_route",
""
]
......@@ -1453,14 +1465,14 @@
"method": "PATCH",
"header": [],
"url": {
"raw": "{{baseurl}}/change-request/form/FRM-20190926-0000003/re_submit/",
"raw": "{{baseurl}}/change-request/form/FRM-20190927-0000004/re_submit/",
"host": [
"{{baseurl}}"
],
"path": [
"change-request",
"form",
"FRM-20190926-0000003",
"FRM-20190927-0000004",
"re_submit",
""
]
......@@ -1482,7 +1494,7 @@
],
"body": {
"mode": "raw",
"raw": "{\r\n \"id\": 16,\r\n \"form_code\": \"FRM-20190927-0000004\",\r\n \"delegation\": \"HOD\",\r\n \"action\": \"approved\",\r\n \"level\": \"1\",\r\n \"remarks\": \"\",\r\n \"form_status\": \"Pending\"\r\n}",
"raw": "{\r\n \"id\": 18,\r\n \"form_code\": \"FRM-20190927-0000004\",\r\n \"delegation\": \"SD/OD\",\r\n \"action\": \"approved\",\r\n \"level\": \"3\",\r\n \"remarks\": \"\",\r\n \"form_status\": \"Pending\"\r\n}",
"options": {
"raw": {
"language": "json"
......@@ -1555,7 +1567,7 @@
],
"body": {
"mode": "raw",
"raw": "{\r\n \"requested_to_template_name\": \"Security Projects\",\r\n \"requested_to_objective\": \"Sample Objective\",\r\n \"requested_to_target_date\": \"2019-09-03T13:59:29.694560\",\r\n \"requested_to_priority\": \"Normal\",\r\n \"description\": \"Lorem Ipsum\",\r\n \"cancel_date\": null,\r\n \"company_desc\": \"Oneberry\",\r\n \"department_desc\": \"Oneberry Superuser\",\r\n \"requested_desc\": \"Super User\",\r\n \"requested_to_template_id\": \"JTC-20190924-0000001\",\r\n \"requested_to_company\": \"COMPANY-20190909-0000002\",\r\n \"requested_to_department\": \"DEPARTMENT-20190909-0000002\",\r\n \"requested_to_user\": \"USER-20190913-0000007\",\r\n \"requested_by_user\": \"USER-20190913-0000006\",\r\n \"requested_by_department\": \"admin\",\r\n \"template_no\": \"TMP-20190924-0000001\",\r\n \"frm_approvers\": [\r\n {\r\n \"id\": 1,\r\n \"level\": \"1\",\r\n \"delegation\": \"HOD\",\r\n \"created\": \"2019-09-24T19:08:26.539805\",\r\n \"code\": \"FRMAPR-20190924-0000001\",\r\n \"remarks\": null,\r\n \"action\": null,\r\n \"action_date\": null,\r\n \"date_sent\": null,\r\n \"user\": \"USER-20190913-0000009\",\r\n \"form_code\": \"FRM-20190924-0000001\",\r\n \"tmp_approver\": \"TMPAPR-20190924-0000001\",\r\n \"name\": \"Kath\",\r\n \"department\": \"Superuser\",\r\n \"company\": \"Total Integrated Resources\"\r\n },\r\n {\r\n \"id\": 2,\r\n \"level\": \"2\",\r\n \"delegation\": \"Approver\",\r\n \"created\": \"2019-09-24T19:08:26.582803\",\r\n \"code\": \"FRMAPR-20190924-0000002\",\r\n \"remarks\": null,\r\n \"action\": null,\r\n \"action_date\": null,\r\n \"date_sent\": null,\r\n \"user\": \"USER-20190913-0000009\",\r\n \"form_code\": \"FRM-20190924-0000001\",\r\n \"tmp_approver\": \"TMPAPR-20190924-0000002\",\r\n \"name\": \"Kath\",\r\n \"department\": \"Superuser\",\r\n \"company\": \"Total Integrated Resources\"\r\n },\r\n {\r\n \"level\": \"3\",\r\n \"delegation\": \"Approver\",\r\n \"remarks\": null,\r\n \"action\": null,\r\n \"action_date\": null,\r\n \"date_sent\": null,\r\n \"user\": \"USER-20190913-0000008\",\r\n \"form_code\": \"FRM-20190924-0000001\"\r\n }\r\n ],\r\n \"frm_stakes\": [\r\n {\r\n \"id\": 2,\r\n \"delegation\": \"Stake Approver\",\r\n \"created\": \"2019-09-24T19:08:26.607806\",\r\n \"code\": \"FRMSTK-20190924-0000002\",\r\n \"date_added\": null,\r\n \"user\": \"USER-20190913-0000008\",\r\n \"form_code\": \"FRM-20190924-0000001\",\r\n \"tmp_stake\": \"TMPSTK-20190924-0000002\"\r\n }\r\n ],\r\n \"frm_attachments\": [\r\n {\r\n \"id\": 2,\r\n \"attachment_type\": \"Hello\",\r\n \"attachment_name\": \"heyu\",\r\n \"file_name\": \"Sample\",\r\n \"description\": \"Sameple Desc\",\r\n \"file_upload\": null,\r\n \"created\": \"2019-09-24T19:08:26.657804\",\r\n \"code\": \"FRMATCH-20190924-0000002\",\r\n \"uploaded_by\": \"USER-20190913-0000006\",\r\n \"form_code\": \"FRM-20190924-0000001\",\r\n \"tmp_attach\": \"TMPATCH-20190924-0000002\"\r\n }\r\n ],\r\n \"frm_details\": [\r\n {\r\n \"id\": 2,\r\n \"field_idx\": \"Hello\",\r\n \"field_ref\": \"heyu\",\r\n \"field_val\": \"Sample\",\r\n \"field_props\": \"Sameple Desc\",\r\n \"created\": \"2019-09-24T19:08:26.672805\",\r\n \"code\": \"FRMDETAIL-20190924-0000002\",\r\n \"form_code\": \"FRM-20190924-0000001\",\r\n \"tmp_detail\": \"TMPDETAIL-20190924-0000002\"\r\n }\r\n ],\r\n \"action\": \"No\"\r\n}",
"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"
......@@ -1563,20 +1575,75 @@
}
},
"url": {
"raw": "{{baseurl}}/change-request/form/FRM-20190924-0000001/save/",
"raw": "{{baseurl}}/change-request/form/FRM-20190927-0000001/save/",
"host": [
"{{baseurl}}"
],
"path": [
"change-request",
"form",
"FRM-20190924-0000001",
"FRM-20190927-0000001",
"save",
""
]
}
},
"response": []
},
{
"name": "Delete Form",
"request": {
"method": "DELETE",
"header": [
{
"key": "Content-Type",
"name": "Content-Type",
"type": "text",
"value": "application/json"
}
],
"body": {
"mode": "raw",
"raw": "",
"options": {
"raw": {
"language": "json"
}
}
},
"url": {
"raw": "{{baseurl}}/change-request/form/FRM-20190928-0000021/",
"host": [
"{{baseurl}}"
],
"path": [
"change-request",
"form",
"FRM-20190928-0000021",
""
]
}
},
"response": []
},
{
"name": "Download",
"request": {
"method": "GET",
"header": [],
"url": {
"raw": "{{baseurl}}/change-request/form-download/",
"host": [
"{{baseurl}}"
],
"path": [
"change-request",
"form-download",
""
]
}
},
"response": []
}
],
"protocolProfileBehavior": {},
......@@ -1610,14 +1677,14 @@
"method": "GET",
"header": [],
"url": {
"raw": "{{baseurl}}/change-request/form-approvers/TMPAPR-20190909-0000001/",
"raw": "{{baseurl}}/change-request/form-approvers/FRMAPR-20190927-0000001/",
"host": [
"{{baseurl}}"
],
"path": [
"change-request",
"form-approvers",
"TMPAPR-20190909-0000001",
"FRMAPR-20190927-0000001",
""
]
}
......@@ -1804,7 +1871,7 @@
],
"body": {
"mode": "raw",
"raw": "{\r\n\t\"requested_to_template_name\": \"Security Projects\",\r\n\t\"requested_to_template_id\": \"BPI\",\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\"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": "{\r\n\t\"requested_to_template_name\": \"Security Projects\",\r\n\t\"requested_to_template_id\": \"unionsq\",\r\n\t\"requested_to_objective\": \"Sample Objective\",\r\n\t\"requested_to_target_date\": \"10\",\r\n\t\"requested_to_priority\": \"Normal\",\r\n\t\"description\": \"Lorem Ipsum\",\r\n\t\"created_by_department\": \"DEPARTMENT-20190923-0000002\",\r\n\t\"created_by_user\": \"USER-20190923-0000001\",\r\n\t\"requested_to_company\": \"COMPANY-20190923-0000001\",\r\n\t\"requested_to_department\": \"DEPARTMENT-20190923-0000002\",\r\n\t\"requested_to_user\": \"USER-20190923-0000001\",\r\n\t\r\n\t\"tmp_approvers\": [{\r\n\t\t\t\"level\": \"1\",\r\n\t\t\t\"delegation\": \"Head of Department\"\r\n\t\t}\r\n\t],\r\n\t\r\n\t\"tmp_stakes\": [{\r\n\t\t\"delegation\": \"Mandatory Stakeholder\",\r\n\t\t\"user\": \"USER-20190923-0000001\"\r\n\t}\r\n\t],\r\n\t\r\n\t\"tmp_attachments\": [{\r\n\t\t\"attachment_type\": \"hello\",\r\n\t\t\"attachment_name\": \"hello name\",\r\n\t\t\"file_name\": \"hello\",\r\n\t\t\"description\": \"hello desc\",\r\n\t\t\"file_upload\": 1,\r\n\t\t\"uploaded_by\": \"USER-20190923-0000001\"\r\n\t}\r\n\t],\r\n\t\r\n\t\"tmp_details\": [{\r\n\t\t\"field_idx\": \"ss\",\r\n\t\t\"field_ref\": \"ss\",\r\n\t\t\"field_val\": \"ss\",\r\n\t\t\"field_props\": \"ss\"\r\n\t}\r\n\t]\r\n}"
},
"url": {
"raw": "{{baseurl}}/change-request/template-post/",
......@@ -1845,14 +1912,14 @@
"method": "GET",
"header": [],
"url": {
"raw": "{{baseurl}}/change-request/template/TMP-20190927-0000002/",
"raw": "{{baseurl}}/change-request/template/TMP-20190927-0000001/",
"host": [
"{{baseurl}}"
],
"path": [
"change-request",
"template",
"TMP-20190927-0000002",
"TMP-20190927-0000001",
""
]
}
......@@ -1873,17 +1940,17 @@
],
"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\": \"BPI\",\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 \"requested_to_template_name\": \"Security Projects\",\r\n \"requested_to_objective\": \"Sample Objective\",\r\n \"requested_to_target_date\": \"10\",\r\n \"requested_to_priority\": \"Normal\",\r\n \"description\": \"Lorem Ipsum\",\r\n \"requested_to_template_id\": \"BPSI\",\r\n \"requested_to_company\": \"COMPANY-20190923-0000001\",\r\n \"requested_to_department\": \"DEPARTMENT-20190923-0000002\",\r\n \"requested_to_user\": \"USER-20190923-0000001\",\r\n \"created_by_user\": \"USER-20190923-0000001\",\r\n \"created_by_department\": \"DEPARTMENT-20190923-0000002\",\r\n \"tmp_approvers\": [\r\n {\r\n \"id\": 2,\r\n \"level\": \"1\",\r\n \"delegation\": \"Head of Department\",\r\n \"user\": null\r\n },\r\n {\r\n \"level\": \"2\",\r\n \"delegation\": \"Approver\",\r\n \"user\": \"USER-20190923-0000001\"\r\n }\r\n ],\r\n \"tmp_stakes\": [\r\n {\r\n \"id\": 1,\r\n \"delegation\": \"Mandatory Stakeholder\",\r\n \"created\": \"2019-09-27T15:05:56.221176\",\r\n \"code\": \"TMPSTK-20190927-0000001\",\r\n \"user\": \"USER-20190923-0000001\",\r\n \"company\": \"COMPANY-20190923-0000001\",\r\n \"department\": \"DEPARTMENT-20190923-0000001\"\r\n }\r\n ],\r\n \"tmp_attachments\": [\r\n {\r\n \"id\": 1,\r\n \"attachment_type\": \"hello\",\r\n \"attachment_name\": \"hello name\",\r\n \"file_name\": \"hello\",\r\n \"description\": \"hello desc\",\r\n \"created\": \"2019-09-27T15:05:56.254174\",\r\n \"code\": \"TMPATCH-20190927-0000001\",\r\n \"uploaded_by\": \"USER-20190923-0000001\",\r\n \"file_upload\": null\r\n }\r\n ],\r\n \"tmp_details\": [\r\n {\r\n \"id\": 1,\r\n \"field_idx\": \"ss\",\r\n \"field_ref\": \"ss\",\r\n \"field_val\": \"ss\",\r\n \"field_props\": \"ss\",\r\n \"created\": \"2019-09-27T15:05:56.287185\",\r\n \"code\": \"TMPDETAIL-20190927-0000001\",\r\n \"template_no\": \"TMP-20190927-0000002\"\r\n }\r\n ]\r\n}"
},
"url": {
"raw": "{{baseurl}}/change-request/template/TMP-20190927-0000002/",
"raw": "{{baseurl}}/change-request/template/TMP-20190928-0000003/",
"host": [
"{{baseurl}}"
],
"path": [
"change-request",
"template",
"TMP-20190927-0000002",
"TMP-20190928-0000003",
""
]
}
......@@ -1927,14 +1994,14 @@
"method": "DELETE",
"header": [],
"url": {
"raw": "{{baseurl}}/change-request/template/TMP-20190925-0000002/",
"raw": "{{baseurl}}/change-request/template/TMP-20190928-0000003/",
"host": [
"{{baseurl}}"
],
"path": [
"change-request",
"template",
"TMP-20190925-0000002",
"TMP-20190928-0000003",
""
]
}
......@@ -2315,52 +2382,6 @@
},
"response": []
},
{
"name": "Create Notification",
"request": {
"auth": {
"type": "bearer",
"bearer": [
{
"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": []
},
{
"name": "Update Read Status by ids",
"request": {
......@@ -2474,7 +2495,7 @@
"bearer": [
{
"key": "token",
"value": "2185f796c899cfb435d12273302e8242561930b6",
"value": "9139808ae1e35399e754f615084197f6bcfbacaa",
"type": "string"
}
]
......
This source diff could not be displayed because it is too large. You can view the blob instead.
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