diff --git a/doc/Le Coffre Api.postman_collection.json b/doc/Le Coffre Api.postman_collection.json new file mode 100644 index 00000000..dd6ac403 --- /dev/null +++ b/doc/Le Coffre Api.postman_collection.json @@ -0,0 +1,21780 @@ +{ + "info": { + "_postman_id": "cc754510-3aeb-422d-b5bf-31c71400bbac", + "name": "Le Coffre Api", + "description": "You can find out more about Swagger at [http://swagger.io](http://swagger.io) or on [irc.freenode.net, #swagger](http://swagger.io/irc/).", + "schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json", + "_exporter_id": "19082188" + }, + "item": [ + { + "name": "notary", + "item": [ + { + "name": "customers", + "item": [ + { + "name": "{uid}", + "item": [ + { + "name": "Find customer by ID", + "request": { + "auth": { + "type": "bearer", + "bearer": [ + { + "key": "token", + "value": "{{bearerToken}}", + "type": "string" + } + ] + }, + "method": "GET", + "header": [ + { + "key": "Accept", + "value": "application/json" + } + ], + "url": { + "raw": "{{baseUrl}}/notary/customers/:uid", + "host": [ + "{{baseUrl}}" + ], + "path": [ + "notary", + "customers", + ":uid" + ], + "variable": [ + { + "key": "uid", + "value": "", + "description": "(Required) ID of customer to return" + } + ] + }, + "description": "Returns a single customer" + }, + "response": [ + { + "name": "successful operation", + "originalRequest": { + "method": "GET", + "header": [ + { + "key": "Accept", + "value": "application/json" + }, + { + "description": "Added as a part of security scheme: bearer", + "key": "Authorization", + "value": "Bearer " + } + ], + "url": { + "raw": "{{baseUrl}}/notary/customers/:uid", + "host": [ + "{{baseUrl}}" + ], + "path": [ + "notary", + "customers", + ":uid" + ], + "variable": [ + { + "key": "uid" + } + ] + } + }, + "status": "OK", + "code": 200, + "_postman_previewlanguage": "json", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + } + ], + "cookie": [], + "body": "{\n \"uid\": \"\",\n \"status\": \"\",\n \"contact\": {\n \"civility\": \"\",\n \"first_name\": \"\",\n \"last_name\": \"\",\n \"email\": \"\",\n \"cell_phone_number\": \"\"\n },\n \"office_folders\": [\n {\n \"uid\": \"\",\n \"name\": \"\",\n \"office\": {\n \"uid\": \"\",\n \"name\": \"\"\n }\n },\n {\n \"uid\": \"\",\n \"name\": \"\",\n \"office\": {\n \"uid\": \"\",\n \"name\": \"\"\n }\n }\n ],\n \"documents\": [\n {\n \"uid\": \"\",\n \"name\": \"\",\n \"type\": {\n \"uid\": \"\",\n \"name\": \"\"\n },\n \"file\": {\n \"uid\": \"\",\n \"name\": \"\"\n },\n \"folder\": {\n \"uid\": \"\",\n \"name\": \"\"\n }\n },\n {\n \"uid\": \"\",\n \"name\": \"\",\n \"type\": {\n \"uid\": \"\",\n \"name\": \"\"\n },\n \"file\": {\n \"uid\": \"\",\n \"name\": \"\"\n },\n \"folder\": {\n \"uid\": \"\",\n \"name\": \"\"\n }\n }\n ],\n \"createdAt\": \"\",\n \"updatedAt\": \"\"\n}" + }, + { + "name": "Invalid status value", + "originalRequest": { + "method": "GET", + "header": [ + { + "description": "Added as a part of security scheme: bearer", + "key": "Authorization", + "value": "Bearer " + } + ], + "url": { + "raw": "{{baseUrl}}/notary/customers/:uid", + "host": [ + "{{baseUrl}}" + ], + "path": [ + "notary", + "customers", + ":uid" + ], + "variable": [ + { + "key": "uid" + } + ] + } + }, + "status": "Bad Request", + "code": 400, + "_postman_previewlanguage": "text", + "header": [], + "cookie": [], + "body": "" + } + ] + }, + { + "name": "Update an existing customer", + "request": { + "auth": { + "type": "bearer", + "bearer": [ + { + "key": "token", + "value": "{{bearerToken}}", + "type": "string" + } + ] + }, + "method": "PUT", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + }, + { + "key": "Accept", + "value": "application/json" + } + ], + "body": { + "mode": "raw", + "raw": "{\n \"uid\": \"\",\n \"status\": \"\",\n \"contact\": {\n \"civility\": \"\",\n \"first_name\": \"\",\n \"last_name\": \"\",\n \"email\": \"\",\n \"cell_phone_number\": \"\"\n },\n \"office_folders\": [\n {\n \"uid\": \"\",\n \"name\": \"\",\n \"office\": {\n \"uid\": \"\",\n \"name\": \"\"\n }\n },\n {\n \"uid\": \"\",\n \"name\": \"\",\n \"office\": {\n \"uid\": \"\",\n \"name\": \"\"\n }\n }\n ],\n \"documents\": [\n {\n \"uid\": \"\",\n \"name\": \"\",\n \"type\": {\n \"uid\": \"\",\n \"name\": \"\"\n },\n \"file\": {\n \"uid\": \"\",\n \"name\": \"\"\n },\n \"folder\": {\n \"uid\": \"\",\n \"name\": \"\"\n }\n },\n {\n \"uid\": \"\",\n \"name\": \"\",\n \"type\": {\n \"uid\": \"\",\n \"name\": \"\"\n },\n \"file\": {\n \"uid\": \"\",\n \"name\": \"\"\n },\n \"folder\": {\n \"uid\": \"\",\n \"name\": \"\"\n }\n }\n ],\n \"createdAt\": \"\",\n \"updatedAt\": \"\"\n}", + "options": { + "raw": { + "headerFamily": "json", + "language": "json" + } + } + }, + "url": { + "raw": "{{baseUrl}}/notary/customers/:uid", + "host": [ + "{{baseUrl}}" + ], + "path": [ + "notary", + "customers", + ":uid" + ], + "variable": [ + { + "key": "uid", + "value": "", + "description": "(Required) ID of customer to return" + } + ] + }, + "description": "Returns a single customer updated" + }, + "response": [ + { + "name": "successful operation", + "originalRequest": { + "method": "PUT", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + }, + { + "key": "Accept", + "value": "application/json" + }, + { + "description": "Added as a part of security scheme: bearer", + "key": "Authorization", + "value": "Bearer " + } + ], + "body": { + "mode": "raw", + "raw": "{\n \"uid\": \"\",\n \"status\": \"\",\n \"contact\": {\n \"civility\": \"\",\n \"first_name\": \"\",\n \"last_name\": \"\",\n \"email\": \"\",\n \"cell_phone_number\": \"\"\n },\n \"office_folders\": [\n {\n \"uid\": \"\",\n \"name\": \"\",\n \"office\": {\n \"uid\": \"\",\n \"name\": \"\"\n }\n },\n {\n \"uid\": \"\",\n \"name\": \"\",\n \"office\": {\n \"uid\": \"\",\n \"name\": \"\"\n }\n }\n ],\n \"documents\": [\n {\n \"uid\": \"\",\n \"name\": \"\",\n \"type\": {\n \"uid\": \"\",\n \"name\": \"\"\n },\n \"file\": {\n \"uid\": \"\",\n \"name\": \"\"\n },\n \"folder\": {\n \"uid\": \"\",\n \"name\": \"\"\n }\n },\n {\n \"uid\": \"\",\n \"name\": \"\",\n \"type\": {\n \"uid\": \"\",\n \"name\": \"\"\n },\n \"file\": {\n \"uid\": \"\",\n \"name\": \"\"\n },\n \"folder\": {\n \"uid\": \"\",\n \"name\": \"\"\n }\n }\n ],\n \"createdAt\": \"\",\n \"updatedAt\": \"\"\n}", + "options": { + "raw": { + "headerFamily": "json", + "language": "json" + } + } + }, + "url": { + "raw": "{{baseUrl}}/notary/customers/:uid", + "host": [ + "{{baseUrl}}" + ], + "path": [ + "notary", + "customers", + ":uid" + ], + "variable": [ + { + "key": "uid" + } + ] + } + }, + "status": "OK", + "code": 200, + "_postman_previewlanguage": "json", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + } + ], + "cookie": [], + "body": "{\n \"uid\": \"\",\n \"status\": \"\",\n \"contact\": {\n \"civility\": \"\",\n \"first_name\": \"\",\n \"last_name\": \"\",\n \"email\": \"\",\n \"cell_phone_number\": \"\"\n },\n \"office_folders\": [\n {\n \"uid\": \"\",\n \"name\": \"\",\n \"office\": {\n \"uid\": \"\",\n \"name\": \"\"\n }\n },\n {\n \"uid\": \"\",\n \"name\": \"\",\n \"office\": {\n \"uid\": \"\",\n \"name\": \"\"\n }\n }\n ],\n \"documents\": [\n {\n \"uid\": \"\",\n \"name\": \"\",\n \"type\": {\n \"uid\": \"\",\n \"name\": \"\"\n },\n \"file\": {\n \"uid\": \"\",\n \"name\": \"\"\n },\n \"folder\": {\n \"uid\": \"\",\n \"name\": \"\"\n }\n },\n {\n \"uid\": \"\",\n \"name\": \"\",\n \"type\": {\n \"uid\": \"\",\n \"name\": \"\"\n },\n \"file\": {\n \"uid\": \"\",\n \"name\": \"\"\n },\n \"folder\": {\n \"uid\": \"\",\n \"name\": \"\"\n }\n }\n ],\n \"createdAt\": \"\",\n \"updatedAt\": \"\"\n}" + }, + { + "name": "Invalid status value", + "originalRequest": { + "method": "PUT", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + }, + { + "description": "Added as a part of security scheme: bearer", + "key": "Authorization", + "value": "Bearer " + } + ], + "body": { + "mode": "raw", + "raw": "{\n \"uid\": \"\",\n \"status\": \"\",\n \"contact\": {\n \"civility\": \"\",\n \"first_name\": \"\",\n \"last_name\": \"\",\n \"email\": \"\",\n \"cell_phone_number\": \"\"\n },\n \"office_folders\": [\n {\n \"uid\": \"\",\n \"name\": \"\",\n \"office\": {\n \"uid\": \"\",\n \"name\": \"\"\n }\n },\n {\n \"uid\": \"\",\n \"name\": \"\",\n \"office\": {\n \"uid\": \"\",\n \"name\": \"\"\n }\n }\n ],\n \"documents\": [\n {\n \"uid\": \"\",\n \"name\": \"\",\n \"type\": {\n \"uid\": \"\",\n \"name\": \"\"\n },\n \"file\": {\n \"uid\": \"\",\n \"name\": \"\"\n },\n \"folder\": {\n \"uid\": \"\",\n \"name\": \"\"\n }\n },\n {\n \"uid\": \"\",\n \"name\": \"\",\n \"type\": {\n \"uid\": \"\",\n \"name\": \"\"\n },\n \"file\": {\n \"uid\": \"\",\n \"name\": \"\"\n },\n \"folder\": {\n \"uid\": \"\",\n \"name\": \"\"\n }\n }\n ],\n \"createdAt\": \"\",\n \"updatedAt\": \"\"\n}", + "options": { + "raw": { + "headerFamily": "json", + "language": "json" + } + } + }, + "url": { + "raw": "{{baseUrl}}/notary/customers/:uid", + "host": [ + "{{baseUrl}}" + ], + "path": [ + "notary", + "customers", + ":uid" + ], + "variable": [ + { + "key": "uid" + } + ] + } + }, + "status": "Bad Request", + "code": 400, + "_postman_previewlanguage": "text", + "header": [], + "cookie": [], + "body": "" + } + ] + }, + { + "name": "Delete an existing customer", + "request": { + "auth": { + "type": "bearer", + "bearer": [ + { + "key": "token", + "value": "{{bearerToken}}", + "type": "string" + } + ] + }, + "method": "DELETE", + "header": [ + { + "key": "Accept", + "value": "application/json" + } + ], + "url": { + "raw": "{{baseUrl}}/notary/customers/:uid", + "host": [ + "{{baseUrl}}" + ], + "path": [ + "notary", + "customers", + ":uid" + ], + "variable": [ + { + "key": "uid", + "value": "", + "description": "(Required) ID of customer to return" + } + ] + }, + "description": "Returns a single customer deleted" + }, + "response": [ + { + "name": "successful operation", + "originalRequest": { + "method": "DELETE", + "header": [ + { + "key": "Accept", + "value": "application/json" + }, + { + "description": "Added as a part of security scheme: bearer", + "key": "Authorization", + "value": "Bearer " + } + ], + "url": { + "raw": "{{baseUrl}}/notary/customers/:uid", + "host": [ + "{{baseUrl}}" + ], + "path": [ + "notary", + "customers", + ":uid" + ], + "variable": [ + { + "key": "uid" + } + ] + } + }, + "status": "OK", + "code": 200, + "_postman_previewlanguage": "json", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + } + ], + "cookie": [], + "body": "{\n \"uid\": \"\",\n \"status\": \"\",\n \"contact\": {\n \"civility\": \"\",\n \"first_name\": \"\",\n \"last_name\": \"\",\n \"email\": \"\",\n \"cell_phone_number\": \"\"\n },\n \"office_folders\": [\n {\n \"uid\": \"\",\n \"name\": \"\",\n \"office\": {\n \"uid\": \"\",\n \"name\": \"\"\n }\n },\n {\n \"uid\": \"\",\n \"name\": \"\",\n \"office\": {\n \"uid\": \"\",\n \"name\": \"\"\n }\n }\n ],\n \"documents\": [\n {\n \"uid\": \"\",\n \"name\": \"\",\n \"type\": {\n \"uid\": \"\",\n \"name\": \"\"\n },\n \"file\": {\n \"uid\": \"\",\n \"name\": \"\"\n },\n \"folder\": {\n \"uid\": \"\",\n \"name\": \"\"\n }\n },\n {\n \"uid\": \"\",\n \"name\": \"\",\n \"type\": {\n \"uid\": \"\",\n \"name\": \"\"\n },\n \"file\": {\n \"uid\": \"\",\n \"name\": \"\"\n },\n \"folder\": {\n \"uid\": \"\",\n \"name\": \"\"\n }\n }\n ],\n \"createdAt\": \"\",\n \"updatedAt\": \"\"\n}" + }, + { + "name": "Invalid status value", + "originalRequest": { + "method": "DELETE", + "header": [ + { + "description": "Added as a part of security scheme: bearer", + "key": "Authorization", + "value": "Bearer " + } + ], + "url": { + "raw": "{{baseUrl}}/notary/customers/:uid", + "host": [ + "{{baseUrl}}" + ], + "path": [ + "notary", + "customers", + ":uid" + ], + "variable": [ + { + "key": "uid" + } + ] + } + }, + "status": "Bad Request", + "code": 400, + "_postman_previewlanguage": "text", + "header": [], + "cookie": [], + "body": "" + } + ] + } + ] + }, + { + "name": "Get all customers", + "request": { + "auth": { + "type": "bearer", + "bearer": [ + { + "key": "token", + "value": "{{bearerToken}}", + "type": "string" + } + ] + }, + "method": "GET", + "header": [ + { + "key": "Accept", + "value": "application/json" + } + ], + "url": { + "raw": "{{baseUrl}}/notary/customers", + "host": [ + "{{baseUrl}}" + ], + "path": [ + "notary", + "customers" + ] + } + }, + "response": [ + { + "name": "successful operation", + "originalRequest": { + "method": "GET", + "header": [ + { + "key": "Accept", + "value": "application/json" + }, + { + "description": "Added as a part of security scheme: bearer", + "key": "Authorization", + "value": "Bearer " + } + ], + "url": { + "raw": "{{baseUrl}}/notary/customers", + "host": [ + "{{baseUrl}}" + ], + "path": [ + "notary", + "customers" + ] + } + }, + "status": "OK", + "code": 200, + "_postman_previewlanguage": "json", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + } + ], + "cookie": [], + "body": "{\n \"uid\": \"\",\n \"status\": \"\",\n \"contact\": {\n \"civility\": \"\",\n \"first_name\": \"\",\n \"last_name\": \"\",\n \"email\": \"\",\n \"cell_phone_number\": \"\"\n },\n \"office_folders\": [\n {\n \"uid\": \"\",\n \"name\": \"\",\n \"office\": {\n \"uid\": \"\",\n \"name\": \"\"\n }\n },\n {\n \"uid\": \"\",\n \"name\": \"\",\n \"office\": {\n \"uid\": \"\",\n \"name\": \"\"\n }\n }\n ],\n \"documents\": [\n {\n \"uid\": \"\",\n \"name\": \"\",\n \"type\": {\n \"uid\": \"\",\n \"name\": \"\"\n },\n \"file\": {\n \"uid\": \"\",\n \"name\": \"\"\n },\n \"folder\": {\n \"uid\": \"\",\n \"name\": \"\"\n }\n },\n {\n \"uid\": \"\",\n \"name\": \"\",\n \"type\": {\n \"uid\": \"\",\n \"name\": \"\"\n },\n \"file\": {\n \"uid\": \"\",\n \"name\": \"\"\n },\n \"folder\": {\n \"uid\": \"\",\n \"name\": \"\"\n }\n }\n ],\n \"createdAt\": \"\",\n \"updatedAt\": \"\"\n}" + }, + { + "name": "Invalid status value", + "originalRequest": { + "method": "GET", + "header": [ + { + "description": "Added as a part of security scheme: bearer", + "key": "Authorization", + "value": "Bearer " + } + ], + "url": { + "raw": "{{baseUrl}}/notary/customers", + "host": [ + "{{baseUrl}}" + ], + "path": [ + "notary", + "customers" + ] + } + }, + "status": "Bad Request", + "code": 400, + "_postman_previewlanguage": "text", + "header": [], + "cookie": [], + "body": "" + } + ] + }, + { + "name": "Add a new customer", + "request": { + "auth": { + "type": "bearer", + "bearer": [ + { + "key": "token", + "value": "{{bearerToken}}", + "type": "string" + } + ] + }, + "method": "POST", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + }, + { + "key": "Accept", + "value": "application/json" + } + ], + "body": { + "mode": "raw", + "raw": "{\n \"uid\": \"\",\n \"status\": \"\",\n \"contact\": {\n \"civility\": \"\",\n \"first_name\": \"\",\n \"last_name\": \"\",\n \"email\": \"\",\n \"cell_phone_number\": \"\"\n },\n \"office_folders\": [\n {\n \"uid\": \"\",\n \"name\": \"\",\n \"office\": {\n \"uid\": \"\",\n \"name\": \"\"\n }\n },\n {\n \"uid\": \"\",\n \"name\": \"\",\n \"office\": {\n \"uid\": \"\",\n \"name\": \"\"\n }\n }\n ],\n \"documents\": [\n {\n \"uid\": \"\",\n \"name\": \"\",\n \"type\": {\n \"uid\": \"\",\n \"name\": \"\"\n },\n \"file\": {\n \"uid\": \"\",\n \"name\": \"\"\n },\n \"folder\": {\n \"uid\": \"\",\n \"name\": \"\"\n }\n },\n {\n \"uid\": \"\",\n \"name\": \"\",\n \"type\": {\n \"uid\": \"\",\n \"name\": \"\"\n },\n \"file\": {\n \"uid\": \"\",\n \"name\": \"\"\n },\n \"folder\": {\n \"uid\": \"\",\n \"name\": \"\"\n }\n }\n ],\n \"createdAt\": \"\",\n \"updatedAt\": \"\"\n}", + "options": { + "raw": { + "headerFamily": "json", + "language": "json" + } + } + }, + "url": { + "raw": "{{baseUrl}}/notary/customers", + "host": [ + "{{baseUrl}}" + ], + "path": [ + "notary", + "customers" + ] + } + }, + "response": [ + { + "name": "successful operation", + "originalRequest": { + "method": "POST", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + }, + { + "key": "Accept", + "value": "application/json" + }, + { + "description": "Added as a part of security scheme: bearer", + "key": "Authorization", + "value": "Bearer " + } + ], + "body": { + "mode": "raw", + "raw": "{\n \"uid\": \"\",\n \"status\": \"\",\n \"contact\": {\n \"civility\": \"\",\n \"first_name\": \"\",\n \"last_name\": \"\",\n \"email\": \"\",\n \"cell_phone_number\": \"\"\n },\n \"office_folders\": [\n {\n \"uid\": \"\",\n \"name\": \"\",\n \"office\": {\n \"uid\": \"\",\n \"name\": \"\"\n }\n },\n {\n \"uid\": \"\",\n \"name\": \"\",\n \"office\": {\n \"uid\": \"\",\n \"name\": \"\"\n }\n }\n ],\n \"documents\": [\n {\n \"uid\": \"\",\n \"name\": \"\",\n \"type\": {\n \"uid\": \"\",\n \"name\": \"\"\n },\n \"file\": {\n \"uid\": \"\",\n \"name\": \"\"\n },\n \"folder\": {\n \"uid\": \"\",\n \"name\": \"\"\n }\n },\n {\n \"uid\": \"\",\n \"name\": \"\",\n \"type\": {\n \"uid\": \"\",\n \"name\": \"\"\n },\n \"file\": {\n \"uid\": \"\",\n \"name\": \"\"\n },\n \"folder\": {\n \"uid\": \"\",\n \"name\": \"\"\n }\n }\n ],\n \"createdAt\": \"\",\n \"updatedAt\": \"\"\n}", + "options": { + "raw": { + "headerFamily": "json", + "language": "json" + } + } + }, + "url": { + "raw": "{{baseUrl}}/notary/customers", + "host": [ + "{{baseUrl}}" + ], + "path": [ + "notary", + "customers" + ] + } + }, + "status": "OK", + "code": 200, + "_postman_previewlanguage": "json", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + } + ], + "cookie": [], + "body": "{\n \"uid\": \"\",\n \"status\": \"\",\n \"contact\": {\n \"civility\": \"\",\n \"first_name\": \"\",\n \"last_name\": \"\",\n \"email\": \"\",\n \"cell_phone_number\": \"\"\n },\n \"office_folders\": [\n {\n \"uid\": \"\",\n \"name\": \"\",\n \"office\": {\n \"uid\": \"\",\n \"name\": \"\"\n }\n },\n {\n \"uid\": \"\",\n \"name\": \"\",\n \"office\": {\n \"uid\": \"\",\n \"name\": \"\"\n }\n }\n ],\n \"documents\": [\n {\n \"uid\": \"\",\n \"name\": \"\",\n \"type\": {\n \"uid\": \"\",\n \"name\": \"\"\n },\n \"file\": {\n \"uid\": \"\",\n \"name\": \"\"\n },\n \"folder\": {\n \"uid\": \"\",\n \"name\": \"\"\n }\n },\n {\n \"uid\": \"\",\n \"name\": \"\",\n \"type\": {\n \"uid\": \"\",\n \"name\": \"\"\n },\n \"file\": {\n \"uid\": \"\",\n \"name\": \"\"\n },\n \"folder\": {\n \"uid\": \"\",\n \"name\": \"\"\n }\n }\n ],\n \"createdAt\": \"\",\n \"updatedAt\": \"\"\n}" + }, + { + "name": "Invalid status value", + "originalRequest": { + "method": "POST", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + }, + { + "description": "Added as a part of security scheme: bearer", + "key": "Authorization", + "value": "Bearer " + } + ], + "body": { + "mode": "raw", + "raw": "{\n \"uid\": \"\",\n \"status\": \"\",\n \"contact\": {\n \"civility\": \"\",\n \"first_name\": \"\",\n \"last_name\": \"\",\n \"email\": \"\",\n \"cell_phone_number\": \"\"\n },\n \"office_folders\": [\n {\n \"uid\": \"\",\n \"name\": \"\",\n \"office\": {\n \"uid\": \"\",\n \"name\": \"\"\n }\n },\n {\n \"uid\": \"\",\n \"name\": \"\",\n \"office\": {\n \"uid\": \"\",\n \"name\": \"\"\n }\n }\n ],\n \"documents\": [\n {\n \"uid\": \"\",\n \"name\": \"\",\n \"type\": {\n \"uid\": \"\",\n \"name\": \"\"\n },\n \"file\": {\n \"uid\": \"\",\n \"name\": \"\"\n },\n \"folder\": {\n \"uid\": \"\",\n \"name\": \"\"\n }\n },\n {\n \"uid\": \"\",\n \"name\": \"\",\n \"type\": {\n \"uid\": \"\",\n \"name\": \"\"\n },\n \"file\": {\n \"uid\": \"\",\n \"name\": \"\"\n },\n \"folder\": {\n \"uid\": \"\",\n \"name\": \"\"\n }\n }\n ],\n \"createdAt\": \"\",\n \"updatedAt\": \"\"\n}", + "options": { + "raw": { + "headerFamily": "json", + "language": "json" + } + } + }, + "url": { + "raw": "{{baseUrl}}/notary/customers", + "host": [ + "{{baseUrl}}" + ], + "path": [ + "notary", + "customers" + ] + } + }, + "status": "Bad Request", + "code": 400, + "_postman_previewlanguage": "text", + "header": [], + "cookie": [], + "body": "" + } + ] + } + ] + }, + { + "name": "deeds", + "item": [ + { + "name": "{uid}", + "item": [ + { + "name": "Find deed by ID", + "request": { + "auth": { + "type": "bearer", + "bearer": [ + { + "key": "token", + "value": "{{bearerToken}}", + "type": "string" + } + ] + }, + "method": "GET", + "header": [ + { + "key": "Accept", + "value": "application/json" + } + ], + "url": { + "raw": "{{baseUrl}}/notary/deeds/:uid", + "host": [ + "{{baseUrl}}" + ], + "path": [ + "notary", + "deeds", + ":uid" + ], + "variable": [ + { + "key": "uid", + "value": "", + "description": "(Required) ID of deed to return" + } + ] + }, + "description": "Returns a single deed" + }, + "response": [ + { + "name": "successful operation", + "originalRequest": { + "method": "GET", + "header": [ + { + "key": "Accept", + "value": "application/json" + }, + { + "description": "Added as a part of security scheme: bearer", + "key": "Authorization", + "value": "Bearer " + } + ], + "url": { + "raw": "{{baseUrl}}/notary/deeds/:uid", + "host": [ + "{{baseUrl}}" + ], + "path": [ + "notary", + "deeds", + ":uid" + ], + "variable": [ + { + "key": "uid" + } + ] + } + }, + "status": "OK", + "code": 200, + "_postman_previewlanguage": "json", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + } + ], + "cookie": [], + "body": "{\n \"uid\": \"\",\n \"deed_type\": {\n \"uid\": \"\",\n \"name\": \"\",\n \"description\": \"\",\n \"archived_at\": \"\",\n \"createdAt\": \"\",\n \"updatedAt\": \"\"\n },\n \"document_types\": [\n {\n \"uid\": \"\",\n \"name\": \"\",\n \"public_description\": \"\",\n \"private_description\": \"\",\n \"archived_at\": \"\",\n \"createdAt\": \"\",\n \"updatedAt\": \"\"\n },\n {\n \"uid\": \"\",\n \"name\": \"\",\n \"public_description\": \"\",\n \"private_description\": \"\",\n \"archived_at\": \"\",\n \"createdAt\": \"\",\n \"updatedAt\": \"\"\n }\n ],\n \"office\": {\n \"uid\": \"\",\n \"name\": \"\"\n },\n \"folder\": {\n \"uid\": \"\",\n \"name\": \"\"\n },\n \"createdAt\": \"\",\n \"updatedAt\": \"\"\n}" + }, + { + "name": "Invalid status value", + "originalRequest": { + "method": "GET", + "header": [ + { + "description": "Added as a part of security scheme: bearer", + "key": "Authorization", + "value": "Bearer " + } + ], + "url": { + "raw": "{{baseUrl}}/notary/deeds/:uid", + "host": [ + "{{baseUrl}}" + ], + "path": [ + "notary", + "deeds", + ":uid" + ], + "variable": [ + { + "key": "uid" + } + ] + } + }, + "status": "Bad Request", + "code": 400, + "_postman_previewlanguage": "text", + "header": [], + "cookie": [], + "body": "" + } + ] + }, + { + "name": "Update an existing deed", + "request": { + "auth": { + "type": "bearer", + "bearer": [ + { + "key": "token", + "value": "{{bearerToken}}", + "type": "string" + } + ] + }, + "method": "PUT", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + }, + { + "key": "Accept", + "value": "application/json" + } + ], + "body": { + "mode": "raw", + "raw": "{\n \"uid\": \"\",\n \"deed_type\": {\n \"uid\": \"\",\n \"name\": \"\",\n \"description\": \"\",\n \"archived_at\": \"\",\n \"createdAt\": \"\",\n \"updatedAt\": \"\"\n },\n \"document_types\": [\n {\n \"uid\": \"\",\n \"name\": \"\",\n \"public_description\": \"\",\n \"private_description\": \"\",\n \"archived_at\": \"\",\n \"createdAt\": \"\",\n \"updatedAt\": \"\"\n },\n {\n \"uid\": \"\",\n \"name\": \"\",\n \"public_description\": \"\",\n \"private_description\": \"\",\n \"archived_at\": \"\",\n \"createdAt\": \"\",\n \"updatedAt\": \"\"\n }\n ],\n \"office\": {\n \"uid\": \"\",\n \"name\": \"\"\n },\n \"folder\": {\n \"uid\": \"\",\n \"name\": \"\"\n },\n \"createdAt\": \"\",\n \"updatedAt\": \"\"\n}", + "options": { + "raw": { + "headerFamily": "json", + "language": "json" + } + } + }, + "url": { + "raw": "{{baseUrl}}/notary/deeds/:uid", + "host": [ + "{{baseUrl}}" + ], + "path": [ + "notary", + "deeds", + ":uid" + ], + "variable": [ + { + "key": "uid", + "value": "", + "description": "(Required) ID of deed to return" + } + ] + }, + "description": "Returns a single deed updated" + }, + "response": [ + { + "name": "successful operation", + "originalRequest": { + "method": "PUT", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + }, + { + "key": "Accept", + "value": "application/json" + }, + { + "description": "Added as a part of security scheme: bearer", + "key": "Authorization", + "value": "Bearer " + } + ], + "body": { + "mode": "raw", + "raw": "{\n \"uid\": \"\",\n \"deed_type\": {\n \"uid\": \"\",\n \"name\": \"\",\n \"description\": \"\",\n \"archived_at\": \"\",\n \"createdAt\": \"\",\n \"updatedAt\": \"\"\n },\n \"document_types\": [\n {\n \"uid\": \"\",\n \"name\": \"\",\n \"public_description\": \"\",\n \"private_description\": \"\",\n \"archived_at\": \"\",\n \"createdAt\": \"\",\n \"updatedAt\": \"\"\n },\n {\n \"uid\": \"\",\n \"name\": \"\",\n \"public_description\": \"\",\n \"private_description\": \"\",\n \"archived_at\": \"\",\n \"createdAt\": \"\",\n \"updatedAt\": \"\"\n }\n ],\n \"office\": {\n \"uid\": \"\",\n \"name\": \"\"\n },\n \"folder\": {\n \"uid\": \"\",\n \"name\": \"\"\n },\n \"createdAt\": \"\",\n \"updatedAt\": \"\"\n}", + "options": { + "raw": { + "headerFamily": "json", + "language": "json" + } + } + }, + "url": { + "raw": "{{baseUrl}}/notary/deeds/:uid", + "host": [ + "{{baseUrl}}" + ], + "path": [ + "notary", + "deeds", + ":uid" + ], + "variable": [ + { + "key": "uid" + } + ] + } + }, + "status": "OK", + "code": 200, + "_postman_previewlanguage": "json", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + } + ], + "cookie": [], + "body": "{\n \"uid\": \"\",\n \"deed_type\": {\n \"uid\": \"\",\n \"name\": \"\",\n \"description\": \"\",\n \"archived_at\": \"\",\n \"createdAt\": \"\",\n \"updatedAt\": \"\"\n },\n \"document_types\": [\n {\n \"uid\": \"\",\n \"name\": \"\",\n \"public_description\": \"\",\n \"private_description\": \"\",\n \"archived_at\": \"\",\n \"createdAt\": \"\",\n \"updatedAt\": \"\"\n },\n {\n \"uid\": \"\",\n \"name\": \"\",\n \"public_description\": \"\",\n \"private_description\": \"\",\n \"archived_at\": \"\",\n \"createdAt\": \"\",\n \"updatedAt\": \"\"\n }\n ],\n \"office\": {\n \"uid\": \"\",\n \"name\": \"\"\n },\n \"folder\": {\n \"uid\": \"\",\n \"name\": \"\"\n },\n \"createdAt\": \"\",\n \"updatedAt\": \"\"\n}" + }, + { + "name": "Invalid status value", + "originalRequest": { + "method": "PUT", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + }, + { + "description": "Added as a part of security scheme: bearer", + "key": "Authorization", + "value": "Bearer " + } + ], + "body": { + "mode": "raw", + "raw": "{\n \"uid\": \"\",\n \"deed_type\": {\n \"uid\": \"\",\n \"name\": \"\",\n \"description\": \"\",\n \"archived_at\": \"\",\n \"createdAt\": \"\",\n \"updatedAt\": \"\"\n },\n \"document_types\": [\n {\n \"uid\": \"\",\n \"name\": \"\",\n \"public_description\": \"\",\n \"private_description\": \"\",\n \"archived_at\": \"\",\n \"createdAt\": \"\",\n \"updatedAt\": \"\"\n },\n {\n \"uid\": \"\",\n \"name\": \"\",\n \"public_description\": \"\",\n \"private_description\": \"\",\n \"archived_at\": \"\",\n \"createdAt\": \"\",\n \"updatedAt\": \"\"\n }\n ],\n \"office\": {\n \"uid\": \"\",\n \"name\": \"\"\n },\n \"folder\": {\n \"uid\": \"\",\n \"name\": \"\"\n },\n \"createdAt\": \"\",\n \"updatedAt\": \"\"\n}", + "options": { + "raw": { + "headerFamily": "json", + "language": "json" + } + } + }, + "url": { + "raw": "{{baseUrl}}/notary/deeds/:uid", + "host": [ + "{{baseUrl}}" + ], + "path": [ + "notary", + "deeds", + ":uid" + ], + "variable": [ + { + "key": "uid" + } + ] + } + }, + "status": "Bad Request", + "code": 400, + "_postman_previewlanguage": "text", + "header": [], + "cookie": [], + "body": "" + } + ] + }, + { + "name": "Delete an existing deed", + "request": { + "auth": { + "type": "bearer", + "bearer": [ + { + "key": "token", + "value": "{{bearerToken}}", + "type": "string" + } + ] + }, + "method": "DELETE", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + }, + { + "key": "Accept", + "value": "application/json" + } + ], + "body": { + "mode": "raw", + "raw": "{\n \"uid\": \"\",\n \"deed_type\": {\n \"uid\": \"\",\n \"name\": \"\",\n \"description\": \"\",\n \"archived_at\": \"\",\n \"createdAt\": \"\",\n \"updatedAt\": \"\"\n },\n \"document_types\": [\n {\n \"uid\": \"\",\n \"name\": \"\",\n \"public_description\": \"\",\n \"private_description\": \"\",\n \"archived_at\": \"\",\n \"createdAt\": \"\",\n \"updatedAt\": \"\"\n },\n {\n \"uid\": \"\",\n \"name\": \"\",\n \"public_description\": \"\",\n \"private_description\": \"\",\n \"archived_at\": \"\",\n \"createdAt\": \"\",\n \"updatedAt\": \"\"\n }\n ],\n \"office\": {\n \"uid\": \"\",\n \"name\": \"\"\n },\n \"folder\": {\n \"uid\": \"\",\n \"name\": \"\"\n },\n \"createdAt\": \"\",\n \"updatedAt\": \"\"\n}", + "options": { + "raw": { + "headerFamily": "json", + "language": "json" + } + } + }, + "url": { + "raw": "{{baseUrl}}/notary/deeds/:uid", + "host": [ + "{{baseUrl}}" + ], + "path": [ + "notary", + "deeds", + ":uid" + ], + "variable": [ + { + "key": "uid", + "value": "", + "description": "(Required) ID of deed to return" + } + ] + }, + "description": "Returns a single deed deleted" + }, + "response": [ + { + "name": "successful operation", + "originalRequest": { + "method": "DELETE", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + }, + { + "key": "Accept", + "value": "application/json" + }, + { + "description": "Added as a part of security scheme: bearer", + "key": "Authorization", + "value": "Bearer " + } + ], + "body": { + "mode": "raw", + "raw": "{\n \"uid\": \"\",\n \"deed_type\": {\n \"uid\": \"\",\n \"name\": \"\",\n \"description\": \"\",\n \"archived_at\": \"\",\n \"createdAt\": \"\",\n \"updatedAt\": \"\"\n },\n \"document_types\": [\n {\n \"uid\": \"\",\n \"name\": \"\",\n \"public_description\": \"\",\n \"private_description\": \"\",\n \"archived_at\": \"\",\n \"createdAt\": \"\",\n \"updatedAt\": \"\"\n },\n {\n \"uid\": \"\",\n \"name\": \"\",\n \"public_description\": \"\",\n \"private_description\": \"\",\n \"archived_at\": \"\",\n \"createdAt\": \"\",\n \"updatedAt\": \"\"\n }\n ],\n \"office\": {\n \"uid\": \"\",\n \"name\": \"\"\n },\n \"folder\": {\n \"uid\": \"\",\n \"name\": \"\"\n },\n \"createdAt\": \"\",\n \"updatedAt\": \"\"\n}", + "options": { + "raw": { + "headerFamily": "json", + "language": "json" + } + } + }, + "url": { + "raw": "{{baseUrl}}/notary/deeds/:uid", + "host": [ + "{{baseUrl}}" + ], + "path": [ + "notary", + "deeds", + ":uid" + ], + "variable": [ + { + "key": "uid" + } + ] + } + }, + "status": "OK", + "code": 200, + "_postman_previewlanguage": "json", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + } + ], + "cookie": [], + "body": "{\n \"uid\": \"\",\n \"deed_type\": {\n \"uid\": \"\",\n \"name\": \"\",\n \"description\": \"\",\n \"archived_at\": \"\",\n \"createdAt\": \"\",\n \"updatedAt\": \"\"\n },\n \"document_types\": [\n {\n \"uid\": \"\",\n \"name\": \"\",\n \"public_description\": \"\",\n \"private_description\": \"\",\n \"archived_at\": \"\",\n \"createdAt\": \"\",\n \"updatedAt\": \"\"\n },\n {\n \"uid\": \"\",\n \"name\": \"\",\n \"public_description\": \"\",\n \"private_description\": \"\",\n \"archived_at\": \"\",\n \"createdAt\": \"\",\n \"updatedAt\": \"\"\n }\n ],\n \"office\": {\n \"uid\": \"\",\n \"name\": \"\"\n },\n \"folder\": {\n \"uid\": \"\",\n \"name\": \"\"\n },\n \"createdAt\": \"\",\n \"updatedAt\": \"\"\n}" + }, + { + "name": "Invalid status value", + "originalRequest": { + "method": "DELETE", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + }, + { + "description": "Added as a part of security scheme: bearer", + "key": "Authorization", + "value": "Bearer " + } + ], + "body": { + "mode": "raw", + "raw": "{\n \"uid\": \"\",\n \"deed_type\": {\n \"uid\": \"\",\n \"name\": \"\",\n \"description\": \"\",\n \"archived_at\": \"\",\n \"createdAt\": \"\",\n \"updatedAt\": \"\"\n },\n \"document_types\": [\n {\n \"uid\": \"\",\n \"name\": \"\",\n \"public_description\": \"\",\n \"private_description\": \"\",\n \"archived_at\": \"\",\n \"createdAt\": \"\",\n \"updatedAt\": \"\"\n },\n {\n \"uid\": \"\",\n \"name\": \"\",\n \"public_description\": \"\",\n \"private_description\": \"\",\n \"archived_at\": \"\",\n \"createdAt\": \"\",\n \"updatedAt\": \"\"\n }\n ],\n \"office\": {\n \"uid\": \"\",\n \"name\": \"\"\n },\n \"folder\": {\n \"uid\": \"\",\n \"name\": \"\"\n },\n \"createdAt\": \"\",\n \"updatedAt\": \"\"\n}", + "options": { + "raw": { + "headerFamily": "json", + "language": "json" + } + } + }, + "url": { + "raw": "{{baseUrl}}/notary/deeds/:uid", + "host": [ + "{{baseUrl}}" + ], + "path": [ + "notary", + "deeds", + ":uid" + ], + "variable": [ + { + "key": "uid" + } + ] + } + }, + "status": "Bad Request", + "code": 400, + "_postman_previewlanguage": "text", + "header": [], + "cookie": [], + "body": "" + } + ] + } + ] + }, + { + "name": "Get all deeds", + "request": { + "auth": { + "type": "bearer", + "bearer": [ + { + "key": "token", + "value": "{{bearerToken}}", + "type": "string" + } + ] + }, + "method": "GET", + "header": [ + { + "key": "Accept", + "value": "application/json" + } + ], + "url": { + "raw": "{{baseUrl}}/notary/deeds", + "host": [ + "{{baseUrl}}" + ], + "path": [ + "notary", + "deeds" + ] + } + }, + "response": [ + { + "name": "successful operation", + "originalRequest": { + "method": "GET", + "header": [ + { + "key": "Accept", + "value": "application/json" + }, + { + "description": "Added as a part of security scheme: bearer", + "key": "Authorization", + "value": "Bearer " + } + ], + "url": { + "raw": "{{baseUrl}}/notary/deeds", + "host": [ + "{{baseUrl}}" + ], + "path": [ + "notary", + "deeds" + ] + } + }, + "status": "OK", + "code": 200, + "_postman_previewlanguage": "json", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + } + ], + "cookie": [], + "body": "{\n \"uid\": \"\",\n \"deed_type\": {\n \"uid\": \"\",\n \"name\": \"\",\n \"description\": \"\",\n \"archived_at\": \"\",\n \"createdAt\": \"\",\n \"updatedAt\": \"\"\n },\n \"document_types\": [\n {\n \"uid\": \"\",\n \"name\": \"\",\n \"public_description\": \"\",\n \"private_description\": \"\",\n \"archived_at\": \"\",\n \"createdAt\": \"\",\n \"updatedAt\": \"\"\n },\n {\n \"uid\": \"\",\n \"name\": \"\",\n \"public_description\": \"\",\n \"private_description\": \"\",\n \"archived_at\": \"\",\n \"createdAt\": \"\",\n \"updatedAt\": \"\"\n }\n ],\n \"office\": {\n \"uid\": \"\",\n \"name\": \"\"\n },\n \"folder\": {\n \"uid\": \"\",\n \"name\": \"\"\n },\n \"createdAt\": \"\",\n \"updatedAt\": \"\"\n}" + }, + { + "name": "Invalid status value", + "originalRequest": { + "method": "GET", + "header": [ + { + "description": "Added as a part of security scheme: bearer", + "key": "Authorization", + "value": "Bearer " + } + ], + "url": { + "raw": "{{baseUrl}}/notary/deeds", + "host": [ + "{{baseUrl}}" + ], + "path": [ + "notary", + "deeds" + ] + } + }, + "status": "Bad Request", + "code": 400, + "_postman_previewlanguage": "text", + "header": [], + "cookie": [], + "body": "" + } + ] + }, + { + "name": "Add a new deed", + "request": { + "auth": { + "type": "bearer", + "bearer": [ + { + "key": "token", + "value": "{{bearerToken}}", + "type": "string" + } + ] + }, + "method": "POST", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + }, + { + "key": "Accept", + "value": "application/json" + } + ], + "body": { + "mode": "raw", + "raw": "{\n \"uid\": \"\",\n \"deed_type\": {\n \"uid\": \"\",\n \"name\": \"\",\n \"description\": \"\",\n \"archived_at\": \"\",\n \"createdAt\": \"\",\n \"updatedAt\": \"\"\n },\n \"document_types\": [\n {\n \"uid\": \"\",\n \"name\": \"\",\n \"public_description\": \"\",\n \"private_description\": \"\",\n \"archived_at\": \"\",\n \"createdAt\": \"\",\n \"updatedAt\": \"\"\n },\n {\n \"uid\": \"\",\n \"name\": \"\",\n \"public_description\": \"\",\n \"private_description\": \"\",\n \"archived_at\": \"\",\n \"createdAt\": \"\",\n \"updatedAt\": \"\"\n }\n ],\n \"office\": {\n \"uid\": \"\",\n \"name\": \"\"\n },\n \"folder\": {\n \"uid\": \"\",\n \"name\": \"\"\n },\n \"createdAt\": \"\",\n \"updatedAt\": \"\"\n}", + "options": { + "raw": { + "headerFamily": "json", + "language": "json" + } + } + }, + "url": { + "raw": "{{baseUrl}}/notary/deeds", + "host": [ + "{{baseUrl}}" + ], + "path": [ + "notary", + "deeds" + ] + } + }, + "response": [ + { + "name": "successful operation", + "originalRequest": { + "method": "POST", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + }, + { + "key": "Accept", + "value": "application/json" + }, + { + "description": "Added as a part of security scheme: bearer", + "key": "Authorization", + "value": "Bearer " + } + ], + "body": { + "mode": "raw", + "raw": "{\n \"uid\": \"\",\n \"deed_type\": {\n \"uid\": \"\",\n \"name\": \"\",\n \"description\": \"\",\n \"archived_at\": \"\",\n \"createdAt\": \"\",\n \"updatedAt\": \"\"\n },\n \"document_types\": [\n {\n \"uid\": \"\",\n \"name\": \"\",\n \"public_description\": \"\",\n \"private_description\": \"\",\n \"archived_at\": \"\",\n \"createdAt\": \"\",\n \"updatedAt\": \"\"\n },\n {\n \"uid\": \"\",\n \"name\": \"\",\n \"public_description\": \"\",\n \"private_description\": \"\",\n \"archived_at\": \"\",\n \"createdAt\": \"\",\n \"updatedAt\": \"\"\n }\n ],\n \"office\": {\n \"uid\": \"\",\n \"name\": \"\"\n },\n \"folder\": {\n \"uid\": \"\",\n \"name\": \"\"\n },\n \"createdAt\": \"\",\n \"updatedAt\": \"\"\n}", + "options": { + "raw": { + "headerFamily": "json", + "language": "json" + } + } + }, + "url": { + "raw": "{{baseUrl}}/notary/deeds", + "host": [ + "{{baseUrl}}" + ], + "path": [ + "notary", + "deeds" + ] + } + }, + "status": "OK", + "code": 200, + "_postman_previewlanguage": "json", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + } + ], + "cookie": [], + "body": "{\n \"uid\": \"\",\n \"deed_type\": {\n \"uid\": \"\",\n \"name\": \"\",\n \"description\": \"\",\n \"archived_at\": \"\",\n \"createdAt\": \"\",\n \"updatedAt\": \"\"\n },\n \"document_types\": [\n {\n \"uid\": \"\",\n \"name\": \"\",\n \"public_description\": \"\",\n \"private_description\": \"\",\n \"archived_at\": \"\",\n \"createdAt\": \"\",\n \"updatedAt\": \"\"\n },\n {\n \"uid\": \"\",\n \"name\": \"\",\n \"public_description\": \"\",\n \"private_description\": \"\",\n \"archived_at\": \"\",\n \"createdAt\": \"\",\n \"updatedAt\": \"\"\n }\n ],\n \"office\": {\n \"uid\": \"\",\n \"name\": \"\"\n },\n \"folder\": {\n \"uid\": \"\",\n \"name\": \"\"\n },\n \"createdAt\": \"\",\n \"updatedAt\": \"\"\n}" + }, + { + "name": "Invalid status value", + "originalRequest": { + "method": "POST", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + }, + { + "description": "Added as a part of security scheme: bearer", + "key": "Authorization", + "value": "Bearer " + } + ], + "body": { + "mode": "raw", + "raw": "{\n \"uid\": \"\",\n \"deed_type\": {\n \"uid\": \"\",\n \"name\": \"\",\n \"description\": \"\",\n \"archived_at\": \"\",\n \"createdAt\": \"\",\n \"updatedAt\": \"\"\n },\n \"document_types\": [\n {\n \"uid\": \"\",\n \"name\": \"\",\n \"public_description\": \"\",\n \"private_description\": \"\",\n \"archived_at\": \"\",\n \"createdAt\": \"\",\n \"updatedAt\": \"\"\n },\n {\n \"uid\": \"\",\n \"name\": \"\",\n \"public_description\": \"\",\n \"private_description\": \"\",\n \"archived_at\": \"\",\n \"createdAt\": \"\",\n \"updatedAt\": \"\"\n }\n ],\n \"office\": {\n \"uid\": \"\",\n \"name\": \"\"\n },\n \"folder\": {\n \"uid\": \"\",\n \"name\": \"\"\n },\n \"createdAt\": \"\",\n \"updatedAt\": \"\"\n}", + "options": { + "raw": { + "headerFamily": "json", + "language": "json" + } + } + }, + "url": { + "raw": "{{baseUrl}}/notary/deeds", + "host": [ + "{{baseUrl}}" + ], + "path": [ + "notary", + "deeds" + ] + } + }, + "status": "Bad Request", + "code": 400, + "_postman_previewlanguage": "text", + "header": [], + "cookie": [], + "body": "" + } + ] + } + ] + }, + { + "name": "deed-types", + "item": [ + { + "name": "{uid}", + "item": [ + { + "name": "Find deed type by ID", + "request": { + "auth": { + "type": "bearer", + "bearer": [ + { + "key": "token", + "value": "{{bearerToken}}", + "type": "string" + } + ] + }, + "method": "GET", + "header": [ + { + "key": "Accept", + "value": "application/json" + } + ], + "url": { + "raw": "{{baseUrl}}/notary/deed-types/:uid", + "host": [ + "{{baseUrl}}" + ], + "path": [ + "notary", + "deed-types", + ":uid" + ], + "variable": [ + { + "key": "uid", + "value": "", + "description": "(Required) ID of deed type to return" + } + ] + }, + "description": "Returns a single deed type" + }, + "response": [ + { + "name": "successful operation", + "originalRequest": { + "method": "GET", + "header": [ + { + "key": "Accept", + "value": "application/json" + }, + { + "description": "Added as a part of security scheme: bearer", + "key": "Authorization", + "value": "Bearer " + } + ], + "url": { + "raw": "{{baseUrl}}/notary/deed-types/:uid", + "host": [ + "{{baseUrl}}" + ], + "path": [ + "notary", + "deed-types", + ":uid" + ], + "variable": [ + { + "key": "uid" + } + ] + } + }, + "status": "OK", + "code": 200, + "_postman_previewlanguage": "json", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + } + ], + "cookie": [], + "body": "{\n \"uid\": \"\",\n \"name\": \"\",\n \"description\": \"\",\n \"archived_at\": \"\",\n \"office\": {\n \"uid\": \"\",\n \"name\": \"\"\n },\n \"createdAt\": \"\",\n \"updatedAt\": \"\"\n}" + }, + { + "name": "Invalid status value", + "originalRequest": { + "method": "GET", + "header": [ + { + "description": "Added as a part of security scheme: bearer", + "key": "Authorization", + "value": "Bearer " + } + ], + "url": { + "raw": "{{baseUrl}}/notary/deed-types/:uid", + "host": [ + "{{baseUrl}}" + ], + "path": [ + "notary", + "deed-types", + ":uid" + ], + "variable": [ + { + "key": "uid" + } + ] + } + }, + "status": "Bad Request", + "code": 400, + "_postman_previewlanguage": "text", + "header": [], + "cookie": [], + "body": "" + } + ] + }, + { + "name": "Update an existing deed type", + "request": { + "auth": { + "type": "bearer", + "bearer": [ + { + "key": "token", + "value": "{{bearerToken}}", + "type": "string" + } + ] + }, + "method": "PUT", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + }, + { + "key": "Accept", + "value": "application/json" + } + ], + "body": { + "mode": "raw", + "raw": "{\n \"uid\": \"\",\n \"name\": \"\",\n \"description\": \"\",\n \"archived_at\": \"\",\n \"office\": {\n \"uid\": \"\",\n \"name\": \"\"\n },\n \"createdAt\": \"\",\n \"updatedAt\": \"\"\n}", + "options": { + "raw": { + "headerFamily": "json", + "language": "json" + } + } + }, + "url": { + "raw": "{{baseUrl}}/notary/deed-types/:uid", + "host": [ + "{{baseUrl}}" + ], + "path": [ + "notary", + "deed-types", + ":uid" + ], + "variable": [ + { + "key": "uid", + "value": "", + "description": "(Required) ID of deed type to return" + } + ] + }, + "description": "Returns a single deed type updated" + }, + "response": [ + { + "name": "successful operation", + "originalRequest": { + "method": "PUT", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + }, + { + "key": "Accept", + "value": "application/json" + }, + { + "description": "Added as a part of security scheme: bearer", + "key": "Authorization", + "value": "Bearer " + } + ], + "body": { + "mode": "raw", + "raw": "{\n \"uid\": \"\",\n \"name\": \"\",\n \"description\": \"\",\n \"archived_at\": \"\",\n \"office\": {\n \"uid\": \"\",\n \"name\": \"\"\n },\n \"createdAt\": \"\",\n \"updatedAt\": \"\"\n}", + "options": { + "raw": { + "headerFamily": "json", + "language": "json" + } + } + }, + "url": { + "raw": "{{baseUrl}}/notary/deed-types/:uid", + "host": [ + "{{baseUrl}}" + ], + "path": [ + "notary", + "deed-types", + ":uid" + ], + "variable": [ + { + "key": "uid" + } + ] + } + }, + "status": "OK", + "code": 200, + "_postman_previewlanguage": "json", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + } + ], + "cookie": [], + "body": "{\n \"uid\": \"\",\n \"name\": \"\",\n \"description\": \"\",\n \"archived_at\": \"\",\n \"office\": {\n \"uid\": \"\",\n \"name\": \"\"\n },\n \"createdAt\": \"\",\n \"updatedAt\": \"\"\n}" + }, + { + "name": "Invalid status value", + "originalRequest": { + "method": "PUT", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + }, + { + "description": "Added as a part of security scheme: bearer", + "key": "Authorization", + "value": "Bearer " + } + ], + "body": { + "mode": "raw", + "raw": "{\n \"uid\": \"\",\n \"name\": \"\",\n \"description\": \"\",\n \"archived_at\": \"\",\n \"office\": {\n \"uid\": \"\",\n \"name\": \"\"\n },\n \"createdAt\": \"\",\n \"updatedAt\": \"\"\n}", + "options": { + "raw": { + "headerFamily": "json", + "language": "json" + } + } + }, + "url": { + "raw": "{{baseUrl}}/notary/deed-types/:uid", + "host": [ + "{{baseUrl}}" + ], + "path": [ + "notary", + "deed-types", + ":uid" + ], + "variable": [ + { + "key": "uid" + } + ] + } + }, + "status": "Bad Request", + "code": 400, + "_postman_previewlanguage": "text", + "header": [], + "cookie": [], + "body": "" + } + ] + } + ] + }, + { + "name": "Get all deed types", + "request": { + "auth": { + "type": "bearer", + "bearer": [ + { + "key": "token", + "value": "{{bearerToken}}", + "type": "string" + } + ] + }, + "method": "GET", + "header": [ + { + "key": "Accept", + "value": "application/json" + } + ], + "url": { + "raw": "{{baseUrl}}/notary/deed-types", + "host": [ + "{{baseUrl}}" + ], + "path": [ + "notary", + "deed-types" + ] + } + }, + "response": [ + { + "name": "successful operation", + "originalRequest": { + "method": "GET", + "header": [ + { + "key": "Accept", + "value": "application/json" + }, + { + "description": "Added as a part of security scheme: bearer", + "key": "Authorization", + "value": "Bearer " + } + ], + "url": { + "raw": "{{baseUrl}}/notary/deed-types", + "host": [ + "{{baseUrl}}" + ], + "path": [ + "notary", + "deed-types" + ] + } + }, + "status": "OK", + "code": 200, + "_postman_previewlanguage": "json", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + } + ], + "cookie": [], + "body": "{\n \"uid\": \"\",\n \"name\": \"\",\n \"description\": \"\",\n \"archived_at\": \"\",\n \"office\": {\n \"uid\": \"\",\n \"name\": \"\"\n },\n \"createdAt\": \"\",\n \"updatedAt\": \"\"\n}" + }, + { + "name": "Invalid status value", + "originalRequest": { + "method": "GET", + "header": [ + { + "description": "Added as a part of security scheme: bearer", + "key": "Authorization", + "value": "Bearer " + } + ], + "url": { + "raw": "{{baseUrl}}/notary/deed-types", + "host": [ + "{{baseUrl}}" + ], + "path": [ + "notary", + "deed-types" + ] + } + }, + "status": "Bad Request", + "code": 400, + "_postman_previewlanguage": "text", + "header": [], + "cookie": [], + "body": "" + } + ] + }, + { + "name": "Add a new deed type", + "request": { + "auth": { + "type": "bearer", + "bearer": [ + { + "key": "token", + "value": "{{bearerToken}}", + "type": "string" + } + ] + }, + "method": "POST", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + }, + { + "key": "Accept", + "value": "application/json" + } + ], + "body": { + "mode": "raw", + "raw": "{\n \"uid\": \"\",\n \"name\": \"\",\n \"description\": \"\",\n \"archived_at\": \"\",\n \"office\": {\n \"uid\": \"\",\n \"name\": \"\"\n },\n \"createdAt\": \"\",\n \"updatedAt\": \"\"\n}", + "options": { + "raw": { + "headerFamily": "json", + "language": "json" + } + } + }, + "url": { + "raw": "{{baseUrl}}/notary/deed-types", + "host": [ + "{{baseUrl}}" + ], + "path": [ + "notary", + "deed-types" + ] + } + }, + "response": [ + { + "name": "successful operation", + "originalRequest": { + "method": "POST", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + }, + { + "key": "Accept", + "value": "application/json" + }, + { + "description": "Added as a part of security scheme: bearer", + "key": "Authorization", + "value": "Bearer " + } + ], + "body": { + "mode": "raw", + "raw": "{\n \"uid\": \"\",\n \"name\": \"\",\n \"description\": \"\",\n \"archived_at\": \"\",\n \"office\": {\n \"uid\": \"\",\n \"name\": \"\"\n },\n \"createdAt\": \"\",\n \"updatedAt\": \"\"\n}", + "options": { + "raw": { + "headerFamily": "json", + "language": "json" + } + } + }, + "url": { + "raw": "{{baseUrl}}/notary/deed-types", + "host": [ + "{{baseUrl}}" + ], + "path": [ + "notary", + "deed-types" + ] + } + }, + "status": "OK", + "code": 200, + "_postman_previewlanguage": "json", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + } + ], + "cookie": [], + "body": "{\n \"uid\": \"\",\n \"name\": \"\",\n \"description\": \"\",\n \"archived_at\": \"\",\n \"office\": {\n \"uid\": \"\",\n \"name\": \"\"\n },\n \"createdAt\": \"\",\n \"updatedAt\": \"\"\n}" + }, + { + "name": "Invalid status value", + "originalRequest": { + "method": "POST", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + }, + { + "description": "Added as a part of security scheme: bearer", + "key": "Authorization", + "value": "Bearer " + } + ], + "body": { + "mode": "raw", + "raw": "{\n \"uid\": \"\",\n \"name\": \"\",\n \"description\": \"\",\n \"archived_at\": \"\",\n \"office\": {\n \"uid\": \"\",\n \"name\": \"\"\n },\n \"createdAt\": \"\",\n \"updatedAt\": \"\"\n}", + "options": { + "raw": { + "headerFamily": "json", + "language": "json" + } + } + }, + "url": { + "raw": "{{baseUrl}}/notary/deed-types", + "host": [ + "{{baseUrl}}" + ], + "path": [ + "notary", + "deed-types" + ] + } + }, + "status": "Bad Request", + "code": 400, + "_postman_previewlanguage": "text", + "header": [], + "cookie": [], + "body": "" + } + ] + } + ] + }, + { + "name": "documents", + "item": [ + { + "name": "{uid}", + "item": [ + { + "name": "Find document by ID", + "request": { + "auth": { + "type": "bearer", + "bearer": [ + { + "key": "token", + "value": "{{bearerToken}}", + "type": "string" + } + ] + }, + "method": "GET", + "header": [ + { + "key": "Accept", + "value": "application/json" + } + ], + "url": { + "raw": "{{baseUrl}}/notary/documents/:uid", + "host": [ + "{{baseUrl}}" + ], + "path": [ + "notary", + "documents", + ":uid" + ], + "variable": [ + { + "key": "uid", + "value": "", + "description": "(Required) ID of document to return" + } + ] + }, + "description": "Returns a single document" + }, + "response": [ + { + "name": "successful operation", + "originalRequest": { + "method": "GET", + "header": [ + { + "key": "Accept", + "value": "application/json" + }, + { + "description": "Added as a part of security scheme: bearer", + "key": "Authorization", + "value": "Bearer " + } + ], + "url": { + "raw": "{{baseUrl}}/notary/documents/:uid", + "host": [ + "{{baseUrl}}" + ], + "path": [ + "notary", + "documents", + ":uid" + ], + "variable": [ + { + "key": "uid" + } + ] + } + }, + "status": "OK", + "code": 200, + "_postman_previewlanguage": "json", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + } + ], + "cookie": [], + "body": "{\n \"uid\": \"\",\n \"name\": \"\",\n \"type\": {\n \"uid\": \"\",\n \"name\": \"\"\n },\n \"file\": {\n \"uid\": \"\",\n \"name\": \"\"\n },\n \"folder\": {\n \"uid\": \"\",\n \"name\": \"\"\n },\n \"createdAt\": \"\",\n \"updatedAt\": \"\"\n}" + }, + { + "name": "Invalid status value", + "originalRequest": { + "method": "GET", + "header": [ + { + "description": "Added as a part of security scheme: bearer", + "key": "Authorization", + "value": "Bearer " + } + ], + "url": { + "raw": "{{baseUrl}}/notary/documents/:uid", + "host": [ + "{{baseUrl}}" + ], + "path": [ + "notary", + "documents", + ":uid" + ], + "variable": [ + { + "key": "uid" + } + ] + } + }, + "status": "Bad Request", + "code": 400, + "_postman_previewlanguage": "text", + "header": [], + "cookie": [], + "body": "" + } + ] + }, + { + "name": "Update an existing document", + "request": { + "auth": { + "type": "bearer", + "bearer": [ + { + "key": "token", + "value": "{{bearerToken}}", + "type": "string" + } + ] + }, + "method": "PUT", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + }, + { + "key": "Accept", + "value": "application/json" + } + ], + "body": { + "mode": "raw", + "raw": "{\n \"uid\": \"\",\n \"name\": \"\",\n \"type\": {\n \"uid\": \"\",\n \"name\": \"\"\n },\n \"file\": {\n \"uid\": \"\",\n \"name\": \"\"\n },\n \"folder\": {\n \"uid\": \"\",\n \"name\": \"\"\n },\n \"createdAt\": \"\",\n \"updatedAt\": \"\"\n}", + "options": { + "raw": { + "headerFamily": "json", + "language": "json" + } + } + }, + "url": { + "raw": "{{baseUrl}}/notary/documents/:uid", + "host": [ + "{{baseUrl}}" + ], + "path": [ + "notary", + "documents", + ":uid" + ], + "variable": [ + { + "key": "uid", + "value": "", + "description": "(Required) ID of document to return" + } + ] + }, + "description": "Returns a single document updated" + }, + "response": [ + { + "name": "successful operation", + "originalRequest": { + "method": "PUT", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + }, + { + "key": "Accept", + "value": "application/json" + }, + { + "description": "Added as a part of security scheme: bearer", + "key": "Authorization", + "value": "Bearer " + } + ], + "body": { + "mode": "raw", + "raw": "{\n \"uid\": \"\",\n \"name\": \"\",\n \"type\": {\n \"uid\": \"\",\n \"name\": \"\"\n },\n \"file\": {\n \"uid\": \"\",\n \"name\": \"\"\n },\n \"folder\": {\n \"uid\": \"\",\n \"name\": \"\"\n },\n \"createdAt\": \"\",\n \"updatedAt\": \"\"\n}", + "options": { + "raw": { + "headerFamily": "json", + "language": "json" + } + } + }, + "url": { + "raw": "{{baseUrl}}/notary/documents/:uid", + "host": [ + "{{baseUrl}}" + ], + "path": [ + "notary", + "documents", + ":uid" + ], + "variable": [ + { + "key": "uid" + } + ] + } + }, + "status": "OK", + "code": 200, + "_postman_previewlanguage": "json", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + } + ], + "cookie": [], + "body": "{\n \"uid\": \"\",\n \"name\": \"\",\n \"type\": {\n \"uid\": \"\",\n \"name\": \"\"\n },\n \"file\": {\n \"uid\": \"\",\n \"name\": \"\"\n },\n \"folder\": {\n \"uid\": \"\",\n \"name\": \"\"\n },\n \"createdAt\": \"\",\n \"updatedAt\": \"\"\n}" + }, + { + "name": "Invalid status value", + "originalRequest": { + "method": "PUT", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + }, + { + "description": "Added as a part of security scheme: bearer", + "key": "Authorization", + "value": "Bearer " + } + ], + "body": { + "mode": "raw", + "raw": "{\n \"uid\": \"\",\n \"name\": \"\",\n \"type\": {\n \"uid\": \"\",\n \"name\": \"\"\n },\n \"file\": {\n \"uid\": \"\",\n \"name\": \"\"\n },\n \"folder\": {\n \"uid\": \"\",\n \"name\": \"\"\n },\n \"createdAt\": \"\",\n \"updatedAt\": \"\"\n}", + "options": { + "raw": { + "headerFamily": "json", + "language": "json" + } + } + }, + "url": { + "raw": "{{baseUrl}}/notary/documents/:uid", + "host": [ + "{{baseUrl}}" + ], + "path": [ + "notary", + "documents", + ":uid" + ], + "variable": [ + { + "key": "uid" + } + ] + } + }, + "status": "Bad Request", + "code": 400, + "_postman_previewlanguage": "text", + "header": [], + "cookie": [], + "body": "" + } + ] + }, + { + "name": "Delete an existing document", + "request": { + "auth": { + "type": "bearer", + "bearer": [ + { + "key": "token", + "value": "{{bearerToken}}", + "type": "string" + } + ] + }, + "method": "DELETE", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + }, + { + "key": "Accept", + "value": "application/json" + } + ], + "body": { + "mode": "raw", + "raw": "{\n \"uid\": \"\",\n \"name\": \"\",\n \"type\": {\n \"uid\": \"\",\n \"name\": \"\"\n },\n \"file\": {\n \"uid\": \"\",\n \"name\": \"\"\n },\n \"folder\": {\n \"uid\": \"\",\n \"name\": \"\"\n },\n \"createdAt\": \"\",\n \"updatedAt\": \"\"\n}", + "options": { + "raw": { + "headerFamily": "json", + "language": "json" + } + } + }, + "url": { + "raw": "{{baseUrl}}/notary/documents/:uid", + "host": [ + "{{baseUrl}}" + ], + "path": [ + "notary", + "documents", + ":uid" + ], + "variable": [ + { + "key": "uid", + "value": "", + "description": "(Required) ID of document to return" + } + ] + }, + "description": "Returns a single document deleted" + }, + "response": [ + { + "name": "successful operation", + "originalRequest": { + "method": "DELETE", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + }, + { + "key": "Accept", + "value": "application/json" + }, + { + "description": "Added as a part of security scheme: bearer", + "key": "Authorization", + "value": "Bearer " + } + ], + "body": { + "mode": "raw", + "raw": "{\n \"uid\": \"\",\n \"name\": \"\",\n \"type\": {\n \"uid\": \"\",\n \"name\": \"\"\n },\n \"file\": {\n \"uid\": \"\",\n \"name\": \"\"\n },\n \"folder\": {\n \"uid\": \"\",\n \"name\": \"\"\n },\n \"createdAt\": \"\",\n \"updatedAt\": \"\"\n}", + "options": { + "raw": { + "headerFamily": "json", + "language": "json" + } + } + }, + "url": { + "raw": "{{baseUrl}}/notary/documents/:uid", + "host": [ + "{{baseUrl}}" + ], + "path": [ + "notary", + "documents", + ":uid" + ], + "variable": [ + { + "key": "uid" + } + ] + } + }, + "status": "OK", + "code": 200, + "_postman_previewlanguage": "json", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + } + ], + "cookie": [], + "body": "{\n \"uid\": \"\",\n \"name\": \"\",\n \"type\": {\n \"uid\": \"\",\n \"name\": \"\"\n },\n \"file\": {\n \"uid\": \"\",\n \"name\": \"\"\n },\n \"folder\": {\n \"uid\": \"\",\n \"name\": \"\"\n },\n \"createdAt\": \"\",\n \"updatedAt\": \"\"\n}" + }, + { + "name": "Invalid status value", + "originalRequest": { + "method": "DELETE", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + }, + { + "description": "Added as a part of security scheme: bearer", + "key": "Authorization", + "value": "Bearer " + } + ], + "body": { + "mode": "raw", + "raw": "{\n \"uid\": \"\",\n \"name\": \"\",\n \"type\": {\n \"uid\": \"\",\n \"name\": \"\"\n },\n \"file\": {\n \"uid\": \"\",\n \"name\": \"\"\n },\n \"folder\": {\n \"uid\": \"\",\n \"name\": \"\"\n },\n \"createdAt\": \"\",\n \"updatedAt\": \"\"\n}", + "options": { + "raw": { + "headerFamily": "json", + "language": "json" + } + } + }, + "url": { + "raw": "{{baseUrl}}/notary/documents/:uid", + "host": [ + "{{baseUrl}}" + ], + "path": [ + "notary", + "documents", + ":uid" + ], + "variable": [ + { + "key": "uid" + } + ] + } + }, + "status": "Bad Request", + "code": 400, + "_postman_previewlanguage": "text", + "header": [], + "cookie": [], + "body": "" + } + ] + } + ] + }, + { + "name": "Get all documents", + "request": { + "auth": { + "type": "bearer", + "bearer": [ + { + "key": "token", + "value": "{{bearerToken}}", + "type": "string" + } + ] + }, + "method": "GET", + "header": [ + { + "key": "Accept", + "value": "application/json" + } + ], + "url": { + "raw": "{{baseUrl}}/notary/documents", + "host": [ + "{{baseUrl}}" + ], + "path": [ + "notary", + "documents" + ] + } + }, + "response": [ + { + "name": "successful operation", + "originalRequest": { + "method": "GET", + "header": [ + { + "key": "Accept", + "value": "application/json" + }, + { + "description": "Added as a part of security scheme: bearer", + "key": "Authorization", + "value": "Bearer " + } + ], + "url": { + "raw": "{{baseUrl}}/notary/documents", + "host": [ + "{{baseUrl}}" + ], + "path": [ + "notary", + "documents" + ] + } + }, + "status": "OK", + "code": 200, + "_postman_previewlanguage": "json", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + } + ], + "cookie": [], + "body": "{\n \"uid\": \"\",\n \"name\": \"\",\n \"type\": {\n \"uid\": \"\",\n \"name\": \"\"\n },\n \"file\": {\n \"uid\": \"\",\n \"name\": \"\"\n },\n \"folder\": {\n \"uid\": \"\",\n \"name\": \"\"\n },\n \"createdAt\": \"\",\n \"updatedAt\": \"\"\n}" + }, + { + "name": "Invalid status value", + "originalRequest": { + "method": "GET", + "header": [ + { + "description": "Added as a part of security scheme: bearer", + "key": "Authorization", + "value": "Bearer " + } + ], + "url": { + "raw": "{{baseUrl}}/notary/documents", + "host": [ + "{{baseUrl}}" + ], + "path": [ + "notary", + "documents" + ] + } + }, + "status": "Bad Request", + "code": 400, + "_postman_previewlanguage": "text", + "header": [], + "cookie": [], + "body": "" + } + ] + }, + { + "name": "Add a new document", + "request": { + "auth": { + "type": "bearer", + "bearer": [ + { + "key": "token", + "value": "{{bearerToken}}", + "type": "string" + } + ] + }, + "method": "POST", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + }, + { + "key": "Accept", + "value": "application/json" + } + ], + "body": { + "mode": "raw", + "raw": "{\n \"uid\": \"\",\n \"name\": \"\",\n \"type\": {\n \"uid\": \"\",\n \"name\": \"\"\n },\n \"file\": {\n \"uid\": \"\",\n \"name\": \"\"\n },\n \"folder\": {\n \"uid\": \"\",\n \"name\": \"\"\n },\n \"createdAt\": \"\",\n \"updatedAt\": \"\"\n}", + "options": { + "raw": { + "headerFamily": "json", + "language": "json" + } + } + }, + "url": { + "raw": "{{baseUrl}}/notary/documents", + "host": [ + "{{baseUrl}}" + ], + "path": [ + "notary", + "documents" + ] + } + }, + "response": [ + { + "name": "successful operation", + "originalRequest": { + "method": "POST", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + }, + { + "key": "Accept", + "value": "application/json" + }, + { + "description": "Added as a part of security scheme: bearer", + "key": "Authorization", + "value": "Bearer " + } + ], + "body": { + "mode": "raw", + "raw": "{\n \"uid\": \"\",\n \"name\": \"\",\n \"type\": {\n \"uid\": \"\",\n \"name\": \"\"\n },\n \"file\": {\n \"uid\": \"\",\n \"name\": \"\"\n },\n \"folder\": {\n \"uid\": \"\",\n \"name\": \"\"\n },\n \"createdAt\": \"\",\n \"updatedAt\": \"\"\n}", + "options": { + "raw": { + "headerFamily": "json", + "language": "json" + } + } + }, + "url": { + "raw": "{{baseUrl}}/notary/documents", + "host": [ + "{{baseUrl}}" + ], + "path": [ + "notary", + "documents" + ] + } + }, + "status": "OK", + "code": 200, + "_postman_previewlanguage": "json", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + } + ], + "cookie": [], + "body": "{\n \"uid\": \"\",\n \"name\": \"\",\n \"type\": {\n \"uid\": \"\",\n \"name\": \"\"\n },\n \"file\": {\n \"uid\": \"\",\n \"name\": \"\"\n },\n \"folder\": {\n \"uid\": \"\",\n \"name\": \"\"\n },\n \"createdAt\": \"\",\n \"updatedAt\": \"\"\n}" + }, + { + "name": "Invalid status value", + "originalRequest": { + "method": "POST", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + }, + { + "description": "Added as a part of security scheme: bearer", + "key": "Authorization", + "value": "Bearer " + } + ], + "body": { + "mode": "raw", + "raw": "{\n \"uid\": \"\",\n \"name\": \"\",\n \"type\": {\n \"uid\": \"\",\n \"name\": \"\"\n },\n \"file\": {\n \"uid\": \"\",\n \"name\": \"\"\n },\n \"folder\": {\n \"uid\": \"\",\n \"name\": \"\"\n },\n \"createdAt\": \"\",\n \"updatedAt\": \"\"\n}", + "options": { + "raw": { + "headerFamily": "json", + "language": "json" + } + } + }, + "url": { + "raw": "{{baseUrl}}/notary/documents", + "host": [ + "{{baseUrl}}" + ], + "path": [ + "notary", + "documents" + ] + } + }, + "status": "Bad Request", + "code": 400, + "_postman_previewlanguage": "text", + "header": [], + "cookie": [], + "body": "" + } + ] + } + ] + }, + { + "name": "document-types", + "item": [ + { + "name": "{uid}", + "item": [ + { + "name": "Find document type by ID", + "request": { + "auth": { + "type": "bearer", + "bearer": [ + { + "key": "token", + "value": "{{bearerToken}}", + "type": "string" + } + ] + }, + "method": "GET", + "header": [ + { + "key": "Accept", + "value": "application/json" + } + ], + "url": { + "raw": "{{baseUrl}}/notary/document-types/:uid", + "host": [ + "{{baseUrl}}" + ], + "path": [ + "notary", + "document-types", + ":uid" + ], + "variable": [ + { + "key": "uid", + "value": "", + "description": "(Required) ID of document type to return" + } + ] + }, + "description": "Returns a single document type" + }, + "response": [ + { + "name": "successful operation", + "originalRequest": { + "method": "GET", + "header": [ + { + "key": "Accept", + "value": "application/json" + }, + { + "description": "Added as a part of security scheme: bearer", + "key": "Authorization", + "value": "Bearer " + } + ], + "url": { + "raw": "{{baseUrl}}/notary/document-types/:uid", + "host": [ + "{{baseUrl}}" + ], + "path": [ + "notary", + "document-types", + ":uid" + ], + "variable": [ + { + "key": "uid" + } + ] + } + }, + "status": "OK", + "code": 200, + "_postman_previewlanguage": "json", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + } + ], + "cookie": [], + "body": "{\n \"uid\": \"\",\n \"name\": \"\",\n \"office\": {\n \"uid\": \"\",\n \"name\": \"\"\n },\n \"createdAt\": \"\",\n \"updatedAt\": \"\"\n}" + }, + { + "name": "Invalid status value", + "originalRequest": { + "method": "GET", + "header": [ + { + "description": "Added as a part of security scheme: bearer", + "key": "Authorization", + "value": "Bearer " + } + ], + "url": { + "raw": "{{baseUrl}}/notary/document-types/:uid", + "host": [ + "{{baseUrl}}" + ], + "path": [ + "notary", + "document-types", + ":uid" + ], + "variable": [ + { + "key": "uid" + } + ] + } + }, + "status": "Bad Request", + "code": 400, + "_postman_previewlanguage": "text", + "header": [], + "cookie": [], + "body": "" + } + ] + }, + { + "name": "Update an existing document type", + "request": { + "auth": { + "type": "bearer", + "bearer": [ + { + "key": "token", + "value": "{{bearerToken}}", + "type": "string" + } + ] + }, + "method": "PUT", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + }, + { + "key": "Accept", + "value": "application/json" + } + ], + "body": { + "mode": "raw", + "raw": "{\n \"uid\": \"\",\n \"name\": \"\",\n \"office\": {\n \"uid\": \"\",\n \"name\": \"\"\n },\n \"createdAt\": \"\",\n \"updatedAt\": \"\"\n}", + "options": { + "raw": { + "headerFamily": "json", + "language": "json" + } + } + }, + "url": { + "raw": "{{baseUrl}}/notary/document-types/:uid", + "host": [ + "{{baseUrl}}" + ], + "path": [ + "notary", + "document-types", + ":uid" + ], + "variable": [ + { + "key": "uid", + "value": "", + "description": "(Required) ID of document type to return" + } + ] + }, + "description": "Returns a single document type updated" + }, + "response": [ + { + "name": "successful operation", + "originalRequest": { + "method": "PUT", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + }, + { + "key": "Accept", + "value": "application/json" + }, + { + "description": "Added as a part of security scheme: bearer", + "key": "Authorization", + "value": "Bearer " + } + ], + "body": { + "mode": "raw", + "raw": "{\n \"uid\": \"\",\n \"name\": \"\",\n \"office\": {\n \"uid\": \"\",\n \"name\": \"\"\n },\n \"createdAt\": \"\",\n \"updatedAt\": \"\"\n}", + "options": { + "raw": { + "headerFamily": "json", + "language": "json" + } + } + }, + "url": { + "raw": "{{baseUrl}}/notary/document-types/:uid", + "host": [ + "{{baseUrl}}" + ], + "path": [ + "notary", + "document-types", + ":uid" + ], + "variable": [ + { + "key": "uid" + } + ] + } + }, + "status": "OK", + "code": 200, + "_postman_previewlanguage": "json", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + } + ], + "cookie": [], + "body": "{\n \"uid\": \"\",\n \"name\": \"\",\n \"office\": {\n \"uid\": \"\",\n \"name\": \"\"\n },\n \"createdAt\": \"\",\n \"updatedAt\": \"\"\n}" + }, + { + "name": "Invalid status value", + "originalRequest": { + "method": "PUT", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + }, + { + "description": "Added as a part of security scheme: bearer", + "key": "Authorization", + "value": "Bearer " + } + ], + "body": { + "mode": "raw", + "raw": "{\n \"uid\": \"\",\n \"name\": \"\",\n \"office\": {\n \"uid\": \"\",\n \"name\": \"\"\n },\n \"createdAt\": \"\",\n \"updatedAt\": \"\"\n}", + "options": { + "raw": { + "headerFamily": "json", + "language": "json" + } + } + }, + "url": { + "raw": "{{baseUrl}}/notary/document-types/:uid", + "host": [ + "{{baseUrl}}" + ], + "path": [ + "notary", + "document-types", + ":uid" + ], + "variable": [ + { + "key": "uid" + } + ] + } + }, + "status": "Bad Request", + "code": 400, + "_postman_previewlanguage": "text", + "header": [], + "cookie": [], + "body": "" + } + ] + }, + { + "name": "Delete an existing document type", + "request": { + "auth": { + "type": "bearer", + "bearer": [ + { + "key": "token", + "value": "{{bearerToken}}", + "type": "string" + } + ] + }, + "method": "DELETE", + "header": [ + { + "key": "Accept", + "value": "application/json" + } + ], + "url": { + "raw": "{{baseUrl}}/notary/document-types/:uid", + "host": [ + "{{baseUrl}}" + ], + "path": [ + "notary", + "document-types", + ":uid" + ], + "variable": [ + { + "key": "uid", + "value": "", + "description": "(Required) ID of document type to return" + } + ] + }, + "description": "Returns a single document type deleted" + }, + "response": [ + { + "name": "successful operation", + "originalRequest": { + "method": "DELETE", + "header": [ + { + "key": "Accept", + "value": "application/json" + }, + { + "description": "Added as a part of security scheme: bearer", + "key": "Authorization", + "value": "Bearer " + } + ], + "url": { + "raw": "{{baseUrl}}/notary/document-types/:uid", + "host": [ + "{{baseUrl}}" + ], + "path": [ + "notary", + "document-types", + ":uid" + ], + "variable": [ + { + "key": "uid" + } + ] + } + }, + "status": "OK", + "code": 200, + "_postman_previewlanguage": "json", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + } + ], + "cookie": [], + "body": "{\n \"uid\": \"\",\n \"name\": \"\",\n \"office\": {\n \"uid\": \"\",\n \"name\": \"\"\n },\n \"createdAt\": \"\",\n \"updatedAt\": \"\"\n}" + }, + { + "name": "Invalid status value", + "originalRequest": { + "method": "DELETE", + "header": [ + { + "description": "Added as a part of security scheme: bearer", + "key": "Authorization", + "value": "Bearer " + } + ], + "url": { + "raw": "{{baseUrl}}/notary/document-types/:uid", + "host": [ + "{{baseUrl}}" + ], + "path": [ + "notary", + "document-types", + ":uid" + ], + "variable": [ + { + "key": "uid" + } + ] + } + }, + "status": "Bad Request", + "code": 400, + "_postman_previewlanguage": "text", + "header": [], + "cookie": [], + "body": "" + } + ] + } + ] + }, + { + "name": "Get all document types", + "request": { + "auth": { + "type": "bearer", + "bearer": [ + { + "key": "token", + "value": "{{bearerToken}}", + "type": "string" + } + ] + }, + "method": "GET", + "header": [ + { + "key": "Accept", + "value": "application/json" + } + ], + "url": { + "raw": "{{baseUrl}}/notary/document-types", + "host": [ + "{{baseUrl}}" + ], + "path": [ + "notary", + "document-types" + ] + } + }, + "response": [ + { + "name": "successful operation", + "originalRequest": { + "method": "GET", + "header": [ + { + "key": "Accept", + "value": "application/json" + }, + { + "description": "Added as a part of security scheme: bearer", + "key": "Authorization", + "value": "Bearer " + } + ], + "url": { + "raw": "{{baseUrl}}/notary/document-types", + "host": [ + "{{baseUrl}}" + ], + "path": [ + "notary", + "document-types" + ] + } + }, + "status": "OK", + "code": 200, + "_postman_previewlanguage": "json", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + } + ], + "cookie": [], + "body": "{\n \"uid\": \"\",\n \"name\": \"\",\n \"office\": {\n \"uid\": \"\",\n \"name\": \"\"\n },\n \"createdAt\": \"\",\n \"updatedAt\": \"\"\n}" + }, + { + "name": "Invalid status value", + "originalRequest": { + "method": "GET", + "header": [ + { + "description": "Added as a part of security scheme: bearer", + "key": "Authorization", + "value": "Bearer " + } + ], + "url": { + "raw": "{{baseUrl}}/notary/document-types", + "host": [ + "{{baseUrl}}" + ], + "path": [ + "notary", + "document-types" + ] + } + }, + "status": "Bad Request", + "code": 400, + "_postman_previewlanguage": "text", + "header": [], + "cookie": [], + "body": "" + } + ] + }, + { + "name": "Add a new document type", + "request": { + "auth": { + "type": "bearer", + "bearer": [ + { + "key": "token", + "value": "{{bearerToken}}", + "type": "string" + } + ] + }, + "method": "POST", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + }, + { + "key": "Accept", + "value": "application/json" + } + ], + "body": { + "mode": "raw", + "raw": "{\n \"uid\": \"\",\n \"name\": \"\",\n \"office\": {\n \"uid\": \"\",\n \"name\": \"\"\n },\n \"createdAt\": \"\",\n \"updatedAt\": \"\"\n}", + "options": { + "raw": { + "headerFamily": "json", + "language": "json" + } + } + }, + "url": { + "raw": "{{baseUrl}}/notary/document-types", + "host": [ + "{{baseUrl}}" + ], + "path": [ + "notary", + "document-types" + ] + } + }, + "response": [ + { + "name": "successful operation", + "originalRequest": { + "method": "POST", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + }, + { + "key": "Accept", + "value": "application/json" + }, + { + "description": "Added as a part of security scheme: bearer", + "key": "Authorization", + "value": "Bearer " + } + ], + "body": { + "mode": "raw", + "raw": "{\n \"uid\": \"\",\n \"name\": \"\",\n \"office\": {\n \"uid\": \"\",\n \"name\": \"\"\n },\n \"createdAt\": \"\",\n \"updatedAt\": \"\"\n}", + "options": { + "raw": { + "headerFamily": "json", + "language": "json" + } + } + }, + "url": { + "raw": "{{baseUrl}}/notary/document-types", + "host": [ + "{{baseUrl}}" + ], + "path": [ + "notary", + "document-types" + ] + } + }, + "status": "OK", + "code": 200, + "_postman_previewlanguage": "json", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + } + ], + "cookie": [], + "body": "{\n \"uid\": \"\",\n \"name\": \"\",\n \"office\": {\n \"uid\": \"\",\n \"name\": \"\"\n },\n \"createdAt\": \"\",\n \"updatedAt\": \"\"\n}" + }, + { + "name": "Invalid status value", + "originalRequest": { + "method": "POST", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + }, + { + "description": "Added as a part of security scheme: bearer", + "key": "Authorization", + "value": "Bearer " + } + ], + "body": { + "mode": "raw", + "raw": "{\n \"uid\": \"\",\n \"name\": \"\",\n \"office\": {\n \"uid\": \"\",\n \"name\": \"\"\n },\n \"createdAt\": \"\",\n \"updatedAt\": \"\"\n}", + "options": { + "raw": { + "headerFamily": "json", + "language": "json" + } + } + }, + "url": { + "raw": "{{baseUrl}}/notary/document-types", + "host": [ + "{{baseUrl}}" + ], + "path": [ + "notary", + "document-types" + ] + } + }, + "status": "Bad Request", + "code": 400, + "_postman_previewlanguage": "text", + "header": [], + "cookie": [], + "body": "" + } + ] + } + ] + }, + { + "name": "files", + "item": [ + { + "name": "{uid}", + "item": [ + { + "name": "Find file by ID", + "request": { + "auth": { + "type": "bearer", + "bearer": [ + { + "key": "token", + "value": "{{bearerToken}}", + "type": "string" + } + ] + }, + "method": "GET", + "header": [], + "url": { + "raw": "{{baseUrl}}/notary/files/:uid", + "host": [ + "{{baseUrl}}" + ], + "path": [ + "notary", + "files", + ":uid" + ], + "variable": [ + { + "key": "uid", + "value": "", + "description": "(Required) ID of file to return" + } + ] + }, + "description": "Returns a single file" + }, + "response": [ + { + "name": "successful operation", + "originalRequest": { + "method": "GET", + "header": [ + { + "description": "Added as a part of security scheme: bearer", + "key": "Authorization", + "value": "Bearer " + } + ], + "url": { + "raw": "{{baseUrl}}/notary/files/:uid", + "host": [ + "{{baseUrl}}" + ], + "path": [ + "notary", + "files", + ":uid" + ], + "variable": [ + { + "key": "uid" + } + ] + } + }, + "status": "OK", + "code": 200, + "_postman_previewlanguage": "text", + "header": [], + "cookie": [], + "body": "" + }, + { + "name": "Invalid status value", + "originalRequest": { + "method": "GET", + "header": [ + { + "description": "Added as a part of security scheme: bearer", + "key": "Authorization", + "value": "Bearer " + } + ], + "url": { + "raw": "{{baseUrl}}/notary/files/:uid", + "host": [ + "{{baseUrl}}" + ], + "path": [ + "notary", + "files", + ":uid" + ], + "variable": [ + { + "key": "uid" + } + ] + } + }, + "status": "Bad Request", + "code": 400, + "_postman_previewlanguage": "text", + "header": [], + "cookie": [], + "body": "" + } + ] + }, + { + "name": "Delete an existing file", + "request": { + "auth": { + "type": "bearer", + "bearer": [ + { + "key": "token", + "value": "{{bearerToken}}", + "type": "string" + } + ] + }, + "method": "DELETE", + "header": [], + "url": { + "raw": "{{baseUrl}}/notary/files/:uid", + "host": [ + "{{baseUrl}}" + ], + "path": [ + "notary", + "files", + ":uid" + ], + "variable": [ + { + "key": "uid", + "value": "", + "description": "(Required) ID of file to return" + } + ] + }, + "description": "Returns a single file deleted" + }, + "response": [ + { + "name": "successful operation", + "originalRequest": { + "method": "DELETE", + "header": [ + { + "description": "Added as a part of security scheme: bearer", + "key": "Authorization", + "value": "Bearer " + } + ], + "url": { + "raw": "{{baseUrl}}/notary/files/:uid", + "host": [ + "{{baseUrl}}" + ], + "path": [ + "notary", + "files", + ":uid" + ], + "variable": [ + { + "key": "uid" + } + ] + } + }, + "status": "OK", + "code": 200, + "_postman_previewlanguage": "text", + "header": [], + "cookie": [], + "body": "" + }, + { + "name": "Invalid status value", + "originalRequest": { + "method": "DELETE", + "header": [ + { + "description": "Added as a part of security scheme: bearer", + "key": "Authorization", + "value": "Bearer " + } + ], + "url": { + "raw": "{{baseUrl}}/notary/files/:uid", + "host": [ + "{{baseUrl}}" + ], + "path": [ + "notary", + "files", + ":uid" + ], + "variable": [ + { + "key": "uid" + } + ] + } + }, + "status": "Bad Request", + "code": 400, + "_postman_previewlanguage": "text", + "header": [], + "cookie": [], + "body": "" + } + ] + } + ] + }, + { + "name": "download", + "item": [ + { + "name": "{uid}", + "item": [ + { + "name": "Download file by ID", + "request": { + "auth": { + "type": "bearer", + "bearer": [ + { + "key": "token", + "value": "{{bearerToken}}", + "type": "string" + } + ] + }, + "method": "GET", + "header": [], + "url": { + "raw": "{{baseUrl}}/notary/files/download/:uid", + "host": [ + "{{baseUrl}}" + ], + "path": [ + "notary", + "files", + "download", + ":uid" + ], + "variable": [ + { + "key": "uid", + "value": "", + "description": "(Required) ID of file to return" + } + ] + }, + "description": "Returns a single file" + }, + "response": [ + { + "name": "successful operation", + "originalRequest": { + "method": "GET", + "header": [ + { + "description": "Added as a part of security scheme: bearer", + "key": "Authorization", + "value": "Bearer " + } + ], + "url": { + "raw": "{{baseUrl}}/notary/files/download/:uid", + "host": [ + "{{baseUrl}}" + ], + "path": [ + "notary", + "files", + "download", + ":uid" + ], + "variable": [ + { + "key": "uid" + } + ] + } + }, + "status": "OK", + "code": 200, + "_postman_previewlanguage": "text", + "header": [], + "cookie": [], + "body": "" + }, + { + "name": "Invalid status value", + "originalRequest": { + "method": "GET", + "header": [ + { + "description": "Added as a part of security scheme: bearer", + "key": "Authorization", + "value": "Bearer " + } + ], + "url": { + "raw": "{{baseUrl}}/notary/files/download/:uid", + "host": [ + "{{baseUrl}}" + ], + "path": [ + "notary", + "files", + "download", + ":uid" + ], + "variable": [ + { + "key": "uid" + } + ] + } + }, + "status": "Bad Request", + "code": 400, + "_postman_previewlanguage": "text", + "header": [], + "cookie": [], + "body": "" + } + ] + } + ] + } + ] + }, + { + "name": "Get all files", + "request": { + "auth": { + "type": "bearer", + "bearer": [ + { + "key": "token", + "value": "{{bearerToken}}", + "type": "string" + } + ] + }, + "method": "GET", + "header": [], + "url": { + "raw": "{{baseUrl}}/notary/files", + "host": [ + "{{baseUrl}}" + ], + "path": [ + "notary", + "files" + ] + } + }, + "response": [ + { + "name": "successful operation", + "originalRequest": { + "method": "GET", + "header": [ + { + "description": "Added as a part of security scheme: bearer", + "key": "Authorization", + "value": "Bearer " + } + ], + "url": { + "raw": "{{baseUrl}}/notary/files", + "host": [ + "{{baseUrl}}" + ], + "path": [ + "notary", + "files" + ] + } + }, + "status": "OK", + "code": 200, + "_postman_previewlanguage": "text", + "header": [], + "cookie": [], + "body": "" + }, + { + "name": "Invalid status value", + "originalRequest": { + "method": "GET", + "header": [ + { + "description": "Added as a part of security scheme: bearer", + "key": "Authorization", + "value": "Bearer " + } + ], + "url": { + "raw": "{{baseUrl}}/notary/files", + "host": [ + "{{baseUrl}}" + ], + "path": [ + "notary", + "files" + ] + } + }, + "status": "Bad Request", + "code": 400, + "_postman_previewlanguage": "text", + "header": [], + "cookie": [], + "body": "" + } + ] + } + ] + }, + { + "name": "anchors", + "item": [ + { + "name": "{uid}", + "item": [ + { + "name": "Find anchor by ID", + "request": { + "auth": { + "type": "bearer", + "bearer": [ + { + "key": "token", + "value": "{{bearerToken}}", + "type": "string" + } + ] + }, + "method": "GET", + "header": [], + "url": { + "raw": "{{baseUrl}}/notary/anchors/:uid", + "host": [ + "{{baseUrl}}" + ], + "path": [ + "notary", + "anchors", + ":uid" + ], + "variable": [ + { + "key": "uid", + "value": "", + "description": "(Required) ID of anchor to return" + } + ] + }, + "description": "Returns a single anchor" + }, + "response": [ + { + "name": "successful operation", + "originalRequest": { + "method": "GET", + "header": [ + { + "description": "Added as a part of security scheme: bearer", + "key": "Authorization", + "value": "Bearer " + } + ], + "url": { + "raw": "{{baseUrl}}/notary/anchors/:uid", + "host": [ + "{{baseUrl}}" + ], + "path": [ + "notary", + "anchors", + ":uid" + ], + "variable": [ + { + "key": "uid" + } + ] + } + }, + "status": "OK", + "code": 200, + "_postman_previewlanguage": "text", + "header": [], + "cookie": [], + "body": "" + }, + { + "name": "Invalid status value", + "originalRequest": { + "method": "GET", + "header": [ + { + "description": "Added as a part of security scheme: bearer", + "key": "Authorization", + "value": "Bearer " + } + ], + "url": { + "raw": "{{baseUrl}}/notary/anchors/:uid", + "host": [ + "{{baseUrl}}" + ], + "path": [ + "notary", + "anchors", + ":uid" + ], + "variable": [ + { + "key": "uid" + } + ] + } + }, + "status": "Bad Request", + "code": 400, + "_postman_previewlanguage": "text", + "header": [], + "cookie": [], + "body": "" + } + ] + }, + { + "name": "Add a new anchor", + "request": { + "auth": { + "type": "bearer", + "bearer": [ + { + "key": "token", + "value": "{{bearerToken}}", + "type": "string" + } + ] + }, + "method": "POST", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + } + ], + "body": { + "mode": "raw", + "raw": "{\n \"value\": \"reference #/components/schemas/Anchor not found in the OpenAPI spec\"\n}", + "options": { + "raw": { + "headerFamily": "json", + "language": "json" + } + } + }, + "url": { + "raw": "{{baseUrl}}/notary/anchors/:uid", + "host": [ + "{{baseUrl}}" + ], + "path": [ + "notary", + "anchors", + ":uid" + ], + "variable": [ + { + "key": "uid", + "value": "", + "description": "(Required) ID of anchor to return" + } + ] + } + }, + "response": [ + { + "name": "successful operation", + "originalRequest": { + "method": "POST", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + }, + { + "description": "Added as a part of security scheme: bearer", + "key": "Authorization", + "value": "Bearer " + } + ], + "body": { + "mode": "raw", + "raw": "{\n \"value\": \"reference #/components/schemas/Anchor not found in the OpenAPI spec\"\n}", + "options": { + "raw": { + "headerFamily": "json", + "language": "json" + } + } + }, + "url": { + "raw": "{{baseUrl}}/notary/anchors/:uid", + "host": [ + "{{baseUrl}}" + ], + "path": [ + "notary", + "anchors", + ":uid" + ], + "variable": [ + { + "key": "uid" + } + ] + } + }, + "status": "OK", + "code": 200, + "_postman_previewlanguage": "text", + "header": [], + "cookie": [], + "body": "" + }, + { + "name": "Invalid status value", + "originalRequest": { + "method": "POST", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + }, + { + "description": "Added as a part of security scheme: bearer", + "key": "Authorization", + "value": "Bearer " + } + ], + "body": { + "mode": "raw", + "raw": "{\n \"value\": \"reference #/components/schemas/Anchor not found in the OpenAPI spec\"\n}", + "options": { + "raw": { + "headerFamily": "json", + "language": "json" + } + } + }, + "url": { + "raw": "{{baseUrl}}/notary/anchors/:uid", + "host": [ + "{{baseUrl}}" + ], + "path": [ + "notary", + "anchors", + ":uid" + ], + "variable": [ + { + "key": "uid" + } + ] + } + }, + "status": "Bad Request", + "code": 400, + "_postman_previewlanguage": "text", + "header": [], + "cookie": [], + "body": "" + } + ] + } + ] + }, + { + "name": "download", + "item": [ + { + "name": "{uid}", + "item": [ + { + "name": "Download anchor by ID", + "request": { + "auth": { + "type": "bearer", + "bearer": [ + { + "key": "token", + "value": "{{bearerToken}}", + "type": "string" + } + ] + }, + "method": "GET", + "header": [], + "url": { + "raw": "{{baseUrl}}/notary/anchors/download/:uid", + "host": [ + "{{baseUrl}}" + ], + "path": [ + "notary", + "anchors", + "download", + ":uid" + ], + "variable": [ + { + "key": "uid", + "value": "", + "description": "(Required) ID of anchor to return" + } + ] + }, + "description": "Returns a single anchor" + }, + "response": [ + { + "name": "successful operation", + "originalRequest": { + "method": "GET", + "header": [ + { + "description": "Added as a part of security scheme: bearer", + "key": "Authorization", + "value": "Bearer " + } + ], + "url": { + "raw": "{{baseUrl}}/notary/anchors/download/:uid", + "host": [ + "{{baseUrl}}" + ], + "path": [ + "notary", + "anchors", + "download", + ":uid" + ], + "variable": [ + { + "key": "uid" + } + ] + } + }, + "status": "OK", + "code": 200, + "_postman_previewlanguage": "text", + "header": [], + "cookie": [], + "body": "" + }, + { + "name": "Invalid status value", + "originalRequest": { + "method": "GET", + "header": [ + { + "description": "Added as a part of security scheme: bearer", + "key": "Authorization", + "value": "Bearer " + } + ], + "url": { + "raw": "{{baseUrl}}/notary/anchors/download/:uid", + "host": [ + "{{baseUrl}}" + ], + "path": [ + "notary", + "anchors", + "download", + ":uid" + ], + "variable": [ + { + "key": "uid" + } + ] + } + }, + "status": "Bad Request", + "code": 400, + "_postman_previewlanguage": "text", + "header": [], + "cookie": [], + "body": "" + } + ] + } + ] + } + ] + }, + { + "name": "Get all anchors", + "request": { + "auth": { + "type": "bearer", + "bearer": [ + { + "key": "token", + "value": "{{bearerToken}}", + "type": "string" + } + ] + }, + "method": "GET", + "header": [], + "url": { + "raw": "{{baseUrl}}/notary/anchors", + "host": [ + "{{baseUrl}}" + ], + "path": [ + "notary", + "anchors" + ] + } + }, + "response": [ + { + "name": "successful operation", + "originalRequest": { + "method": "GET", + "header": [ + { + "description": "Added as a part of security scheme: bearer", + "key": "Authorization", + "value": "Bearer " + } + ], + "url": { + "raw": "{{baseUrl}}/notary/anchors", + "host": [ + "{{baseUrl}}" + ], + "path": [ + "notary", + "anchors" + ] + } + }, + "status": "OK", + "code": 200, + "_postman_previewlanguage": "text", + "header": [], + "cookie": [], + "body": "" + }, + { + "name": "Invalid status value", + "originalRequest": { + "method": "GET", + "header": [ + { + "description": "Added as a part of security scheme: bearer", + "key": "Authorization", + "value": "Bearer " + } + ], + "url": { + "raw": "{{baseUrl}}/notary/anchors", + "host": [ + "{{baseUrl}}" + ], + "path": [ + "notary", + "anchors" + ] + } + }, + "status": "Bad Request", + "code": 400, + "_postman_previewlanguage": "text", + "header": [], + "cookie": [], + "body": "" + } + ] + } + ] + }, + { + "name": "folders", + "item": [ + { + "name": "{uid}", + "item": [ + { + "name": "Update an existing folder", + "request": { + "auth": { + "type": "bearer", + "bearer": [ + { + "key": "token", + "value": "{{bearerToken}}", + "type": "string" + } + ] + }, + "method": "PUT", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + } + ], + "body": { + "mode": "raw", + "raw": "{\n \"uid\": \"\",\n \"deed\": {\n \"uid\": \"\",\n \"deed_type\": {\n \"uid\": \"\",\n \"name\": \"\",\n \"description\": \"\",\n \"archived_at\": \"\",\n \"createdAt\": \"\",\n \"updatedAt\": \"\"\n }\n },\n \"office\": {\n \"uid\": \"\",\n \"name\": \"\"\n },\n \"createdAt\": \"\",\n \"updatedAt\": \"\"\n}", + "options": { + "raw": { + "headerFamily": "json", + "language": "json" + } + } + }, + "url": { + "raw": "{{baseUrl}}/notary/folders/:uid", + "host": [ + "{{baseUrl}}" + ], + "path": [ + "notary", + "folders", + ":uid" + ], + "variable": [ + { + "key": "uid", + "value": "", + "description": "(Required) ID of folder to return" + } + ] + }, + "description": "Returns a single folder updated" + }, + "response": [ + { + "name": "successful operation", + "originalRequest": { + "method": "PUT", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + }, + { + "description": "Added as a part of security scheme: bearer", + "key": "Authorization", + "value": "Bearer " + } + ], + "body": { + "mode": "raw", + "raw": "{\n \"uid\": \"\",\n \"deed\": {\n \"uid\": \"\",\n \"deed_type\": {\n \"uid\": \"\",\n \"name\": \"\",\n \"description\": \"\",\n \"archived_at\": \"\",\n \"createdAt\": \"\",\n \"updatedAt\": \"\"\n }\n },\n \"office\": {\n \"uid\": \"\",\n \"name\": \"\"\n },\n \"createdAt\": \"\",\n \"updatedAt\": \"\"\n}", + "options": { + "raw": { + "headerFamily": "json", + "language": "json" + } + } + }, + "url": { + "raw": "{{baseUrl}}/notary/folders/:uid", + "host": [ + "{{baseUrl}}" + ], + "path": [ + "notary", + "folders", + ":uid" + ], + "variable": [ + { + "key": "uid" + } + ] + } + }, + "status": "OK", + "code": 200, + "_postman_previewlanguage": "text", + "header": [], + "cookie": [], + "body": "" + }, + { + "name": "Invalid status value", + "originalRequest": { + "method": "PUT", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + }, + { + "description": "Added as a part of security scheme: bearer", + "key": "Authorization", + "value": "Bearer " + } + ], + "body": { + "mode": "raw", + "raw": "{\n \"uid\": \"\",\n \"deed\": {\n \"uid\": \"\",\n \"deed_type\": {\n \"uid\": \"\",\n \"name\": \"\",\n \"description\": \"\",\n \"archived_at\": \"\",\n \"createdAt\": \"\",\n \"updatedAt\": \"\"\n }\n },\n \"office\": {\n \"uid\": \"\",\n \"name\": \"\"\n },\n \"createdAt\": \"\",\n \"updatedAt\": \"\"\n}", + "options": { + "raw": { + "headerFamily": "json", + "language": "json" + } + } + }, + "url": { + "raw": "{{baseUrl}}/notary/folders/:uid", + "host": [ + "{{baseUrl}}" + ], + "path": [ + "notary", + "folders", + ":uid" + ], + "variable": [ + { + "key": "uid" + } + ] + } + }, + "status": "Bad Request", + "code": 400, + "_postman_previewlanguage": "text", + "header": [], + "cookie": [], + "body": "" + } + ] + }, + { + "name": "Delete an existing folder", + "request": { + "auth": { + "type": "bearer", + "bearer": [ + { + "key": "token", + "value": "{{bearerToken}}", + "type": "string" + } + ] + }, + "method": "DELETE", + "header": [], + "url": { + "raw": "{{baseUrl}}/notary/folders/:uid", + "host": [ + "{{baseUrl}}" + ], + "path": [ + "notary", + "folders", + ":uid" + ], + "variable": [ + { + "key": "uid", + "value": "", + "description": "(Required) ID of folder to return" + } + ] + }, + "description": "Returns a single folder deleted" + }, + "response": [ + { + "name": "successful operation", + "originalRequest": { + "method": "DELETE", + "header": [ + { + "description": "Added as a part of security scheme: bearer", + "key": "Authorization", + "value": "Bearer " + } + ], + "url": { + "raw": "{{baseUrl}}/notary/folders/:uid", + "host": [ + "{{baseUrl}}" + ], + "path": [ + "notary", + "folders", + ":uid" + ], + "variable": [ + { + "key": "uid" + } + ] + } + }, + "status": "OK", + "code": 200, + "_postman_previewlanguage": "text", + "header": [], + "cookie": [], + "body": "" + }, + { + "name": "Invalid status value", + "originalRequest": { + "method": "DELETE", + "header": [ + { + "description": "Added as a part of security scheme: bearer", + "key": "Authorization", + "value": "Bearer " + } + ], + "url": { + "raw": "{{baseUrl}}/notary/folders/:uid", + "host": [ + "{{baseUrl}}" + ], + "path": [ + "notary", + "folders", + ":uid" + ], + "variable": [ + { + "key": "uid" + } + ] + } + }, + "status": "Bad Request", + "code": 400, + "_postman_previewlanguage": "text", + "header": [], + "cookie": [], + "body": "" + } + ] + }, + { + "name": "Find folder by ID", + "request": { + "auth": { + "type": "bearer", + "bearer": [ + { + "key": "token", + "value": "{{bearerToken}}", + "type": "string" + } + ] + }, + "method": "GET", + "header": [ + { + "key": "Accept", + "value": "application/json" + } + ], + "url": { + "raw": "{{baseUrl}}/notary/folders/:uid?uid=", + "host": [ + "{{baseUrl}}" + ], + "path": [ + "notary", + "folders", + ":uid" + ], + "query": [ + { + "key": "uid", + "value": "", + "description": "(Required) ID of folder to return" + } + ], + "variable": [ + { + "key": "uid" + } + ] + }, + "description": "Returns a single folder" + }, + "response": [ + { + "name": "successful operation", + "originalRequest": { + "method": "GET", + "header": [ + { + "key": "Accept", + "value": "application/json" + }, + { + "description": "Added as a part of security scheme: bearer", + "key": "Authorization", + "value": "Bearer " + } + ], + "url": { + "raw": "{{baseUrl}}/notary/folders/:uid?uid=", + "host": [ + "{{baseUrl}}" + ], + "path": [ + "notary", + "folders", + ":uid" + ], + "query": [ + { + "key": "uid", + "value": "", + "description": "(Required) ID of folder to return" + } + ], + "variable": [ + { + "key": "uid" + } + ] + } + }, + "status": "OK", + "code": 200, + "_postman_previewlanguage": "json", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + } + ], + "cookie": [], + "body": "[\n {\n \"uid\": \"\",\n \"deed\": {\n \"uid\": \"\",\n \"deed_type\": {\n \"uid\": \"\",\n \"name\": \"\",\n \"description\": \"\",\n \"archived_at\": \"\",\n \"createdAt\": \"\",\n \"updatedAt\": \"\"\n }\n },\n \"office\": {\n \"uid\": \"\",\n \"name\": \"\"\n },\n \"createdAt\": \"\",\n \"updatedAt\": \"\"\n },\n {\n \"uid\": \"\",\n \"deed\": {\n \"uid\": \"\",\n \"deed_type\": {\n \"uid\": \"\",\n \"name\": \"\",\n \"description\": \"\",\n \"archived_at\": \"\",\n \"createdAt\": \"\",\n \"updatedAt\": \"\"\n }\n },\n \"office\": {\n \"uid\": \"\",\n \"name\": \"\"\n },\n \"createdAt\": \"\",\n \"updatedAt\": \"\"\n }\n]" + }, + { + "name": "Invalid status value", + "originalRequest": { + "method": "GET", + "header": [ + { + "description": "Added as a part of security scheme: bearer", + "key": "Authorization", + "value": "Bearer " + } + ], + "url": { + "raw": "{{baseUrl}}/notary/folders/:uid?uid=", + "host": [ + "{{baseUrl}}" + ], + "path": [ + "notary", + "folders", + ":uid" + ], + "query": [ + { + "key": "uid", + "value": "", + "description": "(Required) ID of folder to return" + } + ], + "variable": [ + { + "key": "uid" + } + ] + } + }, + "status": "Bad Request", + "code": 400, + "_postman_previewlanguage": "text", + "header": [], + "cookie": [], + "body": "" + } + ] + } + ] + }, + { + "name": "Get all folders", + "request": { + "auth": { + "type": "bearer", + "bearer": [ + { + "key": "token", + "value": "{{bearerToken}}", + "type": "string" + } + ] + }, + "method": "GET", + "header": [], + "url": { + "raw": "{{baseUrl}}/notary/folders", + "host": [ + "{{baseUrl}}" + ], + "path": [ + "notary", + "folders" + ] + } + }, + "response": [ + { + "name": "successful operation", + "originalRequest": { + "method": "GET", + "header": [ + { + "description": "Added as a part of security scheme: bearer", + "key": "Authorization", + "value": "Bearer " + } + ], + "url": { + "raw": "{{baseUrl}}/notary/folders", + "host": [ + "{{baseUrl}}" + ], + "path": [ + "notary", + "folders" + ] + } + }, + "status": "OK", + "code": 200, + "_postman_previewlanguage": "text", + "header": [], + "cookie": [], + "body": "" + }, + { + "name": "Invalid status value", + "originalRequest": { + "method": "GET", + "header": [ + { + "description": "Added as a part of security scheme: bearer", + "key": "Authorization", + "value": "Bearer " + } + ], + "url": { + "raw": "{{baseUrl}}/notary/folders", + "host": [ + "{{baseUrl}}" + ], + "path": [ + "notary", + "folders" + ] + } + }, + "status": "Bad Request", + "code": 400, + "_postman_previewlanguage": "text", + "header": [], + "cookie": [], + "body": "" + } + ] + }, + { + "name": "Add a new folder", + "request": { + "auth": { + "type": "bearer", + "bearer": [ + { + "key": "token", + "value": "{{bearerToken}}", + "type": "string" + } + ] + }, + "method": "POST", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + } + ], + "body": { + "mode": "raw", + "raw": "{\n \"uid\": \"\",\n \"deed\": {\n \"uid\": \"\",\n \"deed_type\": {\n \"uid\": \"\",\n \"name\": \"\",\n \"description\": \"\",\n \"archived_at\": \"\",\n \"createdAt\": \"\",\n \"updatedAt\": \"\"\n }\n },\n \"office\": {\n \"uid\": \"\",\n \"name\": \"\"\n },\n \"createdAt\": \"\",\n \"updatedAt\": \"\"\n}", + "options": { + "raw": { + "headerFamily": "json", + "language": "json" + } + } + }, + "url": { + "raw": "{{baseUrl}}/notary/folders", + "host": [ + "{{baseUrl}}" + ], + "path": [ + "notary", + "folders" + ] + } + }, + "response": [ + { + "name": "successful operation", + "originalRequest": { + "method": "POST", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + }, + { + "description": "Added as a part of security scheme: bearer", + "key": "Authorization", + "value": "Bearer " + } + ], + "body": { + "mode": "raw", + "raw": "{\n \"uid\": \"\",\n \"deed\": {\n \"uid\": \"\",\n \"deed_type\": {\n \"uid\": \"\",\n \"name\": \"\",\n \"description\": \"\",\n \"archived_at\": \"\",\n \"createdAt\": \"\",\n \"updatedAt\": \"\"\n }\n },\n \"office\": {\n \"uid\": \"\",\n \"name\": \"\"\n },\n \"createdAt\": \"\",\n \"updatedAt\": \"\"\n}", + "options": { + "raw": { + "headerFamily": "json", + "language": "json" + } + } + }, + "url": { + "raw": "{{baseUrl}}/notary/folders", + "host": [ + "{{baseUrl}}" + ], + "path": [ + "notary", + "folders" + ] + } + }, + "status": "OK", + "code": 200, + "_postman_previewlanguage": "text", + "header": [], + "cookie": [], + "body": "" + }, + { + "name": "Invalid status value", + "originalRequest": { + "method": "POST", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + }, + { + "description": "Added as a part of security scheme: bearer", + "key": "Authorization", + "value": "Bearer " + } + ], + "body": { + "mode": "raw", + "raw": "{\n \"uid\": \"\",\n \"deed\": {\n \"uid\": \"\",\n \"deed_type\": {\n \"uid\": \"\",\n \"name\": \"\",\n \"description\": \"\",\n \"archived_at\": \"\",\n \"createdAt\": \"\",\n \"updatedAt\": \"\"\n }\n },\n \"office\": {\n \"uid\": \"\",\n \"name\": \"\"\n },\n \"createdAt\": \"\",\n \"updatedAt\": \"\"\n}", + "options": { + "raw": { + "headerFamily": "json", + "language": "json" + } + } + }, + "url": { + "raw": "{{baseUrl}}/notary/folders", + "host": [ + "{{baseUrl}}" + ], + "path": [ + "notary", + "folders" + ] + } + }, + "status": "Bad Request", + "code": 400, + "_postman_previewlanguage": "text", + "header": [], + "cookie": [], + "body": "" + } + ] + } + ] + }, + { + "name": "office-roles", + "item": [ + { + "name": "{uid}", + "item": [ + { + "name": "Find office role by ID", + "request": { + "auth": { + "type": "bearer", + "bearer": [ + { + "key": "token", + "value": "{{bearerToken}}", + "type": "string" + } + ] + }, + "method": "GET", + "header": [ + { + "key": "Accept", + "value": "application/json" + } + ], + "url": { + "raw": "{{baseUrl}}/notary/office-roles/:uid?uid=", + "host": [ + "{{baseUrl}}" + ], + "path": [ + "notary", + "office-roles", + ":uid" + ], + "query": [ + { + "key": "uid", + "value": "", + "description": "(Required) ID of office role to return" + } + ], + "variable": [ + { + "key": "uid" + } + ] + }, + "description": "Returns a single office role" + }, + "response": [ + { + "name": "successful operation", + "originalRequest": { + "method": "GET", + "header": [ + { + "key": "Accept", + "value": "application/json" + }, + { + "description": "Added as a part of security scheme: bearer", + "key": "Authorization", + "value": "Bearer " + } + ], + "url": { + "raw": "{{baseUrl}}/notary/office-roles/:uid?uid=", + "host": [ + "{{baseUrl}}" + ], + "path": [ + "notary", + "office-roles", + ":uid" + ], + "query": [ + { + "key": "uid", + "value": "", + "description": "(Required) ID of office role to return" + } + ], + "variable": [ + { + "key": "uid" + } + ] + } + }, + "status": "OK", + "code": 200, + "_postman_previewlanguage": "json", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + } + ], + "cookie": [], + "body": "[\n {\n \"uid\": \"\",\n \"name\": \"\",\n \"rules\": [\n {\n \"uid\": \"\",\n \"name\": \"\"\n },\n {\n \"uid\": \"\",\n \"name\": \"\"\n }\n ],\n \"office\": {\n \"uid\": \"\",\n \"name\": \"\"\n }\n },\n {\n \"uid\": \"\",\n \"name\": \"\",\n \"rules\": [\n {\n \"uid\": \"\",\n \"name\": \"\"\n },\n {\n \"uid\": \"\",\n \"name\": \"\"\n }\n ],\n \"office\": {\n \"uid\": \"\",\n \"name\": \"\"\n }\n }\n]" + }, + { + "name": "Invalid status value", + "originalRequest": { + "method": "GET", + "header": [ + { + "description": "Added as a part of security scheme: bearer", + "key": "Authorization", + "value": "Bearer " + } + ], + "url": { + "raw": "{{baseUrl}}/notary/office-roles/:uid?uid=", + "host": [ + "{{baseUrl}}" + ], + "path": [ + "notary", + "office-roles", + ":uid" + ], + "query": [ + { + "key": "uid", + "value": "", + "description": "(Required) ID of office role to return" + } + ], + "variable": [ + { + "key": "uid" + } + ] + } + }, + "status": "Bad Request", + "code": 400, + "_postman_previewlanguage": "text", + "header": [], + "cookie": [], + "body": "" + } + ] + } + ] + }, + { + "name": "Get all office roles", + "request": { + "auth": { + "type": "bearer", + "bearer": [ + { + "key": "token", + "value": "{{bearerToken}}", + "type": "string" + } + ] + }, + "method": "GET", + "header": [ + { + "key": "Accept", + "value": "application/json" + } + ], + "url": { + "raw": "{{baseUrl}}/notary/office-roles", + "host": [ + "{{baseUrl}}" + ], + "path": [ + "notary", + "office-roles" + ] + } + }, + "response": [ + { + "name": "successful operation", + "originalRequest": { + "method": "GET", + "header": [ + { + "key": "Accept", + "value": "application/json" + }, + { + "description": "Added as a part of security scheme: bearer", + "key": "Authorization", + "value": "Bearer " + } + ], + "url": { + "raw": "{{baseUrl}}/notary/office-roles", + "host": [ + "{{baseUrl}}" + ], + "path": [ + "notary", + "office-roles" + ] + } + }, + "status": "OK", + "code": 200, + "_postman_previewlanguage": "json", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + } + ], + "cookie": [], + "body": "[\n {\n \"uid\": \"\",\n \"name\": \"\",\n \"rules\": [\n {\n \"uid\": \"\",\n \"name\": \"\"\n },\n {\n \"uid\": \"\",\n \"name\": \"\"\n }\n ],\n \"office\": {\n \"uid\": \"\",\n \"name\": \"\"\n }\n },\n {\n \"uid\": \"\",\n \"name\": \"\",\n \"rules\": [\n {\n \"uid\": \"\",\n \"name\": \"\"\n },\n {\n \"uid\": \"\",\n \"name\": \"\"\n }\n ],\n \"office\": {\n \"uid\": \"\",\n \"name\": \"\"\n }\n }\n]" + }, + { + "name": "Invalid status value", + "originalRequest": { + "method": "GET", + "header": [ + { + "description": "Added as a part of security scheme: bearer", + "key": "Authorization", + "value": "Bearer " + } + ], + "url": { + "raw": "{{baseUrl}}/notary/office-roles", + "host": [ + "{{baseUrl}}" + ], + "path": [ + "notary", + "office-roles" + ] + } + }, + "status": "Bad Request", + "code": 400, + "_postman_previewlanguage": "text", + "header": [], + "cookie": [], + "body": "" + } + ] + } + ] + }, + { + "name": "offices", + "item": [ + { + "name": "{uid}", + "item": [ + { + "name": "Find office by ID", + "request": { + "auth": { + "type": "bearer", + "bearer": [ + { + "key": "token", + "value": "{{bearerToken}}", + "type": "string" + } + ] + }, + "method": "GET", + "header": [ + { + "key": "Accept", + "value": "application/json" + } + ], + "url": { + "raw": "{{baseUrl}}/notary/offices/:uid?uid=", + "host": [ + "{{baseUrl}}" + ], + "path": [ + "notary", + "offices", + ":uid" + ], + "query": [ + { + "key": "uid", + "value": "", + "description": "(Required) ID of office to return" + } + ], + "variable": [ + { + "key": "uid" + } + ] + }, + "description": "Returns a single office" + }, + "response": [ + { + "name": "successful operation", + "originalRequest": { + "method": "GET", + "header": [ + { + "key": "Accept", + "value": "application/json" + }, + { + "description": "Added as a part of security scheme: bearer", + "key": "Authorization", + "value": "Bearer " + } + ], + "url": { + "raw": "{{baseUrl}}/notary/offices/:uid?uid=", + "host": [ + "{{baseUrl}}" + ], + "path": [ + "notary", + "offices", + ":uid" + ], + "query": [ + { + "key": "uid", + "value": "", + "description": "(Required) ID of office to return" + } + ], + "variable": [ + { + "key": "uid" + } + ] + } + }, + "status": "OK", + "code": 200, + "_postman_previewlanguage": "json", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + } + ], + "cookie": [], + "body": "[\n {\n \"uid\": \"\",\n \"name\": \"\"\n },\n {\n \"uid\": \"\",\n \"name\": \"\"\n }\n]" + }, + { + "name": "Invalid status value", + "originalRequest": { + "method": "GET", + "header": [ + { + "description": "Added as a part of security scheme: bearer", + "key": "Authorization", + "value": "Bearer " + } + ], + "url": { + "raw": "{{baseUrl}}/notary/offices/:uid?uid=", + "host": [ + "{{baseUrl}}" + ], + "path": [ + "notary", + "offices", + ":uid" + ], + "query": [ + { + "key": "uid", + "value": "", + "description": "(Required) ID of office to return" + } + ], + "variable": [ + { + "key": "uid" + } + ] + } + }, + "status": "Bad Request", + "code": 400, + "_postman_previewlanguage": "text", + "header": [], + "cookie": [], + "body": "" + } + ] + } + ] + }, + { + "name": "Get all offices", + "request": { + "auth": { + "type": "bearer", + "bearer": [ + { + "key": "token", + "value": "{{bearerToken}}", + "type": "string" + } + ] + }, + "method": "GET", + "header": [ + { + "key": "Accept", + "value": "application/json" + } + ], + "url": { + "raw": "{{baseUrl}}/notary/offices", + "host": [ + "{{baseUrl}}" + ], + "path": [ + "notary", + "offices" + ] + } + }, + "response": [ + { + "name": "successful operation", + "originalRequest": { + "method": "GET", + "header": [ + { + "key": "Accept", + "value": "application/json" + }, + { + "description": "Added as a part of security scheme: bearer", + "key": "Authorization", + "value": "Bearer " + } + ], + "url": { + "raw": "{{baseUrl}}/notary/offices", + "host": [ + "{{baseUrl}}" + ], + "path": [ + "notary", + "offices" + ] + } + }, + "status": "OK", + "code": 200, + "_postman_previewlanguage": "json", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + } + ], + "cookie": [], + "body": "[\n {\n \"uid\": \"\",\n \"name\": \"\"\n },\n {\n \"uid\": \"\",\n \"name\": \"\"\n }\n]" + }, + { + "name": "Invalid status value", + "originalRequest": { + "method": "GET", + "header": [ + { + "description": "Added as a part of security scheme: bearer", + "key": "Authorization", + "value": "Bearer " + } + ], + "url": { + "raw": "{{baseUrl}}/notary/offices", + "host": [ + "{{baseUrl}}" + ], + "path": [ + "notary", + "offices" + ] + } + }, + "status": "Bad Request", + "code": 400, + "_postman_previewlanguage": "text", + "header": [], + "cookie": [], + "body": "" + } + ] + } + ] + }, + { + "name": "roles", + "item": [ + { + "name": "{uid}", + "item": [ + { + "name": "Find role by ID", + "request": { + "auth": { + "type": "bearer", + "bearer": [ + { + "key": "token", + "value": "{{bearerToken}}", + "type": "string" + } + ] + }, + "method": "GET", + "header": [ + { + "key": "Accept", + "value": "application/json" + } + ], + "url": { + "raw": "{{baseUrl}}/notary/roles/:uid?uid=", + "host": [ + "{{baseUrl}}" + ], + "path": [ + "notary", + "roles", + ":uid" + ], + "query": [ + { + "key": "uid", + "value": "", + "description": "(Required) ID of role to return" + } + ], + "variable": [ + { + "key": "uid" + } + ] + }, + "description": "Returns a single role" + }, + "response": [ + { + "name": "successful operation", + "originalRequest": { + "method": "GET", + "header": [ + { + "key": "Accept", + "value": "application/json" + }, + { + "description": "Added as a part of security scheme: bearer", + "key": "Authorization", + "value": "Bearer " + } + ], + "url": { + "raw": "{{baseUrl}}/notary/roles/:uid?uid=", + "host": [ + "{{baseUrl}}" + ], + "path": [ + "notary", + "roles", + ":uid" + ], + "query": [ + { + "key": "uid", + "value": "", + "description": "(Required) ID of role to return" + } + ], + "variable": [ + { + "key": "uid" + } + ] + } + }, + "status": "OK", + "code": 200, + "_postman_previewlanguage": "json", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + } + ], + "cookie": [], + "body": "[\n {\n \"uid\": \"\",\n \"name\": \"\",\n \"rules\": [\n {\n \"uid\": \"\",\n \"name\": \"\"\n },\n {\n \"uid\": \"\",\n \"name\": \"\"\n }\n ]\n },\n {\n \"uid\": \"\",\n \"name\": \"\",\n \"rules\": [\n {\n \"uid\": \"\",\n \"name\": \"\"\n },\n {\n \"uid\": \"\",\n \"name\": \"\"\n }\n ]\n }\n]" + }, + { + "name": "Invalid status value", + "originalRequest": { + "method": "GET", + "header": [ + { + "description": "Added as a part of security scheme: bearer", + "key": "Authorization", + "value": "Bearer " + } + ], + "url": { + "raw": "{{baseUrl}}/notary/roles/:uid?uid=", + "host": [ + "{{baseUrl}}" + ], + "path": [ + "notary", + "roles", + ":uid" + ], + "query": [ + { + "key": "uid", + "value": "", + "description": "(Required) ID of role to return" + } + ], + "variable": [ + { + "key": "uid" + } + ] + } + }, + "status": "Bad Request", + "code": 400, + "_postman_previewlanguage": "text", + "header": [], + "cookie": [], + "body": "" + } + ] + } + ] + }, + { + "name": "Get all roles", + "request": { + "auth": { + "type": "bearer", + "bearer": [ + { + "key": "token", + "value": "{{bearerToken}}", + "type": "string" + } + ] + }, + "method": "GET", + "header": [ + { + "key": "Accept", + "value": "application/json" + } + ], + "url": { + "raw": "{{baseUrl}}/notary/roles", + "host": [ + "{{baseUrl}}" + ], + "path": [ + "notary", + "roles" + ] + } + }, + "response": [ + { + "name": "successful operation", + "originalRequest": { + "method": "GET", + "header": [ + { + "key": "Accept", + "value": "application/json" + }, + { + "description": "Added as a part of security scheme: bearer", + "key": "Authorization", + "value": "Bearer " + } + ], + "url": { + "raw": "{{baseUrl}}/notary/roles", + "host": [ + "{{baseUrl}}" + ], + "path": [ + "notary", + "roles" + ] + } + }, + "status": "OK", + "code": 200, + "_postman_previewlanguage": "json", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + } + ], + "cookie": [], + "body": "[\n {\n \"uid\": \"\",\n \"name\": \"\",\n \"rules\": [\n {\n \"uid\": \"\",\n \"name\": \"\"\n },\n {\n \"uid\": \"\",\n \"name\": \"\"\n }\n ]\n },\n {\n \"uid\": \"\",\n \"name\": \"\",\n \"rules\": [\n {\n \"uid\": \"\",\n \"name\": \"\"\n },\n {\n \"uid\": \"\",\n \"name\": \"\"\n }\n ]\n }\n]" + }, + { + "name": "Invalid status value", + "originalRequest": { + "method": "GET", + "header": [ + { + "description": "Added as a part of security scheme: bearer", + "key": "Authorization", + "value": "Bearer " + } + ], + "url": { + "raw": "{{baseUrl}}/notary/roles", + "host": [ + "{{baseUrl}}" + ], + "path": [ + "notary", + "roles" + ] + } + }, + "status": "Bad Request", + "code": 400, + "_postman_previewlanguage": "text", + "header": [], + "cookie": [], + "body": "" + } + ] + } + ] + }, + { + "name": "notifications", + "item": [ + { + "name": "{uid}", + "item": [ + { + "name": "Update an existing notification", + "request": { + "auth": { + "type": "bearer", + "bearer": [ + { + "key": "token", + "value": "{{bearerToken}}", + "type": "string" + } + ] + }, + "method": "PUT", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + } + ], + "body": { + "mode": "raw", + "raw": "{\n \"value\": \"reference #/components/schemas/Notification not found in the OpenAPI spec\"\n}", + "options": { + "raw": { + "headerFamily": "json", + "language": "json" + } + } + }, + "url": { + "raw": "{{baseUrl}}/notary/notifications/:uid", + "host": [ + "{{baseUrl}}" + ], + "path": [ + "notary", + "notifications", + ":uid" + ], + "variable": [ + { + "key": "uid", + "value": "", + "description": "(Required) ID of notification to return" + } + ] + }, + "description": "Returns a single notification updated" + }, + "response": [ + { + "name": "successful operation", + "originalRequest": { + "method": "PUT", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + }, + { + "description": "Added as a part of security scheme: bearer", + "key": "Authorization", + "value": "Bearer " + } + ], + "body": { + "mode": "raw", + "raw": "{\n \"value\": \"reference #/components/schemas/Notification not found in the OpenAPI spec\"\n}", + "options": { + "raw": { + "headerFamily": "json", + "language": "json" + } + } + }, + "url": { + "raw": "{{baseUrl}}/notary/notifications/:uid", + "host": [ + "{{baseUrl}}" + ], + "path": [ + "notary", + "notifications", + ":uid" + ], + "variable": [ + { + "key": "uid" + } + ] + } + }, + "status": "OK", + "code": 200, + "_postman_previewlanguage": "text", + "header": [], + "cookie": [], + "body": "" + }, + { + "name": "Invalid status value", + "originalRequest": { + "method": "PUT", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + }, + { + "description": "Added as a part of security scheme: bearer", + "key": "Authorization", + "value": "Bearer " + } + ], + "body": { + "mode": "raw", + "raw": "{\n \"value\": \"reference #/components/schemas/Notification not found in the OpenAPI spec\"\n}", + "options": { + "raw": { + "headerFamily": "json", + "language": "json" + } + } + }, + "url": { + "raw": "{{baseUrl}}/notary/notifications/:uid", + "host": [ + "{{baseUrl}}" + ], + "path": [ + "notary", + "notifications", + ":uid" + ], + "variable": [ + { + "key": "uid" + } + ] + } + }, + "status": "Bad Request", + "code": 400, + "_postman_previewlanguage": "text", + "header": [], + "cookie": [], + "body": "" + } + ] + }, + { + "name": "Find notification by ID", + "request": { + "auth": { + "type": "bearer", + "bearer": [ + { + "key": "token", + "value": "{{bearerToken}}", + "type": "string" + } + ] + }, + "method": "GET", + "header": [ + { + "key": "Accept", + "value": "application/json" + } + ], + "url": { + "raw": "{{baseUrl}}/notary/notifications/:uid?uid=", + "host": [ + "{{baseUrl}}" + ], + "path": [ + "notary", + "notifications", + ":uid" + ], + "query": [ + { + "key": "uid", + "value": "", + "description": "(Required) ID of notification to return" + } + ], + "variable": [ + { + "key": "uid" + } + ] + }, + "description": "Returns a single notification" + }, + "response": [ + { + "name": "successful operation", + "originalRequest": { + "method": "GET", + "header": [ + { + "key": "Accept", + "value": "application/json" + }, + { + "description": "Added as a part of security scheme: bearer", + "key": "Authorization", + "value": "Bearer " + } + ], + "url": { + "raw": "{{baseUrl}}/notary/notifications/:uid?uid=", + "host": [ + "{{baseUrl}}" + ], + "path": [ + "notary", + "notifications", + ":uid" + ], + "query": [ + { + "key": "uid", + "value": "", + "description": "(Required) ID of notification to return" + } + ], + "variable": [ + { + "key": "uid" + } + ] + } + }, + "status": "OK", + "code": 200, + "_postman_previewlanguage": "json", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + } + ], + "cookie": [], + "body": "[\n {\n \"value\": \"reference #/components/schemas/Notification not found in the OpenAPI spec\"\n },\n {\n \"value\": \"reference #/components/schemas/Notification not found in the OpenAPI spec\"\n }\n]" + }, + { + "name": "Invalid status value", + "originalRequest": { + "method": "GET", + "header": [ + { + "description": "Added as a part of security scheme: bearer", + "key": "Authorization", + "value": "Bearer " + } + ], + "url": { + "raw": "{{baseUrl}}/notary/notifications/:uid?uid=", + "host": [ + "{{baseUrl}}" + ], + "path": [ + "notary", + "notifications", + ":uid" + ], + "query": [ + { + "key": "uid", + "value": "", + "description": "(Required) ID of notification to return" + } + ], + "variable": [ + { + "key": "uid" + } + ] + } + }, + "status": "Bad Request", + "code": 400, + "_postman_previewlanguage": "text", + "header": [], + "cookie": [], + "body": "" + } + ] + } + ] + }, + { + "name": "Get all notifications", + "request": { + "auth": { + "type": "bearer", + "bearer": [ + { + "key": "token", + "value": "{{bearerToken}}", + "type": "string" + } + ] + }, + "method": "GET", + "header": [ + { + "key": "Accept", + "value": "application/json" + } + ], + "url": { + "raw": "{{baseUrl}}/notary/notifications", + "host": [ + "{{baseUrl}}" + ], + "path": [ + "notary", + "notifications" + ] + } + }, + "response": [ + { + "name": "successful operation", + "originalRequest": { + "method": "GET", + "header": [ + { + "key": "Accept", + "value": "application/json" + }, + { + "description": "Added as a part of security scheme: bearer", + "key": "Authorization", + "value": "Bearer " + } + ], + "url": { + "raw": "{{baseUrl}}/notary/notifications", + "host": [ + "{{baseUrl}}" + ], + "path": [ + "notary", + "notifications" + ] + } + }, + "status": "OK", + "code": 200, + "_postman_previewlanguage": "json", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + } + ], + "cookie": [], + "body": "[\n {\n \"value\": \"reference #/components/schemas/Notification not found in the OpenAPI spec\"\n },\n {\n \"value\": \"reference #/components/schemas/Notification not found in the OpenAPI spec\"\n }\n]" + }, + { + "name": "Invalid status value", + "originalRequest": { + "method": "GET", + "header": [ + { + "description": "Added as a part of security scheme: bearer", + "key": "Authorization", + "value": "Bearer " + } + ], + "url": { + "raw": "{{baseUrl}}/notary/notifications", + "host": [ + "{{baseUrl}}" + ], + "path": [ + "notary", + "notifications" + ] + } + }, + "status": "Bad Request", + "code": 400, + "_postman_previewlanguage": "text", + "header": [], + "cookie": [], + "body": "" + } + ] + } + ] + }, + { + "name": "users", + "item": [ + { + "name": "{uid}", + "item": [ + { + "name": "Find user by ID", + "request": { + "auth": { + "type": "bearer", + "bearer": [ + { + "key": "token", + "value": "{{bearerToken}}", + "type": "string" + } + ] + }, + "method": "GET", + "header": [ + { + "key": "Accept", + "value": "application/json" + } + ], + "url": { + "raw": "{{baseUrl}}/notary/users/:uid?uid=", + "host": [ + "{{baseUrl}}" + ], + "path": [ + "notary", + "users", + ":uid" + ], + "query": [ + { + "key": "uid", + "value": "", + "description": "(Required) ID of user to return" + } + ], + "variable": [ + { + "key": "uid" + } + ] + } + }, + "response": [ + { + "name": "successful operation", + "originalRequest": { + "method": "GET", + "header": [ + { + "key": "Accept", + "value": "application/json" + }, + { + "description": "Added as a part of security scheme: bearer", + "key": "Authorization", + "value": "Bearer " + } + ], + "url": { + "raw": "{{baseUrl}}/notary/users/:uid?uid=", + "host": [ + "{{baseUrl}}" + ], + "path": [ + "notary", + "users", + ":uid" + ], + "query": [ + { + "key": "uid", + "value": "", + "description": "(Required) ID of user to return" + } + ], + "variable": [ + { + "key": "uid" + } + ] + } + }, + "status": "OK", + "code": 200, + "_postman_previewlanguage": "json", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + } + ], + "cookie": [], + "body": "[\n {\n \"uid\": \"\",\n \"idNot\": \"\",\n \"contact\": {\n \"first_name\": \"\",\n \"last_name\": \"\",\n \"email\": \"\",\n \"cell_phone_number\": \"\"\n },\n \"office_folders\": [\n {\n \"uid\": \"\",\n \"name\": \"\",\n \"office\": {\n \"uid\": \"\",\n \"name\": \"\"\n }\n },\n {\n \"uid\": \"\",\n \"name\": \"\",\n \"office\": {\n \"uid\": \"\",\n \"name\": \"\"\n }\n }\n ],\n \"role\": {\n \"uid\": \"\",\n \"name\": \"\",\n \"rules\": [\n {\n \"uid\": \"\",\n \"name\": \"\"\n },\n {\n \"uid\": \"\",\n \"name\": \"\"\n }\n ]\n },\n \"office_role\": {\n \"uid\": \"\",\n \"name\": \"\",\n \"rules\": [\n {\n \"uid\": \"\",\n \"name\": \"\"\n },\n {\n \"uid\": \"\",\n \"name\": \"\"\n }\n ],\n \"office\": {\n \"uid\": \"\",\n \"name\": \"\"\n }\n }\n },\n {\n \"uid\": \"\",\n \"idNot\": \"\",\n \"contact\": {\n \"first_name\": \"\",\n \"last_name\": \"\",\n \"email\": \"\",\n \"cell_phone_number\": \"\"\n },\n \"office_folders\": [\n {\n \"uid\": \"\",\n \"name\": \"\",\n \"office\": {\n \"uid\": \"\",\n \"name\": \"\"\n }\n },\n {\n \"uid\": \"\",\n \"name\": \"\",\n \"office\": {\n \"uid\": \"\",\n \"name\": \"\"\n }\n }\n ],\n \"role\": {\n \"uid\": \"\",\n \"name\": \"\",\n \"rules\": [\n {\n \"uid\": \"\",\n \"name\": \"\"\n },\n {\n \"uid\": \"\",\n \"name\": \"\"\n }\n ]\n },\n \"office_role\": {\n \"uid\": \"\",\n \"name\": \"\",\n \"rules\": [\n {\n \"uid\": \"\",\n \"name\": \"\"\n },\n {\n \"uid\": \"\",\n \"name\": \"\"\n }\n ],\n \"office\": {\n \"uid\": \"\",\n \"name\": \"\"\n }\n }\n }\n]" + }, + { + "name": "Invalid status value", + "originalRequest": { + "method": "GET", + "header": [ + { + "description": "Added as a part of security scheme: bearer", + "key": "Authorization", + "value": "Bearer " + } + ], + "url": { + "raw": "{{baseUrl}}/notary/users/:uid?uid=", + "host": [ + "{{baseUrl}}" + ], + "path": [ + "notary", + "users", + ":uid" + ], + "query": [ + { + "key": "uid", + "value": "", + "description": "(Required) ID of user to return" + } + ], + "variable": [ + { + "key": "uid" + } + ] + } + }, + "status": "Bad Request", + "code": 400, + "_postman_previewlanguage": "text", + "header": [], + "cookie": [], + "body": "" + } + ] + } + ] + }, + { + "name": "Get all users", + "request": { + "auth": { + "type": "bearer", + "bearer": [ + { + "key": "token", + "value": "{{bearerToken}}", + "type": "string" + } + ] + }, + "method": "GET", + "header": [ + { + "key": "Accept", + "value": "application/json" + } + ], + "url": { + "raw": "{{baseUrl}}/notary/users", + "host": [ + "{{baseUrl}}" + ], + "path": [ + "notary", + "users" + ] + } + }, + "response": [ + { + "name": "successful operation", + "originalRequest": { + "method": "GET", + "header": [ + { + "key": "Accept", + "value": "application/json" + }, + { + "description": "Added as a part of security scheme: bearer", + "key": "Authorization", + "value": "Bearer " + } + ], + "url": { + "raw": "{{baseUrl}}/notary/users", + "host": [ + "{{baseUrl}}" + ], + "path": [ + "notary", + "users" + ] + } + }, + "status": "OK", + "code": 200, + "_postman_previewlanguage": "json", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + } + ], + "cookie": [], + "body": "[\n {\n \"uid\": \"\",\n \"idNot\": \"\",\n \"contact\": {\n \"first_name\": \"\",\n \"last_name\": \"\",\n \"email\": \"\",\n \"cell_phone_number\": \"\"\n },\n \"office_folders\": [\n {\n \"uid\": \"\",\n \"name\": \"\",\n \"office\": {\n \"uid\": \"\",\n \"name\": \"\"\n }\n },\n {\n \"uid\": \"\",\n \"name\": \"\",\n \"office\": {\n \"uid\": \"\",\n \"name\": \"\"\n }\n }\n ],\n \"role\": {\n \"uid\": \"\",\n \"name\": \"\",\n \"rules\": [\n {\n \"uid\": \"\",\n \"name\": \"\"\n },\n {\n \"uid\": \"\",\n \"name\": \"\"\n }\n ]\n },\n \"office_role\": {\n \"uid\": \"\",\n \"name\": \"\",\n \"rules\": [\n {\n \"uid\": \"\",\n \"name\": \"\"\n },\n {\n \"uid\": \"\",\n \"name\": \"\"\n }\n ],\n \"office\": {\n \"uid\": \"\",\n \"name\": \"\"\n }\n }\n },\n {\n \"uid\": \"\",\n \"idNot\": \"\",\n \"contact\": {\n \"first_name\": \"\",\n \"last_name\": \"\",\n \"email\": \"\",\n \"cell_phone_number\": \"\"\n },\n \"office_folders\": [\n {\n \"uid\": \"\",\n \"name\": \"\",\n \"office\": {\n \"uid\": \"\",\n \"name\": \"\"\n }\n },\n {\n \"uid\": \"\",\n \"name\": \"\",\n \"office\": {\n \"uid\": \"\",\n \"name\": \"\"\n }\n }\n ],\n \"role\": {\n \"uid\": \"\",\n \"name\": \"\",\n \"rules\": [\n {\n \"uid\": \"\",\n \"name\": \"\"\n },\n {\n \"uid\": \"\",\n \"name\": \"\"\n }\n ]\n },\n \"office_role\": {\n \"uid\": \"\",\n \"name\": \"\",\n \"rules\": [\n {\n \"uid\": \"\",\n \"name\": \"\"\n },\n {\n \"uid\": \"\",\n \"name\": \"\"\n }\n ],\n \"office\": {\n \"uid\": \"\",\n \"name\": \"\"\n }\n }\n }\n]" + }, + { + "name": "Invalid status value", + "originalRequest": { + "method": "GET", + "header": [ + { + "description": "Added as a part of security scheme: bearer", + "key": "Authorization", + "value": "Bearer " + } + ], + "url": { + "raw": "{{baseUrl}}/notary/users", + "host": [ + "{{baseUrl}}" + ], + "path": [ + "notary", + "users" + ] + } + }, + "status": "Bad Request", + "code": 400, + "_postman_previewlanguage": "text", + "header": [], + "cookie": [], + "body": "" + } + ] + } + ] + } + ] + }, + { + "name": "customer", + "item": [ + { + "name": "documents", + "item": [ + { + "name": "{uid}", + "item": [ + { + "name": "Find document by ID", + "request": { + "auth": { + "type": "bearer", + "bearer": [ + { + "key": "token", + "value": "{{bearerToken}}", + "type": "string" + } + ] + }, + "method": "GET", + "header": [ + { + "key": "Accept", + "value": "application/json" + } + ], + "url": { + "raw": "{{baseUrl}}/customer/documents/:uid", + "host": [ + "{{baseUrl}}" + ], + "path": [ + "customer", + "documents", + ":uid" + ], + "variable": [ + { + "key": "uid", + "value": "", + "description": "(Required) ID of document to return" + } + ] + }, + "description": "Returns a single document" + }, + "response": [ + { + "name": "successful operation", + "originalRequest": { + "method": "GET", + "header": [ + { + "key": "Accept", + "value": "application/json" + }, + { + "description": "Added as a part of security scheme: bearer", + "key": "Authorization", + "value": "Bearer " + } + ], + "url": { + "raw": "{{baseUrl}}/customer/documents/:uid", + "host": [ + "{{baseUrl}}" + ], + "path": [ + "customer", + "documents", + ":uid" + ], + "variable": [ + { + "key": "uid" + } + ] + } + }, + "status": "OK", + "code": 200, + "_postman_previewlanguage": "json", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + } + ], + "cookie": [], + "body": "{\n \"uid\": \"\",\n \"name\": \"\",\n \"type\": {\n \"uid\": \"\",\n \"name\": \"\"\n },\n \"file\": {\n \"uid\": \"\",\n \"name\": \"\"\n },\n \"folder\": {\n \"uid\": \"\",\n \"name\": \"\"\n },\n \"createdAt\": \"\",\n \"updatedAt\": \"\"\n}" + }, + { + "name": "Invalid status value", + "originalRequest": { + "method": "GET", + "header": [ + { + "description": "Added as a part of security scheme: bearer", + "key": "Authorization", + "value": "Bearer " + } + ], + "url": { + "raw": "{{baseUrl}}/customer/documents/:uid", + "host": [ + "{{baseUrl}}" + ], + "path": [ + "customer", + "documents", + ":uid" + ], + "variable": [ + { + "key": "uid" + } + ] + } + }, + "status": "Bad Request", + "code": 400, + "_postman_previewlanguage": "text", + "header": [], + "cookie": [], + "body": "" + } + ] + } + ] + }, + { + "name": "Get all documents", + "request": { + "auth": { + "type": "bearer", + "bearer": [ + { + "key": "token", + "value": "{{bearerToken}}", + "type": "string" + } + ] + }, + "method": "GET", + "header": [ + { + "key": "Accept", + "value": "application/json" + } + ], + "url": { + "raw": "{{baseUrl}}/customer/documents", + "host": [ + "{{baseUrl}}" + ], + "path": [ + "customer", + "documents" + ] + } + }, + "response": [ + { + "name": "successful operation", + "originalRequest": { + "method": "GET", + "header": [ + { + "key": "Accept", + "value": "application/json" + }, + { + "description": "Added as a part of security scheme: bearer", + "key": "Authorization", + "value": "Bearer " + } + ], + "url": { + "raw": "{{baseUrl}}/customer/documents", + "host": [ + "{{baseUrl}}" + ], + "path": [ + "customer", + "documents" + ] + } + }, + "status": "OK", + "code": 200, + "_postman_previewlanguage": "json", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + } + ], + "cookie": [], + "body": "[\n {\n \"uid\": \"\",\n \"name\": \"\",\n \"type\": {\n \"uid\": \"\",\n \"name\": \"\"\n },\n \"file\": {\n \"uid\": \"\",\n \"name\": \"\"\n },\n \"folder\": {\n \"uid\": \"\",\n \"name\": \"\"\n },\n \"createdAt\": \"\",\n \"updatedAt\": \"\"\n },\n {\n \"uid\": \"\",\n \"name\": \"\",\n \"type\": {\n \"uid\": \"\",\n \"name\": \"\"\n },\n \"file\": {\n \"uid\": \"\",\n \"name\": \"\"\n },\n \"folder\": {\n \"uid\": \"\",\n \"name\": \"\"\n },\n \"createdAt\": \"\",\n \"updatedAt\": \"\"\n }\n]" + }, + { + "name": "Invalid status value", + "originalRequest": { + "method": "GET", + "header": [ + { + "description": "Added as a part of security scheme: bearer", + "key": "Authorization", + "value": "Bearer " + } + ], + "url": { + "raw": "{{baseUrl}}/customer/documents", + "host": [ + "{{baseUrl}}" + ], + "path": [ + "customer", + "documents" + ] + } + }, + "status": "Bad Request", + "code": 400, + "_postman_previewlanguage": "text", + "header": [], + "cookie": [], + "body": "" + } + ] + }, + { + "name": "Add a new document", + "request": { + "auth": { + "type": "bearer", + "bearer": [ + { + "key": "token", + "value": "{{bearerToken}}", + "type": "string" + } + ] + }, + "method": "POST", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + }, + { + "key": "Accept", + "value": "application/json" + } + ], + "body": { + "mode": "raw", + "raw": "{\n \"uid\": \"\",\n \"name\": \"\",\n \"type\": {\n \"uid\": \"\",\n \"name\": \"\"\n },\n \"file\": {\n \"uid\": \"\",\n \"name\": \"\"\n },\n \"folder\": {\n \"uid\": \"\",\n \"name\": \"\"\n },\n \"createdAt\": \"\",\n \"updatedAt\": \"\"\n}", + "options": { + "raw": { + "headerFamily": "json", + "language": "json" + } + } + }, + "url": { + "raw": "{{baseUrl}}/customer/documents", + "host": [ + "{{baseUrl}}" + ], + "path": [ + "customer", + "documents" + ] + } + }, + "response": [ + { + "name": "successful operation", + "originalRequest": { + "method": "POST", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + }, + { + "key": "Accept", + "value": "application/json" + }, + { + "description": "Added as a part of security scheme: bearer", + "key": "Authorization", + "value": "Bearer " + } + ], + "body": { + "mode": "raw", + "raw": "{\n \"uid\": \"\",\n \"name\": \"\",\n \"type\": {\n \"uid\": \"\",\n \"name\": \"\"\n },\n \"file\": {\n \"uid\": \"\",\n \"name\": \"\"\n },\n \"folder\": {\n \"uid\": \"\",\n \"name\": \"\"\n },\n \"createdAt\": \"\",\n \"updatedAt\": \"\"\n}", + "options": { + "raw": { + "headerFamily": "json", + "language": "json" + } + } + }, + "url": { + "raw": "{{baseUrl}}/customer/documents", + "host": [ + "{{baseUrl}}" + ], + "path": [ + "customer", + "documents" + ] + } + }, + "status": "OK", + "code": 200, + "_postman_previewlanguage": "json", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + } + ], + "cookie": [], + "body": "{\n \"uid\": \"\",\n \"name\": \"\",\n \"type\": {\n \"uid\": \"\",\n \"name\": \"\"\n },\n \"file\": {\n \"uid\": \"\",\n \"name\": \"\"\n },\n \"folder\": {\n \"uid\": \"\",\n \"name\": \"\"\n },\n \"createdAt\": \"\",\n \"updatedAt\": \"\"\n}" + }, + { + "name": "Invalid status value", + "originalRequest": { + "method": "POST", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + }, + { + "description": "Added as a part of security scheme: bearer", + "key": "Authorization", + "value": "Bearer " + } + ], + "body": { + "mode": "raw", + "raw": "{\n \"uid\": \"\",\n \"name\": \"\",\n \"type\": {\n \"uid\": \"\",\n \"name\": \"\"\n },\n \"file\": {\n \"uid\": \"\",\n \"name\": \"\"\n },\n \"folder\": {\n \"uid\": \"\",\n \"name\": \"\"\n },\n \"createdAt\": \"\",\n \"updatedAt\": \"\"\n}", + "options": { + "raw": { + "headerFamily": "json", + "language": "json" + } + } + }, + "url": { + "raw": "{{baseUrl}}/customer/documents", + "host": [ + "{{baseUrl}}" + ], + "path": [ + "customer", + "documents" + ] + } + }, + "status": "Bad Request", + "code": 400, + "_postman_previewlanguage": "text", + "header": [], + "cookie": [], + "body": "" + } + ] + } + ] + }, + { + "name": "files", + "item": [ + { + "name": "{uid}", + "item": [ + { + "name": "Find file by ID", + "request": { + "auth": { + "type": "bearer", + "bearer": [ + { + "key": "token", + "value": "{{bearerToken}}", + "type": "string" + } + ] + }, + "method": "GET", + "header": [], + "url": { + "raw": "{{baseUrl}}/customer/files/:uid", + "host": [ + "{{baseUrl}}" + ], + "path": [ + "customer", + "files", + ":uid" + ], + "variable": [ + { + "key": "uid", + "value": "", + "description": "(Required) ID of file to return" + } + ] + }, + "description": "Returns a single file" + }, + "response": [ + { + "name": "successful operation", + "originalRequest": { + "method": "GET", + "header": [ + { + "description": "Added as a part of security scheme: bearer", + "key": "Authorization", + "value": "Bearer " + } + ], + "url": { + "raw": "{{baseUrl}}/customer/files/:uid", + "host": [ + "{{baseUrl}}" + ], + "path": [ + "customer", + "files", + ":uid" + ], + "variable": [ + { + "key": "uid" + } + ] + } + }, + "status": "OK", + "code": 200, + "_postman_previewlanguage": "text", + "header": [], + "cookie": [], + "body": "" + }, + { + "name": "Invalid status value", + "originalRequest": { + "method": "GET", + "header": [ + { + "description": "Added as a part of security scheme: bearer", + "key": "Authorization", + "value": "Bearer " + } + ], + "url": { + "raw": "{{baseUrl}}/customer/files/:uid", + "host": [ + "{{baseUrl}}" + ], + "path": [ + "customer", + "files", + ":uid" + ], + "variable": [ + { + "key": "uid" + } + ] + } + }, + "status": "Bad Request", + "code": 400, + "_postman_previewlanguage": "text", + "header": [], + "cookie": [], + "body": "" + } + ] + }, + { + "name": "Update an existing file", + "request": { + "auth": { + "type": "bearer", + "bearer": [ + { + "key": "token", + "value": "{{bearerToken}}", + "type": "string" + } + ] + }, + "method": "PUT", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + } + ], + "body": { + "mode": "raw", + "raw": "{\n \"uid\": \"\",\n \"name\": \"\",\n \"path\": \"\",\n \"size\": \"\",\n \"mime_type\": \"\",\n \"createdAt\": \"\",\n \"updatedAt\": \"\"\n}", + "options": { + "raw": { + "headerFamily": "json", + "language": "json" + } + } + }, + "url": { + "raw": "{{baseUrl}}/customer/files/:uid", + "host": [ + "{{baseUrl}}" + ], + "path": [ + "customer", + "files", + ":uid" + ], + "variable": [ + { + "key": "uid", + "value": "", + "description": "(Required) ID of file to return" + } + ] + }, + "description": "Returns a single file updated" + }, + "response": [ + { + "name": "successful operation", + "originalRequest": { + "method": "PUT", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + }, + { + "description": "Added as a part of security scheme: bearer", + "key": "Authorization", + "value": "Bearer " + } + ], + "body": { + "mode": "raw", + "raw": "{\n \"uid\": \"\",\n \"name\": \"\",\n \"path\": \"\",\n \"size\": \"\",\n \"mime_type\": \"\",\n \"createdAt\": \"\",\n \"updatedAt\": \"\"\n}", + "options": { + "raw": { + "headerFamily": "json", + "language": "json" + } + } + }, + "url": { + "raw": "{{baseUrl}}/customer/files/:uid", + "host": [ + "{{baseUrl}}" + ], + "path": [ + "customer", + "files", + ":uid" + ], + "variable": [ + { + "key": "uid" + } + ] + } + }, + "status": "OK", + "code": 200, + "_postman_previewlanguage": "text", + "header": [], + "cookie": [], + "body": "" + }, + { + "name": "Invalid status value", + "originalRequest": { + "method": "PUT", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + }, + { + "description": "Added as a part of security scheme: bearer", + "key": "Authorization", + "value": "Bearer " + } + ], + "body": { + "mode": "raw", + "raw": "{\n \"uid\": \"\",\n \"name\": \"\",\n \"path\": \"\",\n \"size\": \"\",\n \"mime_type\": \"\",\n \"createdAt\": \"\",\n \"updatedAt\": \"\"\n}", + "options": { + "raw": { + "headerFamily": "json", + "language": "json" + } + } + }, + "url": { + "raw": "{{baseUrl}}/customer/files/:uid", + "host": [ + "{{baseUrl}}" + ], + "path": [ + "customer", + "files", + ":uid" + ], + "variable": [ + { + "key": "uid" + } + ] + } + }, + "status": "Bad Request", + "code": 400, + "_postman_previewlanguage": "text", + "header": [], + "cookie": [], + "body": "" + } + ] + }, + { + "name": "Delete an existing file", + "request": { + "auth": { + "type": "bearer", + "bearer": [ + { + "key": "token", + "value": "{{bearerToken}}", + "type": "string" + } + ] + }, + "method": "DELETE", + "header": [], + "url": { + "raw": "{{baseUrl}}/customer/files/:uid", + "host": [ + "{{baseUrl}}" + ], + "path": [ + "customer", + "files", + ":uid" + ], + "variable": [ + { + "key": "uid", + "value": "", + "description": "(Required) ID of file to return" + } + ] + }, + "description": "Returns a single file deleted" + }, + "response": [ + { + "name": "successful operation", + "originalRequest": { + "method": "DELETE", + "header": [ + { + "description": "Added as a part of security scheme: bearer", + "key": "Authorization", + "value": "Bearer " + } + ], + "url": { + "raw": "{{baseUrl}}/customer/files/:uid", + "host": [ + "{{baseUrl}}" + ], + "path": [ + "customer", + "files", + ":uid" + ], + "variable": [ + { + "key": "uid" + } + ] + } + }, + "status": "OK", + "code": 200, + "_postman_previewlanguage": "text", + "header": [], + "cookie": [], + "body": "" + }, + { + "name": "Invalid status value", + "originalRequest": { + "method": "DELETE", + "header": [ + { + "description": "Added as a part of security scheme: bearer", + "key": "Authorization", + "value": "Bearer " + } + ], + "url": { + "raw": "{{baseUrl}}/customer/files/:uid", + "host": [ + "{{baseUrl}}" + ], + "path": [ + "customer", + "files", + ":uid" + ], + "variable": [ + { + "key": "uid" + } + ] + } + }, + "status": "Bad Request", + "code": 400, + "_postman_previewlanguage": "text", + "header": [], + "cookie": [], + "body": "" + } + ] + } + ] + }, + { + "name": "Get all files", + "request": { + "auth": { + "type": "bearer", + "bearer": [ + { + "key": "token", + "value": "{{bearerToken}}", + "type": "string" + } + ] + }, + "method": "GET", + "header": [], + "url": { + "raw": "{{baseUrl}}/customer/files", + "host": [ + "{{baseUrl}}" + ], + "path": [ + "customer", + "files" + ] + } + }, + "response": [ + { + "name": "successful operation", + "originalRequest": { + "method": "GET", + "header": [ + { + "description": "Added as a part of security scheme: bearer", + "key": "Authorization", + "value": "Bearer " + } + ], + "url": { + "raw": "{{baseUrl}}/customer/files", + "host": [ + "{{baseUrl}}" + ], + "path": [ + "customer", + "files" + ] + } + }, + "status": "OK", + "code": 200, + "_postman_previewlanguage": "text", + "header": [], + "cookie": [], + "body": "" + }, + { + "name": "Invalid status value", + "originalRequest": { + "method": "GET", + "header": [ + { + "description": "Added as a part of security scheme: bearer", + "key": "Authorization", + "value": "Bearer " + } + ], + "url": { + "raw": "{{baseUrl}}/customer/files", + "host": [ + "{{baseUrl}}" + ], + "path": [ + "customer", + "files" + ] + } + }, + "status": "Bad Request", + "code": 400, + "_postman_previewlanguage": "text", + "header": [], + "cookie": [], + "body": "" + } + ] + }, + { + "name": "Add a new file", + "request": { + "auth": { + "type": "bearer", + "bearer": [ + { + "key": "token", + "value": "{{bearerToken}}", + "type": "string" + } + ] + }, + "method": "POST", + "header": [ + { + "key": "Content-Type", + "value": "multipart/form-data" + } + ], + "body": { + "mode": "formdata", + "formdata": [ + { + "key": "file", + "value": "", + "type": "text" + } + ] + }, + "url": { + "raw": "{{baseUrl}}/customer/files", + "host": [ + "{{baseUrl}}" + ], + "path": [ + "customer", + "files" + ], + "variable": [ + { + "key": "q", + "value": "document,[object Object]", + "description": "(Required) requested document object" + } + ] + } + }, + "response": [ + { + "name": "successful operation", + "originalRequest": { + "method": "POST", + "header": [ + { + "key": "Content-Type", + "value": "multipart/form-data" + }, + { + "description": "Added as a part of security scheme: bearer", + "key": "Authorization", + "value": "Bearer " + } + ], + "body": { + "mode": "formdata", + "formdata": [ + { + "key": "file", + "value": "", + "type": "text" + } + ] + }, + "url": { + "raw": "{{baseUrl}}/customer/files", + "host": [ + "{{baseUrl}}" + ], + "path": [ + "customer", + "files" + ] + } + }, + "status": "OK", + "code": 200, + "_postman_previewlanguage": "text", + "header": [], + "cookie": [], + "body": "" + }, + { + "name": "Invalid status value", + "originalRequest": { + "method": "POST", + "header": [ + { + "key": "Content-Type", + "value": "multipart/form-data" + }, + { + "description": "Added as a part of security scheme: bearer", + "key": "Authorization", + "value": "Bearer " + } + ], + "body": { + "mode": "formdata", + "formdata": [ + { + "key": "file", + "value": "", + "type": "text" + } + ] + }, + "url": { + "raw": "{{baseUrl}}/customer/files", + "host": [ + "{{baseUrl}}" + ], + "path": [ + "customer", + "files" + ] + } + }, + "status": "Bad Request", + "code": 400, + "_postman_previewlanguage": "text", + "header": [], + "cookie": [], + "body": "" + } + ] + } + ] + }, + { + "name": "folders", + "item": [ + { + "name": "{uid}", + "item": [ + { + "name": "Find folder by ID", + "request": { + "auth": { + "type": "bearer", + "bearer": [ + { + "key": "token", + "value": "{{bearerToken}}", + "type": "string" + } + ] + }, + "method": "GET", + "header": [], + "url": { + "raw": "{{baseUrl}}/customer/folders/:uid", + "host": [ + "{{baseUrl}}" + ], + "path": [ + "customer", + "folders", + ":uid" + ], + "variable": [ + { + "key": "uid", + "value": "", + "description": "(Required) ID of folder to return" + } + ] + }, + "description": "Returns a single folder" + }, + "response": [ + { + "name": "successful operation", + "originalRequest": { + "method": "GET", + "header": [ + { + "description": "Added as a part of security scheme: bearer", + "key": "Authorization", + "value": "Bearer " + } + ], + "url": { + "raw": "{{baseUrl}}/customer/folders/:uid", + "host": [ + "{{baseUrl}}" + ], + "path": [ + "customer", + "folders", + ":uid" + ], + "variable": [ + { + "key": "uid" + } + ] + } + }, + "status": "OK", + "code": 200, + "_postman_previewlanguage": "text", + "header": [], + "cookie": [], + "body": "" + }, + { + "name": "Invalid status value", + "originalRequest": { + "method": "GET", + "header": [ + { + "description": "Added as a part of security scheme: bearer", + "key": "Authorization", + "value": "Bearer " + } + ], + "url": { + "raw": "{{baseUrl}}/customer/folders/:uid", + "host": [ + "{{baseUrl}}" + ], + "path": [ + "customer", + "folders", + ":uid" + ], + "variable": [ + { + "key": "uid" + } + ] + } + }, + "status": "Bad Request", + "code": 400, + "_postman_previewlanguage": "text", + "header": [], + "cookie": [], + "body": "" + } + ] + } + ] + }, + { + "name": "Get all folders", + "request": { + "auth": { + "type": "bearer", + "bearer": [ + { + "key": "token", + "value": "{{bearerToken}}", + "type": "string" + } + ] + }, + "method": "GET", + "header": [ + { + "key": "Accept", + "value": "application/json" + } + ], + "url": { + "raw": "{{baseUrl}}/customer/folders", + "host": [ + "{{baseUrl}}" + ], + "path": [ + "customer", + "folders" + ] + } + }, + "response": [ + { + "name": "successful operation", + "originalRequest": { + "method": "GET", + "header": [ + { + "key": "Accept", + "value": "application/json" + }, + { + "description": "Added as a part of security scheme: bearer", + "key": "Authorization", + "value": "Bearer " + } + ], + "url": { + "raw": "{{baseUrl}}/customer/folders", + "host": [ + "{{baseUrl}}" + ], + "path": [ + "customer", + "folders" + ] + } + }, + "status": "OK", + "code": 200, + "_postman_previewlanguage": "json", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + } + ], + "cookie": [], + "body": "[\n {\n \"uid\": \"\",\n \"deed\": {\n \"uid\": \"\",\n \"deed_type\": {\n \"uid\": \"\",\n \"name\": \"\",\n \"description\": \"\",\n \"archived_at\": \"\",\n \"createdAt\": \"\",\n \"updatedAt\": \"\"\n }\n },\n \"office\": {\n \"uid\": \"\",\n \"name\": \"\"\n },\n \"createdAt\": \"\",\n \"updatedAt\": \"\"\n },\n {\n \"uid\": \"\",\n \"deed\": {\n \"uid\": \"\",\n \"deed_type\": {\n \"uid\": \"\",\n \"name\": \"\",\n \"description\": \"\",\n \"archived_at\": \"\",\n \"createdAt\": \"\",\n \"updatedAt\": \"\"\n }\n },\n \"office\": {\n \"uid\": \"\",\n \"name\": \"\"\n },\n \"createdAt\": \"\",\n \"updatedAt\": \"\"\n }\n]" + }, + { + "name": "Invalid status value", + "originalRequest": { + "method": "GET", + "header": [ + { + "description": "Added as a part of security scheme: bearer", + "key": "Authorization", + "value": "Bearer " + } + ], + "url": { + "raw": "{{baseUrl}}/customer/folders", + "host": [ + "{{baseUrl}}" + ], + "path": [ + "customer", + "folders" + ] + } + }, + "status": "Bad Request", + "code": 400, + "_postman_previewlanguage": "text", + "header": [], + "cookie": [], + "body": "" + } + ] + } + ] + } + ] + }, + { + "name": "admin", + "item": [ + { + "name": "customers", + "item": [ + { + "name": "{uid}", + "item": [ + { + "name": "Find customer by ID", + "request": { + "auth": { + "type": "bearer", + "bearer": [ + { + "key": "token", + "value": "{{bearerToken}}", + "type": "string" + } + ] + }, + "method": "GET", + "header": [ + { + "key": "Accept", + "value": "application/json" + } + ], + "url": { + "raw": "{{baseUrl}}/admin/customers/:uid", + "host": [ + "{{baseUrl}}" + ], + "path": [ + "admin", + "customers", + ":uid" + ], + "variable": [ + { + "key": "uid", + "value": "", + "description": "(Required) ID of customer to return" + } + ] + }, + "description": "Returns a single customer" + }, + "response": [ + { + "name": "successful operation", + "originalRequest": { + "method": "GET", + "header": [ + { + "key": "Accept", + "value": "application/json" + }, + { + "description": "Added as a part of security scheme: bearer", + "key": "Authorization", + "value": "Bearer " + } + ], + "url": { + "raw": "{{baseUrl}}/admin/customers/:uid", + "host": [ + "{{baseUrl}}" + ], + "path": [ + "admin", + "customers", + ":uid" + ], + "variable": [ + { + "key": "uid" + } + ] + } + }, + "status": "OK", + "code": 200, + "_postman_previewlanguage": "json", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + } + ], + "cookie": [], + "body": "{\n \"uid\": \"\",\n \"status\": \"\",\n \"contact\": {\n \"civility\": \"\",\n \"first_name\": \"\",\n \"last_name\": \"\",\n \"email\": \"\",\n \"cell_phone_number\": \"\"\n },\n \"office_folders\": [\n {\n \"uid\": \"\",\n \"name\": \"\",\n \"office\": {\n \"uid\": \"\",\n \"name\": \"\"\n }\n },\n {\n \"uid\": \"\",\n \"name\": \"\",\n \"office\": {\n \"uid\": \"\",\n \"name\": \"\"\n }\n }\n ],\n \"documents\": [\n {\n \"uid\": \"\",\n \"name\": \"\",\n \"type\": {\n \"uid\": \"\",\n \"name\": \"\"\n },\n \"file\": {\n \"uid\": \"\",\n \"name\": \"\"\n },\n \"folder\": {\n \"uid\": \"\",\n \"name\": \"\"\n }\n },\n {\n \"uid\": \"\",\n \"name\": \"\",\n \"type\": {\n \"uid\": \"\",\n \"name\": \"\"\n },\n \"file\": {\n \"uid\": \"\",\n \"name\": \"\"\n },\n \"folder\": {\n \"uid\": \"\",\n \"name\": \"\"\n }\n }\n ],\n \"createdAt\": \"\",\n \"updatedAt\": \"\"\n}" + }, + { + "name": "Invalid status value", + "originalRequest": { + "method": "GET", + "header": [ + { + "description": "Added as a part of security scheme: bearer", + "key": "Authorization", + "value": "Bearer " + } + ], + "url": { + "raw": "{{baseUrl}}/admin/customers/:uid", + "host": [ + "{{baseUrl}}" + ], + "path": [ + "admin", + "customers", + ":uid" + ], + "variable": [ + { + "key": "uid" + } + ] + } + }, + "status": "Bad Request", + "code": 400, + "_postman_previewlanguage": "text", + "header": [], + "cookie": [], + "body": "" + } + ] + }, + { + "name": "Update an existing customer", + "request": { + "auth": { + "type": "bearer", + "bearer": [ + { + "key": "token", + "value": "{{bearerToken}}", + "type": "string" + } + ] + }, + "method": "PUT", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + }, + { + "key": "Accept", + "value": "application/json" + } + ], + "body": { + "mode": "raw", + "raw": "{\n \"uid\": \"\",\n \"status\": \"\",\n \"contact\": {\n \"civility\": \"\",\n \"first_name\": \"\",\n \"last_name\": \"\",\n \"email\": \"\",\n \"cell_phone_number\": \"\"\n },\n \"office_folders\": [\n {\n \"uid\": \"\",\n \"name\": \"\",\n \"office\": {\n \"uid\": \"\",\n \"name\": \"\"\n }\n },\n {\n \"uid\": \"\",\n \"name\": \"\",\n \"office\": {\n \"uid\": \"\",\n \"name\": \"\"\n }\n }\n ],\n \"documents\": [\n {\n \"uid\": \"\",\n \"name\": \"\",\n \"type\": {\n \"uid\": \"\",\n \"name\": \"\"\n },\n \"file\": {\n \"uid\": \"\",\n \"name\": \"\"\n },\n \"folder\": {\n \"uid\": \"\",\n \"name\": \"\"\n }\n },\n {\n \"uid\": \"\",\n \"name\": \"\",\n \"type\": {\n \"uid\": \"\",\n \"name\": \"\"\n },\n \"file\": {\n \"uid\": \"\",\n \"name\": \"\"\n },\n \"folder\": {\n \"uid\": \"\",\n \"name\": \"\"\n }\n }\n ],\n \"createdAt\": \"\",\n \"updatedAt\": \"\"\n}", + "options": { + "raw": { + "headerFamily": "json", + "language": "json" + } + } + }, + "url": { + "raw": "{{baseUrl}}/admin/customers/:uid", + "host": [ + "{{baseUrl}}" + ], + "path": [ + "admin", + "customers", + ":uid" + ], + "variable": [ + { + "key": "uid", + "value": "", + "description": "(Required) ID of customer to return" + } + ] + }, + "description": "Returns a single customer updated" + }, + "response": [ + { + "name": "successful operation", + "originalRequest": { + "method": "PUT", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + }, + { + "key": "Accept", + "value": "application/json" + }, + { + "description": "Added as a part of security scheme: bearer", + "key": "Authorization", + "value": "Bearer " + } + ], + "body": { + "mode": "raw", + "raw": "{\n \"uid\": \"\",\n \"status\": \"\",\n \"contact\": {\n \"civility\": \"\",\n \"first_name\": \"\",\n \"last_name\": \"\",\n \"email\": \"\",\n \"cell_phone_number\": \"\"\n },\n \"office_folders\": [\n {\n \"uid\": \"\",\n \"name\": \"\",\n \"office\": {\n \"uid\": \"\",\n \"name\": \"\"\n }\n },\n {\n \"uid\": \"\",\n \"name\": \"\",\n \"office\": {\n \"uid\": \"\",\n \"name\": \"\"\n }\n }\n ],\n \"documents\": [\n {\n \"uid\": \"\",\n \"name\": \"\",\n \"type\": {\n \"uid\": \"\",\n \"name\": \"\"\n },\n \"file\": {\n \"uid\": \"\",\n \"name\": \"\"\n },\n \"folder\": {\n \"uid\": \"\",\n \"name\": \"\"\n }\n },\n {\n \"uid\": \"\",\n \"name\": \"\",\n \"type\": {\n \"uid\": \"\",\n \"name\": \"\"\n },\n \"file\": {\n \"uid\": \"\",\n \"name\": \"\"\n },\n \"folder\": {\n \"uid\": \"\",\n \"name\": \"\"\n }\n }\n ],\n \"createdAt\": \"\",\n \"updatedAt\": \"\"\n}", + "options": { + "raw": { + "headerFamily": "json", + "language": "json" + } + } + }, + "url": { + "raw": "{{baseUrl}}/admin/customers/:uid", + "host": [ + "{{baseUrl}}" + ], + "path": [ + "admin", + "customers", + ":uid" + ], + "variable": [ + { + "key": "uid" + } + ] + } + }, + "status": "OK", + "code": 200, + "_postman_previewlanguage": "json", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + } + ], + "cookie": [], + "body": "{\n \"uid\": \"\",\n \"status\": \"\",\n \"contact\": {\n \"civility\": \"\",\n \"first_name\": \"\",\n \"last_name\": \"\",\n \"email\": \"\",\n \"cell_phone_number\": \"\"\n },\n \"office_folders\": [\n {\n \"uid\": \"\",\n \"name\": \"\",\n \"office\": {\n \"uid\": \"\",\n \"name\": \"\"\n }\n },\n {\n \"uid\": \"\",\n \"name\": \"\",\n \"office\": {\n \"uid\": \"\",\n \"name\": \"\"\n }\n }\n ],\n \"documents\": [\n {\n \"uid\": \"\",\n \"name\": \"\",\n \"type\": {\n \"uid\": \"\",\n \"name\": \"\"\n },\n \"file\": {\n \"uid\": \"\",\n \"name\": \"\"\n },\n \"folder\": {\n \"uid\": \"\",\n \"name\": \"\"\n }\n },\n {\n \"uid\": \"\",\n \"name\": \"\",\n \"type\": {\n \"uid\": \"\",\n \"name\": \"\"\n },\n \"file\": {\n \"uid\": \"\",\n \"name\": \"\"\n },\n \"folder\": {\n \"uid\": \"\",\n \"name\": \"\"\n }\n }\n ],\n \"createdAt\": \"\",\n \"updatedAt\": \"\"\n}" + }, + { + "name": "Invalid status value", + "originalRequest": { + "method": "PUT", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + }, + { + "description": "Added as a part of security scheme: bearer", + "key": "Authorization", + "value": "Bearer " + } + ], + "body": { + "mode": "raw", + "raw": "{\n \"uid\": \"\",\n \"status\": \"\",\n \"contact\": {\n \"civility\": \"\",\n \"first_name\": \"\",\n \"last_name\": \"\",\n \"email\": \"\",\n \"cell_phone_number\": \"\"\n },\n \"office_folders\": [\n {\n \"uid\": \"\",\n \"name\": \"\",\n \"office\": {\n \"uid\": \"\",\n \"name\": \"\"\n }\n },\n {\n \"uid\": \"\",\n \"name\": \"\",\n \"office\": {\n \"uid\": \"\",\n \"name\": \"\"\n }\n }\n ],\n \"documents\": [\n {\n \"uid\": \"\",\n \"name\": \"\",\n \"type\": {\n \"uid\": \"\",\n \"name\": \"\"\n },\n \"file\": {\n \"uid\": \"\",\n \"name\": \"\"\n },\n \"folder\": {\n \"uid\": \"\",\n \"name\": \"\"\n }\n },\n {\n \"uid\": \"\",\n \"name\": \"\",\n \"type\": {\n \"uid\": \"\",\n \"name\": \"\"\n },\n \"file\": {\n \"uid\": \"\",\n \"name\": \"\"\n },\n \"folder\": {\n \"uid\": \"\",\n \"name\": \"\"\n }\n }\n ],\n \"createdAt\": \"\",\n \"updatedAt\": \"\"\n}", + "options": { + "raw": { + "headerFamily": "json", + "language": "json" + } + } + }, + "url": { + "raw": "{{baseUrl}}/admin/customers/:uid", + "host": [ + "{{baseUrl}}" + ], + "path": [ + "admin", + "customers", + ":uid" + ], + "variable": [ + { + "key": "uid" + } + ] + } + }, + "status": "Bad Request", + "code": 400, + "_postman_previewlanguage": "text", + "header": [], + "cookie": [], + "body": "" + } + ] + }, + { + "name": "Delete an existing customer", + "request": { + "auth": { + "type": "bearer", + "bearer": [ + { + "key": "token", + "value": "{{bearerToken}}", + "type": "string" + } + ] + }, + "method": "DELETE", + "header": [ + { + "key": "Accept", + "value": "application/json" + } + ], + "url": { + "raw": "{{baseUrl}}/admin/customers/:uid", + "host": [ + "{{baseUrl}}" + ], + "path": [ + "admin", + "customers", + ":uid" + ], + "variable": [ + { + "key": "uid", + "value": "", + "description": "(Required) ID of customer to return" + } + ] + }, + "description": "Returns a single customer deleted" + }, + "response": [ + { + "name": "successful operation", + "originalRequest": { + "method": "DELETE", + "header": [ + { + "key": "Accept", + "value": "application/json" + }, + { + "description": "Added as a part of security scheme: bearer", + "key": "Authorization", + "value": "Bearer " + } + ], + "url": { + "raw": "{{baseUrl}}/admin/customers/:uid", + "host": [ + "{{baseUrl}}" + ], + "path": [ + "admin", + "customers", + ":uid" + ], + "variable": [ + { + "key": "uid" + } + ] + } + }, + "status": "OK", + "code": 200, + "_postman_previewlanguage": "json", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + } + ], + "cookie": [], + "body": "{\n \"uid\": \"\",\n \"status\": \"\",\n \"contact\": {\n \"civility\": \"\",\n \"first_name\": \"\",\n \"last_name\": \"\",\n \"email\": \"\",\n \"cell_phone_number\": \"\"\n },\n \"office_folders\": [\n {\n \"uid\": \"\",\n \"name\": \"\",\n \"office\": {\n \"uid\": \"\",\n \"name\": \"\"\n }\n },\n {\n \"uid\": \"\",\n \"name\": \"\",\n \"office\": {\n \"uid\": \"\",\n \"name\": \"\"\n }\n }\n ],\n \"documents\": [\n {\n \"uid\": \"\",\n \"name\": \"\",\n \"type\": {\n \"uid\": \"\",\n \"name\": \"\"\n },\n \"file\": {\n \"uid\": \"\",\n \"name\": \"\"\n },\n \"folder\": {\n \"uid\": \"\",\n \"name\": \"\"\n }\n },\n {\n \"uid\": \"\",\n \"name\": \"\",\n \"type\": {\n \"uid\": \"\",\n \"name\": \"\"\n },\n \"file\": {\n \"uid\": \"\",\n \"name\": \"\"\n },\n \"folder\": {\n \"uid\": \"\",\n \"name\": \"\"\n }\n }\n ],\n \"createdAt\": \"\",\n \"updatedAt\": \"\"\n}" + }, + { + "name": "Invalid status value", + "originalRequest": { + "method": "DELETE", + "header": [ + { + "description": "Added as a part of security scheme: bearer", + "key": "Authorization", + "value": "Bearer " + } + ], + "url": { + "raw": "{{baseUrl}}/admin/customers/:uid", + "host": [ + "{{baseUrl}}" + ], + "path": [ + "admin", + "customers", + ":uid" + ], + "variable": [ + { + "key": "uid" + } + ] + } + }, + "status": "Bad Request", + "code": 400, + "_postman_previewlanguage": "text", + "header": [], + "cookie": [], + "body": "" + } + ] + } + ] + }, + { + "name": "Get all customers", + "request": { + "auth": { + "type": "bearer", + "bearer": [ + { + "key": "token", + "value": "{{bearerToken}}", + "type": "string" + } + ] + }, + "method": "GET", + "header": [ + { + "key": "Accept", + "value": "application/json" + } + ], + "url": { + "raw": "{{baseUrl}}/admin/customers", + "host": [ + "{{baseUrl}}" + ], + "path": [ + "admin", + "customers" + ] + } + }, + "response": [ + { + "name": "successful operation", + "originalRequest": { + "method": "GET", + "header": [ + { + "key": "Accept", + "value": "application/json" + }, + { + "description": "Added as a part of security scheme: bearer", + "key": "Authorization", + "value": "Bearer " + } + ], + "url": { + "raw": "{{baseUrl}}/admin/customers", + "host": [ + "{{baseUrl}}" + ], + "path": [ + "admin", + "customers" + ] + } + }, + "status": "OK", + "code": 200, + "_postman_previewlanguage": "json", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + } + ], + "cookie": [], + "body": "{\n \"uid\": \"\",\n \"status\": \"\",\n \"contact\": {\n \"civility\": \"\",\n \"first_name\": \"\",\n \"last_name\": \"\",\n \"email\": \"\",\n \"cell_phone_number\": \"\"\n },\n \"office_folders\": [\n {\n \"uid\": \"\",\n \"name\": \"\",\n \"office\": {\n \"uid\": \"\",\n \"name\": \"\"\n }\n },\n {\n \"uid\": \"\",\n \"name\": \"\",\n \"office\": {\n \"uid\": \"\",\n \"name\": \"\"\n }\n }\n ],\n \"documents\": [\n {\n \"uid\": \"\",\n \"name\": \"\",\n \"type\": {\n \"uid\": \"\",\n \"name\": \"\"\n },\n \"file\": {\n \"uid\": \"\",\n \"name\": \"\"\n },\n \"folder\": {\n \"uid\": \"\",\n \"name\": \"\"\n }\n },\n {\n \"uid\": \"\",\n \"name\": \"\",\n \"type\": {\n \"uid\": \"\",\n \"name\": \"\"\n },\n \"file\": {\n \"uid\": \"\",\n \"name\": \"\"\n },\n \"folder\": {\n \"uid\": \"\",\n \"name\": \"\"\n }\n }\n ],\n \"createdAt\": \"\",\n \"updatedAt\": \"\"\n}" + }, + { + "name": "Invalid status value", + "originalRequest": { + "method": "GET", + "header": [ + { + "description": "Added as a part of security scheme: bearer", + "key": "Authorization", + "value": "Bearer " + } + ], + "url": { + "raw": "{{baseUrl}}/admin/customers", + "host": [ + "{{baseUrl}}" + ], + "path": [ + "admin", + "customers" + ] + } + }, + "status": "Bad Request", + "code": 400, + "_postman_previewlanguage": "text", + "header": [], + "cookie": [], + "body": "" + } + ] + }, + { + "name": "Add a new customer", + "request": { + "auth": { + "type": "bearer", + "bearer": [ + { + "key": "token", + "value": "{{bearerToken}}", + "type": "string" + } + ] + }, + "method": "POST", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + }, + { + "key": "Accept", + "value": "application/json" + } + ], + "body": { + "mode": "raw", + "raw": "{\n \"uid\": \"\",\n \"status\": \"\",\n \"contact\": {\n \"civility\": \"\",\n \"first_name\": \"\",\n \"last_name\": \"\",\n \"email\": \"\",\n \"cell_phone_number\": \"\"\n },\n \"office_folders\": [\n {\n \"uid\": \"\",\n \"name\": \"\",\n \"office\": {\n \"uid\": \"\",\n \"name\": \"\"\n }\n },\n {\n \"uid\": \"\",\n \"name\": \"\",\n \"office\": {\n \"uid\": \"\",\n \"name\": \"\"\n }\n }\n ],\n \"documents\": [\n {\n \"uid\": \"\",\n \"name\": \"\",\n \"type\": {\n \"uid\": \"\",\n \"name\": \"\"\n },\n \"file\": {\n \"uid\": \"\",\n \"name\": \"\"\n },\n \"folder\": {\n \"uid\": \"\",\n \"name\": \"\"\n }\n },\n {\n \"uid\": \"\",\n \"name\": \"\",\n \"type\": {\n \"uid\": \"\",\n \"name\": \"\"\n },\n \"file\": {\n \"uid\": \"\",\n \"name\": \"\"\n },\n \"folder\": {\n \"uid\": \"\",\n \"name\": \"\"\n }\n }\n ],\n \"createdAt\": \"\",\n \"updatedAt\": \"\"\n}", + "options": { + "raw": { + "headerFamily": "json", + "language": "json" + } + } + }, + "url": { + "raw": "{{baseUrl}}/admin/customers", + "host": [ + "{{baseUrl}}" + ], + "path": [ + "admin", + "customers" + ] + } + }, + "response": [ + { + "name": "successful operation", + "originalRequest": { + "method": "POST", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + }, + { + "key": "Accept", + "value": "application/json" + }, + { + "description": "Added as a part of security scheme: bearer", + "key": "Authorization", + "value": "Bearer " + } + ], + "body": { + "mode": "raw", + "raw": "{\n \"uid\": \"\",\n \"status\": \"\",\n \"contact\": {\n \"civility\": \"\",\n \"first_name\": \"\",\n \"last_name\": \"\",\n \"email\": \"\",\n \"cell_phone_number\": \"\"\n },\n \"office_folders\": [\n {\n \"uid\": \"\",\n \"name\": \"\",\n \"office\": {\n \"uid\": \"\",\n \"name\": \"\"\n }\n },\n {\n \"uid\": \"\",\n \"name\": \"\",\n \"office\": {\n \"uid\": \"\",\n \"name\": \"\"\n }\n }\n ],\n \"documents\": [\n {\n \"uid\": \"\",\n \"name\": \"\",\n \"type\": {\n \"uid\": \"\",\n \"name\": \"\"\n },\n \"file\": {\n \"uid\": \"\",\n \"name\": \"\"\n },\n \"folder\": {\n \"uid\": \"\",\n \"name\": \"\"\n }\n },\n {\n \"uid\": \"\",\n \"name\": \"\",\n \"type\": {\n \"uid\": \"\",\n \"name\": \"\"\n },\n \"file\": {\n \"uid\": \"\",\n \"name\": \"\"\n },\n \"folder\": {\n \"uid\": \"\",\n \"name\": \"\"\n }\n }\n ],\n \"createdAt\": \"\",\n \"updatedAt\": \"\"\n}", + "options": { + "raw": { + "headerFamily": "json", + "language": "json" + } + } + }, + "url": { + "raw": "{{baseUrl}}/admin/customers", + "host": [ + "{{baseUrl}}" + ], + "path": [ + "admin", + "customers" + ] + } + }, + "status": "OK", + "code": 200, + "_postman_previewlanguage": "json", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + } + ], + "cookie": [], + "body": "{\n \"uid\": \"\",\n \"status\": \"\",\n \"contact\": {\n \"civility\": \"\",\n \"first_name\": \"\",\n \"last_name\": \"\",\n \"email\": \"\",\n \"cell_phone_number\": \"\"\n },\n \"office_folders\": [\n {\n \"uid\": \"\",\n \"name\": \"\",\n \"office\": {\n \"uid\": \"\",\n \"name\": \"\"\n }\n },\n {\n \"uid\": \"\",\n \"name\": \"\",\n \"office\": {\n \"uid\": \"\",\n \"name\": \"\"\n }\n }\n ],\n \"documents\": [\n {\n \"uid\": \"\",\n \"name\": \"\",\n \"type\": {\n \"uid\": \"\",\n \"name\": \"\"\n },\n \"file\": {\n \"uid\": \"\",\n \"name\": \"\"\n },\n \"folder\": {\n \"uid\": \"\",\n \"name\": \"\"\n }\n },\n {\n \"uid\": \"\",\n \"name\": \"\",\n \"type\": {\n \"uid\": \"\",\n \"name\": \"\"\n },\n \"file\": {\n \"uid\": \"\",\n \"name\": \"\"\n },\n \"folder\": {\n \"uid\": \"\",\n \"name\": \"\"\n }\n }\n ],\n \"createdAt\": \"\",\n \"updatedAt\": \"\"\n}" + }, + { + "name": "Invalid status value", + "originalRequest": { + "method": "POST", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + }, + { + "description": "Added as a part of security scheme: bearer", + "key": "Authorization", + "value": "Bearer " + } + ], + "body": { + "mode": "raw", + "raw": "{\n \"uid\": \"\",\n \"status\": \"\",\n \"contact\": {\n \"civility\": \"\",\n \"first_name\": \"\",\n \"last_name\": \"\",\n \"email\": \"\",\n \"cell_phone_number\": \"\"\n },\n \"office_folders\": [\n {\n \"uid\": \"\",\n \"name\": \"\",\n \"office\": {\n \"uid\": \"\",\n \"name\": \"\"\n }\n },\n {\n \"uid\": \"\",\n \"name\": \"\",\n \"office\": {\n \"uid\": \"\",\n \"name\": \"\"\n }\n }\n ],\n \"documents\": [\n {\n \"uid\": \"\",\n \"name\": \"\",\n \"type\": {\n \"uid\": \"\",\n \"name\": \"\"\n },\n \"file\": {\n \"uid\": \"\",\n \"name\": \"\"\n },\n \"folder\": {\n \"uid\": \"\",\n \"name\": \"\"\n }\n },\n {\n \"uid\": \"\",\n \"name\": \"\",\n \"type\": {\n \"uid\": \"\",\n \"name\": \"\"\n },\n \"file\": {\n \"uid\": \"\",\n \"name\": \"\"\n },\n \"folder\": {\n \"uid\": \"\",\n \"name\": \"\"\n }\n }\n ],\n \"createdAt\": \"\",\n \"updatedAt\": \"\"\n}", + "options": { + "raw": { + "headerFamily": "json", + "language": "json" + } + } + }, + "url": { + "raw": "{{baseUrl}}/admin/customers", + "host": [ + "{{baseUrl}}" + ], + "path": [ + "admin", + "customers" + ] + } + }, + "status": "Bad Request", + "code": 400, + "_postman_previewlanguage": "text", + "header": [], + "cookie": [], + "body": "" + } + ] + } + ] + }, + { + "name": "deeds", + "item": [ + { + "name": "{uid}", + "item": [ + { + "name": "Find deed by ID", + "request": { + "auth": { + "type": "bearer", + "bearer": [ + { + "key": "token", + "value": "{{bearerToken}}", + "type": "string" + } + ] + }, + "method": "GET", + "header": [ + { + "key": "Accept", + "value": "application/json" + } + ], + "url": { + "raw": "{{baseUrl}}/admin/deeds/:uid", + "host": [ + "{{baseUrl}}" + ], + "path": [ + "admin", + "deeds", + ":uid" + ], + "variable": [ + { + "key": "uid", + "value": "", + "description": "(Required) ID of deed to return" + } + ] + }, + "description": "Returns a single deed" + }, + "response": [ + { + "name": "successful operation", + "originalRequest": { + "method": "GET", + "header": [ + { + "key": "Accept", + "value": "application/json" + }, + { + "description": "Added as a part of security scheme: bearer", + "key": "Authorization", + "value": "Bearer " + } + ], + "url": { + "raw": "{{baseUrl}}/admin/deeds/:uid", + "host": [ + "{{baseUrl}}" + ], + "path": [ + "admin", + "deeds", + ":uid" + ], + "variable": [ + { + "key": "uid" + } + ] + } + }, + "status": "OK", + "code": 200, + "_postman_previewlanguage": "json", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + } + ], + "cookie": [], + "body": "{\n \"uid\": \"\",\n \"deed_type\": {\n \"uid\": \"\",\n \"name\": \"\",\n \"description\": \"\",\n \"archived_at\": \"\",\n \"createdAt\": \"\",\n \"updatedAt\": \"\"\n },\n \"document_types\": [\n {\n \"uid\": \"\",\n \"name\": \"\",\n \"public_description\": \"\",\n \"private_description\": \"\",\n \"archived_at\": \"\",\n \"createdAt\": \"\",\n \"updatedAt\": \"\"\n },\n {\n \"uid\": \"\",\n \"name\": \"\",\n \"public_description\": \"\",\n \"private_description\": \"\",\n \"archived_at\": \"\",\n \"createdAt\": \"\",\n \"updatedAt\": \"\"\n }\n ],\n \"office\": {\n \"uid\": \"\",\n \"name\": \"\"\n },\n \"folder\": {\n \"uid\": \"\",\n \"name\": \"\"\n },\n \"createdAt\": \"\",\n \"updatedAt\": \"\"\n}" + }, + { + "name": "Invalid status value", + "originalRequest": { + "method": "GET", + "header": [ + { + "description": "Added as a part of security scheme: bearer", + "key": "Authorization", + "value": "Bearer " + } + ], + "url": { + "raw": "{{baseUrl}}/admin/deeds/:uid", + "host": [ + "{{baseUrl}}" + ], + "path": [ + "admin", + "deeds", + ":uid" + ], + "variable": [ + { + "key": "uid" + } + ] + } + }, + "status": "Bad Request", + "code": 400, + "_postman_previewlanguage": "text", + "header": [], + "cookie": [], + "body": "" + } + ] + }, + { + "name": "Update an existing deed", + "request": { + "auth": { + "type": "bearer", + "bearer": [ + { + "key": "token", + "value": "{{bearerToken}}", + "type": "string" + } + ] + }, + "method": "PUT", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + }, + { + "key": "Accept", + "value": "application/json" + } + ], + "body": { + "mode": "raw", + "raw": "{\n \"uid\": \"\",\n \"deed_type\": {\n \"uid\": \"\",\n \"name\": \"\",\n \"description\": \"\",\n \"archived_at\": \"\",\n \"createdAt\": \"\",\n \"updatedAt\": \"\"\n },\n \"document_types\": [\n {\n \"uid\": \"\",\n \"name\": \"\",\n \"public_description\": \"\",\n \"private_description\": \"\",\n \"archived_at\": \"\",\n \"createdAt\": \"\",\n \"updatedAt\": \"\"\n },\n {\n \"uid\": \"\",\n \"name\": \"\",\n \"public_description\": \"\",\n \"private_description\": \"\",\n \"archived_at\": \"\",\n \"createdAt\": \"\",\n \"updatedAt\": \"\"\n }\n ],\n \"office\": {\n \"uid\": \"\",\n \"name\": \"\"\n },\n \"folder\": {\n \"uid\": \"\",\n \"name\": \"\"\n },\n \"createdAt\": \"\",\n \"updatedAt\": \"\"\n}", + "options": { + "raw": { + "headerFamily": "json", + "language": "json" + } + } + }, + "url": { + "raw": "{{baseUrl}}/admin/deeds/:uid", + "host": [ + "{{baseUrl}}" + ], + "path": [ + "admin", + "deeds", + ":uid" + ], + "variable": [ + { + "key": "uid", + "value": "", + "description": "(Required) ID of deed to return" + } + ] + }, + "description": "Returns a single deed updated" + }, + "response": [ + { + "name": "successful operation", + "originalRequest": { + "method": "PUT", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + }, + { + "key": "Accept", + "value": "application/json" + }, + { + "description": "Added as a part of security scheme: bearer", + "key": "Authorization", + "value": "Bearer " + } + ], + "body": { + "mode": "raw", + "raw": "{\n \"uid\": \"\",\n \"deed_type\": {\n \"uid\": \"\",\n \"name\": \"\",\n \"description\": \"\",\n \"archived_at\": \"\",\n \"createdAt\": \"\",\n \"updatedAt\": \"\"\n },\n \"document_types\": [\n {\n \"uid\": \"\",\n \"name\": \"\",\n \"public_description\": \"\",\n \"private_description\": \"\",\n \"archived_at\": \"\",\n \"createdAt\": \"\",\n \"updatedAt\": \"\"\n },\n {\n \"uid\": \"\",\n \"name\": \"\",\n \"public_description\": \"\",\n \"private_description\": \"\",\n \"archived_at\": \"\",\n \"createdAt\": \"\",\n \"updatedAt\": \"\"\n }\n ],\n \"office\": {\n \"uid\": \"\",\n \"name\": \"\"\n },\n \"folder\": {\n \"uid\": \"\",\n \"name\": \"\"\n },\n \"createdAt\": \"\",\n \"updatedAt\": \"\"\n}", + "options": { + "raw": { + "headerFamily": "json", + "language": "json" + } + } + }, + "url": { + "raw": "{{baseUrl}}/admin/deeds/:uid", + "host": [ + "{{baseUrl}}" + ], + "path": [ + "admin", + "deeds", + ":uid" + ], + "variable": [ + { + "key": "uid" + } + ] + } + }, + "status": "OK", + "code": 200, + "_postman_previewlanguage": "json", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + } + ], + "cookie": [], + "body": "{\n \"uid\": \"\",\n \"deed_type\": {\n \"uid\": \"\",\n \"name\": \"\",\n \"description\": \"\",\n \"archived_at\": \"\",\n \"createdAt\": \"\",\n \"updatedAt\": \"\"\n },\n \"document_types\": [\n {\n \"uid\": \"\",\n \"name\": \"\",\n \"public_description\": \"\",\n \"private_description\": \"\",\n \"archived_at\": \"\",\n \"createdAt\": \"\",\n \"updatedAt\": \"\"\n },\n {\n \"uid\": \"\",\n \"name\": \"\",\n \"public_description\": \"\",\n \"private_description\": \"\",\n \"archived_at\": \"\",\n \"createdAt\": \"\",\n \"updatedAt\": \"\"\n }\n ],\n \"office\": {\n \"uid\": \"\",\n \"name\": \"\"\n },\n \"folder\": {\n \"uid\": \"\",\n \"name\": \"\"\n },\n \"createdAt\": \"\",\n \"updatedAt\": \"\"\n}" + }, + { + "name": "Invalid status value", + "originalRequest": { + "method": "PUT", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + }, + { + "description": "Added as a part of security scheme: bearer", + "key": "Authorization", + "value": "Bearer " + } + ], + "body": { + "mode": "raw", + "raw": "{\n \"uid\": \"\",\n \"deed_type\": {\n \"uid\": \"\",\n \"name\": \"\",\n \"description\": \"\",\n \"archived_at\": \"\",\n \"createdAt\": \"\",\n \"updatedAt\": \"\"\n },\n \"document_types\": [\n {\n \"uid\": \"\",\n \"name\": \"\",\n \"public_description\": \"\",\n \"private_description\": \"\",\n \"archived_at\": \"\",\n \"createdAt\": \"\",\n \"updatedAt\": \"\"\n },\n {\n \"uid\": \"\",\n \"name\": \"\",\n \"public_description\": \"\",\n \"private_description\": \"\",\n \"archived_at\": \"\",\n \"createdAt\": \"\",\n \"updatedAt\": \"\"\n }\n ],\n \"office\": {\n \"uid\": \"\",\n \"name\": \"\"\n },\n \"folder\": {\n \"uid\": \"\",\n \"name\": \"\"\n },\n \"createdAt\": \"\",\n \"updatedAt\": \"\"\n}", + "options": { + "raw": { + "headerFamily": "json", + "language": "json" + } + } + }, + "url": { + "raw": "{{baseUrl}}/admin/deeds/:uid", + "host": [ + "{{baseUrl}}" + ], + "path": [ + "admin", + "deeds", + ":uid" + ], + "variable": [ + { + "key": "uid" + } + ] + } + }, + "status": "Bad Request", + "code": 400, + "_postman_previewlanguage": "text", + "header": [], + "cookie": [], + "body": "" + } + ] + }, + { + "name": "Delete an existing deed", + "request": { + "auth": { + "type": "bearer", + "bearer": [ + { + "key": "token", + "value": "{{bearerToken}}", + "type": "string" + } + ] + }, + "method": "DELETE", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + }, + { + "key": "Accept", + "value": "application/json" + } + ], + "body": { + "mode": "raw", + "raw": "{\n \"uid\": \"\",\n \"deed_type\": {\n \"uid\": \"\",\n \"name\": \"\",\n \"description\": \"\",\n \"archived_at\": \"\",\n \"createdAt\": \"\",\n \"updatedAt\": \"\"\n },\n \"document_types\": [\n {\n \"uid\": \"\",\n \"name\": \"\",\n \"public_description\": \"\",\n \"private_description\": \"\",\n \"archived_at\": \"\",\n \"createdAt\": \"\",\n \"updatedAt\": \"\"\n },\n {\n \"uid\": \"\",\n \"name\": \"\",\n \"public_description\": \"\",\n \"private_description\": \"\",\n \"archived_at\": \"\",\n \"createdAt\": \"\",\n \"updatedAt\": \"\"\n }\n ],\n \"office\": {\n \"uid\": \"\",\n \"name\": \"\"\n },\n \"folder\": {\n \"uid\": \"\",\n \"name\": \"\"\n },\n \"createdAt\": \"\",\n \"updatedAt\": \"\"\n}", + "options": { + "raw": { + "headerFamily": "json", + "language": "json" + } + } + }, + "url": { + "raw": "{{baseUrl}}/admin/deeds/:uid", + "host": [ + "{{baseUrl}}" + ], + "path": [ + "admin", + "deeds", + ":uid" + ], + "variable": [ + { + "key": "uid", + "value": "", + "description": "(Required) ID of deed to return" + } + ] + }, + "description": "Returns a single deed deleted" + }, + "response": [ + { + "name": "successful operation", + "originalRequest": { + "method": "DELETE", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + }, + { + "key": "Accept", + "value": "application/json" + }, + { + "description": "Added as a part of security scheme: bearer", + "key": "Authorization", + "value": "Bearer " + } + ], + "body": { + "mode": "raw", + "raw": "{\n \"uid\": \"\",\n \"deed_type\": {\n \"uid\": \"\",\n \"name\": \"\",\n \"description\": \"\",\n \"archived_at\": \"\",\n \"createdAt\": \"\",\n \"updatedAt\": \"\"\n },\n \"document_types\": [\n {\n \"uid\": \"\",\n \"name\": \"\",\n \"public_description\": \"\",\n \"private_description\": \"\",\n \"archived_at\": \"\",\n \"createdAt\": \"\",\n \"updatedAt\": \"\"\n },\n {\n \"uid\": \"\",\n \"name\": \"\",\n \"public_description\": \"\",\n \"private_description\": \"\",\n \"archived_at\": \"\",\n \"createdAt\": \"\",\n \"updatedAt\": \"\"\n }\n ],\n \"office\": {\n \"uid\": \"\",\n \"name\": \"\"\n },\n \"folder\": {\n \"uid\": \"\",\n \"name\": \"\"\n },\n \"createdAt\": \"\",\n \"updatedAt\": \"\"\n}", + "options": { + "raw": { + "headerFamily": "json", + "language": "json" + } + } + }, + "url": { + "raw": "{{baseUrl}}/admin/deeds/:uid", + "host": [ + "{{baseUrl}}" + ], + "path": [ + "admin", + "deeds", + ":uid" + ], + "variable": [ + { + "key": "uid" + } + ] + } + }, + "status": "OK", + "code": 200, + "_postman_previewlanguage": "json", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + } + ], + "cookie": [], + "body": "{\n \"uid\": \"\",\n \"deed_type\": {\n \"uid\": \"\",\n \"name\": \"\",\n \"description\": \"\",\n \"archived_at\": \"\",\n \"createdAt\": \"\",\n \"updatedAt\": \"\"\n },\n \"document_types\": [\n {\n \"uid\": \"\",\n \"name\": \"\",\n \"public_description\": \"\",\n \"private_description\": \"\",\n \"archived_at\": \"\",\n \"createdAt\": \"\",\n \"updatedAt\": \"\"\n },\n {\n \"uid\": \"\",\n \"name\": \"\",\n \"public_description\": \"\",\n \"private_description\": \"\",\n \"archived_at\": \"\",\n \"createdAt\": \"\",\n \"updatedAt\": \"\"\n }\n ],\n \"office\": {\n \"uid\": \"\",\n \"name\": \"\"\n },\n \"folder\": {\n \"uid\": \"\",\n \"name\": \"\"\n },\n \"createdAt\": \"\",\n \"updatedAt\": \"\"\n}" + }, + { + "name": "Invalid status value", + "originalRequest": { + "method": "DELETE", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + }, + { + "description": "Added as a part of security scheme: bearer", + "key": "Authorization", + "value": "Bearer " + } + ], + "body": { + "mode": "raw", + "raw": "{\n \"uid\": \"\",\n \"deed_type\": {\n \"uid\": \"\",\n \"name\": \"\",\n \"description\": \"\",\n \"archived_at\": \"\",\n \"createdAt\": \"\",\n \"updatedAt\": \"\"\n },\n \"document_types\": [\n {\n \"uid\": \"\",\n \"name\": \"\",\n \"public_description\": \"\",\n \"private_description\": \"\",\n \"archived_at\": \"\",\n \"createdAt\": \"\",\n \"updatedAt\": \"\"\n },\n {\n \"uid\": \"\",\n \"name\": \"\",\n \"public_description\": \"\",\n \"private_description\": \"\",\n \"archived_at\": \"\",\n \"createdAt\": \"\",\n \"updatedAt\": \"\"\n }\n ],\n \"office\": {\n \"uid\": \"\",\n \"name\": \"\"\n },\n \"folder\": {\n \"uid\": \"\",\n \"name\": \"\"\n },\n \"createdAt\": \"\",\n \"updatedAt\": \"\"\n}", + "options": { + "raw": { + "headerFamily": "json", + "language": "json" + } + } + }, + "url": { + "raw": "{{baseUrl}}/admin/deeds/:uid", + "host": [ + "{{baseUrl}}" + ], + "path": [ + "admin", + "deeds", + ":uid" + ], + "variable": [ + { + "key": "uid" + } + ] + } + }, + "status": "Bad Request", + "code": 400, + "_postman_previewlanguage": "text", + "header": [], + "cookie": [], + "body": "" + } + ] + } + ] + }, + { + "name": "Get all deeds", + "request": { + "auth": { + "type": "bearer", + "bearer": [ + { + "key": "token", + "value": "{{bearerToken}}", + "type": "string" + } + ] + }, + "method": "GET", + "header": [ + { + "key": "Accept", + "value": "application/json" + } + ], + "url": { + "raw": "{{baseUrl}}/admin/deeds", + "host": [ + "{{baseUrl}}" + ], + "path": [ + "admin", + "deeds" + ] + } + }, + "response": [ + { + "name": "successful operation", + "originalRequest": { + "method": "GET", + "header": [ + { + "key": "Accept", + "value": "application/json" + }, + { + "description": "Added as a part of security scheme: bearer", + "key": "Authorization", + "value": "Bearer " + } + ], + "url": { + "raw": "{{baseUrl}}/admin/deeds", + "host": [ + "{{baseUrl}}" + ], + "path": [ + "admin", + "deeds" + ] + } + }, + "status": "OK", + "code": 200, + "_postman_previewlanguage": "json", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + } + ], + "cookie": [], + "body": "{\n \"uid\": \"\",\n \"deed_type\": {\n \"uid\": \"\",\n \"name\": \"\",\n \"description\": \"\",\n \"archived_at\": \"\",\n \"createdAt\": \"\",\n \"updatedAt\": \"\"\n },\n \"document_types\": [\n {\n \"uid\": \"\",\n \"name\": \"\",\n \"public_description\": \"\",\n \"private_description\": \"\",\n \"archived_at\": \"\",\n \"createdAt\": \"\",\n \"updatedAt\": \"\"\n },\n {\n \"uid\": \"\",\n \"name\": \"\",\n \"public_description\": \"\",\n \"private_description\": \"\",\n \"archived_at\": \"\",\n \"createdAt\": \"\",\n \"updatedAt\": \"\"\n }\n ],\n \"office\": {\n \"uid\": \"\",\n \"name\": \"\"\n },\n \"folder\": {\n \"uid\": \"\",\n \"name\": \"\"\n },\n \"createdAt\": \"\",\n \"updatedAt\": \"\"\n}" + }, + { + "name": "Invalid status value", + "originalRequest": { + "method": "GET", + "header": [ + { + "description": "Added as a part of security scheme: bearer", + "key": "Authorization", + "value": "Bearer " + } + ], + "url": { + "raw": "{{baseUrl}}/admin/deeds", + "host": [ + "{{baseUrl}}" + ], + "path": [ + "admin", + "deeds" + ] + } + }, + "status": "Bad Request", + "code": 400, + "_postman_previewlanguage": "text", + "header": [], + "cookie": [], + "body": "" + } + ] + }, + { + "name": "Add a new deed", + "request": { + "auth": { + "type": "bearer", + "bearer": [ + { + "key": "token", + "value": "{{bearerToken}}", + "type": "string" + } + ] + }, + "method": "POST", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + }, + { + "key": "Accept", + "value": "application/json" + } + ], + "body": { + "mode": "raw", + "raw": "{\n \"uid\": \"\",\n \"deed_type\": {\n \"uid\": \"\",\n \"name\": \"\",\n \"description\": \"\",\n \"archived_at\": \"\",\n \"createdAt\": \"\",\n \"updatedAt\": \"\"\n },\n \"document_types\": [\n {\n \"uid\": \"\",\n \"name\": \"\",\n \"public_description\": \"\",\n \"private_description\": \"\",\n \"archived_at\": \"\",\n \"createdAt\": \"\",\n \"updatedAt\": \"\"\n },\n {\n \"uid\": \"\",\n \"name\": \"\",\n \"public_description\": \"\",\n \"private_description\": \"\",\n \"archived_at\": \"\",\n \"createdAt\": \"\",\n \"updatedAt\": \"\"\n }\n ],\n \"office\": {\n \"uid\": \"\",\n \"name\": \"\"\n },\n \"folder\": {\n \"uid\": \"\",\n \"name\": \"\"\n },\n \"createdAt\": \"\",\n \"updatedAt\": \"\"\n}", + "options": { + "raw": { + "headerFamily": "json", + "language": "json" + } + } + }, + "url": { + "raw": "{{baseUrl}}/admin/deeds", + "host": [ + "{{baseUrl}}" + ], + "path": [ + "admin", + "deeds" + ] + } + }, + "response": [ + { + "name": "successful operation", + "originalRequest": { + "method": "POST", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + }, + { + "key": "Accept", + "value": "application/json" + }, + { + "description": "Added as a part of security scheme: bearer", + "key": "Authorization", + "value": "Bearer " + } + ], + "body": { + "mode": "raw", + "raw": "{\n \"uid\": \"\",\n \"deed_type\": {\n \"uid\": \"\",\n \"name\": \"\",\n \"description\": \"\",\n \"archived_at\": \"\",\n \"createdAt\": \"\",\n \"updatedAt\": \"\"\n },\n \"document_types\": [\n {\n \"uid\": \"\",\n \"name\": \"\",\n \"public_description\": \"\",\n \"private_description\": \"\",\n \"archived_at\": \"\",\n \"createdAt\": \"\",\n \"updatedAt\": \"\"\n },\n {\n \"uid\": \"\",\n \"name\": \"\",\n \"public_description\": \"\",\n \"private_description\": \"\",\n \"archived_at\": \"\",\n \"createdAt\": \"\",\n \"updatedAt\": \"\"\n }\n ],\n \"office\": {\n \"uid\": \"\",\n \"name\": \"\"\n },\n \"folder\": {\n \"uid\": \"\",\n \"name\": \"\"\n },\n \"createdAt\": \"\",\n \"updatedAt\": \"\"\n}", + "options": { + "raw": { + "headerFamily": "json", + "language": "json" + } + } + }, + "url": { + "raw": "{{baseUrl}}/admin/deeds", + "host": [ + "{{baseUrl}}" + ], + "path": [ + "admin", + "deeds" + ] + } + }, + "status": "OK", + "code": 200, + "_postman_previewlanguage": "json", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + } + ], + "cookie": [], + "body": "{\n \"uid\": \"\",\n \"deed_type\": {\n \"uid\": \"\",\n \"name\": \"\",\n \"description\": \"\",\n \"archived_at\": \"\",\n \"createdAt\": \"\",\n \"updatedAt\": \"\"\n },\n \"document_types\": [\n {\n \"uid\": \"\",\n \"name\": \"\",\n \"public_description\": \"\",\n \"private_description\": \"\",\n \"archived_at\": \"\",\n \"createdAt\": \"\",\n \"updatedAt\": \"\"\n },\n {\n \"uid\": \"\",\n \"name\": \"\",\n \"public_description\": \"\",\n \"private_description\": \"\",\n \"archived_at\": \"\",\n \"createdAt\": \"\",\n \"updatedAt\": \"\"\n }\n ],\n \"office\": {\n \"uid\": \"\",\n \"name\": \"\"\n },\n \"folder\": {\n \"uid\": \"\",\n \"name\": \"\"\n },\n \"createdAt\": \"\",\n \"updatedAt\": \"\"\n}" + }, + { + "name": "Invalid status value", + "originalRequest": { + "method": "POST", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + }, + { + "description": "Added as a part of security scheme: bearer", + "key": "Authorization", + "value": "Bearer " + } + ], + "body": { + "mode": "raw", + "raw": "{\n \"uid\": \"\",\n \"deed_type\": {\n \"uid\": \"\",\n \"name\": \"\",\n \"description\": \"\",\n \"archived_at\": \"\",\n \"createdAt\": \"\",\n \"updatedAt\": \"\"\n },\n \"document_types\": [\n {\n \"uid\": \"\",\n \"name\": \"\",\n \"public_description\": \"\",\n \"private_description\": \"\",\n \"archived_at\": \"\",\n \"createdAt\": \"\",\n \"updatedAt\": \"\"\n },\n {\n \"uid\": \"\",\n \"name\": \"\",\n \"public_description\": \"\",\n \"private_description\": \"\",\n \"archived_at\": \"\",\n \"createdAt\": \"\",\n \"updatedAt\": \"\"\n }\n ],\n \"office\": {\n \"uid\": \"\",\n \"name\": \"\"\n },\n \"folder\": {\n \"uid\": \"\",\n \"name\": \"\"\n },\n \"createdAt\": \"\",\n \"updatedAt\": \"\"\n}", + "options": { + "raw": { + "headerFamily": "json", + "language": "json" + } + } + }, + "url": { + "raw": "{{baseUrl}}/admin/deeds", + "host": [ + "{{baseUrl}}" + ], + "path": [ + "admin", + "deeds" + ] + } + }, + "status": "Bad Request", + "code": 400, + "_postman_previewlanguage": "text", + "header": [], + "cookie": [], + "body": "" + } + ] + } + ] + }, + { + "name": "deed-types", + "item": [ + { + "name": "{uid}", + "item": [ + { + "name": "Find deed type by ID", + "request": { + "auth": { + "type": "bearer", + "bearer": [ + { + "key": "token", + "value": "{{bearerToken}}", + "type": "string" + } + ] + }, + "method": "GET", + "header": [ + { + "key": "Accept", + "value": "application/json" + } + ], + "url": { + "raw": "{{baseUrl}}/admin/deed-types/:uid", + "host": [ + "{{baseUrl}}" + ], + "path": [ + "admin", + "deed-types", + ":uid" + ], + "variable": [ + { + "key": "uid", + "value": "", + "description": "(Required) ID of deed type to return" + } + ] + }, + "description": "Returns a single deed type" + }, + "response": [ + { + "name": "successful operation", + "originalRequest": { + "method": "GET", + "header": [ + { + "key": "Accept", + "value": "application/json" + }, + { + "description": "Added as a part of security scheme: bearer", + "key": "Authorization", + "value": "Bearer " + } + ], + "url": { + "raw": "{{baseUrl}}/admin/deed-types/:uid", + "host": [ + "{{baseUrl}}" + ], + "path": [ + "admin", + "deed-types", + ":uid" + ], + "variable": [ + { + "key": "uid" + } + ] + } + }, + "status": "OK", + "code": 200, + "_postman_previewlanguage": "json", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + } + ], + "cookie": [], + "body": "{\n \"uid\": \"\",\n \"name\": \"\",\n \"description\": \"\",\n \"archived_at\": \"\",\n \"office\": {\n \"uid\": \"\",\n \"name\": \"\"\n },\n \"createdAt\": \"\",\n \"updatedAt\": \"\"\n}" + }, + { + "name": "Invalid status value", + "originalRequest": { + "method": "GET", + "header": [ + { + "description": "Added as a part of security scheme: bearer", + "key": "Authorization", + "value": "Bearer " + } + ], + "url": { + "raw": "{{baseUrl}}/admin/deed-types/:uid", + "host": [ + "{{baseUrl}}" + ], + "path": [ + "admin", + "deed-types", + ":uid" + ], + "variable": [ + { + "key": "uid" + } + ] + } + }, + "status": "Bad Request", + "code": 400, + "_postman_previewlanguage": "text", + "header": [], + "cookie": [], + "body": "" + } + ] + }, + { + "name": "Update an existing deed type", + "request": { + "auth": { + "type": "bearer", + "bearer": [ + { + "key": "token", + "value": "{{bearerToken}}", + "type": "string" + } + ] + }, + "method": "PUT", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + }, + { + "key": "Accept", + "value": "application/json" + } + ], + "body": { + "mode": "raw", + "raw": "{\n \"uid\": \"\",\n \"name\": \"\",\n \"description\": \"\",\n \"archived_at\": \"\",\n \"office\": {\n \"uid\": \"\",\n \"name\": \"\"\n },\n \"createdAt\": \"\",\n \"updatedAt\": \"\"\n}", + "options": { + "raw": { + "headerFamily": "json", + "language": "json" + } + } + }, + "url": { + "raw": "{{baseUrl}}/admin/deed-types/:uid", + "host": [ + "{{baseUrl}}" + ], + "path": [ + "admin", + "deed-types", + ":uid" + ], + "variable": [ + { + "key": "uid", + "value": "", + "description": "(Required) ID of deed type to return" + } + ] + }, + "description": "Returns a single deed type updated" + }, + "response": [ + { + "name": "successful operation", + "originalRequest": { + "method": "PUT", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + }, + { + "key": "Accept", + "value": "application/json" + }, + { + "description": "Added as a part of security scheme: bearer", + "key": "Authorization", + "value": "Bearer " + } + ], + "body": { + "mode": "raw", + "raw": "{\n \"uid\": \"\",\n \"name\": \"\",\n \"description\": \"\",\n \"archived_at\": \"\",\n \"office\": {\n \"uid\": \"\",\n \"name\": \"\"\n },\n \"createdAt\": \"\",\n \"updatedAt\": \"\"\n}", + "options": { + "raw": { + "headerFamily": "json", + "language": "json" + } + } + }, + "url": { + "raw": "{{baseUrl}}/admin/deed-types/:uid", + "host": [ + "{{baseUrl}}" + ], + "path": [ + "admin", + "deed-types", + ":uid" + ], + "variable": [ + { + "key": "uid" + } + ] + } + }, + "status": "OK", + "code": 200, + "_postman_previewlanguage": "json", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + } + ], + "cookie": [], + "body": "{\n \"uid\": \"\",\n \"name\": \"\",\n \"description\": \"\",\n \"archived_at\": \"\",\n \"office\": {\n \"uid\": \"\",\n \"name\": \"\"\n },\n \"createdAt\": \"\",\n \"updatedAt\": \"\"\n}" + }, + { + "name": "Invalid status value", + "originalRequest": { + "method": "PUT", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + }, + { + "description": "Added as a part of security scheme: bearer", + "key": "Authorization", + "value": "Bearer " + } + ], + "body": { + "mode": "raw", + "raw": "{\n \"uid\": \"\",\n \"name\": \"\",\n \"description\": \"\",\n \"archived_at\": \"\",\n \"office\": {\n \"uid\": \"\",\n \"name\": \"\"\n },\n \"createdAt\": \"\",\n \"updatedAt\": \"\"\n}", + "options": { + "raw": { + "headerFamily": "json", + "language": "json" + } + } + }, + "url": { + "raw": "{{baseUrl}}/admin/deed-types/:uid", + "host": [ + "{{baseUrl}}" + ], + "path": [ + "admin", + "deed-types", + ":uid" + ], + "variable": [ + { + "key": "uid" + } + ] + } + }, + "status": "Bad Request", + "code": 400, + "_postman_previewlanguage": "text", + "header": [], + "cookie": [], + "body": "" + } + ] + } + ] + }, + { + "name": "Get all deed types", + "request": { + "auth": { + "type": "bearer", + "bearer": [ + { + "key": "token", + "value": "{{bearerToken}}", + "type": "string" + } + ] + }, + "method": "GET", + "header": [ + { + "key": "Accept", + "value": "application/json" + } + ], + "url": { + "raw": "{{baseUrl}}/admin/deed-types", + "host": [ + "{{baseUrl}}" + ], + "path": [ + "admin", + "deed-types" + ] + } + }, + "response": [ + { + "name": "successful operation", + "originalRequest": { + "method": "GET", + "header": [ + { + "key": "Accept", + "value": "application/json" + }, + { + "description": "Added as a part of security scheme: bearer", + "key": "Authorization", + "value": "Bearer " + } + ], + "url": { + "raw": "{{baseUrl}}/admin/deed-types", + "host": [ + "{{baseUrl}}" + ], + "path": [ + "admin", + "deed-types" + ] + } + }, + "status": "OK", + "code": 200, + "_postman_previewlanguage": "json", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + } + ], + "cookie": [], + "body": "{\n \"uid\": \"\",\n \"name\": \"\",\n \"description\": \"\",\n \"archived_at\": \"\",\n \"office\": {\n \"uid\": \"\",\n \"name\": \"\"\n },\n \"createdAt\": \"\",\n \"updatedAt\": \"\"\n}" + }, + { + "name": "Invalid status value", + "originalRequest": { + "method": "GET", + "header": [ + { + "description": "Added as a part of security scheme: bearer", + "key": "Authorization", + "value": "Bearer " + } + ], + "url": { + "raw": "{{baseUrl}}/admin/deed-types", + "host": [ + "{{baseUrl}}" + ], + "path": [ + "admin", + "deed-types" + ] + } + }, + "status": "Bad Request", + "code": 400, + "_postman_previewlanguage": "text", + "header": [], + "cookie": [], + "body": "" + } + ] + }, + { + "name": "Add a new deed type", + "request": { + "auth": { + "type": "bearer", + "bearer": [ + { + "key": "token", + "value": "{{bearerToken}}", + "type": "string" + } + ] + }, + "method": "POST", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + }, + { + "key": "Accept", + "value": "application/json" + } + ], + "body": { + "mode": "raw", + "raw": "{\n \"uid\": \"\",\n \"name\": \"\",\n \"description\": \"\",\n \"archived_at\": \"\",\n \"office\": {\n \"uid\": \"\",\n \"name\": \"\"\n },\n \"createdAt\": \"\",\n \"updatedAt\": \"\"\n}", + "options": { + "raw": { + "headerFamily": "json", + "language": "json" + } + } + }, + "url": { + "raw": "{{baseUrl}}/admin/deed-types", + "host": [ + "{{baseUrl}}" + ], + "path": [ + "admin", + "deed-types" + ] + } + }, + "response": [ + { + "name": "successful operation", + "originalRequest": { + "method": "POST", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + }, + { + "key": "Accept", + "value": "application/json" + }, + { + "description": "Added as a part of security scheme: bearer", + "key": "Authorization", + "value": "Bearer " + } + ], + "body": { + "mode": "raw", + "raw": "{\n \"uid\": \"\",\n \"name\": \"\",\n \"description\": \"\",\n \"archived_at\": \"\",\n \"office\": {\n \"uid\": \"\",\n \"name\": \"\"\n },\n \"createdAt\": \"\",\n \"updatedAt\": \"\"\n}", + "options": { + "raw": { + "headerFamily": "json", + "language": "json" + } + } + }, + "url": { + "raw": "{{baseUrl}}/admin/deed-types", + "host": [ + "{{baseUrl}}" + ], + "path": [ + "admin", + "deed-types" + ] + } + }, + "status": "OK", + "code": 200, + "_postman_previewlanguage": "json", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + } + ], + "cookie": [], + "body": "{\n \"uid\": \"\",\n \"name\": \"\",\n \"description\": \"\",\n \"archived_at\": \"\",\n \"office\": {\n \"uid\": \"\",\n \"name\": \"\"\n },\n \"createdAt\": \"\",\n \"updatedAt\": \"\"\n}" + }, + { + "name": "Invalid status value", + "originalRequest": { + "method": "POST", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + }, + { + "description": "Added as a part of security scheme: bearer", + "key": "Authorization", + "value": "Bearer " + } + ], + "body": { + "mode": "raw", + "raw": "{\n \"uid\": \"\",\n \"name\": \"\",\n \"description\": \"\",\n \"archived_at\": \"\",\n \"office\": {\n \"uid\": \"\",\n \"name\": \"\"\n },\n \"createdAt\": \"\",\n \"updatedAt\": \"\"\n}", + "options": { + "raw": { + "headerFamily": "json", + "language": "json" + } + } + }, + "url": { + "raw": "{{baseUrl}}/admin/deed-types", + "host": [ + "{{baseUrl}}" + ], + "path": [ + "admin", + "deed-types" + ] + } + }, + "status": "Bad Request", + "code": 400, + "_postman_previewlanguage": "text", + "header": [], + "cookie": [], + "body": "" + } + ] + } + ] + }, + { + "name": "documents", + "item": [ + { + "name": "{uid}", + "item": [ + { + "name": "Find document by ID", + "request": { + "auth": { + "type": "bearer", + "bearer": [ + { + "key": "token", + "value": "{{bearerToken}}", + "type": "string" + } + ] + }, + "method": "GET", + "header": [ + { + "key": "Accept", + "value": "application/json" + } + ], + "url": { + "raw": "{{baseUrl}}/admin/documents/:uid", + "host": [ + "{{baseUrl}}" + ], + "path": [ + "admin", + "documents", + ":uid" + ], + "variable": [ + { + "key": "uid", + "value": "", + "description": "(Required) ID of document to return" + } + ] + }, + "description": "Returns a single document" + }, + "response": [ + { + "name": "successful operation", + "originalRequest": { + "method": "GET", + "header": [ + { + "key": "Accept", + "value": "application/json" + }, + { + "description": "Added as a part of security scheme: bearer", + "key": "Authorization", + "value": "Bearer " + } + ], + "url": { + "raw": "{{baseUrl}}/admin/documents/:uid", + "host": [ + "{{baseUrl}}" + ], + "path": [ + "admin", + "documents", + ":uid" + ], + "variable": [ + { + "key": "uid" + } + ] + } + }, + "status": "OK", + "code": 200, + "_postman_previewlanguage": "json", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + } + ], + "cookie": [], + "body": "{\n \"uid\": \"\",\n \"name\": \"\",\n \"type\": {\n \"uid\": \"\",\n \"name\": \"\"\n },\n \"file\": {\n \"uid\": \"\",\n \"name\": \"\"\n },\n \"folder\": {\n \"uid\": \"\",\n \"name\": \"\"\n },\n \"createdAt\": \"\",\n \"updatedAt\": \"\"\n}" + }, + { + "name": "Invalid status value", + "originalRequest": { + "method": "GET", + "header": [ + { + "description": "Added as a part of security scheme: bearer", + "key": "Authorization", + "value": "Bearer " + } + ], + "url": { + "raw": "{{baseUrl}}/admin/documents/:uid", + "host": [ + "{{baseUrl}}" + ], + "path": [ + "admin", + "documents", + ":uid" + ], + "variable": [ + { + "key": "uid" + } + ] + } + }, + "status": "Bad Request", + "code": 400, + "_postman_previewlanguage": "text", + "header": [], + "cookie": [], + "body": "" + } + ] + }, + { + "name": "Update an existing document", + "request": { + "auth": { + "type": "bearer", + "bearer": [ + { + "key": "token", + "value": "{{bearerToken}}", + "type": "string" + } + ] + }, + "method": "PUT", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + }, + { + "key": "Accept", + "value": "application/json" + } + ], + "body": { + "mode": "raw", + "raw": "{\n \"uid\": \"\",\n \"name\": \"\",\n \"type\": {\n \"uid\": \"\",\n \"name\": \"\"\n },\n \"file\": {\n \"uid\": \"\",\n \"name\": \"\"\n },\n \"folder\": {\n \"uid\": \"\",\n \"name\": \"\"\n },\n \"createdAt\": \"\",\n \"updatedAt\": \"\"\n}", + "options": { + "raw": { + "headerFamily": "json", + "language": "json" + } + } + }, + "url": { + "raw": "{{baseUrl}}/admin/documents/:uid", + "host": [ + "{{baseUrl}}" + ], + "path": [ + "admin", + "documents", + ":uid" + ], + "variable": [ + { + "key": "uid", + "value": "", + "description": "(Required) ID of document to return" + } + ] + }, + "description": "Returns a single document updated" + }, + "response": [ + { + "name": "successful operation", + "originalRequest": { + "method": "PUT", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + }, + { + "key": "Accept", + "value": "application/json" + }, + { + "description": "Added as a part of security scheme: bearer", + "key": "Authorization", + "value": "Bearer " + } + ], + "body": { + "mode": "raw", + "raw": "{\n \"uid\": \"\",\n \"name\": \"\",\n \"type\": {\n \"uid\": \"\",\n \"name\": \"\"\n },\n \"file\": {\n \"uid\": \"\",\n \"name\": \"\"\n },\n \"folder\": {\n \"uid\": \"\",\n \"name\": \"\"\n },\n \"createdAt\": \"\",\n \"updatedAt\": \"\"\n}", + "options": { + "raw": { + "headerFamily": "json", + "language": "json" + } + } + }, + "url": { + "raw": "{{baseUrl}}/admin/documents/:uid", + "host": [ + "{{baseUrl}}" + ], + "path": [ + "admin", + "documents", + ":uid" + ], + "variable": [ + { + "key": "uid" + } + ] + } + }, + "status": "OK", + "code": 200, + "_postman_previewlanguage": "json", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + } + ], + "cookie": [], + "body": "{\n \"uid\": \"\",\n \"name\": \"\",\n \"type\": {\n \"uid\": \"\",\n \"name\": \"\"\n },\n \"file\": {\n \"uid\": \"\",\n \"name\": \"\"\n },\n \"folder\": {\n \"uid\": \"\",\n \"name\": \"\"\n },\n \"createdAt\": \"\",\n \"updatedAt\": \"\"\n}" + }, + { + "name": "Invalid status value", + "originalRequest": { + "method": "PUT", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + }, + { + "description": "Added as a part of security scheme: bearer", + "key": "Authorization", + "value": "Bearer " + } + ], + "body": { + "mode": "raw", + "raw": "{\n \"uid\": \"\",\n \"name\": \"\",\n \"type\": {\n \"uid\": \"\",\n \"name\": \"\"\n },\n \"file\": {\n \"uid\": \"\",\n \"name\": \"\"\n },\n \"folder\": {\n \"uid\": \"\",\n \"name\": \"\"\n },\n \"createdAt\": \"\",\n \"updatedAt\": \"\"\n}", + "options": { + "raw": { + "headerFamily": "json", + "language": "json" + } + } + }, + "url": { + "raw": "{{baseUrl}}/admin/documents/:uid", + "host": [ + "{{baseUrl}}" + ], + "path": [ + "admin", + "documents", + ":uid" + ], + "variable": [ + { + "key": "uid" + } + ] + } + }, + "status": "Bad Request", + "code": 400, + "_postman_previewlanguage": "text", + "header": [], + "cookie": [], + "body": "" + } + ] + }, + { + "name": "Delete an existing document", + "request": { + "auth": { + "type": "bearer", + "bearer": [ + { + "key": "token", + "value": "{{bearerToken}}", + "type": "string" + } + ] + }, + "method": "DELETE", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + }, + { + "key": "Accept", + "value": "application/json" + } + ], + "body": { + "mode": "raw", + "raw": "{\n \"uid\": \"\",\n \"name\": \"\",\n \"type\": {\n \"uid\": \"\",\n \"name\": \"\"\n },\n \"file\": {\n \"uid\": \"\",\n \"name\": \"\"\n },\n \"folder\": {\n \"uid\": \"\",\n \"name\": \"\"\n },\n \"createdAt\": \"\",\n \"updatedAt\": \"\"\n}", + "options": { + "raw": { + "headerFamily": "json", + "language": "json" + } + } + }, + "url": { + "raw": "{{baseUrl}}/admin/documents/:uid", + "host": [ + "{{baseUrl}}" + ], + "path": [ + "admin", + "documents", + ":uid" + ], + "variable": [ + { + "key": "uid", + "value": "", + "description": "(Required) ID of document to return" + } + ] + }, + "description": "Returns a single document deleted" + }, + "response": [ + { + "name": "successful operation", + "originalRequest": { + "method": "DELETE", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + }, + { + "key": "Accept", + "value": "application/json" + }, + { + "description": "Added as a part of security scheme: bearer", + "key": "Authorization", + "value": "Bearer " + } + ], + "body": { + "mode": "raw", + "raw": "{\n \"uid\": \"\",\n \"name\": \"\",\n \"type\": {\n \"uid\": \"\",\n \"name\": \"\"\n },\n \"file\": {\n \"uid\": \"\",\n \"name\": \"\"\n },\n \"folder\": {\n \"uid\": \"\",\n \"name\": \"\"\n },\n \"createdAt\": \"\",\n \"updatedAt\": \"\"\n}", + "options": { + "raw": { + "headerFamily": "json", + "language": "json" + } + } + }, + "url": { + "raw": "{{baseUrl}}/admin/documents/:uid", + "host": [ + "{{baseUrl}}" + ], + "path": [ + "admin", + "documents", + ":uid" + ], + "variable": [ + { + "key": "uid" + } + ] + } + }, + "status": "OK", + "code": 200, + "_postman_previewlanguage": "json", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + } + ], + "cookie": [], + "body": "{\n \"uid\": \"\",\n \"name\": \"\",\n \"type\": {\n \"uid\": \"\",\n \"name\": \"\"\n },\n \"file\": {\n \"uid\": \"\",\n \"name\": \"\"\n },\n \"folder\": {\n \"uid\": \"\",\n \"name\": \"\"\n },\n \"createdAt\": \"\",\n \"updatedAt\": \"\"\n}" + }, + { + "name": "Invalid status value", + "originalRequest": { + "method": "DELETE", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + }, + { + "description": "Added as a part of security scheme: bearer", + "key": "Authorization", + "value": "Bearer " + } + ], + "body": { + "mode": "raw", + "raw": "{\n \"uid\": \"\",\n \"name\": \"\",\n \"type\": {\n \"uid\": \"\",\n \"name\": \"\"\n },\n \"file\": {\n \"uid\": \"\",\n \"name\": \"\"\n },\n \"folder\": {\n \"uid\": \"\",\n \"name\": \"\"\n },\n \"createdAt\": \"\",\n \"updatedAt\": \"\"\n}", + "options": { + "raw": { + "headerFamily": "json", + "language": "json" + } + } + }, + "url": { + "raw": "{{baseUrl}}/admin/documents/:uid", + "host": [ + "{{baseUrl}}" + ], + "path": [ + "admin", + "documents", + ":uid" + ], + "variable": [ + { + "key": "uid" + } + ] + } + }, + "status": "Bad Request", + "code": 400, + "_postman_previewlanguage": "text", + "header": [], + "cookie": [], + "body": "" + } + ] + } + ] + }, + { + "name": "Get all documents", + "request": { + "auth": { + "type": "bearer", + "bearer": [ + { + "key": "token", + "value": "{{bearerToken}}", + "type": "string" + } + ] + }, + "method": "GET", + "header": [ + { + "key": "Accept", + "value": "application/json" + } + ], + "url": { + "raw": "{{baseUrl}}/admin/documents", + "host": [ + "{{baseUrl}}" + ], + "path": [ + "admin", + "documents" + ] + } + }, + "response": [ + { + "name": "successful operation", + "originalRequest": { + "method": "GET", + "header": [ + { + "key": "Accept", + "value": "application/json" + }, + { + "description": "Added as a part of security scheme: bearer", + "key": "Authorization", + "value": "Bearer " + } + ], + "url": { + "raw": "{{baseUrl}}/admin/documents", + "host": [ + "{{baseUrl}}" + ], + "path": [ + "admin", + "documents" + ] + } + }, + "status": "OK", + "code": 200, + "_postman_previewlanguage": "json", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + } + ], + "cookie": [], + "body": "{\n \"uid\": \"\",\n \"name\": \"\",\n \"type\": {\n \"uid\": \"\",\n \"name\": \"\"\n },\n \"file\": {\n \"uid\": \"\",\n \"name\": \"\"\n },\n \"folder\": {\n \"uid\": \"\",\n \"name\": \"\"\n },\n \"createdAt\": \"\",\n \"updatedAt\": \"\"\n}" + }, + { + "name": "Invalid status value", + "originalRequest": { + "method": "GET", + "header": [ + { + "description": "Added as a part of security scheme: bearer", + "key": "Authorization", + "value": "Bearer " + } + ], + "url": { + "raw": "{{baseUrl}}/admin/documents", + "host": [ + "{{baseUrl}}" + ], + "path": [ + "admin", + "documents" + ] + } + }, + "status": "Bad Request", + "code": 400, + "_postman_previewlanguage": "text", + "header": [], + "cookie": [], + "body": "" + } + ] + }, + { + "name": "Add a new document", + "request": { + "auth": { + "type": "bearer", + "bearer": [ + { + "key": "token", + "value": "{{bearerToken}}", + "type": "string" + } + ] + }, + "method": "POST", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + }, + { + "key": "Accept", + "value": "application/json" + } + ], + "body": { + "mode": "raw", + "raw": "{\n \"uid\": \"\",\n \"name\": \"\",\n \"type\": {\n \"uid\": \"\",\n \"name\": \"\"\n },\n \"file\": {\n \"uid\": \"\",\n \"name\": \"\"\n },\n \"folder\": {\n \"uid\": \"\",\n \"name\": \"\"\n },\n \"createdAt\": \"\",\n \"updatedAt\": \"\"\n}", + "options": { + "raw": { + "headerFamily": "json", + "language": "json" + } + } + }, + "url": { + "raw": "{{baseUrl}}/admin/documents", + "host": [ + "{{baseUrl}}" + ], + "path": [ + "admin", + "documents" + ] + } + }, + "response": [ + { + "name": "successful operation", + "originalRequest": { + "method": "POST", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + }, + { + "key": "Accept", + "value": "application/json" + }, + { + "description": "Added as a part of security scheme: bearer", + "key": "Authorization", + "value": "Bearer " + } + ], + "body": { + "mode": "raw", + "raw": "{\n \"uid\": \"\",\n \"name\": \"\",\n \"type\": {\n \"uid\": \"\",\n \"name\": \"\"\n },\n \"file\": {\n \"uid\": \"\",\n \"name\": \"\"\n },\n \"folder\": {\n \"uid\": \"\",\n \"name\": \"\"\n },\n \"createdAt\": \"\",\n \"updatedAt\": \"\"\n}", + "options": { + "raw": { + "headerFamily": "json", + "language": "json" + } + } + }, + "url": { + "raw": "{{baseUrl}}/admin/documents", + "host": [ + "{{baseUrl}}" + ], + "path": [ + "admin", + "documents" + ] + } + }, + "status": "OK", + "code": 200, + "_postman_previewlanguage": "json", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + } + ], + "cookie": [], + "body": "{\n \"uid\": \"\",\n \"name\": \"\",\n \"type\": {\n \"uid\": \"\",\n \"name\": \"\"\n },\n \"file\": {\n \"uid\": \"\",\n \"name\": \"\"\n },\n \"folder\": {\n \"uid\": \"\",\n \"name\": \"\"\n },\n \"createdAt\": \"\",\n \"updatedAt\": \"\"\n}" + }, + { + "name": "Invalid status value", + "originalRequest": { + "method": "POST", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + }, + { + "description": "Added as a part of security scheme: bearer", + "key": "Authorization", + "value": "Bearer " + } + ], + "body": { + "mode": "raw", + "raw": "{\n \"uid\": \"\",\n \"name\": \"\",\n \"type\": {\n \"uid\": \"\",\n \"name\": \"\"\n },\n \"file\": {\n \"uid\": \"\",\n \"name\": \"\"\n },\n \"folder\": {\n \"uid\": \"\",\n \"name\": \"\"\n },\n \"createdAt\": \"\",\n \"updatedAt\": \"\"\n}", + "options": { + "raw": { + "headerFamily": "json", + "language": "json" + } + } + }, + "url": { + "raw": "{{baseUrl}}/admin/documents", + "host": [ + "{{baseUrl}}" + ], + "path": [ + "admin", + "documents" + ] + } + }, + "status": "Bad Request", + "code": 400, + "_postman_previewlanguage": "text", + "header": [], + "cookie": [], + "body": "" + } + ] + } + ] + }, + { + "name": "document-types", + "item": [ + { + "name": "{uid}", + "item": [ + { + "name": "Find document type by ID", + "request": { + "auth": { + "type": "bearer", + "bearer": [ + { + "key": "token", + "value": "{{bearerToken}}", + "type": "string" + } + ] + }, + "method": "GET", + "header": [ + { + "key": "Accept", + "value": "application/json" + } + ], + "url": { + "raw": "{{baseUrl}}/admin/document-types/:uid", + "host": [ + "{{baseUrl}}" + ], + "path": [ + "admin", + "document-types", + ":uid" + ], + "variable": [ + { + "key": "uid", + "value": "", + "description": "(Required) ID of document type to return" + } + ] + }, + "description": "Returns a single document type" + }, + "response": [ + { + "name": "successful operation", + "originalRequest": { + "method": "GET", + "header": [ + { + "key": "Accept", + "value": "application/json" + }, + { + "description": "Added as a part of security scheme: bearer", + "key": "Authorization", + "value": "Bearer " + } + ], + "url": { + "raw": "{{baseUrl}}/admin/document-types/:uid", + "host": [ + "{{baseUrl}}" + ], + "path": [ + "admin", + "document-types", + ":uid" + ], + "variable": [ + { + "key": "uid" + } + ] + } + }, + "status": "OK", + "code": 200, + "_postman_previewlanguage": "json", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + } + ], + "cookie": [], + "body": "{\n \"uid\": \"\",\n \"name\": \"\",\n \"office\": {\n \"uid\": \"\",\n \"name\": \"\"\n },\n \"createdAt\": \"\",\n \"updatedAt\": \"\"\n}" + }, + { + "name": "Invalid status value", + "originalRequest": { + "method": "GET", + "header": [ + { + "description": "Added as a part of security scheme: bearer", + "key": "Authorization", + "value": "Bearer " + } + ], + "url": { + "raw": "{{baseUrl}}/admin/document-types/:uid", + "host": [ + "{{baseUrl}}" + ], + "path": [ + "admin", + "document-types", + ":uid" + ], + "variable": [ + { + "key": "uid" + } + ] + } + }, + "status": "Bad Request", + "code": 400, + "_postman_previewlanguage": "text", + "header": [], + "cookie": [], + "body": "" + } + ] + }, + { + "name": "Update an existing document type", + "request": { + "auth": { + "type": "bearer", + "bearer": [ + { + "key": "token", + "value": "{{bearerToken}}", + "type": "string" + } + ] + }, + "method": "PUT", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + }, + { + "key": "Accept", + "value": "application/json" + } + ], + "body": { + "mode": "raw", + "raw": "{\n \"uid\": \"\",\n \"name\": \"\",\n \"office\": {\n \"uid\": \"\",\n \"name\": \"\"\n },\n \"createdAt\": \"\",\n \"updatedAt\": \"\"\n}", + "options": { + "raw": { + "headerFamily": "json", + "language": "json" + } + } + }, + "url": { + "raw": "{{baseUrl}}/admin/document-types/:uid", + "host": [ + "{{baseUrl}}" + ], + "path": [ + "admin", + "document-types", + ":uid" + ], + "variable": [ + { + "key": "uid", + "value": "", + "description": "(Required) ID of document type to return" + } + ] + }, + "description": "Returns a single document type updated" + }, + "response": [ + { + "name": "successful operation", + "originalRequest": { + "method": "PUT", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + }, + { + "key": "Accept", + "value": "application/json" + }, + { + "description": "Added as a part of security scheme: bearer", + "key": "Authorization", + "value": "Bearer " + } + ], + "body": { + "mode": "raw", + "raw": "{\n \"uid\": \"\",\n \"name\": \"\",\n \"office\": {\n \"uid\": \"\",\n \"name\": \"\"\n },\n \"createdAt\": \"\",\n \"updatedAt\": \"\"\n}", + "options": { + "raw": { + "headerFamily": "json", + "language": "json" + } + } + }, + "url": { + "raw": "{{baseUrl}}/admin/document-types/:uid", + "host": [ + "{{baseUrl}}" + ], + "path": [ + "admin", + "document-types", + ":uid" + ], + "variable": [ + { + "key": "uid" + } + ] + } + }, + "status": "OK", + "code": 200, + "_postman_previewlanguage": "json", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + } + ], + "cookie": [], + "body": "{\n \"uid\": \"\",\n \"name\": \"\",\n \"office\": {\n \"uid\": \"\",\n \"name\": \"\"\n },\n \"createdAt\": \"\",\n \"updatedAt\": \"\"\n}" + }, + { + "name": "Invalid status value", + "originalRequest": { + "method": "PUT", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + }, + { + "description": "Added as a part of security scheme: bearer", + "key": "Authorization", + "value": "Bearer " + } + ], + "body": { + "mode": "raw", + "raw": "{\n \"uid\": \"\",\n \"name\": \"\",\n \"office\": {\n \"uid\": \"\",\n \"name\": \"\"\n },\n \"createdAt\": \"\",\n \"updatedAt\": \"\"\n}", + "options": { + "raw": { + "headerFamily": "json", + "language": "json" + } + } + }, + "url": { + "raw": "{{baseUrl}}/admin/document-types/:uid", + "host": [ + "{{baseUrl}}" + ], + "path": [ + "admin", + "document-types", + ":uid" + ], + "variable": [ + { + "key": "uid" + } + ] + } + }, + "status": "Bad Request", + "code": 400, + "_postman_previewlanguage": "text", + "header": [], + "cookie": [], + "body": "" + } + ] + }, + { + "name": "Delete an existing document type", + "request": { + "auth": { + "type": "bearer", + "bearer": [ + { + "key": "token", + "value": "{{bearerToken}}", + "type": "string" + } + ] + }, + "method": "DELETE", + "header": [ + { + "key": "Accept", + "value": "application/json" + } + ], + "url": { + "raw": "{{baseUrl}}/admin/document-types/:uid", + "host": [ + "{{baseUrl}}" + ], + "path": [ + "admin", + "document-types", + ":uid" + ], + "variable": [ + { + "key": "uid", + "value": "", + "description": "(Required) ID of document type to return" + } + ] + }, + "description": "Returns a single document type deleted" + }, + "response": [ + { + "name": "successful operation", + "originalRequest": { + "method": "DELETE", + "header": [ + { + "key": "Accept", + "value": "application/json" + }, + { + "description": "Added as a part of security scheme: bearer", + "key": "Authorization", + "value": "Bearer " + } + ], + "url": { + "raw": "{{baseUrl}}/admin/document-types/:uid", + "host": [ + "{{baseUrl}}" + ], + "path": [ + "admin", + "document-types", + ":uid" + ], + "variable": [ + { + "key": "uid" + } + ] + } + }, + "status": "OK", + "code": 200, + "_postman_previewlanguage": "json", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + } + ], + "cookie": [], + "body": "{\n \"uid\": \"\",\n \"name\": \"\",\n \"office\": {\n \"uid\": \"\",\n \"name\": \"\"\n },\n \"createdAt\": \"\",\n \"updatedAt\": \"\"\n}" + }, + { + "name": "Invalid status value", + "originalRequest": { + "method": "DELETE", + "header": [ + { + "description": "Added as a part of security scheme: bearer", + "key": "Authorization", + "value": "Bearer " + } + ], + "url": { + "raw": "{{baseUrl}}/admin/document-types/:uid", + "host": [ + "{{baseUrl}}" + ], + "path": [ + "admin", + "document-types", + ":uid" + ], + "variable": [ + { + "key": "uid" + } + ] + } + }, + "status": "Bad Request", + "code": 400, + "_postman_previewlanguage": "text", + "header": [], + "cookie": [], + "body": "" + } + ] + } + ] + }, + { + "name": "Get all document types", + "request": { + "auth": { + "type": "bearer", + "bearer": [ + { + "key": "token", + "value": "{{bearerToken}}", + "type": "string" + } + ] + }, + "method": "GET", + "header": [ + { + "key": "Accept", + "value": "application/json" + } + ], + "url": { + "raw": "{{baseUrl}}/admin/document-types", + "host": [ + "{{baseUrl}}" + ], + "path": [ + "admin", + "document-types" + ] + } + }, + "response": [ + { + "name": "successful operation", + "originalRequest": { + "method": "GET", + "header": [ + { + "key": "Accept", + "value": "application/json" + }, + { + "description": "Added as a part of security scheme: bearer", + "key": "Authorization", + "value": "Bearer " + } + ], + "url": { + "raw": "{{baseUrl}}/admin/document-types", + "host": [ + "{{baseUrl}}" + ], + "path": [ + "admin", + "document-types" + ] + } + }, + "status": "OK", + "code": 200, + "_postman_previewlanguage": "json", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + } + ], + "cookie": [], + "body": "{\n \"uid\": \"\",\n \"name\": \"\",\n \"office\": {\n \"uid\": \"\",\n \"name\": \"\"\n },\n \"createdAt\": \"\",\n \"updatedAt\": \"\"\n}" + }, + { + "name": "Invalid status value", + "originalRequest": { + "method": "GET", + "header": [ + { + "description": "Added as a part of security scheme: bearer", + "key": "Authorization", + "value": "Bearer " + } + ], + "url": { + "raw": "{{baseUrl}}/admin/document-types", + "host": [ + "{{baseUrl}}" + ], + "path": [ + "admin", + "document-types" + ] + } + }, + "status": "Bad Request", + "code": 400, + "_postman_previewlanguage": "text", + "header": [], + "cookie": [], + "body": "" + } + ] + }, + { + "name": "Add a new document type", + "request": { + "auth": { + "type": "bearer", + "bearer": [ + { + "key": "token", + "value": "{{bearerToken}}", + "type": "string" + } + ] + }, + "method": "POST", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + }, + { + "key": "Accept", + "value": "application/json" + } + ], + "body": { + "mode": "raw", + "raw": "{\n \"uid\": \"\",\n \"name\": \"\",\n \"office\": {\n \"uid\": \"\",\n \"name\": \"\"\n },\n \"createdAt\": \"\",\n \"updatedAt\": \"\"\n}", + "options": { + "raw": { + "headerFamily": "json", + "language": "json" + } + } + }, + "url": { + "raw": "{{baseUrl}}/admin/document-types", + "host": [ + "{{baseUrl}}" + ], + "path": [ + "admin", + "document-types" + ] + } + }, + "response": [ + { + "name": "successful operation", + "originalRequest": { + "method": "POST", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + }, + { + "key": "Accept", + "value": "application/json" + }, + { + "description": "Added as a part of security scheme: bearer", + "key": "Authorization", + "value": "Bearer " + } + ], + "body": { + "mode": "raw", + "raw": "{\n \"uid\": \"\",\n \"name\": \"\",\n \"office\": {\n \"uid\": \"\",\n \"name\": \"\"\n },\n \"createdAt\": \"\",\n \"updatedAt\": \"\"\n}", + "options": { + "raw": { + "headerFamily": "json", + "language": "json" + } + } + }, + "url": { + "raw": "{{baseUrl}}/admin/document-types", + "host": [ + "{{baseUrl}}" + ], + "path": [ + "admin", + "document-types" + ] + } + }, + "status": "OK", + "code": 200, + "_postman_previewlanguage": "json", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + } + ], + "cookie": [], + "body": "{\n \"uid\": \"\",\n \"name\": \"\",\n \"office\": {\n \"uid\": \"\",\n \"name\": \"\"\n },\n \"createdAt\": \"\",\n \"updatedAt\": \"\"\n}" + }, + { + "name": "Invalid status value", + "originalRequest": { + "method": "POST", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + }, + { + "description": "Added as a part of security scheme: bearer", + "key": "Authorization", + "value": "Bearer " + } + ], + "body": { + "mode": "raw", + "raw": "{\n \"uid\": \"\",\n \"name\": \"\",\n \"office\": {\n \"uid\": \"\",\n \"name\": \"\"\n },\n \"createdAt\": \"\",\n \"updatedAt\": \"\"\n}", + "options": { + "raw": { + "headerFamily": "json", + "language": "json" + } + } + }, + "url": { + "raw": "{{baseUrl}}/admin/document-types", + "host": [ + "{{baseUrl}}" + ], + "path": [ + "admin", + "document-types" + ] + } + }, + "status": "Bad Request", + "code": 400, + "_postman_previewlanguage": "text", + "header": [], + "cookie": [], + "body": "" + } + ] + } + ] + }, + { + "name": "files", + "item": [ + { + "name": "{uid}", + "item": [ + { + "name": "Find file by ID", + "request": { + "auth": { + "type": "bearer", + "bearer": [ + { + "key": "token", + "value": "{{bearerToken}}", + "type": "string" + } + ] + }, + "method": "GET", + "header": [], + "url": { + "raw": "{{baseUrl}}/admin/files/:uid", + "host": [ + "{{baseUrl}}" + ], + "path": [ + "admin", + "files", + ":uid" + ], + "variable": [ + { + "key": "uid", + "value": "", + "description": "(Required) ID of file to return" + } + ] + }, + "description": "Returns a single file" + }, + "response": [ + { + "name": "successful operation", + "originalRequest": { + "method": "GET", + "header": [ + { + "description": "Added as a part of security scheme: bearer", + "key": "Authorization", + "value": "Bearer " + } + ], + "url": { + "raw": "{{baseUrl}}/admin/files/:uid", + "host": [ + "{{baseUrl}}" + ], + "path": [ + "admin", + "files", + ":uid" + ], + "variable": [ + { + "key": "uid" + } + ] + } + }, + "status": "OK", + "code": 200, + "_postman_previewlanguage": "text", + "header": [], + "cookie": [], + "body": "" + }, + { + "name": "Invalid status value", + "originalRequest": { + "method": "GET", + "header": [ + { + "description": "Added as a part of security scheme: bearer", + "key": "Authorization", + "value": "Bearer " + } + ], + "url": { + "raw": "{{baseUrl}}/admin/files/:uid", + "host": [ + "{{baseUrl}}" + ], + "path": [ + "admin", + "files", + ":uid" + ], + "variable": [ + { + "key": "uid" + } + ] + } + }, + "status": "Bad Request", + "code": 400, + "_postman_previewlanguage": "text", + "header": [], + "cookie": [], + "body": "" + } + ] + }, + { + "name": "Delete an existing file", + "request": { + "auth": { + "type": "bearer", + "bearer": [ + { + "key": "token", + "value": "{{bearerToken}}", + "type": "string" + } + ] + }, + "method": "DELETE", + "header": [], + "url": { + "raw": "{{baseUrl}}/admin/files/:uid", + "host": [ + "{{baseUrl}}" + ], + "path": [ + "admin", + "files", + ":uid" + ], + "variable": [ + { + "key": "uid", + "value": "", + "description": "(Required) ID of file to return" + } + ] + }, + "description": "Returns a single file deleted" + }, + "response": [ + { + "name": "successful operation", + "originalRequest": { + "method": "DELETE", + "header": [ + { + "description": "Added as a part of security scheme: bearer", + "key": "Authorization", + "value": "Bearer " + } + ], + "url": { + "raw": "{{baseUrl}}/admin/files/:uid", + "host": [ + "{{baseUrl}}" + ], + "path": [ + "admin", + "files", + ":uid" + ], + "variable": [ + { + "key": "uid" + } + ] + } + }, + "status": "OK", + "code": 200, + "_postman_previewlanguage": "text", + "header": [], + "cookie": [], + "body": "" + }, + { + "name": "Invalid status value", + "originalRequest": { + "method": "DELETE", + "header": [ + { + "description": "Added as a part of security scheme: bearer", + "key": "Authorization", + "value": "Bearer " + } + ], + "url": { + "raw": "{{baseUrl}}/admin/files/:uid", + "host": [ + "{{baseUrl}}" + ], + "path": [ + "admin", + "files", + ":uid" + ], + "variable": [ + { + "key": "uid" + } + ] + } + }, + "status": "Bad Request", + "code": 400, + "_postman_previewlanguage": "text", + "header": [], + "cookie": [], + "body": "" + } + ] + } + ] + }, + { + "name": "download", + "item": [ + { + "name": "{uid}", + "item": [ + { + "name": "Download file by ID", + "request": { + "auth": { + "type": "bearer", + "bearer": [ + { + "key": "token", + "value": "{{bearerToken}}", + "type": "string" + } + ] + }, + "method": "GET", + "header": [], + "url": { + "raw": "{{baseUrl}}/admin/files/download/:uid", + "host": [ + "{{baseUrl}}" + ], + "path": [ + "admin", + "files", + "download", + ":uid" + ], + "variable": [ + { + "key": "uid", + "value": "", + "description": "(Required) ID of file to return" + } + ] + }, + "description": "Returns a single file" + }, + "response": [ + { + "name": "successful operation", + "originalRequest": { + "method": "GET", + "header": [ + { + "description": "Added as a part of security scheme: bearer", + "key": "Authorization", + "value": "Bearer " + } + ], + "url": { + "raw": "{{baseUrl}}/admin/files/download/:uid", + "host": [ + "{{baseUrl}}" + ], + "path": [ + "admin", + "files", + "download", + ":uid" + ], + "variable": [ + { + "key": "uid" + } + ] + } + }, + "status": "OK", + "code": 200, + "_postman_previewlanguage": "text", + "header": [], + "cookie": [], + "body": "" + }, + { + "name": "Invalid status value", + "originalRequest": { + "method": "GET", + "header": [ + { + "description": "Added as a part of security scheme: bearer", + "key": "Authorization", + "value": "Bearer " + } + ], + "url": { + "raw": "{{baseUrl}}/admin/files/download/:uid", + "host": [ + "{{baseUrl}}" + ], + "path": [ + "admin", + "files", + "download", + ":uid" + ], + "variable": [ + { + "key": "uid" + } + ] + } + }, + "status": "Bad Request", + "code": 400, + "_postman_previewlanguage": "text", + "header": [], + "cookie": [], + "body": "" + } + ] + } + ] + } + ] + }, + { + "name": "Get all files", + "request": { + "auth": { + "type": "bearer", + "bearer": [ + { + "key": "token", + "value": "{{bearerToken}}", + "type": "string" + } + ] + }, + "method": "GET", + "header": [], + "url": { + "raw": "{{baseUrl}}/admin/files", + "host": [ + "{{baseUrl}}" + ], + "path": [ + "admin", + "files" + ] + } + }, + "response": [ + { + "name": "successful operation", + "originalRequest": { + "method": "GET", + "header": [ + { + "description": "Added as a part of security scheme: bearer", + "key": "Authorization", + "value": "Bearer " + } + ], + "url": { + "raw": "{{baseUrl}}/admin/files", + "host": [ + "{{baseUrl}}" + ], + "path": [ + "admin", + "files" + ] + } + }, + "status": "OK", + "code": 200, + "_postman_previewlanguage": "text", + "header": [], + "cookie": [], + "body": "" + }, + { + "name": "Invalid status value", + "originalRequest": { + "method": "GET", + "header": [ + { + "description": "Added as a part of security scheme: bearer", + "key": "Authorization", + "value": "Bearer " + } + ], + "url": { + "raw": "{{baseUrl}}/admin/files", + "host": [ + "{{baseUrl}}" + ], + "path": [ + "admin", + "files" + ] + } + }, + "status": "Bad Request", + "code": 400, + "_postman_previewlanguage": "text", + "header": [], + "cookie": [], + "body": "" + } + ] + } + ] + }, + { + "name": "anchors", + "item": [ + { + "name": "{uid}", + "item": [ + { + "name": "Find anchor by ID", + "request": { + "auth": { + "type": "bearer", + "bearer": [ + { + "key": "token", + "value": "{{bearerToken}}", + "type": "string" + } + ] + }, + "method": "GET", + "header": [], + "url": { + "raw": "{{baseUrl}}/admin/anchors/:uid", + "host": [ + "{{baseUrl}}" + ], + "path": [ + "admin", + "anchors", + ":uid" + ], + "variable": [ + { + "key": "uid", + "value": "", + "description": "(Required) ID of anchor to return" + } + ] + }, + "description": "Returns a single anchor" + }, + "response": [ + { + "name": "successful operation", + "originalRequest": { + "method": "GET", + "header": [ + { + "description": "Added as a part of security scheme: bearer", + "key": "Authorization", + "value": "Bearer " + } + ], + "url": { + "raw": "{{baseUrl}}/admin/anchors/:uid", + "host": [ + "{{baseUrl}}" + ], + "path": [ + "admin", + "anchors", + ":uid" + ], + "variable": [ + { + "key": "uid" + } + ] + } + }, + "status": "OK", + "code": 200, + "_postman_previewlanguage": "text", + "header": [], + "cookie": [], + "body": "" + }, + { + "name": "Invalid status value", + "originalRequest": { + "method": "GET", + "header": [ + { + "description": "Added as a part of security scheme: bearer", + "key": "Authorization", + "value": "Bearer " + } + ], + "url": { + "raw": "{{baseUrl}}/admin/anchors/:uid", + "host": [ + "{{baseUrl}}" + ], + "path": [ + "admin", + "anchors", + ":uid" + ], + "variable": [ + { + "key": "uid" + } + ] + } + }, + "status": "Bad Request", + "code": 400, + "_postman_previewlanguage": "text", + "header": [], + "cookie": [], + "body": "" + } + ] + }, + { + "name": "Add a new anchor", + "request": { + "auth": { + "type": "bearer", + "bearer": [ + { + "key": "token", + "value": "{{bearerToken}}", + "type": "string" + } + ] + }, + "method": "POST", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + } + ], + "body": { + "mode": "raw", + "raw": "{\n \"value\": \"reference #/components/schemas/Anchor not found in the OpenAPI spec\"\n}", + "options": { + "raw": { + "headerFamily": "json", + "language": "json" + } + } + }, + "url": { + "raw": "{{baseUrl}}/admin/anchors/:uid", + "host": [ + "{{baseUrl}}" + ], + "path": [ + "admin", + "anchors", + ":uid" + ], + "variable": [ + { + "key": "uid", + "value": "", + "description": "(Required) ID of anchor to return" + } + ] + } + }, + "response": [ + { + "name": "successful operation", + "originalRequest": { + "method": "POST", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + }, + { + "description": "Added as a part of security scheme: bearer", + "key": "Authorization", + "value": "Bearer " + } + ], + "body": { + "mode": "raw", + "raw": "{\n \"value\": \"reference #/components/schemas/Anchor not found in the OpenAPI spec\"\n}", + "options": { + "raw": { + "headerFamily": "json", + "language": "json" + } + } + }, + "url": { + "raw": "{{baseUrl}}/admin/anchors/:uid", + "host": [ + "{{baseUrl}}" + ], + "path": [ + "admin", + "anchors", + ":uid" + ], + "variable": [ + { + "key": "uid" + } + ] + } + }, + "status": "OK", + "code": 200, + "_postman_previewlanguage": "text", + "header": [], + "cookie": [], + "body": "" + }, + { + "name": "Invalid status value", + "originalRequest": { + "method": "POST", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + }, + { + "description": "Added as a part of security scheme: bearer", + "key": "Authorization", + "value": "Bearer " + } + ], + "body": { + "mode": "raw", + "raw": "{\n \"value\": \"reference #/components/schemas/Anchor not found in the OpenAPI spec\"\n}", + "options": { + "raw": { + "headerFamily": "json", + "language": "json" + } + } + }, + "url": { + "raw": "{{baseUrl}}/admin/anchors/:uid", + "host": [ + "{{baseUrl}}" + ], + "path": [ + "admin", + "anchors", + ":uid" + ], + "variable": [ + { + "key": "uid" + } + ] + } + }, + "status": "Bad Request", + "code": 400, + "_postman_previewlanguage": "text", + "header": [], + "cookie": [], + "body": "" + } + ] + } + ] + }, + { + "name": "download", + "item": [ + { + "name": "{uid}", + "item": [ + { + "name": "Download anchor by ID", + "request": { + "auth": { + "type": "bearer", + "bearer": [ + { + "key": "token", + "value": "{{bearerToken}}", + "type": "string" + } + ] + }, + "method": "GET", + "header": [], + "url": { + "raw": "{{baseUrl}}/admin/anchors/download/:uid", + "host": [ + "{{baseUrl}}" + ], + "path": [ + "admin", + "anchors", + "download", + ":uid" + ], + "variable": [ + { + "key": "uid", + "value": "", + "description": "(Required) ID of anchor to return" + } + ] + }, + "description": "Returns a single anchor" + }, + "response": [ + { + "name": "successful operation", + "originalRequest": { + "method": "GET", + "header": [ + { + "description": "Added as a part of security scheme: bearer", + "key": "Authorization", + "value": "Bearer " + } + ], + "url": { + "raw": "{{baseUrl}}/admin/anchors/download/:uid", + "host": [ + "{{baseUrl}}" + ], + "path": [ + "admin", + "anchors", + "download", + ":uid" + ], + "variable": [ + { + "key": "uid" + } + ] + } + }, + "status": "OK", + "code": 200, + "_postman_previewlanguage": "text", + "header": [], + "cookie": [], + "body": "" + }, + { + "name": "Invalid status value", + "originalRequest": { + "method": "GET", + "header": [ + { + "description": "Added as a part of security scheme: bearer", + "key": "Authorization", + "value": "Bearer " + } + ], + "url": { + "raw": "{{baseUrl}}/admin/anchors/download/:uid", + "host": [ + "{{baseUrl}}" + ], + "path": [ + "admin", + "anchors", + "download", + ":uid" + ], + "variable": [ + { + "key": "uid" + } + ] + } + }, + "status": "Bad Request", + "code": 400, + "_postman_previewlanguage": "text", + "header": [], + "cookie": [], + "body": "" + } + ] + } + ] + } + ] + }, + { + "name": "Get all anchors", + "request": { + "auth": { + "type": "bearer", + "bearer": [ + { + "key": "token", + "value": "{{bearerToken}}", + "type": "string" + } + ] + }, + "method": "GET", + "header": [], + "url": { + "raw": "{{baseUrl}}/admin/anchors", + "host": [ + "{{baseUrl}}" + ], + "path": [ + "admin", + "anchors" + ] + } + }, + "response": [ + { + "name": "successful operation", + "originalRequest": { + "method": "GET", + "header": [ + { + "description": "Added as a part of security scheme: bearer", + "key": "Authorization", + "value": "Bearer " + } + ], + "url": { + "raw": "{{baseUrl}}/admin/anchors", + "host": [ + "{{baseUrl}}" + ], + "path": [ + "admin", + "anchors" + ] + } + }, + "status": "OK", + "code": 200, + "_postman_previewlanguage": "text", + "header": [], + "cookie": [], + "body": "" + }, + { + "name": "Invalid status value", + "originalRequest": { + "method": "GET", + "header": [ + { + "description": "Added as a part of security scheme: bearer", + "key": "Authorization", + "value": "Bearer " + } + ], + "url": { + "raw": "{{baseUrl}}/admin/anchors", + "host": [ + "{{baseUrl}}" + ], + "path": [ + "admin", + "anchors" + ] + } + }, + "status": "Bad Request", + "code": 400, + "_postman_previewlanguage": "text", + "header": [], + "cookie": [], + "body": "" + } + ] + } + ] + }, + { + "name": "folders", + "item": [ + { + "name": "{uid}", + "item": [ + { + "name": "Update an existing folder", + "request": { + "auth": { + "type": "bearer", + "bearer": [ + { + "key": "token", + "value": "{{bearerToken}}", + "type": "string" + } + ] + }, + "method": "PUT", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + } + ], + "body": { + "mode": "raw", + "raw": "{\n \"uid\": \"\",\n \"deed\": {\n \"uid\": \"\",\n \"deed_type\": {\n \"uid\": \"\",\n \"name\": \"\",\n \"description\": \"\",\n \"archived_at\": \"\",\n \"createdAt\": \"\",\n \"updatedAt\": \"\"\n }\n },\n \"office\": {\n \"uid\": \"\",\n \"name\": \"\"\n },\n \"createdAt\": \"\",\n \"updatedAt\": \"\"\n}", + "options": { + "raw": { + "headerFamily": "json", + "language": "json" + } + } + }, + "url": { + "raw": "{{baseUrl}}/admin/folders/:uid", + "host": [ + "{{baseUrl}}" + ], + "path": [ + "admin", + "folders", + ":uid" + ], + "variable": [ + { + "key": "uid", + "value": "", + "description": "(Required) ID of folder to return" + } + ] + }, + "description": "Returns a single folder updated" + }, + "response": [ + { + "name": "successful operation", + "originalRequest": { + "method": "PUT", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + }, + { + "description": "Added as a part of security scheme: bearer", + "key": "Authorization", + "value": "Bearer " + } + ], + "body": { + "mode": "raw", + "raw": "{\n \"uid\": \"\",\n \"deed\": {\n \"uid\": \"\",\n \"deed_type\": {\n \"uid\": \"\",\n \"name\": \"\",\n \"description\": \"\",\n \"archived_at\": \"\",\n \"createdAt\": \"\",\n \"updatedAt\": \"\"\n }\n },\n \"office\": {\n \"uid\": \"\",\n \"name\": \"\"\n },\n \"createdAt\": \"\",\n \"updatedAt\": \"\"\n}", + "options": { + "raw": { + "headerFamily": "json", + "language": "json" + } + } + }, + "url": { + "raw": "{{baseUrl}}/admin/folders/:uid", + "host": [ + "{{baseUrl}}" + ], + "path": [ + "admin", + "folders", + ":uid" + ], + "variable": [ + { + "key": "uid" + } + ] + } + }, + "status": "OK", + "code": 200, + "_postman_previewlanguage": "text", + "header": [], + "cookie": [], + "body": "" + }, + { + "name": "Invalid status value", + "originalRequest": { + "method": "PUT", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + }, + { + "description": "Added as a part of security scheme: bearer", + "key": "Authorization", + "value": "Bearer " + } + ], + "body": { + "mode": "raw", + "raw": "{\n \"uid\": \"\",\n \"deed\": {\n \"uid\": \"\",\n \"deed_type\": {\n \"uid\": \"\",\n \"name\": \"\",\n \"description\": \"\",\n \"archived_at\": \"\",\n \"createdAt\": \"\",\n \"updatedAt\": \"\"\n }\n },\n \"office\": {\n \"uid\": \"\",\n \"name\": \"\"\n },\n \"createdAt\": \"\",\n \"updatedAt\": \"\"\n}", + "options": { + "raw": { + "headerFamily": "json", + "language": "json" + } + } + }, + "url": { + "raw": "{{baseUrl}}/admin/folders/:uid", + "host": [ + "{{baseUrl}}" + ], + "path": [ + "admin", + "folders", + ":uid" + ], + "variable": [ + { + "key": "uid" + } + ] + } + }, + "status": "Bad Request", + "code": 400, + "_postman_previewlanguage": "text", + "header": [], + "cookie": [], + "body": "" + } + ] + }, + { + "name": "Delete an existing folder", + "request": { + "auth": { + "type": "bearer", + "bearer": [ + { + "key": "token", + "value": "{{bearerToken}}", + "type": "string" + } + ] + }, + "method": "DELETE", + "header": [], + "url": { + "raw": "{{baseUrl}}/admin/folders/:uid", + "host": [ + "{{baseUrl}}" + ], + "path": [ + "admin", + "folders", + ":uid" + ], + "variable": [ + { + "key": "uid", + "value": "", + "description": "(Required) ID of folder to return" + } + ] + }, + "description": "Returns a single folder deleted" + }, + "response": [ + { + "name": "successful operation", + "originalRequest": { + "method": "DELETE", + "header": [ + { + "description": "Added as a part of security scheme: bearer", + "key": "Authorization", + "value": "Bearer " + } + ], + "url": { + "raw": "{{baseUrl}}/admin/folders/:uid", + "host": [ + "{{baseUrl}}" + ], + "path": [ + "admin", + "folders", + ":uid" + ], + "variable": [ + { + "key": "uid" + } + ] + } + }, + "status": "OK", + "code": 200, + "_postman_previewlanguage": "text", + "header": [], + "cookie": [], + "body": "" + }, + { + "name": "Invalid status value", + "originalRequest": { + "method": "DELETE", + "header": [ + { + "description": "Added as a part of security scheme: bearer", + "key": "Authorization", + "value": "Bearer " + } + ], + "url": { + "raw": "{{baseUrl}}/admin/folders/:uid", + "host": [ + "{{baseUrl}}" + ], + "path": [ + "admin", + "folders", + ":uid" + ], + "variable": [ + { + "key": "uid" + } + ] + } + }, + "status": "Bad Request", + "code": 400, + "_postman_previewlanguage": "text", + "header": [], + "cookie": [], + "body": "" + } + ] + }, + { + "name": "Find folder by ID", + "request": { + "auth": { + "type": "bearer", + "bearer": [ + { + "key": "token", + "value": "{{bearerToken}}", + "type": "string" + } + ] + }, + "method": "GET", + "header": [ + { + "key": "Accept", + "value": "application/json" + } + ], + "url": { + "raw": "{{baseUrl}}/admin/folders/:uid?uid=", + "host": [ + "{{baseUrl}}" + ], + "path": [ + "admin", + "folders", + ":uid" + ], + "query": [ + { + "key": "uid", + "value": "", + "description": "(Required) ID of folder to return" + } + ], + "variable": [ + { + "key": "uid" + } + ] + }, + "description": "Returns a single folder" + }, + "response": [ + { + "name": "successful operation", + "originalRequest": { + "method": "GET", + "header": [ + { + "key": "Accept", + "value": "application/json" + }, + { + "description": "Added as a part of security scheme: bearer", + "key": "Authorization", + "value": "Bearer " + } + ], + "url": { + "raw": "{{baseUrl}}/admin/folders/:uid?uid=", + "host": [ + "{{baseUrl}}" + ], + "path": [ + "admin", + "folders", + ":uid" + ], + "query": [ + { + "key": "uid", + "value": "", + "description": "(Required) ID of folder to return" + } + ], + "variable": [ + { + "key": "uid" + } + ] + } + }, + "status": "OK", + "code": 200, + "_postman_previewlanguage": "json", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + } + ], + "cookie": [], + "body": "[\n {\n \"uid\": \"\",\n \"deed\": {\n \"uid\": \"\",\n \"deed_type\": {\n \"uid\": \"\",\n \"name\": \"\",\n \"description\": \"\",\n \"archived_at\": \"\",\n \"createdAt\": \"\",\n \"updatedAt\": \"\"\n }\n },\n \"office\": {\n \"uid\": \"\",\n \"name\": \"\"\n },\n \"createdAt\": \"\",\n \"updatedAt\": \"\"\n },\n {\n \"uid\": \"\",\n \"deed\": {\n \"uid\": \"\",\n \"deed_type\": {\n \"uid\": \"\",\n \"name\": \"\",\n \"description\": \"\",\n \"archived_at\": \"\",\n \"createdAt\": \"\",\n \"updatedAt\": \"\"\n }\n },\n \"office\": {\n \"uid\": \"\",\n \"name\": \"\"\n },\n \"createdAt\": \"\",\n \"updatedAt\": \"\"\n }\n]" + }, + { + "name": "Invalid status value", + "originalRequest": { + "method": "GET", + "header": [ + { + "description": "Added as a part of security scheme: bearer", + "key": "Authorization", + "value": "Bearer " + } + ], + "url": { + "raw": "{{baseUrl}}/admin/folders/:uid?uid=", + "host": [ + "{{baseUrl}}" + ], + "path": [ + "admin", + "folders", + ":uid" + ], + "query": [ + { + "key": "uid", + "value": "", + "description": "(Required) ID of folder to return" + } + ], + "variable": [ + { + "key": "uid" + } + ] + } + }, + "status": "Bad Request", + "code": 400, + "_postman_previewlanguage": "text", + "header": [], + "cookie": [], + "body": "" + } + ] + } + ] + }, + { + "name": "Get all folders", + "request": { + "auth": { + "type": "bearer", + "bearer": [ + { + "key": "token", + "value": "{{bearerToken}}", + "type": "string" + } + ] + }, + "method": "GET", + "header": [], + "url": { + "raw": "{{baseUrl}}/admin/folders", + "host": [ + "{{baseUrl}}" + ], + "path": [ + "admin", + "folders" + ] + } + }, + "response": [ + { + "name": "successful operation", + "originalRequest": { + "method": "GET", + "header": [ + { + "description": "Added as a part of security scheme: bearer", + "key": "Authorization", + "value": "Bearer " + } + ], + "url": { + "raw": "{{baseUrl}}/admin/folders", + "host": [ + "{{baseUrl}}" + ], + "path": [ + "admin", + "folders" + ] + } + }, + "status": "OK", + "code": 200, + "_postman_previewlanguage": "text", + "header": [], + "cookie": [], + "body": "" + }, + { + "name": "Invalid status value", + "originalRequest": { + "method": "GET", + "header": [ + { + "description": "Added as a part of security scheme: bearer", + "key": "Authorization", + "value": "Bearer " + } + ], + "url": { + "raw": "{{baseUrl}}/admin/folders", + "host": [ + "{{baseUrl}}" + ], + "path": [ + "admin", + "folders" + ] + } + }, + "status": "Bad Request", + "code": 400, + "_postman_previewlanguage": "text", + "header": [], + "cookie": [], + "body": "" + } + ] + }, + { + "name": "Add a new folder", + "request": { + "auth": { + "type": "bearer", + "bearer": [ + { + "key": "token", + "value": "{{bearerToken}}", + "type": "string" + } + ] + }, + "method": "POST", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + } + ], + "body": { + "mode": "raw", + "raw": "{\n \"uid\": \"\",\n \"deed\": {\n \"uid\": \"\",\n \"deed_type\": {\n \"uid\": \"\",\n \"name\": \"\",\n \"description\": \"\",\n \"archived_at\": \"\",\n \"createdAt\": \"\",\n \"updatedAt\": \"\"\n }\n },\n \"office\": {\n \"uid\": \"\",\n \"name\": \"\"\n },\n \"createdAt\": \"\",\n \"updatedAt\": \"\"\n}", + "options": { + "raw": { + "headerFamily": "json", + "language": "json" + } + } + }, + "url": { + "raw": "{{baseUrl}}/admin/folders", + "host": [ + "{{baseUrl}}" + ], + "path": [ + "admin", + "folders" + ] + } + }, + "response": [ + { + "name": "successful operation", + "originalRequest": { + "method": "POST", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + }, + { + "description": "Added as a part of security scheme: bearer", + "key": "Authorization", + "value": "Bearer " + } + ], + "body": { + "mode": "raw", + "raw": "{\n \"uid\": \"\",\n \"deed\": {\n \"uid\": \"\",\n \"deed_type\": {\n \"uid\": \"\",\n \"name\": \"\",\n \"description\": \"\",\n \"archived_at\": \"\",\n \"createdAt\": \"\",\n \"updatedAt\": \"\"\n }\n },\n \"office\": {\n \"uid\": \"\",\n \"name\": \"\"\n },\n \"createdAt\": \"\",\n \"updatedAt\": \"\"\n}", + "options": { + "raw": { + "headerFamily": "json", + "language": "json" + } + } + }, + "url": { + "raw": "{{baseUrl}}/admin/folders", + "host": [ + "{{baseUrl}}" + ], + "path": [ + "admin", + "folders" + ] + } + }, + "status": "OK", + "code": 200, + "_postman_previewlanguage": "text", + "header": [], + "cookie": [], + "body": "" + }, + { + "name": "Invalid status value", + "originalRequest": { + "method": "POST", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + }, + { + "description": "Added as a part of security scheme: bearer", + "key": "Authorization", + "value": "Bearer " + } + ], + "body": { + "mode": "raw", + "raw": "{\n \"uid\": \"\",\n \"deed\": {\n \"uid\": \"\",\n \"deed_type\": {\n \"uid\": \"\",\n \"name\": \"\",\n \"description\": \"\",\n \"archived_at\": \"\",\n \"createdAt\": \"\",\n \"updatedAt\": \"\"\n }\n },\n \"office\": {\n \"uid\": \"\",\n \"name\": \"\"\n },\n \"createdAt\": \"\",\n \"updatedAt\": \"\"\n}", + "options": { + "raw": { + "headerFamily": "json", + "language": "json" + } + } + }, + "url": { + "raw": "{{baseUrl}}/admin/folders", + "host": [ + "{{baseUrl}}" + ], + "path": [ + "admin", + "folders" + ] + } + }, + "status": "Bad Request", + "code": 400, + "_postman_previewlanguage": "text", + "header": [], + "cookie": [], + "body": "" + } + ] + } + ] + }, + { + "name": "office-roles", + "item": [ + { + "name": "{uid}", + "item": [ + { + "name": "Find office role by ID", + "request": { + "auth": { + "type": "bearer", + "bearer": [ + { + "key": "token", + "value": "{{bearerToken}}", + "type": "string" + } + ] + }, + "method": "GET", + "header": [ + { + "key": "Accept", + "value": "application/json" + } + ], + "url": { + "raw": "{{baseUrl}}/admin/office-roles/:uid?uid=", + "host": [ + "{{baseUrl}}" + ], + "path": [ + "admin", + "office-roles", + ":uid" + ], + "query": [ + { + "key": "uid", + "value": "", + "description": "(Required) ID of office role to return" + } + ], + "variable": [ + { + "key": "uid" + } + ] + }, + "description": "Returns a single office role" + }, + "response": [ + { + "name": "successful operation", + "originalRequest": { + "method": "GET", + "header": [ + { + "key": "Accept", + "value": "application/json" + }, + { + "description": "Added as a part of security scheme: bearer", + "key": "Authorization", + "value": "Bearer " + } + ], + "url": { + "raw": "{{baseUrl}}/admin/office-roles/:uid?uid=", + "host": [ + "{{baseUrl}}" + ], + "path": [ + "admin", + "office-roles", + ":uid" + ], + "query": [ + { + "key": "uid", + "value": "", + "description": "(Required) ID of office role to return" + } + ], + "variable": [ + { + "key": "uid" + } + ] + } + }, + "status": "OK", + "code": 200, + "_postman_previewlanguage": "json", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + } + ], + "cookie": [], + "body": "[\n {\n \"uid\": \"\",\n \"name\": \"\",\n \"rules\": [\n {\n \"uid\": \"\",\n \"name\": \"\"\n },\n {\n \"uid\": \"\",\n \"name\": \"\"\n }\n ],\n \"office\": {\n \"uid\": \"\",\n \"name\": \"\"\n }\n },\n {\n \"uid\": \"\",\n \"name\": \"\",\n \"rules\": [\n {\n \"uid\": \"\",\n \"name\": \"\"\n },\n {\n \"uid\": \"\",\n \"name\": \"\"\n }\n ],\n \"office\": {\n \"uid\": \"\",\n \"name\": \"\"\n }\n }\n]" + }, + { + "name": "Invalid status value", + "originalRequest": { + "method": "GET", + "header": [ + { + "description": "Added as a part of security scheme: bearer", + "key": "Authorization", + "value": "Bearer " + } + ], + "url": { + "raw": "{{baseUrl}}/admin/office-roles/:uid?uid=", + "host": [ + "{{baseUrl}}" + ], + "path": [ + "admin", + "office-roles", + ":uid" + ], + "query": [ + { + "key": "uid", + "value": "", + "description": "(Required) ID of office role to return" + } + ], + "variable": [ + { + "key": "uid" + } + ] + } + }, + "status": "Bad Request", + "code": 400, + "_postman_previewlanguage": "text", + "header": [], + "cookie": [], + "body": "" + } + ] + }, + { + "name": "Update an existing office role", + "request": { + "auth": { + "type": "bearer", + "bearer": [ + { + "key": "token", + "value": "{{bearerToken}}", + "type": "string" + } + ] + }, + "method": "PUT", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + }, + { + "key": "Accept", + "value": "application/json" + } + ], + "body": { + "mode": "raw", + "raw": "{\n \"uid\": \"\",\n \"name\": \"\",\n \"rules\": [\n {\n \"uid\": \"\",\n \"name\": \"\"\n },\n {\n \"uid\": \"\",\n \"name\": \"\"\n }\n ],\n \"office\": {\n \"uid\": \"\",\n \"name\": \"\"\n }\n}", + "options": { + "raw": { + "headerFamily": "json", + "language": "json" + } + } + }, + "url": { + "raw": "{{baseUrl}}/admin/office-roles/:uid?uid=", + "host": [ + "{{baseUrl}}" + ], + "path": [ + "admin", + "office-roles", + ":uid" + ], + "query": [ + { + "key": "uid", + "value": "", + "description": "(Required) ID of office role to return" + } + ], + "variable": [ + { + "key": "uid" + } + ] + }, + "description": "Returns a single office role updated" + }, + "response": [ + { + "name": "successful operation", + "originalRequest": { + "method": "PUT", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + }, + { + "key": "Accept", + "value": "application/json" + }, + { + "description": "Added as a part of security scheme: bearer", + "key": "Authorization", + "value": "Bearer " + } + ], + "body": { + "mode": "raw", + "raw": "{\n \"uid\": \"\",\n \"name\": \"\",\n \"rules\": [\n {\n \"uid\": \"\",\n \"name\": \"\"\n },\n {\n \"uid\": \"\",\n \"name\": \"\"\n }\n ],\n \"office\": {\n \"uid\": \"\",\n \"name\": \"\"\n }\n}", + "options": { + "raw": { + "headerFamily": "json", + "language": "json" + } + } + }, + "url": { + "raw": "{{baseUrl}}/admin/office-roles/:uid?uid=", + "host": [ + "{{baseUrl}}" + ], + "path": [ + "admin", + "office-roles", + ":uid" + ], + "query": [ + { + "key": "uid", + "value": "", + "description": "(Required) ID of office role to return" + } + ], + "variable": [ + { + "key": "uid" + } + ] + } + }, + "status": "OK", + "code": 200, + "_postman_previewlanguage": "json", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + } + ], + "cookie": [], + "body": "[\n {\n \"uid\": \"\",\n \"name\": \"\",\n \"rules\": [\n {\n \"uid\": \"\",\n \"name\": \"\"\n },\n {\n \"uid\": \"\",\n \"name\": \"\"\n }\n ],\n \"office\": {\n \"uid\": \"\",\n \"name\": \"\"\n }\n },\n {\n \"uid\": \"\",\n \"name\": \"\",\n \"rules\": [\n {\n \"uid\": \"\",\n \"name\": \"\"\n },\n {\n \"uid\": \"\",\n \"name\": \"\"\n }\n ],\n \"office\": {\n \"uid\": \"\",\n \"name\": \"\"\n }\n }\n]" + }, + { + "name": "Invalid status value", + "originalRequest": { + "method": "PUT", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + }, + { + "description": "Added as a part of security scheme: bearer", + "key": "Authorization", + "value": "Bearer " + } + ], + "body": { + "mode": "raw", + "raw": "{\n \"uid\": \"\",\n \"name\": \"\",\n \"rules\": [\n {\n \"uid\": \"\",\n \"name\": \"\"\n },\n {\n \"uid\": \"\",\n \"name\": \"\"\n }\n ],\n \"office\": {\n \"uid\": \"\",\n \"name\": \"\"\n }\n}", + "options": { + "raw": { + "headerFamily": "json", + "language": "json" + } + } + }, + "url": { + "raw": "{{baseUrl}}/admin/office-roles/:uid?uid=", + "host": [ + "{{baseUrl}}" + ], + "path": [ + "admin", + "office-roles", + ":uid" + ], + "query": [ + { + "key": "uid", + "value": "", + "description": "(Required) ID of office role to return" + } + ], + "variable": [ + { + "key": "uid" + } + ] + } + }, + "status": "Bad Request", + "code": 400, + "_postman_previewlanguage": "text", + "header": [], + "cookie": [], + "body": "" + } + ] + } + ] + }, + { + "name": "Get all office roles", + "request": { + "auth": { + "type": "bearer", + "bearer": [ + { + "key": "token", + "value": "{{bearerToken}}", + "type": "string" + } + ] + }, + "method": "GET", + "header": [ + { + "key": "Accept", + "value": "application/json" + } + ], + "url": { + "raw": "{{baseUrl}}/admin/office-roles", + "host": [ + "{{baseUrl}}" + ], + "path": [ + "admin", + "office-roles" + ] + } + }, + "response": [ + { + "name": "successful operation", + "originalRequest": { + "method": "GET", + "header": [ + { + "key": "Accept", + "value": "application/json" + }, + { + "description": "Added as a part of security scheme: bearer", + "key": "Authorization", + "value": "Bearer " + } + ], + "url": { + "raw": "{{baseUrl}}/admin/office-roles", + "host": [ + "{{baseUrl}}" + ], + "path": [ + "admin", + "office-roles" + ] + } + }, + "status": "OK", + "code": 200, + "_postman_previewlanguage": "json", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + } + ], + "cookie": [], + "body": "[\n {\n \"uid\": \"\",\n \"name\": \"\",\n \"rules\": [\n {\n \"uid\": \"\",\n \"name\": \"\"\n },\n {\n \"uid\": \"\",\n \"name\": \"\"\n }\n ],\n \"office\": {\n \"uid\": \"\",\n \"name\": \"\"\n }\n },\n {\n \"uid\": \"\",\n \"name\": \"\",\n \"rules\": [\n {\n \"uid\": \"\",\n \"name\": \"\"\n },\n {\n \"uid\": \"\",\n \"name\": \"\"\n }\n ],\n \"office\": {\n \"uid\": \"\",\n \"name\": \"\"\n }\n }\n]" + }, + { + "name": "Invalid status value", + "originalRequest": { + "method": "GET", + "header": [ + { + "description": "Added as a part of security scheme: bearer", + "key": "Authorization", + "value": "Bearer " + } + ], + "url": { + "raw": "{{baseUrl}}/admin/office-roles", + "host": [ + "{{baseUrl}}" + ], + "path": [ + "admin", + "office-roles" + ] + } + }, + "status": "Bad Request", + "code": 400, + "_postman_previewlanguage": "text", + "header": [], + "cookie": [], + "body": "" + } + ] + }, + { + "name": "Add a new office role", + "request": { + "auth": { + "type": "bearer", + "bearer": [ + { + "key": "token", + "value": "{{bearerToken}}", + "type": "string" + } + ] + }, + "method": "POST", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + }, + { + "key": "Accept", + "value": "application/json" + } + ], + "body": { + "mode": "raw", + "raw": "{\n \"uid\": \"\",\n \"name\": \"\",\n \"rules\": [\n {\n \"uid\": \"\",\n \"name\": \"\"\n },\n {\n \"uid\": \"\",\n \"name\": \"\"\n }\n ],\n \"office\": {\n \"uid\": \"\",\n \"name\": \"\"\n }\n}", + "options": { + "raw": { + "headerFamily": "json", + "language": "json" + } + } + }, + "url": { + "raw": "{{baseUrl}}/admin/office-roles", + "host": [ + "{{baseUrl}}" + ], + "path": [ + "admin", + "office-roles" + ] + } + }, + "response": [ + { + "name": "successful operation", + "originalRequest": { + "method": "POST", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + }, + { + "key": "Accept", + "value": "application/json" + }, + { + "description": "Added as a part of security scheme: bearer", + "key": "Authorization", + "value": "Bearer " + } + ], + "body": { + "mode": "raw", + "raw": "{\n \"uid\": \"\",\n \"name\": \"\",\n \"rules\": [\n {\n \"uid\": \"\",\n \"name\": \"\"\n },\n {\n \"uid\": \"\",\n \"name\": \"\"\n }\n ],\n \"office\": {\n \"uid\": \"\",\n \"name\": \"\"\n }\n}", + "options": { + "raw": { + "headerFamily": "json", + "language": "json" + } + } + }, + "url": { + "raw": "{{baseUrl}}/admin/office-roles", + "host": [ + "{{baseUrl}}" + ], + "path": [ + "admin", + "office-roles" + ] + } + }, + "status": "OK", + "code": 200, + "_postman_previewlanguage": "json", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + } + ], + "cookie": [], + "body": "[\n {\n \"uid\": \"\",\n \"name\": \"\",\n \"rules\": [\n {\n \"uid\": \"\",\n \"name\": \"\"\n },\n {\n \"uid\": \"\",\n \"name\": \"\"\n }\n ],\n \"office\": {\n \"uid\": \"\",\n \"name\": \"\"\n }\n },\n {\n \"uid\": \"\",\n \"name\": \"\",\n \"rules\": [\n {\n \"uid\": \"\",\n \"name\": \"\"\n },\n {\n \"uid\": \"\",\n \"name\": \"\"\n }\n ],\n \"office\": {\n \"uid\": \"\",\n \"name\": \"\"\n }\n }\n]" + }, + { + "name": "Invalid status value", + "originalRequest": { + "method": "POST", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + }, + { + "description": "Added as a part of security scheme: bearer", + "key": "Authorization", + "value": "Bearer " + } + ], + "body": { + "mode": "raw", + "raw": "{\n \"uid\": \"\",\n \"name\": \"\",\n \"rules\": [\n {\n \"uid\": \"\",\n \"name\": \"\"\n },\n {\n \"uid\": \"\",\n \"name\": \"\"\n }\n ],\n \"office\": {\n \"uid\": \"\",\n \"name\": \"\"\n }\n}", + "options": { + "raw": { + "headerFamily": "json", + "language": "json" + } + } + }, + "url": { + "raw": "{{baseUrl}}/admin/office-roles", + "host": [ + "{{baseUrl}}" + ], + "path": [ + "admin", + "office-roles" + ] + } + }, + "status": "Bad Request", + "code": 400, + "_postman_previewlanguage": "text", + "header": [], + "cookie": [], + "body": "" + } + ] + } + ] + }, + { + "name": "offices", + "item": [ + { + "name": "{uid}", + "item": [ + { + "name": "Find office by ID", + "request": { + "auth": { + "type": "bearer", + "bearer": [ + { + "key": "token", + "value": "{{bearerToken}}", + "type": "string" + } + ] + }, + "method": "GET", + "header": [ + { + "key": "Accept", + "value": "application/json" + } + ], + "url": { + "raw": "{{baseUrl}}/admin/offices/:uid?uid=", + "host": [ + "{{baseUrl}}" + ], + "path": [ + "admin", + "offices", + ":uid" + ], + "query": [ + { + "key": "uid", + "value": "", + "description": "(Required) ID of office to return" + } + ], + "variable": [ + { + "key": "uid" + } + ] + }, + "description": "Returns a single office" + }, + "response": [ + { + "name": "successful operation", + "originalRequest": { + "method": "GET", + "header": [ + { + "key": "Accept", + "value": "application/json" + }, + { + "description": "Added as a part of security scheme: bearer", + "key": "Authorization", + "value": "Bearer " + } + ], + "url": { + "raw": "{{baseUrl}}/admin/offices/:uid?uid=", + "host": [ + "{{baseUrl}}" + ], + "path": [ + "admin", + "offices", + ":uid" + ], + "query": [ + { + "key": "uid", + "value": "", + "description": "(Required) ID of office to return" + } + ], + "variable": [ + { + "key": "uid" + } + ] + } + }, + "status": "OK", + "code": 200, + "_postman_previewlanguage": "json", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + } + ], + "cookie": [], + "body": "[\n {\n \"uid\": \"\",\n \"name\": \"\"\n },\n {\n \"uid\": \"\",\n \"name\": \"\"\n }\n]" + }, + { + "name": "Invalid status value", + "originalRequest": { + "method": "GET", + "header": [ + { + "description": "Added as a part of security scheme: bearer", + "key": "Authorization", + "value": "Bearer " + } + ], + "url": { + "raw": "{{baseUrl}}/admin/offices/:uid?uid=", + "host": [ + "{{baseUrl}}" + ], + "path": [ + "admin", + "offices", + ":uid" + ], + "query": [ + { + "key": "uid", + "value": "", + "description": "(Required) ID of office to return" + } + ], + "variable": [ + { + "key": "uid" + } + ] + } + }, + "status": "Bad Request", + "code": 400, + "_postman_previewlanguage": "text", + "header": [], + "cookie": [], + "body": "" + } + ] + } + ] + }, + { + "name": "Get all offices", + "request": { + "auth": { + "type": "bearer", + "bearer": [ + { + "key": "token", + "value": "{{bearerToken}}", + "type": "string" + } + ] + }, + "method": "GET", + "header": [ + { + "key": "Accept", + "value": "application/json" + } + ], + "url": { + "raw": "{{baseUrl}}/admin/offices", + "host": [ + "{{baseUrl}}" + ], + "path": [ + "admin", + "offices" + ] + } + }, + "response": [ + { + "name": "successful operation", + "originalRequest": { + "method": "GET", + "header": [ + { + "key": "Accept", + "value": "application/json" + }, + { + "description": "Added as a part of security scheme: bearer", + "key": "Authorization", + "value": "Bearer " + } + ], + "url": { + "raw": "{{baseUrl}}/admin/offices", + "host": [ + "{{baseUrl}}" + ], + "path": [ + "admin", + "offices" + ] + } + }, + "status": "OK", + "code": 200, + "_postman_previewlanguage": "json", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + } + ], + "cookie": [], + "body": "[\n {\n \"uid\": \"\",\n \"name\": \"\"\n },\n {\n \"uid\": \"\",\n \"name\": \"\"\n }\n]" + }, + { + "name": "Invalid status value", + "originalRequest": { + "method": "GET", + "header": [ + { + "description": "Added as a part of security scheme: bearer", + "key": "Authorization", + "value": "Bearer " + } + ], + "url": { + "raw": "{{baseUrl}}/admin/offices", + "host": [ + "{{baseUrl}}" + ], + "path": [ + "admin", + "offices" + ] + } + }, + "status": "Bad Request", + "code": 400, + "_postman_previewlanguage": "text", + "header": [], + "cookie": [], + "body": "" + } + ] + } + ] + }, + { + "name": "roles", + "item": [ + { + "name": "{uid}", + "item": [ + { + "name": "Find role by ID", + "request": { + "auth": { + "type": "bearer", + "bearer": [ + { + "key": "token", + "value": "{{bearerToken}}", + "type": "string" + } + ] + }, + "method": "GET", + "header": [ + { + "key": "Accept", + "value": "application/json" + } + ], + "url": { + "raw": "{{baseUrl}}/admin/roles/:uid?uid=", + "host": [ + "{{baseUrl}}" + ], + "path": [ + "admin", + "roles", + ":uid" + ], + "query": [ + { + "key": "uid", + "value": "", + "description": "(Required) ID of role to return" + } + ], + "variable": [ + { + "key": "uid" + } + ] + }, + "description": "Returns a single role" + }, + "response": [ + { + "name": "successful operation", + "originalRequest": { + "method": "GET", + "header": [ + { + "key": "Accept", + "value": "application/json" + }, + { + "description": "Added as a part of security scheme: bearer", + "key": "Authorization", + "value": "Bearer " + } + ], + "url": { + "raw": "{{baseUrl}}/admin/roles/:uid?uid=", + "host": [ + "{{baseUrl}}" + ], + "path": [ + "admin", + "roles", + ":uid" + ], + "query": [ + { + "key": "uid", + "value": "", + "description": "(Required) ID of role to return" + } + ], + "variable": [ + { + "key": "uid" + } + ] + } + }, + "status": "OK", + "code": 200, + "_postman_previewlanguage": "json", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + } + ], + "cookie": [], + "body": "[\n {\n \"uid\": \"\",\n \"name\": \"\",\n \"rules\": [\n {\n \"uid\": \"\",\n \"name\": \"\"\n },\n {\n \"uid\": \"\",\n \"name\": \"\"\n }\n ]\n },\n {\n \"uid\": \"\",\n \"name\": \"\",\n \"rules\": [\n {\n \"uid\": \"\",\n \"name\": \"\"\n },\n {\n \"uid\": \"\",\n \"name\": \"\"\n }\n ]\n }\n]" + }, + { + "name": "Invalid status value", + "originalRequest": { + "method": "GET", + "header": [ + { + "description": "Added as a part of security scheme: bearer", + "key": "Authorization", + "value": "Bearer " + } + ], + "url": { + "raw": "{{baseUrl}}/admin/roles/:uid?uid=", + "host": [ + "{{baseUrl}}" + ], + "path": [ + "admin", + "roles", + ":uid" + ], + "query": [ + { + "key": "uid", + "value": "", + "description": "(Required) ID of role to return" + } + ], + "variable": [ + { + "key": "uid" + } + ] + } + }, + "status": "Bad Request", + "code": 400, + "_postman_previewlanguage": "text", + "header": [], + "cookie": [], + "body": "" + } + ] + } + ] + }, + { + "name": "Get all roles", + "request": { + "auth": { + "type": "bearer", + "bearer": [ + { + "key": "token", + "value": "{{bearerToken}}", + "type": "string" + } + ] + }, + "method": "GET", + "header": [ + { + "key": "Accept", + "value": "application/json" + } + ], + "url": { + "raw": "{{baseUrl}}/admin/roles", + "host": [ + "{{baseUrl}}" + ], + "path": [ + "admin", + "roles" + ] + } + }, + "response": [ + { + "name": "successful operation", + "originalRequest": { + "method": "GET", + "header": [ + { + "key": "Accept", + "value": "application/json" + }, + { + "description": "Added as a part of security scheme: bearer", + "key": "Authorization", + "value": "Bearer " + } + ], + "url": { + "raw": "{{baseUrl}}/admin/roles", + "host": [ + "{{baseUrl}}" + ], + "path": [ + "admin", + "roles" + ] + } + }, + "status": "OK", + "code": 200, + "_postman_previewlanguage": "json", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + } + ], + "cookie": [], + "body": "[\n {\n \"uid\": \"\",\n \"name\": \"\",\n \"rules\": [\n {\n \"uid\": \"\",\n \"name\": \"\"\n },\n {\n \"uid\": \"\",\n \"name\": \"\"\n }\n ]\n },\n {\n \"uid\": \"\",\n \"name\": \"\",\n \"rules\": [\n {\n \"uid\": \"\",\n \"name\": \"\"\n },\n {\n \"uid\": \"\",\n \"name\": \"\"\n }\n ]\n }\n]" + }, + { + "name": "Invalid status value", + "originalRequest": { + "method": "GET", + "header": [ + { + "description": "Added as a part of security scheme: bearer", + "key": "Authorization", + "value": "Bearer " + } + ], + "url": { + "raw": "{{baseUrl}}/admin/roles", + "host": [ + "{{baseUrl}}" + ], + "path": [ + "admin", + "roles" + ] + } + }, + "status": "Bad Request", + "code": 400, + "_postman_previewlanguage": "text", + "header": [], + "cookie": [], + "body": "" + } + ] + } + ] + }, + { + "name": "notifications", + "item": [ + { + "name": "{uid}", + "item": [ + { + "name": "Update an existing notification", + "request": { + "auth": { + "type": "bearer", + "bearer": [ + { + "key": "token", + "value": "{{bearerToken}}", + "type": "string" + } + ] + }, + "method": "PUT", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + } + ], + "body": { + "mode": "raw", + "raw": "{\n \"value\": \"reference #/components/schemas/Notification not found in the OpenAPI spec\"\n}", + "options": { + "raw": { + "headerFamily": "json", + "language": "json" + } + } + }, + "url": { + "raw": "{{baseUrl}}/admin/notifications/:uid", + "host": [ + "{{baseUrl}}" + ], + "path": [ + "admin", + "notifications", + ":uid" + ], + "variable": [ + { + "key": "uid", + "value": "", + "description": "(Required) ID of notification to return" + } + ] + }, + "description": "Returns a single notification updated" + }, + "response": [ + { + "name": "successful operation", + "originalRequest": { + "method": "PUT", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + }, + { + "description": "Added as a part of security scheme: bearer", + "key": "Authorization", + "value": "Bearer " + } + ], + "body": { + "mode": "raw", + "raw": "{\n \"value\": \"reference #/components/schemas/Notification not found in the OpenAPI spec\"\n}", + "options": { + "raw": { + "headerFamily": "json", + "language": "json" + } + } + }, + "url": { + "raw": "{{baseUrl}}/admin/notifications/:uid", + "host": [ + "{{baseUrl}}" + ], + "path": [ + "admin", + "notifications", + ":uid" + ], + "variable": [ + { + "key": "uid" + } + ] + } + }, + "status": "OK", + "code": 200, + "_postman_previewlanguage": "text", + "header": [], + "cookie": [], + "body": "" + }, + { + "name": "Invalid status value", + "originalRequest": { + "method": "PUT", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + }, + { + "description": "Added as a part of security scheme: bearer", + "key": "Authorization", + "value": "Bearer " + } + ], + "body": { + "mode": "raw", + "raw": "{\n \"value\": \"reference #/components/schemas/Notification not found in the OpenAPI spec\"\n}", + "options": { + "raw": { + "headerFamily": "json", + "language": "json" + } + } + }, + "url": { + "raw": "{{baseUrl}}/admin/notifications/:uid", + "host": [ + "{{baseUrl}}" + ], + "path": [ + "admin", + "notifications", + ":uid" + ], + "variable": [ + { + "key": "uid" + } + ] + } + }, + "status": "Bad Request", + "code": 400, + "_postman_previewlanguage": "text", + "header": [], + "cookie": [], + "body": "" + } + ] + }, + { + "name": "Find notification by ID", + "request": { + "auth": { + "type": "bearer", + "bearer": [ + { + "key": "token", + "value": "{{bearerToken}}", + "type": "string" + } + ] + }, + "method": "GET", + "header": [ + { + "key": "Accept", + "value": "application/json" + } + ], + "url": { + "raw": "{{baseUrl}}/admin/notifications/:uid?uid=", + "host": [ + "{{baseUrl}}" + ], + "path": [ + "admin", + "notifications", + ":uid" + ], + "query": [ + { + "key": "uid", + "value": "", + "description": "(Required) ID of notification to return" + } + ], + "variable": [ + { + "key": "uid" + } + ] + }, + "description": "Returns a single notification" + }, + "response": [ + { + "name": "successful operation", + "originalRequest": { + "method": "GET", + "header": [ + { + "key": "Accept", + "value": "application/json" + }, + { + "description": "Added as a part of security scheme: bearer", + "key": "Authorization", + "value": "Bearer " + } + ], + "url": { + "raw": "{{baseUrl}}/admin/notifications/:uid?uid=", + "host": [ + "{{baseUrl}}" + ], + "path": [ + "admin", + "notifications", + ":uid" + ], + "query": [ + { + "key": "uid", + "value": "", + "description": "(Required) ID of notification to return" + } + ], + "variable": [ + { + "key": "uid" + } + ] + } + }, + "status": "OK", + "code": 200, + "_postman_previewlanguage": "json", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + } + ], + "cookie": [], + "body": "[\n {\n \"value\": \"reference #/components/schemas/Notification not found in the OpenAPI spec\"\n },\n {\n \"value\": \"reference #/components/schemas/Notification not found in the OpenAPI spec\"\n }\n]" + }, + { + "name": "Invalid status value", + "originalRequest": { + "method": "GET", + "header": [ + { + "description": "Added as a part of security scheme: bearer", + "key": "Authorization", + "value": "Bearer " + } + ], + "url": { + "raw": "{{baseUrl}}/admin/notifications/:uid?uid=", + "host": [ + "{{baseUrl}}" + ], + "path": [ + "admin", + "notifications", + ":uid" + ], + "query": [ + { + "key": "uid", + "value": "", + "description": "(Required) ID of notification to return" + } + ], + "variable": [ + { + "key": "uid" + } + ] + } + }, + "status": "Bad Request", + "code": 400, + "_postman_previewlanguage": "text", + "header": [], + "cookie": [], + "body": "" + } + ] + } + ] + }, + { + "name": "Get all notifications", + "request": { + "auth": { + "type": "bearer", + "bearer": [ + { + "key": "token", + "value": "{{bearerToken}}", + "type": "string" + } + ] + }, + "method": "GET", + "header": [ + { + "key": "Accept", + "value": "application/json" + } + ], + "url": { + "raw": "{{baseUrl}}/admin/notifications", + "host": [ + "{{baseUrl}}" + ], + "path": [ + "admin", + "notifications" + ] + } + }, + "response": [ + { + "name": "successful operation", + "originalRequest": { + "method": "GET", + "header": [ + { + "key": "Accept", + "value": "application/json" + }, + { + "description": "Added as a part of security scheme: bearer", + "key": "Authorization", + "value": "Bearer " + } + ], + "url": { + "raw": "{{baseUrl}}/admin/notifications", + "host": [ + "{{baseUrl}}" + ], + "path": [ + "admin", + "notifications" + ] + } + }, + "status": "OK", + "code": 200, + "_postman_previewlanguage": "json", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + } + ], + "cookie": [], + "body": "[\n {\n \"value\": \"reference #/components/schemas/Notification not found in the OpenAPI spec\"\n },\n {\n \"value\": \"reference #/components/schemas/Notification not found in the OpenAPI spec\"\n }\n]" + }, + { + "name": "Invalid status value", + "originalRequest": { + "method": "GET", + "header": [ + { + "description": "Added as a part of security scheme: bearer", + "key": "Authorization", + "value": "Bearer " + } + ], + "url": { + "raw": "{{baseUrl}}/admin/notifications", + "host": [ + "{{baseUrl}}" + ], + "path": [ + "admin", + "notifications" + ] + } + }, + "status": "Bad Request", + "code": 400, + "_postman_previewlanguage": "text", + "header": [], + "cookie": [], + "body": "" + } + ] + } + ] + }, + { + "name": "users", + "item": [ + { + "name": "{uid}", + "item": [ + { + "name": "Find user by ID", + "request": { + "auth": { + "type": "bearer", + "bearer": [ + { + "key": "token", + "value": "{{bearerToken}}", + "type": "string" + } + ] + }, + "method": "GET", + "header": [ + { + "key": "Accept", + "value": "application/json" + } + ], + "url": { + "raw": "{{baseUrl}}/admin/users/:uid?uid=", + "host": [ + "{{baseUrl}}" + ], + "path": [ + "admin", + "users", + ":uid" + ], + "query": [ + { + "key": "uid", + "value": "", + "description": "(Required) ID of user to return" + } + ], + "variable": [ + { + "key": "uid" + } + ] + } + }, + "response": [ + { + "name": "successful operation", + "originalRequest": { + "method": "GET", + "header": [ + { + "key": "Accept", + "value": "application/json" + }, + { + "description": "Added as a part of security scheme: bearer", + "key": "Authorization", + "value": "Bearer " + } + ], + "url": { + "raw": "{{baseUrl}}/admin/users/:uid?uid=", + "host": [ + "{{baseUrl}}" + ], + "path": [ + "admin", + "users", + ":uid" + ], + "query": [ + { + "key": "uid", + "value": "", + "description": "(Required) ID of user to return" + } + ], + "variable": [ + { + "key": "uid" + } + ] + } + }, + "status": "OK", + "code": 200, + "_postman_previewlanguage": "json", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + } + ], + "cookie": [], + "body": "[\n {\n \"uid\": \"\",\n \"idNot\": \"\",\n \"contact\": {\n \"first_name\": \"\",\n \"last_name\": \"\",\n \"email\": \"\",\n \"cell_phone_number\": \"\"\n },\n \"office_folders\": [\n {\n \"uid\": \"\",\n \"name\": \"\",\n \"office\": {\n \"uid\": \"\",\n \"name\": \"\"\n }\n },\n {\n \"uid\": \"\",\n \"name\": \"\",\n \"office\": {\n \"uid\": \"\",\n \"name\": \"\"\n }\n }\n ],\n \"role\": {\n \"uid\": \"\",\n \"name\": \"\",\n \"rules\": [\n {\n \"uid\": \"\",\n \"name\": \"\"\n },\n {\n \"uid\": \"\",\n \"name\": \"\"\n }\n ]\n },\n \"office_role\": {\n \"uid\": \"\",\n \"name\": \"\",\n \"rules\": [\n {\n \"uid\": \"\",\n \"name\": \"\"\n },\n {\n \"uid\": \"\",\n \"name\": \"\"\n }\n ],\n \"office\": {\n \"uid\": \"\",\n \"name\": \"\"\n }\n }\n },\n {\n \"uid\": \"\",\n \"idNot\": \"\",\n \"contact\": {\n \"first_name\": \"\",\n \"last_name\": \"\",\n \"email\": \"\",\n \"cell_phone_number\": \"\"\n },\n \"office_folders\": [\n {\n \"uid\": \"\",\n \"name\": \"\",\n \"office\": {\n \"uid\": \"\",\n \"name\": \"\"\n }\n },\n {\n \"uid\": \"\",\n \"name\": \"\",\n \"office\": {\n \"uid\": \"\",\n \"name\": \"\"\n }\n }\n ],\n \"role\": {\n \"uid\": \"\",\n \"name\": \"\",\n \"rules\": [\n {\n \"uid\": \"\",\n \"name\": \"\"\n },\n {\n \"uid\": \"\",\n \"name\": \"\"\n }\n ]\n },\n \"office_role\": {\n \"uid\": \"\",\n \"name\": \"\",\n \"rules\": [\n {\n \"uid\": \"\",\n \"name\": \"\"\n },\n {\n \"uid\": \"\",\n \"name\": \"\"\n }\n ],\n \"office\": {\n \"uid\": \"\",\n \"name\": \"\"\n }\n }\n }\n]" + }, + { + "name": "Invalid status value", + "originalRequest": { + "method": "GET", + "header": [ + { + "description": "Added as a part of security scheme: bearer", + "key": "Authorization", + "value": "Bearer " + } + ], + "url": { + "raw": "{{baseUrl}}/admin/users/:uid?uid=", + "host": [ + "{{baseUrl}}" + ], + "path": [ + "admin", + "users", + ":uid" + ], + "query": [ + { + "key": "uid", + "value": "", + "description": "(Required) ID of user to return" + } + ], + "variable": [ + { + "key": "uid" + } + ] + } + }, + "status": "Bad Request", + "code": 400, + "_postman_previewlanguage": "text", + "header": [], + "cookie": [], + "body": "" + } + ] + }, + { + "name": "Update an existing user", + "request": { + "auth": { + "type": "bearer", + "bearer": [ + { + "key": "token", + "value": "{{bearerToken}}", + "type": "string" + } + ] + }, + "method": "PUT", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + } + ], + "body": { + "mode": "raw", + "raw": "{\n \"uid\": \"\",\n \"idNot\": \"\",\n \"contact\": {\n \"first_name\": \"\",\n \"last_name\": \"\",\n \"email\": \"\",\n \"cell_phone_number\": \"\"\n },\n \"office_folders\": [\n {\n \"uid\": \"\",\n \"name\": \"\",\n \"office\": {\n \"uid\": \"\",\n \"name\": \"\"\n }\n },\n {\n \"uid\": \"\",\n \"name\": \"\",\n \"office\": {\n \"uid\": \"\",\n \"name\": \"\"\n }\n }\n ],\n \"role\": {\n \"uid\": \"\",\n \"name\": \"\",\n \"rules\": [\n {\n \"uid\": \"\",\n \"name\": \"\"\n },\n {\n \"uid\": \"\",\n \"name\": \"\"\n }\n ]\n },\n \"office_role\": {\n \"uid\": \"\",\n \"name\": \"\",\n \"rules\": [\n {\n \"uid\": \"\",\n \"name\": \"\"\n },\n {\n \"uid\": \"\",\n \"name\": \"\"\n }\n ],\n \"office\": {\n \"uid\": \"\",\n \"name\": \"\"\n }\n }\n}", + "options": { + "raw": { + "headerFamily": "json", + "language": "json" + } + } + }, + "url": { + "raw": "{{baseUrl}}/admin/users/:uid?uid=", + "host": [ + "{{baseUrl}}" + ], + "path": [ + "admin", + "users", + ":uid" + ], + "query": [ + { + "key": "uid", + "value": "", + "description": "(Required) ID of user to return" + } + ], + "variable": [ + { + "key": "uid" + } + ] + } + }, + "response": [ + { + "name": "successful operation", + "originalRequest": { + "method": "PUT", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + }, + { + "description": "Added as a part of security scheme: bearer", + "key": "Authorization", + "value": "Bearer " + } + ], + "body": { + "mode": "raw", + "raw": "{\n \"uid\": \"\",\n \"idNot\": \"\",\n \"contact\": {\n \"first_name\": \"\",\n \"last_name\": \"\",\n \"email\": \"\",\n \"cell_phone_number\": \"\"\n },\n \"office_folders\": [\n {\n \"uid\": \"\",\n \"name\": \"\",\n \"office\": {\n \"uid\": \"\",\n \"name\": \"\"\n }\n },\n {\n \"uid\": \"\",\n \"name\": \"\",\n \"office\": {\n \"uid\": \"\",\n \"name\": \"\"\n }\n }\n ],\n \"role\": {\n \"uid\": \"\",\n \"name\": \"\",\n \"rules\": [\n {\n \"uid\": \"\",\n \"name\": \"\"\n },\n {\n \"uid\": \"\",\n \"name\": \"\"\n }\n ]\n },\n \"office_role\": {\n \"uid\": \"\",\n \"name\": \"\",\n \"rules\": [\n {\n \"uid\": \"\",\n \"name\": \"\"\n },\n {\n \"uid\": \"\",\n \"name\": \"\"\n }\n ],\n \"office\": {\n \"uid\": \"\",\n \"name\": \"\"\n }\n }\n}", + "options": { + "raw": { + "headerFamily": "json", + "language": "json" + } + } + }, + "url": { + "raw": "{{baseUrl}}/admin/users/:uid?uid=", + "host": [ + "{{baseUrl}}" + ], + "path": [ + "admin", + "users", + ":uid" + ], + "query": [ + { + "key": "uid", + "value": "", + "description": "(Required) ID of user to return" + } + ], + "variable": [ + { + "key": "uid" + } + ] + } + }, + "status": "OK", + "code": 200, + "_postman_previewlanguage": "text", + "header": [], + "cookie": [], + "body": "" + }, + { + "name": "Invalid status value", + "originalRequest": { + "method": "PUT", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + }, + { + "description": "Added as a part of security scheme: bearer", + "key": "Authorization", + "value": "Bearer " + } + ], + "body": { + "mode": "raw", + "raw": "{\n \"uid\": \"\",\n \"idNot\": \"\",\n \"contact\": {\n \"first_name\": \"\",\n \"last_name\": \"\",\n \"email\": \"\",\n \"cell_phone_number\": \"\"\n },\n \"office_folders\": [\n {\n \"uid\": \"\",\n \"name\": \"\",\n \"office\": {\n \"uid\": \"\",\n \"name\": \"\"\n }\n },\n {\n \"uid\": \"\",\n \"name\": \"\",\n \"office\": {\n \"uid\": \"\",\n \"name\": \"\"\n }\n }\n ],\n \"role\": {\n \"uid\": \"\",\n \"name\": \"\",\n \"rules\": [\n {\n \"uid\": \"\",\n \"name\": \"\"\n },\n {\n \"uid\": \"\",\n \"name\": \"\"\n }\n ]\n },\n \"office_role\": {\n \"uid\": \"\",\n \"name\": \"\",\n \"rules\": [\n {\n \"uid\": \"\",\n \"name\": \"\"\n },\n {\n \"uid\": \"\",\n \"name\": \"\"\n }\n ],\n \"office\": {\n \"uid\": \"\",\n \"name\": \"\"\n }\n }\n}", + "options": { + "raw": { + "headerFamily": "json", + "language": "json" + } + } + }, + "url": { + "raw": "{{baseUrl}}/admin/users/:uid?uid=", + "host": [ + "{{baseUrl}}" + ], + "path": [ + "admin", + "users", + ":uid" + ], + "query": [ + { + "key": "uid", + "value": "", + "description": "(Required) ID of user to return" + } + ], + "variable": [ + { + "key": "uid" + } + ] + } + }, + "status": "Bad Request", + "code": 400, + "_postman_previewlanguage": "text", + "header": [], + "cookie": [], + "body": "" + } + ] + } + ] + }, + { + "name": "Get all users", + "request": { + "auth": { + "type": "bearer", + "bearer": [ + { + "key": "token", + "value": "{{bearerToken}}", + "type": "string" + } + ] + }, + "method": "GET", + "header": [ + { + "key": "Accept", + "value": "application/json" + } + ], + "url": { + "raw": "{{baseUrl}}/admin/users", + "host": [ + "{{baseUrl}}" + ], + "path": [ + "admin", + "users" + ] + } + }, + "response": [ + { + "name": "successful operation", + "originalRequest": { + "method": "GET", + "header": [ + { + "key": "Accept", + "value": "application/json" + }, + { + "description": "Added as a part of security scheme: bearer", + "key": "Authorization", + "value": "Bearer " + } + ], + "url": { + "raw": "{{baseUrl}}/admin/users", + "host": [ + "{{baseUrl}}" + ], + "path": [ + "admin", + "users" + ] + } + }, + "status": "OK", + "code": 200, + "_postman_previewlanguage": "json", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + } + ], + "cookie": [], + "body": "[\n {\n \"uid\": \"\",\n \"idNot\": \"\",\n \"contact\": {\n \"first_name\": \"\",\n \"last_name\": \"\",\n \"email\": \"\",\n \"cell_phone_number\": \"\"\n },\n \"office_folders\": [\n {\n \"uid\": \"\",\n \"name\": \"\",\n \"office\": {\n \"uid\": \"\",\n \"name\": \"\"\n }\n },\n {\n \"uid\": \"\",\n \"name\": \"\",\n \"office\": {\n \"uid\": \"\",\n \"name\": \"\"\n }\n }\n ],\n \"role\": {\n \"uid\": \"\",\n \"name\": \"\",\n \"rules\": [\n {\n \"uid\": \"\",\n \"name\": \"\"\n },\n {\n \"uid\": \"\",\n \"name\": \"\"\n }\n ]\n },\n \"office_role\": {\n \"uid\": \"\",\n \"name\": \"\",\n \"rules\": [\n {\n \"uid\": \"\",\n \"name\": \"\"\n },\n {\n \"uid\": \"\",\n \"name\": \"\"\n }\n ],\n \"office\": {\n \"uid\": \"\",\n \"name\": \"\"\n }\n }\n },\n {\n \"uid\": \"\",\n \"idNot\": \"\",\n \"contact\": {\n \"first_name\": \"\",\n \"last_name\": \"\",\n \"email\": \"\",\n \"cell_phone_number\": \"\"\n },\n \"office_folders\": [\n {\n \"uid\": \"\",\n \"name\": \"\",\n \"office\": {\n \"uid\": \"\",\n \"name\": \"\"\n }\n },\n {\n \"uid\": \"\",\n \"name\": \"\",\n \"office\": {\n \"uid\": \"\",\n \"name\": \"\"\n }\n }\n ],\n \"role\": {\n \"uid\": \"\",\n \"name\": \"\",\n \"rules\": [\n {\n \"uid\": \"\",\n \"name\": \"\"\n },\n {\n \"uid\": \"\",\n \"name\": \"\"\n }\n ]\n },\n \"office_role\": {\n \"uid\": \"\",\n \"name\": \"\",\n \"rules\": [\n {\n \"uid\": \"\",\n \"name\": \"\"\n },\n {\n \"uid\": \"\",\n \"name\": \"\"\n }\n ],\n \"office\": {\n \"uid\": \"\",\n \"name\": \"\"\n }\n }\n }\n]" + }, + { + "name": "Invalid status value", + "originalRequest": { + "method": "GET", + "header": [ + { + "description": "Added as a part of security scheme: bearer", + "key": "Authorization", + "value": "Bearer " + } + ], + "url": { + "raw": "{{baseUrl}}/admin/users", + "host": [ + "{{baseUrl}}" + ], + "path": [ + "admin", + "users" + ] + } + }, + "status": "Bad Request", + "code": 400, + "_postman_previewlanguage": "text", + "header": [], + "cookie": [], + "body": "" + } + ] + } + ] + } + ] + }, + { + "name": "super-admin", + "item": [ + { + "name": "customers", + "item": [ + { + "name": "{uid}", + "item": [ + { + "name": "Find customer by ID", + "request": { + "auth": { + "type": "bearer", + "bearer": [ + { + "key": "token", + "value": "{{bearerToken}}", + "type": "string" + } + ] + }, + "method": "GET", + "header": [ + { + "key": "Accept", + "value": "application/json" + } + ], + "url": { + "raw": "{{baseUrl}}/super-admin/customers/:uid", + "host": [ + "{{baseUrl}}" + ], + "path": [ + "super-admin", + "customers", + ":uid" + ], + "variable": [ + { + "key": "uid", + "value": "", + "description": "(Required) ID of customer to return" + } + ] + }, + "description": "Returns a single customer" + }, + "response": [ + { + "name": "successful operation", + "originalRequest": { + "method": "GET", + "header": [ + { + "key": "Accept", + "value": "application/json" + }, + { + "description": "Added as a part of security scheme: bearer", + "key": "Authorization", + "value": "Bearer " + } + ], + "url": { + "raw": "{{baseUrl}}/super-admin/customers/:uid", + "host": [ + "{{baseUrl}}" + ], + "path": [ + "super-admin", + "customers", + ":uid" + ], + "variable": [ + { + "key": "uid" + } + ] + } + }, + "status": "OK", + "code": 200, + "_postman_previewlanguage": "json", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + } + ], + "cookie": [], + "body": "{\n \"uid\": \"\",\n \"status\": \"\",\n \"contact\": {\n \"civility\": \"\",\n \"first_name\": \"\",\n \"last_name\": \"\",\n \"email\": \"\",\n \"cell_phone_number\": \"\"\n },\n \"office_folders\": [\n {\n \"uid\": \"\",\n \"name\": \"\",\n \"office\": {\n \"uid\": \"\",\n \"name\": \"\"\n }\n },\n {\n \"uid\": \"\",\n \"name\": \"\",\n \"office\": {\n \"uid\": \"\",\n \"name\": \"\"\n }\n }\n ],\n \"documents\": [\n {\n \"uid\": \"\",\n \"name\": \"\",\n \"type\": {\n \"uid\": \"\",\n \"name\": \"\"\n },\n \"file\": {\n \"uid\": \"\",\n \"name\": \"\"\n },\n \"folder\": {\n \"uid\": \"\",\n \"name\": \"\"\n }\n },\n {\n \"uid\": \"\",\n \"name\": \"\",\n \"type\": {\n \"uid\": \"\",\n \"name\": \"\"\n },\n \"file\": {\n \"uid\": \"\",\n \"name\": \"\"\n },\n \"folder\": {\n \"uid\": \"\",\n \"name\": \"\"\n }\n }\n ],\n \"createdAt\": \"\",\n \"updatedAt\": \"\"\n}" + }, + { + "name": "Invalid status value", + "originalRequest": { + "method": "GET", + "header": [ + { + "description": "Added as a part of security scheme: bearer", + "key": "Authorization", + "value": "Bearer " + } + ], + "url": { + "raw": "{{baseUrl}}/super-admin/customers/:uid", + "host": [ + "{{baseUrl}}" + ], + "path": [ + "super-admin", + "customers", + ":uid" + ], + "variable": [ + { + "key": "uid" + } + ] + } + }, + "status": "Bad Request", + "code": 400, + "_postman_previewlanguage": "text", + "header": [], + "cookie": [], + "body": "" + } + ] + }, + { + "name": "Update an existing customer", + "request": { + "auth": { + "type": "bearer", + "bearer": [ + { + "key": "token", + "value": "{{bearerToken}}", + "type": "string" + } + ] + }, + "method": "PUT", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + }, + { + "key": "Accept", + "value": "application/json" + } + ], + "body": { + "mode": "raw", + "raw": "{\n \"uid\": \"\",\n \"status\": \"\",\n \"contact\": {\n \"civility\": \"\",\n \"first_name\": \"\",\n \"last_name\": \"\",\n \"email\": \"\",\n \"cell_phone_number\": \"\"\n },\n \"office_folders\": [\n {\n \"uid\": \"\",\n \"name\": \"\",\n \"office\": {\n \"uid\": \"\",\n \"name\": \"\"\n }\n },\n {\n \"uid\": \"\",\n \"name\": \"\",\n \"office\": {\n \"uid\": \"\",\n \"name\": \"\"\n }\n }\n ],\n \"documents\": [\n {\n \"uid\": \"\",\n \"name\": \"\",\n \"type\": {\n \"uid\": \"\",\n \"name\": \"\"\n },\n \"file\": {\n \"uid\": \"\",\n \"name\": \"\"\n },\n \"folder\": {\n \"uid\": \"\",\n \"name\": \"\"\n }\n },\n {\n \"uid\": \"\",\n \"name\": \"\",\n \"type\": {\n \"uid\": \"\",\n \"name\": \"\"\n },\n \"file\": {\n \"uid\": \"\",\n \"name\": \"\"\n },\n \"folder\": {\n \"uid\": \"\",\n \"name\": \"\"\n }\n }\n ],\n \"createdAt\": \"\",\n \"updatedAt\": \"\"\n}", + "options": { + "raw": { + "headerFamily": "json", + "language": "json" + } + } + }, + "url": { + "raw": "{{baseUrl}}/super-admin/customers/:uid", + "host": [ + "{{baseUrl}}" + ], + "path": [ + "super-admin", + "customers", + ":uid" + ], + "variable": [ + { + "key": "uid", + "value": "", + "description": "(Required) ID of customer to return" + } + ] + }, + "description": "Returns a single customer updated" + }, + "response": [ + { + "name": "successful operation", + "originalRequest": { + "method": "PUT", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + }, + { + "key": "Accept", + "value": "application/json" + }, + { + "description": "Added as a part of security scheme: bearer", + "key": "Authorization", + "value": "Bearer " + } + ], + "body": { + "mode": "raw", + "raw": "{\n \"uid\": \"\",\n \"status\": \"\",\n \"contact\": {\n \"civility\": \"\",\n \"first_name\": \"\",\n \"last_name\": \"\",\n \"email\": \"\",\n \"cell_phone_number\": \"\"\n },\n \"office_folders\": [\n {\n \"uid\": \"\",\n \"name\": \"\",\n \"office\": {\n \"uid\": \"\",\n \"name\": \"\"\n }\n },\n {\n \"uid\": \"\",\n \"name\": \"\",\n \"office\": {\n \"uid\": \"\",\n \"name\": \"\"\n }\n }\n ],\n \"documents\": [\n {\n \"uid\": \"\",\n \"name\": \"\",\n \"type\": {\n \"uid\": \"\",\n \"name\": \"\"\n },\n \"file\": {\n \"uid\": \"\",\n \"name\": \"\"\n },\n \"folder\": {\n \"uid\": \"\",\n \"name\": \"\"\n }\n },\n {\n \"uid\": \"\",\n \"name\": \"\",\n \"type\": {\n \"uid\": \"\",\n \"name\": \"\"\n },\n \"file\": {\n \"uid\": \"\",\n \"name\": \"\"\n },\n \"folder\": {\n \"uid\": \"\",\n \"name\": \"\"\n }\n }\n ],\n \"createdAt\": \"\",\n \"updatedAt\": \"\"\n}", + "options": { + "raw": { + "headerFamily": "json", + "language": "json" + } + } + }, + "url": { + "raw": "{{baseUrl}}/super-admin/customers/:uid", + "host": [ + "{{baseUrl}}" + ], + "path": [ + "super-admin", + "customers", + ":uid" + ], + "variable": [ + { + "key": "uid" + } + ] + } + }, + "status": "OK", + "code": 200, + "_postman_previewlanguage": "json", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + } + ], + "cookie": [], + "body": "{\n \"uid\": \"\",\n \"status\": \"\",\n \"contact\": {\n \"civility\": \"\",\n \"first_name\": \"\",\n \"last_name\": \"\",\n \"email\": \"\",\n \"cell_phone_number\": \"\"\n },\n \"office_folders\": [\n {\n \"uid\": \"\",\n \"name\": \"\",\n \"office\": {\n \"uid\": \"\",\n \"name\": \"\"\n }\n },\n {\n \"uid\": \"\",\n \"name\": \"\",\n \"office\": {\n \"uid\": \"\",\n \"name\": \"\"\n }\n }\n ],\n \"documents\": [\n {\n \"uid\": \"\",\n \"name\": \"\",\n \"type\": {\n \"uid\": \"\",\n \"name\": \"\"\n },\n \"file\": {\n \"uid\": \"\",\n \"name\": \"\"\n },\n \"folder\": {\n \"uid\": \"\",\n \"name\": \"\"\n }\n },\n {\n \"uid\": \"\",\n \"name\": \"\",\n \"type\": {\n \"uid\": \"\",\n \"name\": \"\"\n },\n \"file\": {\n \"uid\": \"\",\n \"name\": \"\"\n },\n \"folder\": {\n \"uid\": \"\",\n \"name\": \"\"\n }\n }\n ],\n \"createdAt\": \"\",\n \"updatedAt\": \"\"\n}" + }, + { + "name": "Invalid status value", + "originalRequest": { + "method": "PUT", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + }, + { + "description": "Added as a part of security scheme: bearer", + "key": "Authorization", + "value": "Bearer " + } + ], + "body": { + "mode": "raw", + "raw": "{\n \"uid\": \"\",\n \"status\": \"\",\n \"contact\": {\n \"civility\": \"\",\n \"first_name\": \"\",\n \"last_name\": \"\",\n \"email\": \"\",\n \"cell_phone_number\": \"\"\n },\n \"office_folders\": [\n {\n \"uid\": \"\",\n \"name\": \"\",\n \"office\": {\n \"uid\": \"\",\n \"name\": \"\"\n }\n },\n {\n \"uid\": \"\",\n \"name\": \"\",\n \"office\": {\n \"uid\": \"\",\n \"name\": \"\"\n }\n }\n ],\n \"documents\": [\n {\n \"uid\": \"\",\n \"name\": \"\",\n \"type\": {\n \"uid\": \"\",\n \"name\": \"\"\n },\n \"file\": {\n \"uid\": \"\",\n \"name\": \"\"\n },\n \"folder\": {\n \"uid\": \"\",\n \"name\": \"\"\n }\n },\n {\n \"uid\": \"\",\n \"name\": \"\",\n \"type\": {\n \"uid\": \"\",\n \"name\": \"\"\n },\n \"file\": {\n \"uid\": \"\",\n \"name\": \"\"\n },\n \"folder\": {\n \"uid\": \"\",\n \"name\": \"\"\n }\n }\n ],\n \"createdAt\": \"\",\n \"updatedAt\": \"\"\n}", + "options": { + "raw": { + "headerFamily": "json", + "language": "json" + } + } + }, + "url": { + "raw": "{{baseUrl}}/super-admin/customers/:uid", + "host": [ + "{{baseUrl}}" + ], + "path": [ + "super-admin", + "customers", + ":uid" + ], + "variable": [ + { + "key": "uid" + } + ] + } + }, + "status": "Bad Request", + "code": 400, + "_postman_previewlanguage": "text", + "header": [], + "cookie": [], + "body": "" + } + ] + }, + { + "name": "Delete an existing customer", + "request": { + "auth": { + "type": "bearer", + "bearer": [ + { + "key": "token", + "value": "{{bearerToken}}", + "type": "string" + } + ] + }, + "method": "DELETE", + "header": [ + { + "key": "Accept", + "value": "application/json" + } + ], + "url": { + "raw": "{{baseUrl}}/super-admin/customers/:uid", + "host": [ + "{{baseUrl}}" + ], + "path": [ + "super-admin", + "customers", + ":uid" + ], + "variable": [ + { + "key": "uid", + "value": "", + "description": "(Required) ID of customer to return" + } + ] + }, + "description": "Returns a single customer deleted" + }, + "response": [ + { + "name": "successful operation", + "originalRequest": { + "method": "DELETE", + "header": [ + { + "key": "Accept", + "value": "application/json" + }, + { + "description": "Added as a part of security scheme: bearer", + "key": "Authorization", + "value": "Bearer " + } + ], + "url": { + "raw": "{{baseUrl}}/super-admin/customers/:uid", + "host": [ + "{{baseUrl}}" + ], + "path": [ + "super-admin", + "customers", + ":uid" + ], + "variable": [ + { + "key": "uid" + } + ] + } + }, + "status": "OK", + "code": 200, + "_postman_previewlanguage": "json", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + } + ], + "cookie": [], + "body": "{\n \"uid\": \"\",\n \"status\": \"\",\n \"contact\": {\n \"civility\": \"\",\n \"first_name\": \"\",\n \"last_name\": \"\",\n \"email\": \"\",\n \"cell_phone_number\": \"\"\n },\n \"office_folders\": [\n {\n \"uid\": \"\",\n \"name\": \"\",\n \"office\": {\n \"uid\": \"\",\n \"name\": \"\"\n }\n },\n {\n \"uid\": \"\",\n \"name\": \"\",\n \"office\": {\n \"uid\": \"\",\n \"name\": \"\"\n }\n }\n ],\n \"documents\": [\n {\n \"uid\": \"\",\n \"name\": \"\",\n \"type\": {\n \"uid\": \"\",\n \"name\": \"\"\n },\n \"file\": {\n \"uid\": \"\",\n \"name\": \"\"\n },\n \"folder\": {\n \"uid\": \"\",\n \"name\": \"\"\n }\n },\n {\n \"uid\": \"\",\n \"name\": \"\",\n \"type\": {\n \"uid\": \"\",\n \"name\": \"\"\n },\n \"file\": {\n \"uid\": \"\",\n \"name\": \"\"\n },\n \"folder\": {\n \"uid\": \"\",\n \"name\": \"\"\n }\n }\n ],\n \"createdAt\": \"\",\n \"updatedAt\": \"\"\n}" + }, + { + "name": "Invalid status value", + "originalRequest": { + "method": "DELETE", + "header": [ + { + "description": "Added as a part of security scheme: bearer", + "key": "Authorization", + "value": "Bearer " + } + ], + "url": { + "raw": "{{baseUrl}}/super-admin/customers/:uid", + "host": [ + "{{baseUrl}}" + ], + "path": [ + "super-admin", + "customers", + ":uid" + ], + "variable": [ + { + "key": "uid" + } + ] + } + }, + "status": "Bad Request", + "code": 400, + "_postman_previewlanguage": "text", + "header": [], + "cookie": [], + "body": "" + } + ] + } + ] + }, + { + "name": "Get all customers", + "request": { + "auth": { + "type": "bearer", + "bearer": [ + { + "key": "token", + "value": "{{bearerToken}}", + "type": "string" + } + ] + }, + "method": "GET", + "header": [ + { + "key": "Accept", + "value": "application/json" + } + ], + "url": { + "raw": "{{baseUrl}}/super-admin/customers", + "host": [ + "{{baseUrl}}" + ], + "path": [ + "super-admin", + "customers" + ] + } + }, + "response": [ + { + "name": "successful operation", + "originalRequest": { + "method": "GET", + "header": [ + { + "key": "Accept", + "value": "application/json" + }, + { + "description": "Added as a part of security scheme: bearer", + "key": "Authorization", + "value": "Bearer " + } + ], + "url": { + "raw": "{{baseUrl}}/super-admin/customers", + "host": [ + "{{baseUrl}}" + ], + "path": [ + "super-admin", + "customers" + ] + } + }, + "status": "OK", + "code": 200, + "_postman_previewlanguage": "json", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + } + ], + "cookie": [], + "body": "{\n \"uid\": \"\",\n \"status\": \"\",\n \"contact\": {\n \"civility\": \"\",\n \"first_name\": \"\",\n \"last_name\": \"\",\n \"email\": \"\",\n \"cell_phone_number\": \"\"\n },\n \"office_folders\": [\n {\n \"uid\": \"\",\n \"name\": \"\",\n \"office\": {\n \"uid\": \"\",\n \"name\": \"\"\n }\n },\n {\n \"uid\": \"\",\n \"name\": \"\",\n \"office\": {\n \"uid\": \"\",\n \"name\": \"\"\n }\n }\n ],\n \"documents\": [\n {\n \"uid\": \"\",\n \"name\": \"\",\n \"type\": {\n \"uid\": \"\",\n \"name\": \"\"\n },\n \"file\": {\n \"uid\": \"\",\n \"name\": \"\"\n },\n \"folder\": {\n \"uid\": \"\",\n \"name\": \"\"\n }\n },\n {\n \"uid\": \"\",\n \"name\": \"\",\n \"type\": {\n \"uid\": \"\",\n \"name\": \"\"\n },\n \"file\": {\n \"uid\": \"\",\n \"name\": \"\"\n },\n \"folder\": {\n \"uid\": \"\",\n \"name\": \"\"\n }\n }\n ],\n \"createdAt\": \"\",\n \"updatedAt\": \"\"\n}" + }, + { + "name": "Invalid status value", + "originalRequest": { + "method": "GET", + "header": [ + { + "description": "Added as a part of security scheme: bearer", + "key": "Authorization", + "value": "Bearer " + } + ], + "url": { + "raw": "{{baseUrl}}/super-admin/customers", + "host": [ + "{{baseUrl}}" + ], + "path": [ + "super-admin", + "customers" + ] + } + }, + "status": "Bad Request", + "code": 400, + "_postman_previewlanguage": "text", + "header": [], + "cookie": [], + "body": "" + } + ] + }, + { + "name": "Add a new customer", + "request": { + "auth": { + "type": "bearer", + "bearer": [ + { + "key": "token", + "value": "{{bearerToken}}", + "type": "string" + } + ] + }, + "method": "POST", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + }, + { + "key": "Accept", + "value": "application/json" + } + ], + "body": { + "mode": "raw", + "raw": "{\n \"uid\": \"\",\n \"status\": \"\",\n \"contact\": {\n \"civility\": \"\",\n \"first_name\": \"\",\n \"last_name\": \"\",\n \"email\": \"\",\n \"cell_phone_number\": \"\"\n },\n \"office_folders\": [\n {\n \"uid\": \"\",\n \"name\": \"\",\n \"office\": {\n \"uid\": \"\",\n \"name\": \"\"\n }\n },\n {\n \"uid\": \"\",\n \"name\": \"\",\n \"office\": {\n \"uid\": \"\",\n \"name\": \"\"\n }\n }\n ],\n \"documents\": [\n {\n \"uid\": \"\",\n \"name\": \"\",\n \"type\": {\n \"uid\": \"\",\n \"name\": \"\"\n },\n \"file\": {\n \"uid\": \"\",\n \"name\": \"\"\n },\n \"folder\": {\n \"uid\": \"\",\n \"name\": \"\"\n }\n },\n {\n \"uid\": \"\",\n \"name\": \"\",\n \"type\": {\n \"uid\": \"\",\n \"name\": \"\"\n },\n \"file\": {\n \"uid\": \"\",\n \"name\": \"\"\n },\n \"folder\": {\n \"uid\": \"\",\n \"name\": \"\"\n }\n }\n ],\n \"createdAt\": \"\",\n \"updatedAt\": \"\"\n}", + "options": { + "raw": { + "headerFamily": "json", + "language": "json" + } + } + }, + "url": { + "raw": "{{baseUrl}}/super-admin/customers", + "host": [ + "{{baseUrl}}" + ], + "path": [ + "super-admin", + "customers" + ] + } + }, + "response": [ + { + "name": "successful operation", + "originalRequest": { + "method": "POST", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + }, + { + "key": "Accept", + "value": "application/json" + }, + { + "description": "Added as a part of security scheme: bearer", + "key": "Authorization", + "value": "Bearer " + } + ], + "body": { + "mode": "raw", + "raw": "{\n \"uid\": \"\",\n \"status\": \"\",\n \"contact\": {\n \"civility\": \"\",\n \"first_name\": \"\",\n \"last_name\": \"\",\n \"email\": \"\",\n \"cell_phone_number\": \"\"\n },\n \"office_folders\": [\n {\n \"uid\": \"\",\n \"name\": \"\",\n \"office\": {\n \"uid\": \"\",\n \"name\": \"\"\n }\n },\n {\n \"uid\": \"\",\n \"name\": \"\",\n \"office\": {\n \"uid\": \"\",\n \"name\": \"\"\n }\n }\n ],\n \"documents\": [\n {\n \"uid\": \"\",\n \"name\": \"\",\n \"type\": {\n \"uid\": \"\",\n \"name\": \"\"\n },\n \"file\": {\n \"uid\": \"\",\n \"name\": \"\"\n },\n \"folder\": {\n \"uid\": \"\",\n \"name\": \"\"\n }\n },\n {\n \"uid\": \"\",\n \"name\": \"\",\n \"type\": {\n \"uid\": \"\",\n \"name\": \"\"\n },\n \"file\": {\n \"uid\": \"\",\n \"name\": \"\"\n },\n \"folder\": {\n \"uid\": \"\",\n \"name\": \"\"\n }\n }\n ],\n \"createdAt\": \"\",\n \"updatedAt\": \"\"\n}", + "options": { + "raw": { + "headerFamily": "json", + "language": "json" + } + } + }, + "url": { + "raw": "{{baseUrl}}/super-admin/customers", + "host": [ + "{{baseUrl}}" + ], + "path": [ + "super-admin", + "customers" + ] + } + }, + "status": "OK", + "code": 200, + "_postman_previewlanguage": "json", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + } + ], + "cookie": [], + "body": "{\n \"uid\": \"\",\n \"status\": \"\",\n \"contact\": {\n \"civility\": \"\",\n \"first_name\": \"\",\n \"last_name\": \"\",\n \"email\": \"\",\n \"cell_phone_number\": \"\"\n },\n \"office_folders\": [\n {\n \"uid\": \"\",\n \"name\": \"\",\n \"office\": {\n \"uid\": \"\",\n \"name\": \"\"\n }\n },\n {\n \"uid\": \"\",\n \"name\": \"\",\n \"office\": {\n \"uid\": \"\",\n \"name\": \"\"\n }\n }\n ],\n \"documents\": [\n {\n \"uid\": \"\",\n \"name\": \"\",\n \"type\": {\n \"uid\": \"\",\n \"name\": \"\"\n },\n \"file\": {\n \"uid\": \"\",\n \"name\": \"\"\n },\n \"folder\": {\n \"uid\": \"\",\n \"name\": \"\"\n }\n },\n {\n \"uid\": \"\",\n \"name\": \"\",\n \"type\": {\n \"uid\": \"\",\n \"name\": \"\"\n },\n \"file\": {\n \"uid\": \"\",\n \"name\": \"\"\n },\n \"folder\": {\n \"uid\": \"\",\n \"name\": \"\"\n }\n }\n ],\n \"createdAt\": \"\",\n \"updatedAt\": \"\"\n}" + }, + { + "name": "Invalid status value", + "originalRequest": { + "method": "POST", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + }, + { + "description": "Added as a part of security scheme: bearer", + "key": "Authorization", + "value": "Bearer " + } + ], + "body": { + "mode": "raw", + "raw": "{\n \"uid\": \"\",\n \"status\": \"\",\n \"contact\": {\n \"civility\": \"\",\n \"first_name\": \"\",\n \"last_name\": \"\",\n \"email\": \"\",\n \"cell_phone_number\": \"\"\n },\n \"office_folders\": [\n {\n \"uid\": \"\",\n \"name\": \"\",\n \"office\": {\n \"uid\": \"\",\n \"name\": \"\"\n }\n },\n {\n \"uid\": \"\",\n \"name\": \"\",\n \"office\": {\n \"uid\": \"\",\n \"name\": \"\"\n }\n }\n ],\n \"documents\": [\n {\n \"uid\": \"\",\n \"name\": \"\",\n \"type\": {\n \"uid\": \"\",\n \"name\": \"\"\n },\n \"file\": {\n \"uid\": \"\",\n \"name\": \"\"\n },\n \"folder\": {\n \"uid\": \"\",\n \"name\": \"\"\n }\n },\n {\n \"uid\": \"\",\n \"name\": \"\",\n \"type\": {\n \"uid\": \"\",\n \"name\": \"\"\n },\n \"file\": {\n \"uid\": \"\",\n \"name\": \"\"\n },\n \"folder\": {\n \"uid\": \"\",\n \"name\": \"\"\n }\n }\n ],\n \"createdAt\": \"\",\n \"updatedAt\": \"\"\n}", + "options": { + "raw": { + "headerFamily": "json", + "language": "json" + } + } + }, + "url": { + "raw": "{{baseUrl}}/super-admin/customers", + "host": [ + "{{baseUrl}}" + ], + "path": [ + "super-admin", + "customers" + ] + } + }, + "status": "Bad Request", + "code": 400, + "_postman_previewlanguage": "text", + "header": [], + "cookie": [], + "body": "" + } + ] + } + ] + }, + { + "name": "deeds", + "item": [ + { + "name": "{uid}", + "item": [ + { + "name": "Find deed by ID", + "request": { + "auth": { + "type": "bearer", + "bearer": [ + { + "key": "token", + "value": "{{bearerToken}}", + "type": "string" + } + ] + }, + "method": "GET", + "header": [ + { + "key": "Accept", + "value": "application/json" + } + ], + "url": { + "raw": "{{baseUrl}}/super-admin/deeds/:uid", + "host": [ + "{{baseUrl}}" + ], + "path": [ + "super-admin", + "deeds", + ":uid" + ], + "variable": [ + { + "key": "uid", + "value": "", + "description": "(Required) ID of deed to return" + } + ] + }, + "description": "Returns a single deed" + }, + "response": [ + { + "name": "successful operation", + "originalRequest": { + "method": "GET", + "header": [ + { + "key": "Accept", + "value": "application/json" + }, + { + "description": "Added as a part of security scheme: bearer", + "key": "Authorization", + "value": "Bearer " + } + ], + "url": { + "raw": "{{baseUrl}}/super-admin/deeds/:uid", + "host": [ + "{{baseUrl}}" + ], + "path": [ + "super-admin", + "deeds", + ":uid" + ], + "variable": [ + { + "key": "uid" + } + ] + } + }, + "status": "OK", + "code": 200, + "_postman_previewlanguage": "json", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + } + ], + "cookie": [], + "body": "{\n \"uid\": \"\",\n \"deed_type\": {\n \"uid\": \"\",\n \"name\": \"\",\n \"description\": \"\",\n \"archived_at\": \"\",\n \"createdAt\": \"\",\n \"updatedAt\": \"\"\n },\n \"document_types\": [\n {\n \"uid\": \"\",\n \"name\": \"\",\n \"public_description\": \"\",\n \"private_description\": \"\",\n \"archived_at\": \"\",\n \"createdAt\": \"\",\n \"updatedAt\": \"\"\n },\n {\n \"uid\": \"\",\n \"name\": \"\",\n \"public_description\": \"\",\n \"private_description\": \"\",\n \"archived_at\": \"\",\n \"createdAt\": \"\",\n \"updatedAt\": \"\"\n }\n ],\n \"office\": {\n \"uid\": \"\",\n \"name\": \"\"\n },\n \"folder\": {\n \"uid\": \"\",\n \"name\": \"\"\n },\n \"createdAt\": \"\",\n \"updatedAt\": \"\"\n}" + }, + { + "name": "Invalid status value", + "originalRequest": { + "method": "GET", + "header": [ + { + "description": "Added as a part of security scheme: bearer", + "key": "Authorization", + "value": "Bearer " + } + ], + "url": { + "raw": "{{baseUrl}}/super-admin/deeds/:uid", + "host": [ + "{{baseUrl}}" + ], + "path": [ + "super-admin", + "deeds", + ":uid" + ], + "variable": [ + { + "key": "uid" + } + ] + } + }, + "status": "Bad Request", + "code": 400, + "_postman_previewlanguage": "text", + "header": [], + "cookie": [], + "body": "" + } + ] + }, + { + "name": "Update an existing deed", + "request": { + "auth": { + "type": "bearer", + "bearer": [ + { + "key": "token", + "value": "{{bearerToken}}", + "type": "string" + } + ] + }, + "method": "PUT", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + }, + { + "key": "Accept", + "value": "application/json" + } + ], + "body": { + "mode": "raw", + "raw": "{\n \"uid\": \"\",\n \"deed_type\": {\n \"uid\": \"\",\n \"name\": \"\",\n \"description\": \"\",\n \"archived_at\": \"\",\n \"createdAt\": \"\",\n \"updatedAt\": \"\"\n },\n \"document_types\": [\n {\n \"uid\": \"\",\n \"name\": \"\",\n \"public_description\": \"\",\n \"private_description\": \"\",\n \"archived_at\": \"\",\n \"createdAt\": \"\",\n \"updatedAt\": \"\"\n },\n {\n \"uid\": \"\",\n \"name\": \"\",\n \"public_description\": \"\",\n \"private_description\": \"\",\n \"archived_at\": \"\",\n \"createdAt\": \"\",\n \"updatedAt\": \"\"\n }\n ],\n \"office\": {\n \"uid\": \"\",\n \"name\": \"\"\n },\n \"folder\": {\n \"uid\": \"\",\n \"name\": \"\"\n },\n \"createdAt\": \"\",\n \"updatedAt\": \"\"\n}", + "options": { + "raw": { + "headerFamily": "json", + "language": "json" + } + } + }, + "url": { + "raw": "{{baseUrl}}/super-admin/deeds/:uid", + "host": [ + "{{baseUrl}}" + ], + "path": [ + "super-admin", + "deeds", + ":uid" + ], + "variable": [ + { + "key": "uid", + "value": "", + "description": "(Required) ID of deed to return" + } + ] + }, + "description": "Returns a single deed updated" + }, + "response": [ + { + "name": "successful operation", + "originalRequest": { + "method": "PUT", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + }, + { + "key": "Accept", + "value": "application/json" + }, + { + "description": "Added as a part of security scheme: bearer", + "key": "Authorization", + "value": "Bearer " + } + ], + "body": { + "mode": "raw", + "raw": "{\n \"uid\": \"\",\n \"deed_type\": {\n \"uid\": \"\",\n \"name\": \"\",\n \"description\": \"\",\n \"archived_at\": \"\",\n \"createdAt\": \"\",\n \"updatedAt\": \"\"\n },\n \"document_types\": [\n {\n \"uid\": \"\",\n \"name\": \"\",\n \"public_description\": \"\",\n \"private_description\": \"\",\n \"archived_at\": \"\",\n \"createdAt\": \"\",\n \"updatedAt\": \"\"\n },\n {\n \"uid\": \"\",\n \"name\": \"\",\n \"public_description\": \"\",\n \"private_description\": \"\",\n \"archived_at\": \"\",\n \"createdAt\": \"\",\n \"updatedAt\": \"\"\n }\n ],\n \"office\": {\n \"uid\": \"\",\n \"name\": \"\"\n },\n \"folder\": {\n \"uid\": \"\",\n \"name\": \"\"\n },\n \"createdAt\": \"\",\n \"updatedAt\": \"\"\n}", + "options": { + "raw": { + "headerFamily": "json", + "language": "json" + } + } + }, + "url": { + "raw": "{{baseUrl}}/super-admin/deeds/:uid", + "host": [ + "{{baseUrl}}" + ], + "path": [ + "super-admin", + "deeds", + ":uid" + ], + "variable": [ + { + "key": "uid" + } + ] + } + }, + "status": "OK", + "code": 200, + "_postman_previewlanguage": "json", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + } + ], + "cookie": [], + "body": "{\n \"uid\": \"\",\n \"deed_type\": {\n \"uid\": \"\",\n \"name\": \"\",\n \"description\": \"\",\n \"archived_at\": \"\",\n \"createdAt\": \"\",\n \"updatedAt\": \"\"\n },\n \"document_types\": [\n {\n \"uid\": \"\",\n \"name\": \"\",\n \"public_description\": \"\",\n \"private_description\": \"\",\n \"archived_at\": \"\",\n \"createdAt\": \"\",\n \"updatedAt\": \"\"\n },\n {\n \"uid\": \"\",\n \"name\": \"\",\n \"public_description\": \"\",\n \"private_description\": \"\",\n \"archived_at\": \"\",\n \"createdAt\": \"\",\n \"updatedAt\": \"\"\n }\n ],\n \"office\": {\n \"uid\": \"\",\n \"name\": \"\"\n },\n \"folder\": {\n \"uid\": \"\",\n \"name\": \"\"\n },\n \"createdAt\": \"\",\n \"updatedAt\": \"\"\n}" + }, + { + "name": "Invalid status value", + "originalRequest": { + "method": "PUT", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + }, + { + "description": "Added as a part of security scheme: bearer", + "key": "Authorization", + "value": "Bearer " + } + ], + "body": { + "mode": "raw", + "raw": "{\n \"uid\": \"\",\n \"deed_type\": {\n \"uid\": \"\",\n \"name\": \"\",\n \"description\": \"\",\n \"archived_at\": \"\",\n \"createdAt\": \"\",\n \"updatedAt\": \"\"\n },\n \"document_types\": [\n {\n \"uid\": \"\",\n \"name\": \"\",\n \"public_description\": \"\",\n \"private_description\": \"\",\n \"archived_at\": \"\",\n \"createdAt\": \"\",\n \"updatedAt\": \"\"\n },\n {\n \"uid\": \"\",\n \"name\": \"\",\n \"public_description\": \"\",\n \"private_description\": \"\",\n \"archived_at\": \"\",\n \"createdAt\": \"\",\n \"updatedAt\": \"\"\n }\n ],\n \"office\": {\n \"uid\": \"\",\n \"name\": \"\"\n },\n \"folder\": {\n \"uid\": \"\",\n \"name\": \"\"\n },\n \"createdAt\": \"\",\n \"updatedAt\": \"\"\n}", + "options": { + "raw": { + "headerFamily": "json", + "language": "json" + } + } + }, + "url": { + "raw": "{{baseUrl}}/super-admin/deeds/:uid", + "host": [ + "{{baseUrl}}" + ], + "path": [ + "super-admin", + "deeds", + ":uid" + ], + "variable": [ + { + "key": "uid" + } + ] + } + }, + "status": "Bad Request", + "code": 400, + "_postman_previewlanguage": "text", + "header": [], + "cookie": [], + "body": "" + } + ] + }, + { + "name": "Delete an existing deed", + "request": { + "auth": { + "type": "bearer", + "bearer": [ + { + "key": "token", + "value": "{{bearerToken}}", + "type": "string" + } + ] + }, + "method": "DELETE", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + }, + { + "key": "Accept", + "value": "application/json" + } + ], + "body": { + "mode": "raw", + "raw": "{\n \"uid\": \"\",\n \"deed_type\": {\n \"uid\": \"\",\n \"name\": \"\",\n \"description\": \"\",\n \"archived_at\": \"\",\n \"createdAt\": \"\",\n \"updatedAt\": \"\"\n },\n \"document_types\": [\n {\n \"uid\": \"\",\n \"name\": \"\",\n \"public_description\": \"\",\n \"private_description\": \"\",\n \"archived_at\": \"\",\n \"createdAt\": \"\",\n \"updatedAt\": \"\"\n },\n {\n \"uid\": \"\",\n \"name\": \"\",\n \"public_description\": \"\",\n \"private_description\": \"\",\n \"archived_at\": \"\",\n \"createdAt\": \"\",\n \"updatedAt\": \"\"\n }\n ],\n \"office\": {\n \"uid\": \"\",\n \"name\": \"\"\n },\n \"folder\": {\n \"uid\": \"\",\n \"name\": \"\"\n },\n \"createdAt\": \"\",\n \"updatedAt\": \"\"\n}", + "options": { + "raw": { + "headerFamily": "json", + "language": "json" + } + } + }, + "url": { + "raw": "{{baseUrl}}/super-admin/deeds/:uid", + "host": [ + "{{baseUrl}}" + ], + "path": [ + "super-admin", + "deeds", + ":uid" + ], + "variable": [ + { + "key": "uid", + "value": "", + "description": "(Required) ID of deed to return" + } + ] + }, + "description": "Returns a single deed deleted" + }, + "response": [ + { + "name": "successful operation", + "originalRequest": { + "method": "DELETE", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + }, + { + "key": "Accept", + "value": "application/json" + }, + { + "description": "Added as a part of security scheme: bearer", + "key": "Authorization", + "value": "Bearer " + } + ], + "body": { + "mode": "raw", + "raw": "{\n \"uid\": \"\",\n \"deed_type\": {\n \"uid\": \"\",\n \"name\": \"\",\n \"description\": \"\",\n \"archived_at\": \"\",\n \"createdAt\": \"\",\n \"updatedAt\": \"\"\n },\n \"document_types\": [\n {\n \"uid\": \"\",\n \"name\": \"\",\n \"public_description\": \"\",\n \"private_description\": \"\",\n \"archived_at\": \"\",\n \"createdAt\": \"\",\n \"updatedAt\": \"\"\n },\n {\n \"uid\": \"\",\n \"name\": \"\",\n \"public_description\": \"\",\n \"private_description\": \"\",\n \"archived_at\": \"\",\n \"createdAt\": \"\",\n \"updatedAt\": \"\"\n }\n ],\n \"office\": {\n \"uid\": \"\",\n \"name\": \"\"\n },\n \"folder\": {\n \"uid\": \"\",\n \"name\": \"\"\n },\n \"createdAt\": \"\",\n \"updatedAt\": \"\"\n}", + "options": { + "raw": { + "headerFamily": "json", + "language": "json" + } + } + }, + "url": { + "raw": "{{baseUrl}}/super-admin/deeds/:uid", + "host": [ + "{{baseUrl}}" + ], + "path": [ + "super-admin", + "deeds", + ":uid" + ], + "variable": [ + { + "key": "uid" + } + ] + } + }, + "status": "OK", + "code": 200, + "_postman_previewlanguage": "json", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + } + ], + "cookie": [], + "body": "{\n \"uid\": \"\",\n \"deed_type\": {\n \"uid\": \"\",\n \"name\": \"\",\n \"description\": \"\",\n \"archived_at\": \"\",\n \"createdAt\": \"\",\n \"updatedAt\": \"\"\n },\n \"document_types\": [\n {\n \"uid\": \"\",\n \"name\": \"\",\n \"public_description\": \"\",\n \"private_description\": \"\",\n \"archived_at\": \"\",\n \"createdAt\": \"\",\n \"updatedAt\": \"\"\n },\n {\n \"uid\": \"\",\n \"name\": \"\",\n \"public_description\": \"\",\n \"private_description\": \"\",\n \"archived_at\": \"\",\n \"createdAt\": \"\",\n \"updatedAt\": \"\"\n }\n ],\n \"office\": {\n \"uid\": \"\",\n \"name\": \"\"\n },\n \"folder\": {\n \"uid\": \"\",\n \"name\": \"\"\n },\n \"createdAt\": \"\",\n \"updatedAt\": \"\"\n}" + }, + { + "name": "Invalid status value", + "originalRequest": { + "method": "DELETE", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + }, + { + "description": "Added as a part of security scheme: bearer", + "key": "Authorization", + "value": "Bearer " + } + ], + "body": { + "mode": "raw", + "raw": "{\n \"uid\": \"\",\n \"deed_type\": {\n \"uid\": \"\",\n \"name\": \"\",\n \"description\": \"\",\n \"archived_at\": \"\",\n \"createdAt\": \"\",\n \"updatedAt\": \"\"\n },\n \"document_types\": [\n {\n \"uid\": \"\",\n \"name\": \"\",\n \"public_description\": \"\",\n \"private_description\": \"\",\n \"archived_at\": \"\",\n \"createdAt\": \"\",\n \"updatedAt\": \"\"\n },\n {\n \"uid\": \"\",\n \"name\": \"\",\n \"public_description\": \"\",\n \"private_description\": \"\",\n \"archived_at\": \"\",\n \"createdAt\": \"\",\n \"updatedAt\": \"\"\n }\n ],\n \"office\": {\n \"uid\": \"\",\n \"name\": \"\"\n },\n \"folder\": {\n \"uid\": \"\",\n \"name\": \"\"\n },\n \"createdAt\": \"\",\n \"updatedAt\": \"\"\n}", + "options": { + "raw": { + "headerFamily": "json", + "language": "json" + } + } + }, + "url": { + "raw": "{{baseUrl}}/super-admin/deeds/:uid", + "host": [ + "{{baseUrl}}" + ], + "path": [ + "super-admin", + "deeds", + ":uid" + ], + "variable": [ + { + "key": "uid" + } + ] + } + }, + "status": "Bad Request", + "code": 400, + "_postman_previewlanguage": "text", + "header": [], + "cookie": [], + "body": "" + } + ] + } + ] + }, + { + "name": "Get all deeds", + "request": { + "auth": { + "type": "bearer", + "bearer": [ + { + "key": "token", + "value": "{{bearerToken}}", + "type": "string" + } + ] + }, + "method": "GET", + "header": [ + { + "key": "Accept", + "value": "application/json" + } + ], + "url": { + "raw": "{{baseUrl}}/super-admin/deeds", + "host": [ + "{{baseUrl}}" + ], + "path": [ + "super-admin", + "deeds" + ] + } + }, + "response": [ + { + "name": "successful operation", + "originalRequest": { + "method": "GET", + "header": [ + { + "key": "Accept", + "value": "application/json" + }, + { + "description": "Added as a part of security scheme: bearer", + "key": "Authorization", + "value": "Bearer " + } + ], + "url": { + "raw": "{{baseUrl}}/super-admin/deeds", + "host": [ + "{{baseUrl}}" + ], + "path": [ + "super-admin", + "deeds" + ] + } + }, + "status": "OK", + "code": 200, + "_postman_previewlanguage": "json", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + } + ], + "cookie": [], + "body": "{\n \"uid\": \"\",\n \"deed_type\": {\n \"uid\": \"\",\n \"name\": \"\",\n \"description\": \"\",\n \"archived_at\": \"\",\n \"createdAt\": \"\",\n \"updatedAt\": \"\"\n },\n \"document_types\": [\n {\n \"uid\": \"\",\n \"name\": \"\",\n \"public_description\": \"\",\n \"private_description\": \"\",\n \"archived_at\": \"\",\n \"createdAt\": \"\",\n \"updatedAt\": \"\"\n },\n {\n \"uid\": \"\",\n \"name\": \"\",\n \"public_description\": \"\",\n \"private_description\": \"\",\n \"archived_at\": \"\",\n \"createdAt\": \"\",\n \"updatedAt\": \"\"\n }\n ],\n \"office\": {\n \"uid\": \"\",\n \"name\": \"\"\n },\n \"folder\": {\n \"uid\": \"\",\n \"name\": \"\"\n },\n \"createdAt\": \"\",\n \"updatedAt\": \"\"\n}" + }, + { + "name": "Invalid status value", + "originalRequest": { + "method": "GET", + "header": [ + { + "description": "Added as a part of security scheme: bearer", + "key": "Authorization", + "value": "Bearer " + } + ], + "url": { + "raw": "{{baseUrl}}/super-admin/deeds", + "host": [ + "{{baseUrl}}" + ], + "path": [ + "super-admin", + "deeds" + ] + } + }, + "status": "Bad Request", + "code": 400, + "_postman_previewlanguage": "text", + "header": [], + "cookie": [], + "body": "" + } + ] + }, + { + "name": "Add a new deed", + "request": { + "auth": { + "type": "bearer", + "bearer": [ + { + "key": "token", + "value": "{{bearerToken}}", + "type": "string" + } + ] + }, + "method": "POST", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + }, + { + "key": "Accept", + "value": "application/json" + } + ], + "body": { + "mode": "raw", + "raw": "{\n \"uid\": \"\",\n \"deed_type\": {\n \"uid\": \"\",\n \"name\": \"\",\n \"description\": \"\",\n \"archived_at\": \"\",\n \"createdAt\": \"\",\n \"updatedAt\": \"\"\n },\n \"document_types\": [\n {\n \"uid\": \"\",\n \"name\": \"\",\n \"public_description\": \"\",\n \"private_description\": \"\",\n \"archived_at\": \"\",\n \"createdAt\": \"\",\n \"updatedAt\": \"\"\n },\n {\n \"uid\": \"\",\n \"name\": \"\",\n \"public_description\": \"\",\n \"private_description\": \"\",\n \"archived_at\": \"\",\n \"createdAt\": \"\",\n \"updatedAt\": \"\"\n }\n ],\n \"office\": {\n \"uid\": \"\",\n \"name\": \"\"\n },\n \"folder\": {\n \"uid\": \"\",\n \"name\": \"\"\n },\n \"createdAt\": \"\",\n \"updatedAt\": \"\"\n}", + "options": { + "raw": { + "headerFamily": "json", + "language": "json" + } + } + }, + "url": { + "raw": "{{baseUrl}}/super-admin/deeds", + "host": [ + "{{baseUrl}}" + ], + "path": [ + "super-admin", + "deeds" + ] + } + }, + "response": [ + { + "name": "successful operation", + "originalRequest": { + "method": "POST", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + }, + { + "key": "Accept", + "value": "application/json" + }, + { + "description": "Added as a part of security scheme: bearer", + "key": "Authorization", + "value": "Bearer " + } + ], + "body": { + "mode": "raw", + "raw": "{\n \"uid\": \"\",\n \"deed_type\": {\n \"uid\": \"\",\n \"name\": \"\",\n \"description\": \"\",\n \"archived_at\": \"\",\n \"createdAt\": \"\",\n \"updatedAt\": \"\"\n },\n \"document_types\": [\n {\n \"uid\": \"\",\n \"name\": \"\",\n \"public_description\": \"\",\n \"private_description\": \"\",\n \"archived_at\": \"\",\n \"createdAt\": \"\",\n \"updatedAt\": \"\"\n },\n {\n \"uid\": \"\",\n \"name\": \"\",\n \"public_description\": \"\",\n \"private_description\": \"\",\n \"archived_at\": \"\",\n \"createdAt\": \"\",\n \"updatedAt\": \"\"\n }\n ],\n \"office\": {\n \"uid\": \"\",\n \"name\": \"\"\n },\n \"folder\": {\n \"uid\": \"\",\n \"name\": \"\"\n },\n \"createdAt\": \"\",\n \"updatedAt\": \"\"\n}", + "options": { + "raw": { + "headerFamily": "json", + "language": "json" + } + } + }, + "url": { + "raw": "{{baseUrl}}/super-admin/deeds", + "host": [ + "{{baseUrl}}" + ], + "path": [ + "super-admin", + "deeds" + ] + } + }, + "status": "OK", + "code": 200, + "_postman_previewlanguage": "json", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + } + ], + "cookie": [], + "body": "{\n \"uid\": \"\",\n \"deed_type\": {\n \"uid\": \"\",\n \"name\": \"\",\n \"description\": \"\",\n \"archived_at\": \"\",\n \"createdAt\": \"\",\n \"updatedAt\": \"\"\n },\n \"document_types\": [\n {\n \"uid\": \"\",\n \"name\": \"\",\n \"public_description\": \"\",\n \"private_description\": \"\",\n \"archived_at\": \"\",\n \"createdAt\": \"\",\n \"updatedAt\": \"\"\n },\n {\n \"uid\": \"\",\n \"name\": \"\",\n \"public_description\": \"\",\n \"private_description\": \"\",\n \"archived_at\": \"\",\n \"createdAt\": \"\",\n \"updatedAt\": \"\"\n }\n ],\n \"office\": {\n \"uid\": \"\",\n \"name\": \"\"\n },\n \"folder\": {\n \"uid\": \"\",\n \"name\": \"\"\n },\n \"createdAt\": \"\",\n \"updatedAt\": \"\"\n}" + }, + { + "name": "Invalid status value", + "originalRequest": { + "method": "POST", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + }, + { + "description": "Added as a part of security scheme: bearer", + "key": "Authorization", + "value": "Bearer " + } + ], + "body": { + "mode": "raw", + "raw": "{\n \"uid\": \"\",\n \"deed_type\": {\n \"uid\": \"\",\n \"name\": \"\",\n \"description\": \"\",\n \"archived_at\": \"\",\n \"createdAt\": \"\",\n \"updatedAt\": \"\"\n },\n \"document_types\": [\n {\n \"uid\": \"\",\n \"name\": \"\",\n \"public_description\": \"\",\n \"private_description\": \"\",\n \"archived_at\": \"\",\n \"createdAt\": \"\",\n \"updatedAt\": \"\"\n },\n {\n \"uid\": \"\",\n \"name\": \"\",\n \"public_description\": \"\",\n \"private_description\": \"\",\n \"archived_at\": \"\",\n \"createdAt\": \"\",\n \"updatedAt\": \"\"\n }\n ],\n \"office\": {\n \"uid\": \"\",\n \"name\": \"\"\n },\n \"folder\": {\n \"uid\": \"\",\n \"name\": \"\"\n },\n \"createdAt\": \"\",\n \"updatedAt\": \"\"\n}", + "options": { + "raw": { + "headerFamily": "json", + "language": "json" + } + } + }, + "url": { + "raw": "{{baseUrl}}/super-admin/deeds", + "host": [ + "{{baseUrl}}" + ], + "path": [ + "super-admin", + "deeds" + ] + } + }, + "status": "Bad Request", + "code": 400, + "_postman_previewlanguage": "text", + "header": [], + "cookie": [], + "body": "" + } + ] + } + ] + }, + { + "name": "deed-types", + "item": [ + { + "name": "{uid}", + "item": [ + { + "name": "Find deed type by ID", + "request": { + "auth": { + "type": "bearer", + "bearer": [ + { + "key": "token", + "value": "{{bearerToken}}", + "type": "string" + } + ] + }, + "method": "GET", + "header": [ + { + "key": "Accept", + "value": "application/json" + } + ], + "url": { + "raw": "{{baseUrl}}/super-admin/deed-types/:uid", + "host": [ + "{{baseUrl}}" + ], + "path": [ + "super-admin", + "deed-types", + ":uid" + ], + "variable": [ + { + "key": "uid", + "value": "", + "description": "(Required) ID of deed type to return" + } + ] + }, + "description": "Returns a single deed type" + }, + "response": [ + { + "name": "successful operation", + "originalRequest": { + "method": "GET", + "header": [ + { + "key": "Accept", + "value": "application/json" + }, + { + "description": "Added as a part of security scheme: bearer", + "key": "Authorization", + "value": "Bearer " + } + ], + "url": { + "raw": "{{baseUrl}}/super-admin/deed-types/:uid", + "host": [ + "{{baseUrl}}" + ], + "path": [ + "super-admin", + "deed-types", + ":uid" + ], + "variable": [ + { + "key": "uid" + } + ] + } + }, + "status": "OK", + "code": 200, + "_postman_previewlanguage": "json", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + } + ], + "cookie": [], + "body": "{\n \"uid\": \"\",\n \"name\": \"\",\n \"description\": \"\",\n \"archived_at\": \"\",\n \"office\": {\n \"uid\": \"\",\n \"name\": \"\"\n },\n \"createdAt\": \"\",\n \"updatedAt\": \"\"\n}" + }, + { + "name": "Invalid status value", + "originalRequest": { + "method": "GET", + "header": [ + { + "description": "Added as a part of security scheme: bearer", + "key": "Authorization", + "value": "Bearer " + } + ], + "url": { + "raw": "{{baseUrl}}/super-admin/deed-types/:uid", + "host": [ + "{{baseUrl}}" + ], + "path": [ + "super-admin", + "deed-types", + ":uid" + ], + "variable": [ + { + "key": "uid" + } + ] + } + }, + "status": "Bad Request", + "code": 400, + "_postman_previewlanguage": "text", + "header": [], + "cookie": [], + "body": "" + } + ] + }, + { + "name": "Update an existing deed type", + "request": { + "auth": { + "type": "bearer", + "bearer": [ + { + "key": "token", + "value": "{{bearerToken}}", + "type": "string" + } + ] + }, + "method": "PUT", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + }, + { + "key": "Accept", + "value": "application/json" + } + ], + "body": { + "mode": "raw", + "raw": "{\n \"uid\": \"\",\n \"name\": \"\",\n \"description\": \"\",\n \"archived_at\": \"\",\n \"office\": {\n \"uid\": \"\",\n \"name\": \"\"\n },\n \"createdAt\": \"\",\n \"updatedAt\": \"\"\n}", + "options": { + "raw": { + "headerFamily": "json", + "language": "json" + } + } + }, + "url": { + "raw": "{{baseUrl}}/super-admin/deed-types/:uid", + "host": [ + "{{baseUrl}}" + ], + "path": [ + "super-admin", + "deed-types", + ":uid" + ], + "variable": [ + { + "key": "uid", + "value": "", + "description": "(Required) ID of deed type to return" + } + ] + }, + "description": "Returns a single deed type updated" + }, + "response": [ + { + "name": "successful operation", + "originalRequest": { + "method": "PUT", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + }, + { + "key": "Accept", + "value": "application/json" + }, + { + "description": "Added as a part of security scheme: bearer", + "key": "Authorization", + "value": "Bearer " + } + ], + "body": { + "mode": "raw", + "raw": "{\n \"uid\": \"\",\n \"name\": \"\",\n \"description\": \"\",\n \"archived_at\": \"\",\n \"office\": {\n \"uid\": \"\",\n \"name\": \"\"\n },\n \"createdAt\": \"\",\n \"updatedAt\": \"\"\n}", + "options": { + "raw": { + "headerFamily": "json", + "language": "json" + } + } + }, + "url": { + "raw": "{{baseUrl}}/super-admin/deed-types/:uid", + "host": [ + "{{baseUrl}}" + ], + "path": [ + "super-admin", + "deed-types", + ":uid" + ], + "variable": [ + { + "key": "uid" + } + ] + } + }, + "status": "OK", + "code": 200, + "_postman_previewlanguage": "json", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + } + ], + "cookie": [], + "body": "{\n \"uid\": \"\",\n \"name\": \"\",\n \"description\": \"\",\n \"archived_at\": \"\",\n \"office\": {\n \"uid\": \"\",\n \"name\": \"\"\n },\n \"createdAt\": \"\",\n \"updatedAt\": \"\"\n}" + }, + { + "name": "Invalid status value", + "originalRequest": { + "method": "PUT", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + }, + { + "description": "Added as a part of security scheme: bearer", + "key": "Authorization", + "value": "Bearer " + } + ], + "body": { + "mode": "raw", + "raw": "{\n \"uid\": \"\",\n \"name\": \"\",\n \"description\": \"\",\n \"archived_at\": \"\",\n \"office\": {\n \"uid\": \"\",\n \"name\": \"\"\n },\n \"createdAt\": \"\",\n \"updatedAt\": \"\"\n}", + "options": { + "raw": { + "headerFamily": "json", + "language": "json" + } + } + }, + "url": { + "raw": "{{baseUrl}}/super-admin/deed-types/:uid", + "host": [ + "{{baseUrl}}" + ], + "path": [ + "super-admin", + "deed-types", + ":uid" + ], + "variable": [ + { + "key": "uid" + } + ] + } + }, + "status": "Bad Request", + "code": 400, + "_postman_previewlanguage": "text", + "header": [], + "cookie": [], + "body": "" + } + ] + } + ] + }, + { + "name": "Get all deed types", + "request": { + "auth": { + "type": "bearer", + "bearer": [ + { + "key": "token", + "value": "{{bearerToken}}", + "type": "string" + } + ] + }, + "method": "GET", + "header": [ + { + "key": "Accept", + "value": "application/json" + } + ], + "url": { + "raw": "{{baseUrl}}/super-admin/deed-types", + "host": [ + "{{baseUrl}}" + ], + "path": [ + "super-admin", + "deed-types" + ] + } + }, + "response": [ + { + "name": "successful operation", + "originalRequest": { + "method": "GET", + "header": [ + { + "key": "Accept", + "value": "application/json" + }, + { + "description": "Added as a part of security scheme: bearer", + "key": "Authorization", + "value": "Bearer " + } + ], + "url": { + "raw": "{{baseUrl}}/super-admin/deed-types", + "host": [ + "{{baseUrl}}" + ], + "path": [ + "super-admin", + "deed-types" + ] + } + }, + "status": "OK", + "code": 200, + "_postman_previewlanguage": "json", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + } + ], + "cookie": [], + "body": "{\n \"uid\": \"\",\n \"name\": \"\",\n \"description\": \"\",\n \"archived_at\": \"\",\n \"office\": {\n \"uid\": \"\",\n \"name\": \"\"\n },\n \"createdAt\": \"\",\n \"updatedAt\": \"\"\n}" + }, + { + "name": "Invalid status value", + "originalRequest": { + "method": "GET", + "header": [ + { + "description": "Added as a part of security scheme: bearer", + "key": "Authorization", + "value": "Bearer " + } + ], + "url": { + "raw": "{{baseUrl}}/super-admin/deed-types", + "host": [ + "{{baseUrl}}" + ], + "path": [ + "super-admin", + "deed-types" + ] + } + }, + "status": "Bad Request", + "code": 400, + "_postman_previewlanguage": "text", + "header": [], + "cookie": [], + "body": "" + } + ] + }, + { + "name": "Add a new deed type", + "request": { + "auth": { + "type": "bearer", + "bearer": [ + { + "key": "token", + "value": "{{bearerToken}}", + "type": "string" + } + ] + }, + "method": "POST", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + }, + { + "key": "Accept", + "value": "application/json" + } + ], + "body": { + "mode": "raw", + "raw": "{\n \"uid\": \"\",\n \"name\": \"\",\n \"description\": \"\",\n \"archived_at\": \"\",\n \"office\": {\n \"uid\": \"\",\n \"name\": \"\"\n },\n \"createdAt\": \"\",\n \"updatedAt\": \"\"\n}", + "options": { + "raw": { + "headerFamily": "json", + "language": "json" + } + } + }, + "url": { + "raw": "{{baseUrl}}/super-admin/deed-types", + "host": [ + "{{baseUrl}}" + ], + "path": [ + "super-admin", + "deed-types" + ] + } + }, + "response": [ + { + "name": "successful operation", + "originalRequest": { + "method": "POST", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + }, + { + "key": "Accept", + "value": "application/json" + }, + { + "description": "Added as a part of security scheme: bearer", + "key": "Authorization", + "value": "Bearer " + } + ], + "body": { + "mode": "raw", + "raw": "{\n \"uid\": \"\",\n \"name\": \"\",\n \"description\": \"\",\n \"archived_at\": \"\",\n \"office\": {\n \"uid\": \"\",\n \"name\": \"\"\n },\n \"createdAt\": \"\",\n \"updatedAt\": \"\"\n}", + "options": { + "raw": { + "headerFamily": "json", + "language": "json" + } + } + }, + "url": { + "raw": "{{baseUrl}}/super-admin/deed-types", + "host": [ + "{{baseUrl}}" + ], + "path": [ + "super-admin", + "deed-types" + ] + } + }, + "status": "OK", + "code": 200, + "_postman_previewlanguage": "json", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + } + ], + "cookie": [], + "body": "{\n \"uid\": \"\",\n \"name\": \"\",\n \"description\": \"\",\n \"archived_at\": \"\",\n \"office\": {\n \"uid\": \"\",\n \"name\": \"\"\n },\n \"createdAt\": \"\",\n \"updatedAt\": \"\"\n}" + }, + { + "name": "Invalid status value", + "originalRequest": { + "method": "POST", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + }, + { + "description": "Added as a part of security scheme: bearer", + "key": "Authorization", + "value": "Bearer " + } + ], + "body": { + "mode": "raw", + "raw": "{\n \"uid\": \"\",\n \"name\": \"\",\n \"description\": \"\",\n \"archived_at\": \"\",\n \"office\": {\n \"uid\": \"\",\n \"name\": \"\"\n },\n \"createdAt\": \"\",\n \"updatedAt\": \"\"\n}", + "options": { + "raw": { + "headerFamily": "json", + "language": "json" + } + } + }, + "url": { + "raw": "{{baseUrl}}/super-admin/deed-types", + "host": [ + "{{baseUrl}}" + ], + "path": [ + "super-admin", + "deed-types" + ] + } + }, + "status": "Bad Request", + "code": 400, + "_postman_previewlanguage": "text", + "header": [], + "cookie": [], + "body": "" + } + ] + } + ] + }, + { + "name": "documents", + "item": [ + { + "name": "{uid}", + "item": [ + { + "name": "Find document by ID", + "request": { + "auth": { + "type": "bearer", + "bearer": [ + { + "key": "token", + "value": "{{bearerToken}}", + "type": "string" + } + ] + }, + "method": "GET", + "header": [ + { + "key": "Accept", + "value": "application/json" + } + ], + "url": { + "raw": "{{baseUrl}}/super-admin/documents/:uid", + "host": [ + "{{baseUrl}}" + ], + "path": [ + "super-admin", + "documents", + ":uid" + ], + "variable": [ + { + "key": "uid", + "value": "", + "description": "(Required) ID of document to return" + } + ] + }, + "description": "Returns a single document" + }, + "response": [ + { + "name": "successful operation", + "originalRequest": { + "method": "GET", + "header": [ + { + "key": "Accept", + "value": "application/json" + }, + { + "description": "Added as a part of security scheme: bearer", + "key": "Authorization", + "value": "Bearer " + } + ], + "url": { + "raw": "{{baseUrl}}/super-admin/documents/:uid", + "host": [ + "{{baseUrl}}" + ], + "path": [ + "super-admin", + "documents", + ":uid" + ], + "variable": [ + { + "key": "uid" + } + ] + } + }, + "status": "OK", + "code": 200, + "_postman_previewlanguage": "json", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + } + ], + "cookie": [], + "body": "{\n \"uid\": \"\",\n \"name\": \"\",\n \"type\": {\n \"uid\": \"\",\n \"name\": \"\"\n },\n \"file\": {\n \"uid\": \"\",\n \"name\": \"\"\n },\n \"folder\": {\n \"uid\": \"\",\n \"name\": \"\"\n },\n \"createdAt\": \"\",\n \"updatedAt\": \"\"\n}" + }, + { + "name": "Invalid status value", + "originalRequest": { + "method": "GET", + "header": [ + { + "description": "Added as a part of security scheme: bearer", + "key": "Authorization", + "value": "Bearer " + } + ], + "url": { + "raw": "{{baseUrl}}/super-admin/documents/:uid", + "host": [ + "{{baseUrl}}" + ], + "path": [ + "super-admin", + "documents", + ":uid" + ], + "variable": [ + { + "key": "uid" + } + ] + } + }, + "status": "Bad Request", + "code": 400, + "_postman_previewlanguage": "text", + "header": [], + "cookie": [], + "body": "" + } + ] + }, + { + "name": "Update an existing document", + "request": { + "auth": { + "type": "bearer", + "bearer": [ + { + "key": "token", + "value": "{{bearerToken}}", + "type": "string" + } + ] + }, + "method": "PUT", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + }, + { + "key": "Accept", + "value": "application/json" + } + ], + "body": { + "mode": "raw", + "raw": "{\n \"uid\": \"\",\n \"name\": \"\",\n \"type\": {\n \"uid\": \"\",\n \"name\": \"\"\n },\n \"file\": {\n \"uid\": \"\",\n \"name\": \"\"\n },\n \"folder\": {\n \"uid\": \"\",\n \"name\": \"\"\n },\n \"createdAt\": \"\",\n \"updatedAt\": \"\"\n}", + "options": { + "raw": { + "headerFamily": "json", + "language": "json" + } + } + }, + "url": { + "raw": "{{baseUrl}}/super-admin/documents/:uid", + "host": [ + "{{baseUrl}}" + ], + "path": [ + "super-admin", + "documents", + ":uid" + ], + "variable": [ + { + "key": "uid", + "value": "", + "description": "(Required) ID of document to return" + } + ] + }, + "description": "Returns a single document updated" + }, + "response": [ + { + "name": "successful operation", + "originalRequest": { + "method": "PUT", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + }, + { + "key": "Accept", + "value": "application/json" + }, + { + "description": "Added as a part of security scheme: bearer", + "key": "Authorization", + "value": "Bearer " + } + ], + "body": { + "mode": "raw", + "raw": "{\n \"uid\": \"\",\n \"name\": \"\",\n \"type\": {\n \"uid\": \"\",\n \"name\": \"\"\n },\n \"file\": {\n \"uid\": \"\",\n \"name\": \"\"\n },\n \"folder\": {\n \"uid\": \"\",\n \"name\": \"\"\n },\n \"createdAt\": \"\",\n \"updatedAt\": \"\"\n}", + "options": { + "raw": { + "headerFamily": "json", + "language": "json" + } + } + }, + "url": { + "raw": "{{baseUrl}}/super-admin/documents/:uid", + "host": [ + "{{baseUrl}}" + ], + "path": [ + "super-admin", + "documents", + ":uid" + ], + "variable": [ + { + "key": "uid" + } + ] + } + }, + "status": "OK", + "code": 200, + "_postman_previewlanguage": "json", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + } + ], + "cookie": [], + "body": "{\n \"uid\": \"\",\n \"name\": \"\",\n \"type\": {\n \"uid\": \"\",\n \"name\": \"\"\n },\n \"file\": {\n \"uid\": \"\",\n \"name\": \"\"\n },\n \"folder\": {\n \"uid\": \"\",\n \"name\": \"\"\n },\n \"createdAt\": \"\",\n \"updatedAt\": \"\"\n}" + }, + { + "name": "Invalid status value", + "originalRequest": { + "method": "PUT", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + }, + { + "description": "Added as a part of security scheme: bearer", + "key": "Authorization", + "value": "Bearer " + } + ], + "body": { + "mode": "raw", + "raw": "{\n \"uid\": \"\",\n \"name\": \"\",\n \"type\": {\n \"uid\": \"\",\n \"name\": \"\"\n },\n \"file\": {\n \"uid\": \"\",\n \"name\": \"\"\n },\n \"folder\": {\n \"uid\": \"\",\n \"name\": \"\"\n },\n \"createdAt\": \"\",\n \"updatedAt\": \"\"\n}", + "options": { + "raw": { + "headerFamily": "json", + "language": "json" + } + } + }, + "url": { + "raw": "{{baseUrl}}/super-admin/documents/:uid", + "host": [ + "{{baseUrl}}" + ], + "path": [ + "super-admin", + "documents", + ":uid" + ], + "variable": [ + { + "key": "uid" + } + ] + } + }, + "status": "Bad Request", + "code": 400, + "_postman_previewlanguage": "text", + "header": [], + "cookie": [], + "body": "" + } + ] + }, + { + "name": "Delete an existing document", + "request": { + "auth": { + "type": "bearer", + "bearer": [ + { + "key": "token", + "value": "{{bearerToken}}", + "type": "string" + } + ] + }, + "method": "DELETE", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + }, + { + "key": "Accept", + "value": "application/json" + } + ], + "body": { + "mode": "raw", + "raw": "{\n \"uid\": \"\",\n \"name\": \"\",\n \"type\": {\n \"uid\": \"\",\n \"name\": \"\"\n },\n \"file\": {\n \"uid\": \"\",\n \"name\": \"\"\n },\n \"folder\": {\n \"uid\": \"\",\n \"name\": \"\"\n },\n \"createdAt\": \"\",\n \"updatedAt\": \"\"\n}", + "options": { + "raw": { + "headerFamily": "json", + "language": "json" + } + } + }, + "url": { + "raw": "{{baseUrl}}/super-admin/documents/:uid", + "host": [ + "{{baseUrl}}" + ], + "path": [ + "super-admin", + "documents", + ":uid" + ], + "variable": [ + { + "key": "uid", + "value": "", + "description": "(Required) ID of document to return" + } + ] + }, + "description": "Returns a single document deleted" + }, + "response": [ + { + "name": "successful operation", + "originalRequest": { + "method": "DELETE", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + }, + { + "key": "Accept", + "value": "application/json" + }, + { + "description": "Added as a part of security scheme: bearer", + "key": "Authorization", + "value": "Bearer " + } + ], + "body": { + "mode": "raw", + "raw": "{\n \"uid\": \"\",\n \"name\": \"\",\n \"type\": {\n \"uid\": \"\",\n \"name\": \"\"\n },\n \"file\": {\n \"uid\": \"\",\n \"name\": \"\"\n },\n \"folder\": {\n \"uid\": \"\",\n \"name\": \"\"\n },\n \"createdAt\": \"\",\n \"updatedAt\": \"\"\n}", + "options": { + "raw": { + "headerFamily": "json", + "language": "json" + } + } + }, + "url": { + "raw": "{{baseUrl}}/super-admin/documents/:uid", + "host": [ + "{{baseUrl}}" + ], + "path": [ + "super-admin", + "documents", + ":uid" + ], + "variable": [ + { + "key": "uid" + } + ] + } + }, + "status": "OK", + "code": 200, + "_postman_previewlanguage": "json", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + } + ], + "cookie": [], + "body": "{\n \"uid\": \"\",\n \"name\": \"\",\n \"type\": {\n \"uid\": \"\",\n \"name\": \"\"\n },\n \"file\": {\n \"uid\": \"\",\n \"name\": \"\"\n },\n \"folder\": {\n \"uid\": \"\",\n \"name\": \"\"\n },\n \"createdAt\": \"\",\n \"updatedAt\": \"\"\n}" + }, + { + "name": "Invalid status value", + "originalRequest": { + "method": "DELETE", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + }, + { + "description": "Added as a part of security scheme: bearer", + "key": "Authorization", + "value": "Bearer " + } + ], + "body": { + "mode": "raw", + "raw": "{\n \"uid\": \"\",\n \"name\": \"\",\n \"type\": {\n \"uid\": \"\",\n \"name\": \"\"\n },\n \"file\": {\n \"uid\": \"\",\n \"name\": \"\"\n },\n \"folder\": {\n \"uid\": \"\",\n \"name\": \"\"\n },\n \"createdAt\": \"\",\n \"updatedAt\": \"\"\n}", + "options": { + "raw": { + "headerFamily": "json", + "language": "json" + } + } + }, + "url": { + "raw": "{{baseUrl}}/super-admin/documents/:uid", + "host": [ + "{{baseUrl}}" + ], + "path": [ + "super-admin", + "documents", + ":uid" + ], + "variable": [ + { + "key": "uid" + } + ] + } + }, + "status": "Bad Request", + "code": 400, + "_postman_previewlanguage": "text", + "header": [], + "cookie": [], + "body": "" + } + ] + } + ] + }, + { + "name": "Get all documents", + "request": { + "auth": { + "type": "bearer", + "bearer": [ + { + "key": "token", + "value": "{{bearerToken}}", + "type": "string" + } + ] + }, + "method": "GET", + "header": [ + { + "key": "Accept", + "value": "application/json" + } + ], + "url": { + "raw": "{{baseUrl}}/super-admin/documents", + "host": [ + "{{baseUrl}}" + ], + "path": [ + "super-admin", + "documents" + ] + } + }, + "response": [ + { + "name": "successful operation", + "originalRequest": { + "method": "GET", + "header": [ + { + "key": "Accept", + "value": "application/json" + }, + { + "description": "Added as a part of security scheme: bearer", + "key": "Authorization", + "value": "Bearer " + } + ], + "url": { + "raw": "{{baseUrl}}/super-admin/documents", + "host": [ + "{{baseUrl}}" + ], + "path": [ + "super-admin", + "documents" + ] + } + }, + "status": "OK", + "code": 200, + "_postman_previewlanguage": "json", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + } + ], + "cookie": [], + "body": "{\n \"uid\": \"\",\n \"name\": \"\",\n \"type\": {\n \"uid\": \"\",\n \"name\": \"\"\n },\n \"file\": {\n \"uid\": \"\",\n \"name\": \"\"\n },\n \"folder\": {\n \"uid\": \"\",\n \"name\": \"\"\n },\n \"createdAt\": \"\",\n \"updatedAt\": \"\"\n}" + }, + { + "name": "Invalid status value", + "originalRequest": { + "method": "GET", + "header": [ + { + "description": "Added as a part of security scheme: bearer", + "key": "Authorization", + "value": "Bearer " + } + ], + "url": { + "raw": "{{baseUrl}}/super-admin/documents", + "host": [ + "{{baseUrl}}" + ], + "path": [ + "super-admin", + "documents" + ] + } + }, + "status": "Bad Request", + "code": 400, + "_postman_previewlanguage": "text", + "header": [], + "cookie": [], + "body": "" + } + ] + }, + { + "name": "Add a new document", + "request": { + "auth": { + "type": "bearer", + "bearer": [ + { + "key": "token", + "value": "{{bearerToken}}", + "type": "string" + } + ] + }, + "method": "POST", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + }, + { + "key": "Accept", + "value": "application/json" + } + ], + "body": { + "mode": "raw", + "raw": "{\n \"uid\": \"\",\n \"name\": \"\",\n \"type\": {\n \"uid\": \"\",\n \"name\": \"\"\n },\n \"file\": {\n \"uid\": \"\",\n \"name\": \"\"\n },\n \"folder\": {\n \"uid\": \"\",\n \"name\": \"\"\n },\n \"createdAt\": \"\",\n \"updatedAt\": \"\"\n}", + "options": { + "raw": { + "headerFamily": "json", + "language": "json" + } + } + }, + "url": { + "raw": "{{baseUrl}}/super-admin/documents", + "host": [ + "{{baseUrl}}" + ], + "path": [ + "super-admin", + "documents" + ] + } + }, + "response": [ + { + "name": "successful operation", + "originalRequest": { + "method": "POST", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + }, + { + "key": "Accept", + "value": "application/json" + }, + { + "description": "Added as a part of security scheme: bearer", + "key": "Authorization", + "value": "Bearer " + } + ], + "body": { + "mode": "raw", + "raw": "{\n \"uid\": \"\",\n \"name\": \"\",\n \"type\": {\n \"uid\": \"\",\n \"name\": \"\"\n },\n \"file\": {\n \"uid\": \"\",\n \"name\": \"\"\n },\n \"folder\": {\n \"uid\": \"\",\n \"name\": \"\"\n },\n \"createdAt\": \"\",\n \"updatedAt\": \"\"\n}", + "options": { + "raw": { + "headerFamily": "json", + "language": "json" + } + } + }, + "url": { + "raw": "{{baseUrl}}/super-admin/documents", + "host": [ + "{{baseUrl}}" + ], + "path": [ + "super-admin", + "documents" + ] + } + }, + "status": "OK", + "code": 200, + "_postman_previewlanguage": "json", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + } + ], + "cookie": [], + "body": "{\n \"uid\": \"\",\n \"name\": \"\",\n \"type\": {\n \"uid\": \"\",\n \"name\": \"\"\n },\n \"file\": {\n \"uid\": \"\",\n \"name\": \"\"\n },\n \"folder\": {\n \"uid\": \"\",\n \"name\": \"\"\n },\n \"createdAt\": \"\",\n \"updatedAt\": \"\"\n}" + }, + { + "name": "Invalid status value", + "originalRequest": { + "method": "POST", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + }, + { + "description": "Added as a part of security scheme: bearer", + "key": "Authorization", + "value": "Bearer " + } + ], + "body": { + "mode": "raw", + "raw": "{\n \"uid\": \"\",\n \"name\": \"\",\n \"type\": {\n \"uid\": \"\",\n \"name\": \"\"\n },\n \"file\": {\n \"uid\": \"\",\n \"name\": \"\"\n },\n \"folder\": {\n \"uid\": \"\",\n \"name\": \"\"\n },\n \"createdAt\": \"\",\n \"updatedAt\": \"\"\n}", + "options": { + "raw": { + "headerFamily": "json", + "language": "json" + } + } + }, + "url": { + "raw": "{{baseUrl}}/super-admin/documents", + "host": [ + "{{baseUrl}}" + ], + "path": [ + "super-admin", + "documents" + ] + } + }, + "status": "Bad Request", + "code": 400, + "_postman_previewlanguage": "text", + "header": [], + "cookie": [], + "body": "" + } + ] + } + ] + }, + { + "name": "document-types", + "item": [ + { + "name": "{uid}", + "item": [ + { + "name": "Find document type by ID", + "request": { + "auth": { + "type": "bearer", + "bearer": [ + { + "key": "token", + "value": "{{bearerToken}}", + "type": "string" + } + ] + }, + "method": "GET", + "header": [ + { + "key": "Accept", + "value": "application/json" + } + ], + "url": { + "raw": "{{baseUrl}}/super-admin/document-types/:uid", + "host": [ + "{{baseUrl}}" + ], + "path": [ + "super-admin", + "document-types", + ":uid" + ], + "variable": [ + { + "key": "uid", + "value": "", + "description": "(Required) ID of document type to return" + } + ] + }, + "description": "Returns a single document type" + }, + "response": [ + { + "name": "successful operation", + "originalRequest": { + "method": "GET", + "header": [ + { + "key": "Accept", + "value": "application/json" + }, + { + "description": "Added as a part of security scheme: bearer", + "key": "Authorization", + "value": "Bearer " + } + ], + "url": { + "raw": "{{baseUrl}}/super-admin/document-types/:uid", + "host": [ + "{{baseUrl}}" + ], + "path": [ + "super-admin", + "document-types", + ":uid" + ], + "variable": [ + { + "key": "uid" + } + ] + } + }, + "status": "OK", + "code": 200, + "_postman_previewlanguage": "json", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + } + ], + "cookie": [], + "body": "{\n \"uid\": \"\",\n \"name\": \"\",\n \"office\": {\n \"uid\": \"\",\n \"name\": \"\"\n },\n \"createdAt\": \"\",\n \"updatedAt\": \"\"\n}" + }, + { + "name": "Invalid status value", + "originalRequest": { + "method": "GET", + "header": [ + { + "description": "Added as a part of security scheme: bearer", + "key": "Authorization", + "value": "Bearer " + } + ], + "url": { + "raw": "{{baseUrl}}/super-admin/document-types/:uid", + "host": [ + "{{baseUrl}}" + ], + "path": [ + "super-admin", + "document-types", + ":uid" + ], + "variable": [ + { + "key": "uid" + } + ] + } + }, + "status": "Bad Request", + "code": 400, + "_postman_previewlanguage": "text", + "header": [], + "cookie": [], + "body": "" + } + ] + }, + { + "name": "Update an existing document type", + "request": { + "auth": { + "type": "bearer", + "bearer": [ + { + "key": "token", + "value": "{{bearerToken}}", + "type": "string" + } + ] + }, + "method": "PUT", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + }, + { + "key": "Accept", + "value": "application/json" + } + ], + "body": { + "mode": "raw", + "raw": "{\n \"uid\": \"\",\n \"name\": \"\",\n \"office\": {\n \"uid\": \"\",\n \"name\": \"\"\n },\n \"createdAt\": \"\",\n \"updatedAt\": \"\"\n}", + "options": { + "raw": { + "headerFamily": "json", + "language": "json" + } + } + }, + "url": { + "raw": "{{baseUrl}}/super-admin/document-types/:uid", + "host": [ + "{{baseUrl}}" + ], + "path": [ + "super-admin", + "document-types", + ":uid" + ], + "variable": [ + { + "key": "uid", + "value": "", + "description": "(Required) ID of document type to return" + } + ] + }, + "description": "Returns a single document type updated" + }, + "response": [ + { + "name": "successful operation", + "originalRequest": { + "method": "PUT", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + }, + { + "key": "Accept", + "value": "application/json" + }, + { + "description": "Added as a part of security scheme: bearer", + "key": "Authorization", + "value": "Bearer " + } + ], + "body": { + "mode": "raw", + "raw": "{\n \"uid\": \"\",\n \"name\": \"\",\n \"office\": {\n \"uid\": \"\",\n \"name\": \"\"\n },\n \"createdAt\": \"\",\n \"updatedAt\": \"\"\n}", + "options": { + "raw": { + "headerFamily": "json", + "language": "json" + } + } + }, + "url": { + "raw": "{{baseUrl}}/super-admin/document-types/:uid", + "host": [ + "{{baseUrl}}" + ], + "path": [ + "super-admin", + "document-types", + ":uid" + ], + "variable": [ + { + "key": "uid" + } + ] + } + }, + "status": "OK", + "code": 200, + "_postman_previewlanguage": "json", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + } + ], + "cookie": [], + "body": "{\n \"uid\": \"\",\n \"name\": \"\",\n \"office\": {\n \"uid\": \"\",\n \"name\": \"\"\n },\n \"createdAt\": \"\",\n \"updatedAt\": \"\"\n}" + }, + { + "name": "Invalid status value", + "originalRequest": { + "method": "PUT", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + }, + { + "description": "Added as a part of security scheme: bearer", + "key": "Authorization", + "value": "Bearer " + } + ], + "body": { + "mode": "raw", + "raw": "{\n \"uid\": \"\",\n \"name\": \"\",\n \"office\": {\n \"uid\": \"\",\n \"name\": \"\"\n },\n \"createdAt\": \"\",\n \"updatedAt\": \"\"\n}", + "options": { + "raw": { + "headerFamily": "json", + "language": "json" + } + } + }, + "url": { + "raw": "{{baseUrl}}/super-admin/document-types/:uid", + "host": [ + "{{baseUrl}}" + ], + "path": [ + "super-admin", + "document-types", + ":uid" + ], + "variable": [ + { + "key": "uid" + } + ] + } + }, + "status": "Bad Request", + "code": 400, + "_postman_previewlanguage": "text", + "header": [], + "cookie": [], + "body": "" + } + ] + }, + { + "name": "Delete an existing document type", + "request": { + "auth": { + "type": "bearer", + "bearer": [ + { + "key": "token", + "value": "{{bearerToken}}", + "type": "string" + } + ] + }, + "method": "DELETE", + "header": [ + { + "key": "Accept", + "value": "application/json" + } + ], + "url": { + "raw": "{{baseUrl}}/super-admin/document-types/:uid", + "host": [ + "{{baseUrl}}" + ], + "path": [ + "super-admin", + "document-types", + ":uid" + ], + "variable": [ + { + "key": "uid", + "value": "", + "description": "(Required) ID of document type to return" + } + ] + }, + "description": "Returns a single document type deleted" + }, + "response": [ + { + "name": "successful operation", + "originalRequest": { + "method": "DELETE", + "header": [ + { + "key": "Accept", + "value": "application/json" + }, + { + "description": "Added as a part of security scheme: bearer", + "key": "Authorization", + "value": "Bearer " + } + ], + "url": { + "raw": "{{baseUrl}}/super-admin/document-types/:uid", + "host": [ + "{{baseUrl}}" + ], + "path": [ + "super-admin", + "document-types", + ":uid" + ], + "variable": [ + { + "key": "uid" + } + ] + } + }, + "status": "OK", + "code": 200, + "_postman_previewlanguage": "json", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + } + ], + "cookie": [], + "body": "{\n \"uid\": \"\",\n \"name\": \"\",\n \"office\": {\n \"uid\": \"\",\n \"name\": \"\"\n },\n \"createdAt\": \"\",\n \"updatedAt\": \"\"\n}" + }, + { + "name": "Invalid status value", + "originalRequest": { + "method": "DELETE", + "header": [ + { + "description": "Added as a part of security scheme: bearer", + "key": "Authorization", + "value": "Bearer " + } + ], + "url": { + "raw": "{{baseUrl}}/super-admin/document-types/:uid", + "host": [ + "{{baseUrl}}" + ], + "path": [ + "super-admin", + "document-types", + ":uid" + ], + "variable": [ + { + "key": "uid" + } + ] + } + }, + "status": "Bad Request", + "code": 400, + "_postman_previewlanguage": "text", + "header": [], + "cookie": [], + "body": "" + } + ] + } + ] + }, + { + "name": "Get all document types", + "request": { + "auth": { + "type": "bearer", + "bearer": [ + { + "key": "token", + "value": "{{bearerToken}}", + "type": "string" + } + ] + }, + "method": "GET", + "header": [ + { + "key": "Accept", + "value": "application/json" + } + ], + "url": { + "raw": "{{baseUrl}}/super-admin/document-types", + "host": [ + "{{baseUrl}}" + ], + "path": [ + "super-admin", + "document-types" + ] + } + }, + "response": [ + { + "name": "successful operation", + "originalRequest": { + "method": "GET", + "header": [ + { + "key": "Accept", + "value": "application/json" + }, + { + "description": "Added as a part of security scheme: bearer", + "key": "Authorization", + "value": "Bearer " + } + ], + "url": { + "raw": "{{baseUrl}}/super-admin/document-types", + "host": [ + "{{baseUrl}}" + ], + "path": [ + "super-admin", + "document-types" + ] + } + }, + "status": "OK", + "code": 200, + "_postman_previewlanguage": "json", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + } + ], + "cookie": [], + "body": "{\n \"uid\": \"\",\n \"name\": \"\",\n \"office\": {\n \"uid\": \"\",\n \"name\": \"\"\n },\n \"createdAt\": \"\",\n \"updatedAt\": \"\"\n}" + }, + { + "name": "Invalid status value", + "originalRequest": { + "method": "GET", + "header": [ + { + "description": "Added as a part of security scheme: bearer", + "key": "Authorization", + "value": "Bearer " + } + ], + "url": { + "raw": "{{baseUrl}}/super-admin/document-types", + "host": [ + "{{baseUrl}}" + ], + "path": [ + "super-admin", + "document-types" + ] + } + }, + "status": "Bad Request", + "code": 400, + "_postman_previewlanguage": "text", + "header": [], + "cookie": [], + "body": "" + } + ] + }, + { + "name": "Add a new document type", + "request": { + "auth": { + "type": "bearer", + "bearer": [ + { + "key": "token", + "value": "{{bearerToken}}", + "type": "string" + } + ] + }, + "method": "POST", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + }, + { + "key": "Accept", + "value": "application/json" + } + ], + "body": { + "mode": "raw", + "raw": "{\n \"uid\": \"\",\n \"name\": \"\",\n \"office\": {\n \"uid\": \"\",\n \"name\": \"\"\n },\n \"createdAt\": \"\",\n \"updatedAt\": \"\"\n}", + "options": { + "raw": { + "headerFamily": "json", + "language": "json" + } + } + }, + "url": { + "raw": "{{baseUrl}}/super-admin/document-types", + "host": [ + "{{baseUrl}}" + ], + "path": [ + "super-admin", + "document-types" + ] + } + }, + "response": [ + { + "name": "successful operation", + "originalRequest": { + "method": "POST", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + }, + { + "key": "Accept", + "value": "application/json" + }, + { + "description": "Added as a part of security scheme: bearer", + "key": "Authorization", + "value": "Bearer " + } + ], + "body": { + "mode": "raw", + "raw": "{\n \"uid\": \"\",\n \"name\": \"\",\n \"office\": {\n \"uid\": \"\",\n \"name\": \"\"\n },\n \"createdAt\": \"\",\n \"updatedAt\": \"\"\n}", + "options": { + "raw": { + "headerFamily": "json", + "language": "json" + } + } + }, + "url": { + "raw": "{{baseUrl}}/super-admin/document-types", + "host": [ + "{{baseUrl}}" + ], + "path": [ + "super-admin", + "document-types" + ] + } + }, + "status": "OK", + "code": 200, + "_postman_previewlanguage": "json", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + } + ], + "cookie": [], + "body": "{\n \"uid\": \"\",\n \"name\": \"\",\n \"office\": {\n \"uid\": \"\",\n \"name\": \"\"\n },\n \"createdAt\": \"\",\n \"updatedAt\": \"\"\n}" + }, + { + "name": "Invalid status value", + "originalRequest": { + "method": "POST", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + }, + { + "description": "Added as a part of security scheme: bearer", + "key": "Authorization", + "value": "Bearer " + } + ], + "body": { + "mode": "raw", + "raw": "{\n \"uid\": \"\",\n \"name\": \"\",\n \"office\": {\n \"uid\": \"\",\n \"name\": \"\"\n },\n \"createdAt\": \"\",\n \"updatedAt\": \"\"\n}", + "options": { + "raw": { + "headerFamily": "json", + "language": "json" + } + } + }, + "url": { + "raw": "{{baseUrl}}/super-admin/document-types", + "host": [ + "{{baseUrl}}" + ], + "path": [ + "super-admin", + "document-types" + ] + } + }, + "status": "Bad Request", + "code": 400, + "_postman_previewlanguage": "text", + "header": [], + "cookie": [], + "body": "" + } + ] + } + ] + }, + { + "name": "files", + "item": [ + { + "name": "{uid}", + "item": [ + { + "name": "Find file by ID", + "request": { + "auth": { + "type": "bearer", + "bearer": [ + { + "key": "token", + "value": "{{bearerToken}}", + "type": "string" + } + ] + }, + "method": "GET", + "header": [], + "url": { + "raw": "{{baseUrl}}/super-admin/files/:uid", + "host": [ + "{{baseUrl}}" + ], + "path": [ + "super-admin", + "files", + ":uid" + ], + "variable": [ + { + "key": "uid", + "value": "", + "description": "(Required) ID of file to return" + } + ] + }, + "description": "Returns a single file" + }, + "response": [ + { + "name": "successful operation", + "originalRequest": { + "method": "GET", + "header": [ + { + "description": "Added as a part of security scheme: bearer", + "key": "Authorization", + "value": "Bearer " + } + ], + "url": { + "raw": "{{baseUrl}}/super-admin/files/:uid", + "host": [ + "{{baseUrl}}" + ], + "path": [ + "super-admin", + "files", + ":uid" + ], + "variable": [ + { + "key": "uid" + } + ] + } + }, + "status": "OK", + "code": 200, + "_postman_previewlanguage": "text", + "header": [], + "cookie": [], + "body": "" + }, + { + "name": "Invalid status value", + "originalRequest": { + "method": "GET", + "header": [ + { + "description": "Added as a part of security scheme: bearer", + "key": "Authorization", + "value": "Bearer " + } + ], + "url": { + "raw": "{{baseUrl}}/super-admin/files/:uid", + "host": [ + "{{baseUrl}}" + ], + "path": [ + "super-admin", + "files", + ":uid" + ], + "variable": [ + { + "key": "uid" + } + ] + } + }, + "status": "Bad Request", + "code": 400, + "_postman_previewlanguage": "text", + "header": [], + "cookie": [], + "body": "" + } + ] + }, + { + "name": "Delete an existing file", + "request": { + "auth": { + "type": "bearer", + "bearer": [ + { + "key": "token", + "value": "{{bearerToken}}", + "type": "string" + } + ] + }, + "method": "DELETE", + "header": [], + "url": { + "raw": "{{baseUrl}}/super-admin/files/:uid", + "host": [ + "{{baseUrl}}" + ], + "path": [ + "super-admin", + "files", + ":uid" + ], + "variable": [ + { + "key": "uid", + "value": "", + "description": "(Required) ID of file to return" + } + ] + }, + "description": "Returns a single file deleted" + }, + "response": [ + { + "name": "successful operation", + "originalRequest": { + "method": "DELETE", + "header": [ + { + "description": "Added as a part of security scheme: bearer", + "key": "Authorization", + "value": "Bearer " + } + ], + "url": { + "raw": "{{baseUrl}}/super-admin/files/:uid", + "host": [ + "{{baseUrl}}" + ], + "path": [ + "super-admin", + "files", + ":uid" + ], + "variable": [ + { + "key": "uid" + } + ] + } + }, + "status": "OK", + "code": 200, + "_postman_previewlanguage": "text", + "header": [], + "cookie": [], + "body": "" + }, + { + "name": "Invalid status value", + "originalRequest": { + "method": "DELETE", + "header": [ + { + "description": "Added as a part of security scheme: bearer", + "key": "Authorization", + "value": "Bearer " + } + ], + "url": { + "raw": "{{baseUrl}}/super-admin/files/:uid", + "host": [ + "{{baseUrl}}" + ], + "path": [ + "super-admin", + "files", + ":uid" + ], + "variable": [ + { + "key": "uid" + } + ] + } + }, + "status": "Bad Request", + "code": 400, + "_postman_previewlanguage": "text", + "header": [], + "cookie": [], + "body": "" + } + ] + } + ] + }, + { + "name": "download", + "item": [ + { + "name": "{uid}", + "item": [ + { + "name": "Download file by ID", + "request": { + "auth": { + "type": "bearer", + "bearer": [ + { + "key": "token", + "value": "{{bearerToken}}", + "type": "string" + } + ] + }, + "method": "GET", + "header": [], + "url": { + "raw": "{{baseUrl}}/super-admin/files/download/:uid", + "host": [ + "{{baseUrl}}" + ], + "path": [ + "super-admin", + "files", + "download", + ":uid" + ], + "variable": [ + { + "key": "uid", + "value": "", + "description": "(Required) ID of file to return" + } + ] + }, + "description": "Returns a single file" + }, + "response": [ + { + "name": "successful operation", + "originalRequest": { + "method": "GET", + "header": [ + { + "description": "Added as a part of security scheme: bearer", + "key": "Authorization", + "value": "Bearer " + } + ], + "url": { + "raw": "{{baseUrl}}/super-admin/files/download/:uid", + "host": [ + "{{baseUrl}}" + ], + "path": [ + "super-admin", + "files", + "download", + ":uid" + ], + "variable": [ + { + "key": "uid" + } + ] + } + }, + "status": "OK", + "code": 200, + "_postman_previewlanguage": "text", + "header": [], + "cookie": [], + "body": "" + }, + { + "name": "Invalid status value", + "originalRequest": { + "method": "GET", + "header": [ + { + "description": "Added as a part of security scheme: bearer", + "key": "Authorization", + "value": "Bearer " + } + ], + "url": { + "raw": "{{baseUrl}}/super-admin/files/download/:uid", + "host": [ + "{{baseUrl}}" + ], + "path": [ + "super-admin", + "files", + "download", + ":uid" + ], + "variable": [ + { + "key": "uid" + } + ] + } + }, + "status": "Bad Request", + "code": 400, + "_postman_previewlanguage": "text", + "header": [], + "cookie": [], + "body": "" + } + ] + } + ] + } + ] + }, + { + "name": "Get all files", + "request": { + "auth": { + "type": "bearer", + "bearer": [ + { + "key": "token", + "value": "{{bearerToken}}", + "type": "string" + } + ] + }, + "method": "GET", + "header": [], + "url": { + "raw": "{{baseUrl}}/super-admin/files", + "host": [ + "{{baseUrl}}" + ], + "path": [ + "super-admin", + "files" + ] + } + }, + "response": [ + { + "name": "successful operation", + "originalRequest": { + "method": "GET", + "header": [ + { + "description": "Added as a part of security scheme: bearer", + "key": "Authorization", + "value": "Bearer " + } + ], + "url": { + "raw": "{{baseUrl}}/super-admin/files", + "host": [ + "{{baseUrl}}" + ], + "path": [ + "super-admin", + "files" + ] + } + }, + "status": "OK", + "code": 200, + "_postman_previewlanguage": "text", + "header": [], + "cookie": [], + "body": "" + }, + { + "name": "Invalid status value", + "originalRequest": { + "method": "GET", + "header": [ + { + "description": "Added as a part of security scheme: bearer", + "key": "Authorization", + "value": "Bearer " + } + ], + "url": { + "raw": "{{baseUrl}}/super-admin/files", + "host": [ + "{{baseUrl}}" + ], + "path": [ + "super-admin", + "files" + ] + } + }, + "status": "Bad Request", + "code": 400, + "_postman_previewlanguage": "text", + "header": [], + "cookie": [], + "body": "" + } + ] + } + ] + }, + { + "name": "anchors", + "item": [ + { + "name": "{uid}", + "item": [ + { + "name": "Find anchor by ID", + "request": { + "auth": { + "type": "bearer", + "bearer": [ + { + "key": "token", + "value": "{{bearerToken}}", + "type": "string" + } + ] + }, + "method": "GET", + "header": [], + "url": { + "raw": "{{baseUrl}}/super-admin/anchors/:uid", + "host": [ + "{{baseUrl}}" + ], + "path": [ + "super-admin", + "anchors", + ":uid" + ], + "variable": [ + { + "key": "uid", + "value": "", + "description": "(Required) ID of anchor to return" + } + ] + }, + "description": "Returns a single anchor" + }, + "response": [ + { + "name": "successful operation", + "originalRequest": { + "method": "GET", + "header": [ + { + "description": "Added as a part of security scheme: bearer", + "key": "Authorization", + "value": "Bearer " + } + ], + "url": { + "raw": "{{baseUrl}}/super-admin/anchors/:uid", + "host": [ + "{{baseUrl}}" + ], + "path": [ + "super-admin", + "anchors", + ":uid" + ], + "variable": [ + { + "key": "uid" + } + ] + } + }, + "status": "OK", + "code": 200, + "_postman_previewlanguage": "text", + "header": [], + "cookie": [], + "body": "" + }, + { + "name": "Invalid status value", + "originalRequest": { + "method": "GET", + "header": [ + { + "description": "Added as a part of security scheme: bearer", + "key": "Authorization", + "value": "Bearer " + } + ], + "url": { + "raw": "{{baseUrl}}/super-admin/anchors/:uid", + "host": [ + "{{baseUrl}}" + ], + "path": [ + "super-admin", + "anchors", + ":uid" + ], + "variable": [ + { + "key": "uid" + } + ] + } + }, + "status": "Bad Request", + "code": 400, + "_postman_previewlanguage": "text", + "header": [], + "cookie": [], + "body": "" + } + ] + }, + { + "name": "Add a new anchor", + "request": { + "auth": { + "type": "bearer", + "bearer": [ + { + "key": "token", + "value": "{{bearerToken}}", + "type": "string" + } + ] + }, + "method": "POST", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + } + ], + "body": { + "mode": "raw", + "raw": "{\n \"value\": \"reference #/components/schemas/Anchor not found in the OpenAPI spec\"\n}", + "options": { + "raw": { + "headerFamily": "json", + "language": "json" + } + } + }, + "url": { + "raw": "{{baseUrl}}/super-admin/anchors/:uid", + "host": [ + "{{baseUrl}}" + ], + "path": [ + "super-admin", + "anchors", + ":uid" + ], + "variable": [ + { + "key": "uid", + "value": "", + "description": "(Required) ID of anchor to return" + } + ] + } + }, + "response": [ + { + "name": "successful operation", + "originalRequest": { + "method": "POST", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + }, + { + "description": "Added as a part of security scheme: bearer", + "key": "Authorization", + "value": "Bearer " + } + ], + "body": { + "mode": "raw", + "raw": "{\n \"value\": \"reference #/components/schemas/Anchor not found in the OpenAPI spec\"\n}", + "options": { + "raw": { + "headerFamily": "json", + "language": "json" + } + } + }, + "url": { + "raw": "{{baseUrl}}/super-admin/anchors/:uid", + "host": [ + "{{baseUrl}}" + ], + "path": [ + "super-admin", + "anchors", + ":uid" + ], + "variable": [ + { + "key": "uid" + } + ] + } + }, + "status": "OK", + "code": 200, + "_postman_previewlanguage": "text", + "header": [], + "cookie": [], + "body": "" + }, + { + "name": "Invalid status value", + "originalRequest": { + "method": "POST", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + }, + { + "description": "Added as a part of security scheme: bearer", + "key": "Authorization", + "value": "Bearer " + } + ], + "body": { + "mode": "raw", + "raw": "{\n \"value\": \"reference #/components/schemas/Anchor not found in the OpenAPI spec\"\n}", + "options": { + "raw": { + "headerFamily": "json", + "language": "json" + } + } + }, + "url": { + "raw": "{{baseUrl}}/super-admin/anchors/:uid", + "host": [ + "{{baseUrl}}" + ], + "path": [ + "super-admin", + "anchors", + ":uid" + ], + "variable": [ + { + "key": "uid" + } + ] + } + }, + "status": "Bad Request", + "code": 400, + "_postman_previewlanguage": "text", + "header": [], + "cookie": [], + "body": "" + } + ] + } + ] + }, + { + "name": "download", + "item": [ + { + "name": "{uid}", + "item": [ + { + "name": "Download anchor by ID", + "request": { + "auth": { + "type": "bearer", + "bearer": [ + { + "key": "token", + "value": "{{bearerToken}}", + "type": "string" + } + ] + }, + "method": "GET", + "header": [], + "url": { + "raw": "{{baseUrl}}/super-admin/anchors/download/:uid", + "host": [ + "{{baseUrl}}" + ], + "path": [ + "super-admin", + "anchors", + "download", + ":uid" + ], + "variable": [ + { + "key": "uid", + "value": "", + "description": "(Required) ID of anchor to return" + } + ] + }, + "description": "Returns a single anchor" + }, + "response": [ + { + "name": "successful operation", + "originalRequest": { + "method": "GET", + "header": [ + { + "description": "Added as a part of security scheme: bearer", + "key": "Authorization", + "value": "Bearer " + } + ], + "url": { + "raw": "{{baseUrl}}/super-admin/anchors/download/:uid", + "host": [ + "{{baseUrl}}" + ], + "path": [ + "super-admin", + "anchors", + "download", + ":uid" + ], + "variable": [ + { + "key": "uid" + } + ] + } + }, + "status": "OK", + "code": 200, + "_postman_previewlanguage": "text", + "header": [], + "cookie": [], + "body": "" + }, + { + "name": "Invalid status value", + "originalRequest": { + "method": "GET", + "header": [ + { + "description": "Added as a part of security scheme: bearer", + "key": "Authorization", + "value": "Bearer " + } + ], + "url": { + "raw": "{{baseUrl}}/super-admin/anchors/download/:uid", + "host": [ + "{{baseUrl}}" + ], + "path": [ + "super-admin", + "anchors", + "download", + ":uid" + ], + "variable": [ + { + "key": "uid" + } + ] + } + }, + "status": "Bad Request", + "code": 400, + "_postman_previewlanguage": "text", + "header": [], + "cookie": [], + "body": "" + } + ] + } + ] + } + ] + }, + { + "name": "Get all anchors", + "request": { + "auth": { + "type": "bearer", + "bearer": [ + { + "key": "token", + "value": "{{bearerToken}}", + "type": "string" + } + ] + }, + "method": "GET", + "header": [], + "url": { + "raw": "{{baseUrl}}/super-admin/anchors", + "host": [ + "{{baseUrl}}" + ], + "path": [ + "super-admin", + "anchors" + ] + } + }, + "response": [ + { + "name": "successful operation", + "originalRequest": { + "method": "GET", + "header": [ + { + "description": "Added as a part of security scheme: bearer", + "key": "Authorization", + "value": "Bearer " + } + ], + "url": { + "raw": "{{baseUrl}}/super-admin/anchors", + "host": [ + "{{baseUrl}}" + ], + "path": [ + "super-admin", + "anchors" + ] + } + }, + "status": "OK", + "code": 200, + "_postman_previewlanguage": "text", + "header": [], + "cookie": [], + "body": "" + }, + { + "name": "Invalid status value", + "originalRequest": { + "method": "GET", + "header": [ + { + "description": "Added as a part of security scheme: bearer", + "key": "Authorization", + "value": "Bearer " + } + ], + "url": { + "raw": "{{baseUrl}}/super-admin/anchors", + "host": [ + "{{baseUrl}}" + ], + "path": [ + "super-admin", + "anchors" + ] + } + }, + "status": "Bad Request", + "code": 400, + "_postman_previewlanguage": "text", + "header": [], + "cookie": [], + "body": "" + } + ] + } + ] + }, + { + "name": "folders", + "item": [ + { + "name": "{uid}", + "item": [ + { + "name": "Update an existing folder", + "request": { + "auth": { + "type": "bearer", + "bearer": [ + { + "key": "token", + "value": "{{bearerToken}}", + "type": "string" + } + ] + }, + "method": "PUT", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + } + ], + "body": { + "mode": "raw", + "raw": "{\n \"uid\": \"\",\n \"deed\": {\n \"uid\": \"\",\n \"deed_type\": {\n \"uid\": \"\",\n \"name\": \"\",\n \"description\": \"\",\n \"archived_at\": \"\",\n \"createdAt\": \"\",\n \"updatedAt\": \"\"\n }\n },\n \"office\": {\n \"uid\": \"\",\n \"name\": \"\"\n },\n \"createdAt\": \"\",\n \"updatedAt\": \"\"\n}", + "options": { + "raw": { + "headerFamily": "json", + "language": "json" + } + } + }, + "url": { + "raw": "{{baseUrl}}/super-admin/folders/:uid", + "host": [ + "{{baseUrl}}" + ], + "path": [ + "super-admin", + "folders", + ":uid" + ], + "variable": [ + { + "key": "uid", + "value": "", + "description": "(Required) ID of folder to return" + } + ] + }, + "description": "Returns a single folder updated" + }, + "response": [ + { + "name": "successful operation", + "originalRequest": { + "method": "PUT", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + }, + { + "description": "Added as a part of security scheme: bearer", + "key": "Authorization", + "value": "Bearer " + } + ], + "body": { + "mode": "raw", + "raw": "{\n \"uid\": \"\",\n \"deed\": {\n \"uid\": \"\",\n \"deed_type\": {\n \"uid\": \"\",\n \"name\": \"\",\n \"description\": \"\",\n \"archived_at\": \"\",\n \"createdAt\": \"\",\n \"updatedAt\": \"\"\n }\n },\n \"office\": {\n \"uid\": \"\",\n \"name\": \"\"\n },\n \"createdAt\": \"\",\n \"updatedAt\": \"\"\n}", + "options": { + "raw": { + "headerFamily": "json", + "language": "json" + } + } + }, + "url": { + "raw": "{{baseUrl}}/super-admin/folders/:uid", + "host": [ + "{{baseUrl}}" + ], + "path": [ + "super-admin", + "folders", + ":uid" + ], + "variable": [ + { + "key": "uid" + } + ] + } + }, + "status": "OK", + "code": 200, + "_postman_previewlanguage": "text", + "header": [], + "cookie": [], + "body": "" + }, + { + "name": "Invalid status value", + "originalRequest": { + "method": "PUT", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + }, + { + "description": "Added as a part of security scheme: bearer", + "key": "Authorization", + "value": "Bearer " + } + ], + "body": { + "mode": "raw", + "raw": "{\n \"uid\": \"\",\n \"deed\": {\n \"uid\": \"\",\n \"deed_type\": {\n \"uid\": \"\",\n \"name\": \"\",\n \"description\": \"\",\n \"archived_at\": \"\",\n \"createdAt\": \"\",\n \"updatedAt\": \"\"\n }\n },\n \"office\": {\n \"uid\": \"\",\n \"name\": \"\"\n },\n \"createdAt\": \"\",\n \"updatedAt\": \"\"\n}", + "options": { + "raw": { + "headerFamily": "json", + "language": "json" + } + } + }, + "url": { + "raw": "{{baseUrl}}/super-admin/folders/:uid", + "host": [ + "{{baseUrl}}" + ], + "path": [ + "super-admin", + "folders", + ":uid" + ], + "variable": [ + { + "key": "uid" + } + ] + } + }, + "status": "Bad Request", + "code": 400, + "_postman_previewlanguage": "text", + "header": [], + "cookie": [], + "body": "" + } + ] + }, + { + "name": "Delete an existing folder", + "request": { + "auth": { + "type": "bearer", + "bearer": [ + { + "key": "token", + "value": "{{bearerToken}}", + "type": "string" + } + ] + }, + "method": "DELETE", + "header": [], + "url": { + "raw": "{{baseUrl}}/super-admin/folders/:uid", + "host": [ + "{{baseUrl}}" + ], + "path": [ + "super-admin", + "folders", + ":uid" + ], + "variable": [ + { + "key": "uid", + "value": "", + "description": "(Required) ID of folder to return" + } + ] + }, + "description": "Returns a single folder deleted" + }, + "response": [ + { + "name": "successful operation", + "originalRequest": { + "method": "DELETE", + "header": [ + { + "description": "Added as a part of security scheme: bearer", + "key": "Authorization", + "value": "Bearer " + } + ], + "url": { + "raw": "{{baseUrl}}/super-admin/folders/:uid", + "host": [ + "{{baseUrl}}" + ], + "path": [ + "super-admin", + "folders", + ":uid" + ], + "variable": [ + { + "key": "uid" + } + ] + } + }, + "status": "OK", + "code": 200, + "_postman_previewlanguage": "text", + "header": [], + "cookie": [], + "body": "" + }, + { + "name": "Invalid status value", + "originalRequest": { + "method": "DELETE", + "header": [ + { + "description": "Added as a part of security scheme: bearer", + "key": "Authorization", + "value": "Bearer " + } + ], + "url": { + "raw": "{{baseUrl}}/super-admin/folders/:uid", + "host": [ + "{{baseUrl}}" + ], + "path": [ + "super-admin", + "folders", + ":uid" + ], + "variable": [ + { + "key": "uid" + } + ] + } + }, + "status": "Bad Request", + "code": 400, + "_postman_previewlanguage": "text", + "header": [], + "cookie": [], + "body": "" + } + ] + }, + { + "name": "Find folder by ID", + "request": { + "auth": { + "type": "bearer", + "bearer": [ + { + "key": "token", + "value": "{{bearerToken}}", + "type": "string" + } + ] + }, + "method": "GET", + "header": [ + { + "key": "Accept", + "value": "application/json" + } + ], + "url": { + "raw": "{{baseUrl}}/super-admin/folders/:uid?uid=", + "host": [ + "{{baseUrl}}" + ], + "path": [ + "super-admin", + "folders", + ":uid" + ], + "query": [ + { + "key": "uid", + "value": "", + "description": "(Required) ID of folder to return" + } + ], + "variable": [ + { + "key": "uid" + } + ] + }, + "description": "Returns a single folder" + }, + "response": [ + { + "name": "successful operation", + "originalRequest": { + "method": "GET", + "header": [ + { + "key": "Accept", + "value": "application/json" + }, + { + "description": "Added as a part of security scheme: bearer", + "key": "Authorization", + "value": "Bearer " + } + ], + "url": { + "raw": "{{baseUrl}}/super-admin/folders/:uid?uid=", + "host": [ + "{{baseUrl}}" + ], + "path": [ + "super-admin", + "folders", + ":uid" + ], + "query": [ + { + "key": "uid", + "value": "", + "description": "(Required) ID of folder to return" + } + ], + "variable": [ + { + "key": "uid" + } + ] + } + }, + "status": "OK", + "code": 200, + "_postman_previewlanguage": "json", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + } + ], + "cookie": [], + "body": "[\n {\n \"uid\": \"\",\n \"deed\": {\n \"uid\": \"\",\n \"deed_type\": {\n \"uid\": \"\",\n \"name\": \"\",\n \"description\": \"\",\n \"archived_at\": \"\",\n \"createdAt\": \"\",\n \"updatedAt\": \"\"\n }\n },\n \"office\": {\n \"uid\": \"\",\n \"name\": \"\"\n },\n \"createdAt\": \"\",\n \"updatedAt\": \"\"\n },\n {\n \"uid\": \"\",\n \"deed\": {\n \"uid\": \"\",\n \"deed_type\": {\n \"uid\": \"\",\n \"name\": \"\",\n \"description\": \"\",\n \"archived_at\": \"\",\n \"createdAt\": \"\",\n \"updatedAt\": \"\"\n }\n },\n \"office\": {\n \"uid\": \"\",\n \"name\": \"\"\n },\n \"createdAt\": \"\",\n \"updatedAt\": \"\"\n }\n]" + }, + { + "name": "Invalid status value", + "originalRequest": { + "method": "GET", + "header": [ + { + "description": "Added as a part of security scheme: bearer", + "key": "Authorization", + "value": "Bearer " + } + ], + "url": { + "raw": "{{baseUrl}}/super-admin/folders/:uid?uid=", + "host": [ + "{{baseUrl}}" + ], + "path": [ + "super-admin", + "folders", + ":uid" + ], + "query": [ + { + "key": "uid", + "value": "", + "description": "(Required) ID of folder to return" + } + ], + "variable": [ + { + "key": "uid" + } + ] + } + }, + "status": "Bad Request", + "code": 400, + "_postman_previewlanguage": "text", + "header": [], + "cookie": [], + "body": "" + } + ] + } + ] + }, + { + "name": "Get all folders", + "request": { + "auth": { + "type": "bearer", + "bearer": [ + { + "key": "token", + "value": "{{bearerToken}}", + "type": "string" + } + ] + }, + "method": "GET", + "header": [], + "url": { + "raw": "{{baseUrl}}/super-admin/folders", + "host": [ + "{{baseUrl}}" + ], + "path": [ + "super-admin", + "folders" + ] + } + }, + "response": [ + { + "name": "successful operation", + "originalRequest": { + "method": "GET", + "header": [ + { + "description": "Added as a part of security scheme: bearer", + "key": "Authorization", + "value": "Bearer " + } + ], + "url": { + "raw": "{{baseUrl}}/super-admin/folders", + "host": [ + "{{baseUrl}}" + ], + "path": [ + "super-admin", + "folders" + ] + } + }, + "status": "OK", + "code": 200, + "_postman_previewlanguage": "text", + "header": [], + "cookie": [], + "body": "" + }, + { + "name": "Invalid status value", + "originalRequest": { + "method": "GET", + "header": [ + { + "description": "Added as a part of security scheme: bearer", + "key": "Authorization", + "value": "Bearer " + } + ], + "url": { + "raw": "{{baseUrl}}/super-admin/folders", + "host": [ + "{{baseUrl}}" + ], + "path": [ + "super-admin", + "folders" + ] + } + }, + "status": "Bad Request", + "code": 400, + "_postman_previewlanguage": "text", + "header": [], + "cookie": [], + "body": "" + } + ] + }, + { + "name": "Add a new folder", + "request": { + "auth": { + "type": "bearer", + "bearer": [ + { + "key": "token", + "value": "{{bearerToken}}", + "type": "string" + } + ] + }, + "method": "POST", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + } + ], + "body": { + "mode": "raw", + "raw": "{\n \"uid\": \"\",\n \"deed\": {\n \"uid\": \"\",\n \"deed_type\": {\n \"uid\": \"\",\n \"name\": \"\",\n \"description\": \"\",\n \"archived_at\": \"\",\n \"createdAt\": \"\",\n \"updatedAt\": \"\"\n }\n },\n \"office\": {\n \"uid\": \"\",\n \"name\": \"\"\n },\n \"createdAt\": \"\",\n \"updatedAt\": \"\"\n}", + "options": { + "raw": { + "headerFamily": "json", + "language": "json" + } + } + }, + "url": { + "raw": "{{baseUrl}}/super-admin/folders", + "host": [ + "{{baseUrl}}" + ], + "path": [ + "super-admin", + "folders" + ] + } + }, + "response": [ + { + "name": "successful operation", + "originalRequest": { + "method": "POST", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + }, + { + "description": "Added as a part of security scheme: bearer", + "key": "Authorization", + "value": "Bearer " + } + ], + "body": { + "mode": "raw", + "raw": "{\n \"uid\": \"\",\n \"deed\": {\n \"uid\": \"\",\n \"deed_type\": {\n \"uid\": \"\",\n \"name\": \"\",\n \"description\": \"\",\n \"archived_at\": \"\",\n \"createdAt\": \"\",\n \"updatedAt\": \"\"\n }\n },\n \"office\": {\n \"uid\": \"\",\n \"name\": \"\"\n },\n \"createdAt\": \"\",\n \"updatedAt\": \"\"\n}", + "options": { + "raw": { + "headerFamily": "json", + "language": "json" + } + } + }, + "url": { + "raw": "{{baseUrl}}/super-admin/folders", + "host": [ + "{{baseUrl}}" + ], + "path": [ + "super-admin", + "folders" + ] + } + }, + "status": "OK", + "code": 200, + "_postman_previewlanguage": "text", + "header": [], + "cookie": [], + "body": "" + }, + { + "name": "Invalid status value", + "originalRequest": { + "method": "POST", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + }, + { + "description": "Added as a part of security scheme: bearer", + "key": "Authorization", + "value": "Bearer " + } + ], + "body": { + "mode": "raw", + "raw": "{\n \"uid\": \"\",\n \"deed\": {\n \"uid\": \"\",\n \"deed_type\": {\n \"uid\": \"\",\n \"name\": \"\",\n \"description\": \"\",\n \"archived_at\": \"\",\n \"createdAt\": \"\",\n \"updatedAt\": \"\"\n }\n },\n \"office\": {\n \"uid\": \"\",\n \"name\": \"\"\n },\n \"createdAt\": \"\",\n \"updatedAt\": \"\"\n}", + "options": { + "raw": { + "headerFamily": "json", + "language": "json" + } + } + }, + "url": { + "raw": "{{baseUrl}}/super-admin/folders", + "host": [ + "{{baseUrl}}" + ], + "path": [ + "super-admin", + "folders" + ] + } + }, + "status": "Bad Request", + "code": 400, + "_postman_previewlanguage": "text", + "header": [], + "cookie": [], + "body": "" + } + ] + } + ] + }, + { + "name": "office-roles", + "item": [ + { + "name": "{uid}", + "item": [ + { + "name": "Find office role by ID", + "request": { + "auth": { + "type": "bearer", + "bearer": [ + { + "key": "token", + "value": "{{bearerToken}}", + "type": "string" + } + ] + }, + "method": "GET", + "header": [ + { + "key": "Accept", + "value": "application/json" + } + ], + "url": { + "raw": "{{baseUrl}}/super-admin/office-roles/:uid?uid=", + "host": [ + "{{baseUrl}}" + ], + "path": [ + "super-admin", + "office-roles", + ":uid" + ], + "query": [ + { + "key": "uid", + "value": "", + "description": "(Required) ID of office role to return" + } + ], + "variable": [ + { + "key": "uid" + } + ] + }, + "description": "Returns a single office role" + }, + "response": [ + { + "name": "successful operation", + "originalRequest": { + "method": "GET", + "header": [ + { + "key": "Accept", + "value": "application/json" + }, + { + "description": "Added as a part of security scheme: bearer", + "key": "Authorization", + "value": "Bearer " + } + ], + "url": { + "raw": "{{baseUrl}}/super-admin/office-roles/:uid?uid=", + "host": [ + "{{baseUrl}}" + ], + "path": [ + "super-admin", + "office-roles", + ":uid" + ], + "query": [ + { + "key": "uid", + "value": "", + "description": "(Required) ID of office role to return" + } + ], + "variable": [ + { + "key": "uid" + } + ] + } + }, + "status": "OK", + "code": 200, + "_postman_previewlanguage": "json", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + } + ], + "cookie": [], + "body": "[\n {\n \"uid\": \"\",\n \"name\": \"\",\n \"rules\": [\n {\n \"uid\": \"\",\n \"name\": \"\"\n },\n {\n \"uid\": \"\",\n \"name\": \"\"\n }\n ],\n \"office\": {\n \"uid\": \"\",\n \"name\": \"\"\n }\n },\n {\n \"uid\": \"\",\n \"name\": \"\",\n \"rules\": [\n {\n \"uid\": \"\",\n \"name\": \"\"\n },\n {\n \"uid\": \"\",\n \"name\": \"\"\n }\n ],\n \"office\": {\n \"uid\": \"\",\n \"name\": \"\"\n }\n }\n]" + }, + { + "name": "Invalid status value", + "originalRequest": { + "method": "GET", + "header": [ + { + "description": "Added as a part of security scheme: bearer", + "key": "Authorization", + "value": "Bearer " + } + ], + "url": { + "raw": "{{baseUrl}}/super-admin/office-roles/:uid?uid=", + "host": [ + "{{baseUrl}}" + ], + "path": [ + "super-admin", + "office-roles", + ":uid" + ], + "query": [ + { + "key": "uid", + "value": "", + "description": "(Required) ID of office role to return" + } + ], + "variable": [ + { + "key": "uid" + } + ] + } + }, + "status": "Bad Request", + "code": 400, + "_postman_previewlanguage": "text", + "header": [], + "cookie": [], + "body": "" + } + ] + }, + { + "name": "Update an existing office role", + "request": { + "auth": { + "type": "bearer", + "bearer": [ + { + "key": "token", + "value": "{{bearerToken}}", + "type": "string" + } + ] + }, + "method": "PUT", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + }, + { + "key": "Accept", + "value": "application/json" + } + ], + "body": { + "mode": "raw", + "raw": "{\n \"uid\": \"\",\n \"name\": \"\",\n \"rules\": [\n {\n \"uid\": \"\",\n \"name\": \"\"\n },\n {\n \"uid\": \"\",\n \"name\": \"\"\n }\n ],\n \"office\": {\n \"uid\": \"\",\n \"name\": \"\"\n }\n}", + "options": { + "raw": { + "headerFamily": "json", + "language": "json" + } + } + }, + "url": { + "raw": "{{baseUrl}}/super-admin/office-roles/:uid?uid=", + "host": [ + "{{baseUrl}}" + ], + "path": [ + "super-admin", + "office-roles", + ":uid" + ], + "query": [ + { + "key": "uid", + "value": "", + "description": "(Required) ID of office role to return" + } + ], + "variable": [ + { + "key": "uid" + } + ] + }, + "description": "Returns a single office role updated" + }, + "response": [ + { + "name": "successful operation", + "originalRequest": { + "method": "PUT", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + }, + { + "key": "Accept", + "value": "application/json" + }, + { + "description": "Added as a part of security scheme: bearer", + "key": "Authorization", + "value": "Bearer " + } + ], + "body": { + "mode": "raw", + "raw": "{\n \"uid\": \"\",\n \"name\": \"\",\n \"rules\": [\n {\n \"uid\": \"\",\n \"name\": \"\"\n },\n {\n \"uid\": \"\",\n \"name\": \"\"\n }\n ],\n \"office\": {\n \"uid\": \"\",\n \"name\": \"\"\n }\n}", + "options": { + "raw": { + "headerFamily": "json", + "language": "json" + } + } + }, + "url": { + "raw": "{{baseUrl}}/super-admin/office-roles/:uid?uid=", + "host": [ + "{{baseUrl}}" + ], + "path": [ + "super-admin", + "office-roles", + ":uid" + ], + "query": [ + { + "key": "uid", + "value": "", + "description": "(Required) ID of office role to return" + } + ], + "variable": [ + { + "key": "uid" + } + ] + } + }, + "status": "OK", + "code": 200, + "_postman_previewlanguage": "json", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + } + ], + "cookie": [], + "body": "[\n {\n \"uid\": \"\",\n \"name\": \"\",\n \"rules\": [\n {\n \"uid\": \"\",\n \"name\": \"\"\n },\n {\n \"uid\": \"\",\n \"name\": \"\"\n }\n ],\n \"office\": {\n \"uid\": \"\",\n \"name\": \"\"\n }\n },\n {\n \"uid\": \"\",\n \"name\": \"\",\n \"rules\": [\n {\n \"uid\": \"\",\n \"name\": \"\"\n },\n {\n \"uid\": \"\",\n \"name\": \"\"\n }\n ],\n \"office\": {\n \"uid\": \"\",\n \"name\": \"\"\n }\n }\n]" + }, + { + "name": "Invalid status value", + "originalRequest": { + "method": "PUT", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + }, + { + "description": "Added as a part of security scheme: bearer", + "key": "Authorization", + "value": "Bearer " + } + ], + "body": { + "mode": "raw", + "raw": "{\n \"uid\": \"\",\n \"name\": \"\",\n \"rules\": [\n {\n \"uid\": \"\",\n \"name\": \"\"\n },\n {\n \"uid\": \"\",\n \"name\": \"\"\n }\n ],\n \"office\": {\n \"uid\": \"\",\n \"name\": \"\"\n }\n}", + "options": { + "raw": { + "headerFamily": "json", + "language": "json" + } + } + }, + "url": { + "raw": "{{baseUrl}}/super-admin/office-roles/:uid?uid=", + "host": [ + "{{baseUrl}}" + ], + "path": [ + "super-admin", + "office-roles", + ":uid" + ], + "query": [ + { + "key": "uid", + "value": "", + "description": "(Required) ID of office role to return" + } + ], + "variable": [ + { + "key": "uid" + } + ] + } + }, + "status": "Bad Request", + "code": 400, + "_postman_previewlanguage": "text", + "header": [], + "cookie": [], + "body": "" + } + ] + } + ] + }, + { + "name": "Get all office roles", + "request": { + "auth": { + "type": "bearer", + "bearer": [ + { + "key": "token", + "value": "{{bearerToken}}", + "type": "string" + } + ] + }, + "method": "GET", + "header": [ + { + "key": "Accept", + "value": "application/json" + } + ], + "url": { + "raw": "{{baseUrl}}/super-admin/office-roles", + "host": [ + "{{baseUrl}}" + ], + "path": [ + "super-admin", + "office-roles" + ] + } + }, + "response": [ + { + "name": "successful operation", + "originalRequest": { + "method": "GET", + "header": [ + { + "key": "Accept", + "value": "application/json" + }, + { + "description": "Added as a part of security scheme: bearer", + "key": "Authorization", + "value": "Bearer " + } + ], + "url": { + "raw": "{{baseUrl}}/super-admin/office-roles", + "host": [ + "{{baseUrl}}" + ], + "path": [ + "super-admin", + "office-roles" + ] + } + }, + "status": "OK", + "code": 200, + "_postman_previewlanguage": "json", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + } + ], + "cookie": [], + "body": "[\n {\n \"uid\": \"\",\n \"name\": \"\",\n \"rules\": [\n {\n \"uid\": \"\",\n \"name\": \"\"\n },\n {\n \"uid\": \"\",\n \"name\": \"\"\n }\n ],\n \"office\": {\n \"uid\": \"\",\n \"name\": \"\"\n }\n },\n {\n \"uid\": \"\",\n \"name\": \"\",\n \"rules\": [\n {\n \"uid\": \"\",\n \"name\": \"\"\n },\n {\n \"uid\": \"\",\n \"name\": \"\"\n }\n ],\n \"office\": {\n \"uid\": \"\",\n \"name\": \"\"\n }\n }\n]" + }, + { + "name": "Invalid status value", + "originalRequest": { + "method": "GET", + "header": [ + { + "description": "Added as a part of security scheme: bearer", + "key": "Authorization", + "value": "Bearer " + } + ], + "url": { + "raw": "{{baseUrl}}/super-admin/office-roles", + "host": [ + "{{baseUrl}}" + ], + "path": [ + "super-admin", + "office-roles" + ] + } + }, + "status": "Bad Request", + "code": 400, + "_postman_previewlanguage": "text", + "header": [], + "cookie": [], + "body": "" + } + ] + }, + { + "name": "Add a new office role", + "request": { + "auth": { + "type": "bearer", + "bearer": [ + { + "key": "token", + "value": "{{bearerToken}}", + "type": "string" + } + ] + }, + "method": "POST", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + }, + { + "key": "Accept", + "value": "application/json" + } + ], + "body": { + "mode": "raw", + "raw": "{\n \"uid\": \"\",\n \"name\": \"\",\n \"rules\": [\n {\n \"uid\": \"\",\n \"name\": \"\"\n },\n {\n \"uid\": \"\",\n \"name\": \"\"\n }\n ],\n \"office\": {\n \"uid\": \"\",\n \"name\": \"\"\n }\n}", + "options": { + "raw": { + "headerFamily": "json", + "language": "json" + } + } + }, + "url": { + "raw": "{{baseUrl}}/super-admin/office-roles", + "host": [ + "{{baseUrl}}" + ], + "path": [ + "super-admin", + "office-roles" + ] + } + }, + "response": [ + { + "name": "successful operation", + "originalRequest": { + "method": "POST", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + }, + { + "key": "Accept", + "value": "application/json" + }, + { + "description": "Added as a part of security scheme: bearer", + "key": "Authorization", + "value": "Bearer " + } + ], + "body": { + "mode": "raw", + "raw": "{\n \"uid\": \"\",\n \"name\": \"\",\n \"rules\": [\n {\n \"uid\": \"\",\n \"name\": \"\"\n },\n {\n \"uid\": \"\",\n \"name\": \"\"\n }\n ],\n \"office\": {\n \"uid\": \"\",\n \"name\": \"\"\n }\n}", + "options": { + "raw": { + "headerFamily": "json", + "language": "json" + } + } + }, + "url": { + "raw": "{{baseUrl}}/super-admin/office-roles", + "host": [ + "{{baseUrl}}" + ], + "path": [ + "super-admin", + "office-roles" + ] + } + }, + "status": "OK", + "code": 200, + "_postman_previewlanguage": "json", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + } + ], + "cookie": [], + "body": "[\n {\n \"uid\": \"\",\n \"name\": \"\",\n \"rules\": [\n {\n \"uid\": \"\",\n \"name\": \"\"\n },\n {\n \"uid\": \"\",\n \"name\": \"\"\n }\n ],\n \"office\": {\n \"uid\": \"\",\n \"name\": \"\"\n }\n },\n {\n \"uid\": \"\",\n \"name\": \"\",\n \"rules\": [\n {\n \"uid\": \"\",\n \"name\": \"\"\n },\n {\n \"uid\": \"\",\n \"name\": \"\"\n }\n ],\n \"office\": {\n \"uid\": \"\",\n \"name\": \"\"\n }\n }\n]" + }, + { + "name": "Invalid status value", + "originalRequest": { + "method": "POST", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + }, + { + "description": "Added as a part of security scheme: bearer", + "key": "Authorization", + "value": "Bearer " + } + ], + "body": { + "mode": "raw", + "raw": "{\n \"uid\": \"\",\n \"name\": \"\",\n \"rules\": [\n {\n \"uid\": \"\",\n \"name\": \"\"\n },\n {\n \"uid\": \"\",\n \"name\": \"\"\n }\n ],\n \"office\": {\n \"uid\": \"\",\n \"name\": \"\"\n }\n}", + "options": { + "raw": { + "headerFamily": "json", + "language": "json" + } + } + }, + "url": { + "raw": "{{baseUrl}}/super-admin/office-roles", + "host": [ + "{{baseUrl}}" + ], + "path": [ + "super-admin", + "office-roles" + ] + } + }, + "status": "Bad Request", + "code": 400, + "_postman_previewlanguage": "text", + "header": [], + "cookie": [], + "body": "" + } + ] + } + ] + }, + { + "name": "offices", + "item": [ + { + "name": "{uid}", + "item": [ + { + "name": "Find office by ID", + "request": { + "auth": { + "type": "bearer", + "bearer": [ + { + "key": "token", + "value": "{{bearerToken}}", + "type": "string" + } + ] + }, + "method": "GET", + "header": [ + { + "key": "Accept", + "value": "application/json" + } + ], + "url": { + "raw": "{{baseUrl}}/super-admin/offices/:uid?uid=", + "host": [ + "{{baseUrl}}" + ], + "path": [ + "super-admin", + "offices", + ":uid" + ], + "query": [ + { + "key": "uid", + "value": "", + "description": "(Required) ID of office to return" + } + ], + "variable": [ + { + "key": "uid" + } + ] + }, + "description": "Returns a single office" + }, + "response": [ + { + "name": "successful operation", + "originalRequest": { + "method": "GET", + "header": [ + { + "key": "Accept", + "value": "application/json" + }, + { + "description": "Added as a part of security scheme: bearer", + "key": "Authorization", + "value": "Bearer " + } + ], + "url": { + "raw": "{{baseUrl}}/super-admin/offices/:uid?uid=", + "host": [ + "{{baseUrl}}" + ], + "path": [ + "super-admin", + "offices", + ":uid" + ], + "query": [ + { + "key": "uid", + "value": "", + "description": "(Required) ID of office to return" + } + ], + "variable": [ + { + "key": "uid" + } + ] + } + }, + "status": "OK", + "code": 200, + "_postman_previewlanguage": "json", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + } + ], + "cookie": [], + "body": "[\n {\n \"uid\": \"\",\n \"name\": \"\"\n },\n {\n \"uid\": \"\",\n \"name\": \"\"\n }\n]" + }, + { + "name": "Invalid status value", + "originalRequest": { + "method": "GET", + "header": [ + { + "description": "Added as a part of security scheme: bearer", + "key": "Authorization", + "value": "Bearer " + } + ], + "url": { + "raw": "{{baseUrl}}/super-admin/offices/:uid?uid=", + "host": [ + "{{baseUrl}}" + ], + "path": [ + "super-admin", + "offices", + ":uid" + ], + "query": [ + { + "key": "uid", + "value": "", + "description": "(Required) ID of office to return" + } + ], + "variable": [ + { + "key": "uid" + } + ] + } + }, + "status": "Bad Request", + "code": 400, + "_postman_previewlanguage": "text", + "header": [], + "cookie": [], + "body": "" + } + ] + }, + { + "name": "Update an existing office", + "request": { + "auth": { + "type": "bearer", + "bearer": [ + { + "key": "token", + "value": "{{bearerToken}}", + "type": "string" + } + ] + }, + "method": "PUT", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + }, + { + "key": "Accept", + "value": "application/json" + } + ], + "body": { + "mode": "raw", + "raw": "{\n \"uid\": \"\",\n \"name\": \"\"\n}", + "options": { + "raw": { + "headerFamily": "json", + "language": "json" + } + } + }, + "url": { + "raw": "{{baseUrl}}/super-admin/offices/:uid?uid=", + "host": [ + "{{baseUrl}}" + ], + "path": [ + "super-admin", + "offices", + ":uid" + ], + "query": [ + { + "key": "uid", + "value": "", + "description": "(Required) ID of office to return" + } + ], + "variable": [ + { + "key": "uid" + } + ] + }, + "description": "Returns a single office updated" + }, + "response": [ + { + "name": "successful operation", + "originalRequest": { + "method": "PUT", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + }, + { + "key": "Accept", + "value": "application/json" + }, + { + "description": "Added as a part of security scheme: bearer", + "key": "Authorization", + "value": "Bearer " + } + ], + "body": { + "mode": "raw", + "raw": "{\n \"uid\": \"\",\n \"name\": \"\"\n}", + "options": { + "raw": { + "headerFamily": "json", + "language": "json" + } + } + }, + "url": { + "raw": "{{baseUrl}}/super-admin/offices/:uid?uid=", + "host": [ + "{{baseUrl}}" + ], + "path": [ + "super-admin", + "offices", + ":uid" + ], + "query": [ + { + "key": "uid", + "value": "", + "description": "(Required) ID of office to return" + } + ], + "variable": [ + { + "key": "uid" + } + ] + } + }, + "status": "OK", + "code": 200, + "_postman_previewlanguage": "json", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + } + ], + "cookie": [], + "body": "[\n {\n \"uid\": \"\",\n \"name\": \"\"\n },\n {\n \"uid\": \"\",\n \"name\": \"\"\n }\n]" + }, + { + "name": "Invalid status value", + "originalRequest": { + "method": "PUT", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + }, + { + "description": "Added as a part of security scheme: bearer", + "key": "Authorization", + "value": "Bearer " + } + ], + "body": { + "mode": "raw", + "raw": "{\n \"uid\": \"\",\n \"name\": \"\"\n}", + "options": { + "raw": { + "headerFamily": "json", + "language": "json" + } + } + }, + "url": { + "raw": "{{baseUrl}}/super-admin/offices/:uid?uid=", + "host": [ + "{{baseUrl}}" + ], + "path": [ + "super-admin", + "offices", + ":uid" + ], + "query": [ + { + "key": "uid", + "value": "", + "description": "(Required) ID of office to return" + } + ], + "variable": [ + { + "key": "uid" + } + ] + } + }, + "status": "Bad Request", + "code": 400, + "_postman_previewlanguage": "text", + "header": [], + "cookie": [], + "body": "" + } + ] + } + ] + }, + { + "name": "Get all offices", + "request": { + "auth": { + "type": "bearer", + "bearer": [ + { + "key": "token", + "value": "{{bearerToken}}", + "type": "string" + } + ] + }, + "method": "GET", + "header": [ + { + "key": "Accept", + "value": "application/json" + } + ], + "url": { + "raw": "{{baseUrl}}/super-admin/offices", + "host": [ + "{{baseUrl}}" + ], + "path": [ + "super-admin", + "offices" + ] + } + }, + "response": [ + { + "name": "successful operation", + "originalRequest": { + "method": "GET", + "header": [ + { + "key": "Accept", + "value": "application/json" + }, + { + "description": "Added as a part of security scheme: bearer", + "key": "Authorization", + "value": "Bearer " + } + ], + "url": { + "raw": "{{baseUrl}}/super-admin/offices", + "host": [ + "{{baseUrl}}" + ], + "path": [ + "super-admin", + "offices" + ] + } + }, + "status": "OK", + "code": 200, + "_postman_previewlanguage": "json", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + } + ], + "cookie": [], + "body": "[\n {\n \"uid\": \"\",\n \"name\": \"\"\n },\n {\n \"uid\": \"\",\n \"name\": \"\"\n }\n]" + }, + { + "name": "Invalid status value", + "originalRequest": { + "method": "GET", + "header": [ + { + "description": "Added as a part of security scheme: bearer", + "key": "Authorization", + "value": "Bearer " + } + ], + "url": { + "raw": "{{baseUrl}}/super-admin/offices", + "host": [ + "{{baseUrl}}" + ], + "path": [ + "super-admin", + "offices" + ] + } + }, + "status": "Bad Request", + "code": 400, + "_postman_previewlanguage": "text", + "header": [], + "cookie": [], + "body": "" + } + ] + }, + { + "name": "Add a new office", + "request": { + "auth": { + "type": "bearer", + "bearer": [ + { + "key": "token", + "value": "{{bearerToken}}", + "type": "string" + } + ] + }, + "method": "POST", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + }, + { + "key": "Accept", + "value": "application/json" + } + ], + "body": { + "mode": "raw", + "raw": "{\n \"uid\": \"\",\n \"name\": \"\"\n}", + "options": { + "raw": { + "headerFamily": "json", + "language": "json" + } + } + }, + "url": { + "raw": "{{baseUrl}}/super-admin/offices", + "host": [ + "{{baseUrl}}" + ], + "path": [ + "super-admin", + "offices" + ] + } + }, + "response": [ + { + "name": "successful operation", + "originalRequest": { + "method": "POST", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + }, + { + "key": "Accept", + "value": "application/json" + }, + { + "description": "Added as a part of security scheme: bearer", + "key": "Authorization", + "value": "Bearer " + } + ], + "body": { + "mode": "raw", + "raw": "{\n \"uid\": \"\",\n \"name\": \"\"\n}", + "options": { + "raw": { + "headerFamily": "json", + "language": "json" + } + } + }, + "url": { + "raw": "{{baseUrl}}/super-admin/offices", + "host": [ + "{{baseUrl}}" + ], + "path": [ + "super-admin", + "offices" + ] + } + }, + "status": "OK", + "code": 200, + "_postman_previewlanguage": "json", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + } + ], + "cookie": [], + "body": "[\n {\n \"uid\": \"\",\n \"name\": \"\"\n },\n {\n \"uid\": \"\",\n \"name\": \"\"\n }\n]" + }, + { + "name": "Invalid status value", + "originalRequest": { + "method": "POST", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + }, + { + "description": "Added as a part of security scheme: bearer", + "key": "Authorization", + "value": "Bearer " + } + ], + "body": { + "mode": "raw", + "raw": "{\n \"uid\": \"\",\n \"name\": \"\"\n}", + "options": { + "raw": { + "headerFamily": "json", + "language": "json" + } + } + }, + "url": { + "raw": "{{baseUrl}}/super-admin/offices", + "host": [ + "{{baseUrl}}" + ], + "path": [ + "super-admin", + "offices" + ] + } + }, + "status": "Bad Request", + "code": 400, + "_postman_previewlanguage": "text", + "header": [], + "cookie": [], + "body": "" + } + ] + } + ] + }, + { + "name": "roles", + "item": [ + { + "name": "{uid}", + "item": [ + { + "name": "Find role by ID", + "request": { + "auth": { + "type": "bearer", + "bearer": [ + { + "key": "token", + "value": "{{bearerToken}}", + "type": "string" + } + ] + }, + "method": "GET", + "header": [ + { + "key": "Accept", + "value": "application/json" + } + ], + "url": { + "raw": "{{baseUrl}}/super-admin/roles/:uid?uid=", + "host": [ + "{{baseUrl}}" + ], + "path": [ + "super-admin", + "roles", + ":uid" + ], + "query": [ + { + "key": "uid", + "value": "", + "description": "(Required) ID of role to return" + } + ], + "variable": [ + { + "key": "uid" + } + ] + }, + "description": "Returns a single role" + }, + "response": [ + { + "name": "successful operation", + "originalRequest": { + "method": "GET", + "header": [ + { + "key": "Accept", + "value": "application/json" + }, + { + "description": "Added as a part of security scheme: bearer", + "key": "Authorization", + "value": "Bearer " + } + ], + "url": { + "raw": "{{baseUrl}}/super-admin/roles/:uid?uid=", + "host": [ + "{{baseUrl}}" + ], + "path": [ + "super-admin", + "roles", + ":uid" + ], + "query": [ + { + "key": "uid", + "value": "", + "description": "(Required) ID of role to return" + } + ], + "variable": [ + { + "key": "uid" + } + ] + } + }, + "status": "OK", + "code": 200, + "_postman_previewlanguage": "json", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + } + ], + "cookie": [], + "body": "[\n {\n \"uid\": \"\",\n \"name\": \"\",\n \"rules\": [\n {\n \"uid\": \"\",\n \"name\": \"\"\n },\n {\n \"uid\": \"\",\n \"name\": \"\"\n }\n ]\n },\n {\n \"uid\": \"\",\n \"name\": \"\",\n \"rules\": [\n {\n \"uid\": \"\",\n \"name\": \"\"\n },\n {\n \"uid\": \"\",\n \"name\": \"\"\n }\n ]\n }\n]" + }, + { + "name": "Invalid status value", + "originalRequest": { + "method": "GET", + "header": [ + { + "description": "Added as a part of security scheme: bearer", + "key": "Authorization", + "value": "Bearer " + } + ], + "url": { + "raw": "{{baseUrl}}/super-admin/roles/:uid?uid=", + "host": [ + "{{baseUrl}}" + ], + "path": [ + "super-admin", + "roles", + ":uid" + ], + "query": [ + { + "key": "uid", + "value": "", + "description": "(Required) ID of role to return" + } + ], + "variable": [ + { + "key": "uid" + } + ] + } + }, + "status": "Bad Request", + "code": 400, + "_postman_previewlanguage": "text", + "header": [], + "cookie": [], + "body": "" + } + ] + }, + { + "name": "Update an existing role", + "request": { + "auth": { + "type": "bearer", + "bearer": [ + { + "key": "token", + "value": "{{bearerToken}}", + "type": "string" + } + ] + }, + "method": "PUT", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + }, + { + "key": "Accept", + "value": "application/json" + } + ], + "body": { + "mode": "raw", + "raw": "{\n \"uid\": \"\",\n \"name\": \"\",\n \"rules\": [\n {\n \"uid\": \"\",\n \"name\": \"\"\n },\n {\n \"uid\": \"\",\n \"name\": \"\"\n }\n ]\n}", + "options": { + "raw": { + "headerFamily": "json", + "language": "json" + } + } + }, + "url": { + "raw": "{{baseUrl}}/super-admin/roles/:uid?uid=", + "host": [ + "{{baseUrl}}" + ], + "path": [ + "super-admin", + "roles", + ":uid" + ], + "query": [ + { + "key": "uid", + "value": "", + "description": "(Required) ID of role to return" + } + ], + "variable": [ + { + "key": "uid" + } + ] + }, + "description": "Returns a single role updated" + }, + "response": [ + { + "name": "successful operation", + "originalRequest": { + "method": "PUT", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + }, + { + "key": "Accept", + "value": "application/json" + }, + { + "description": "Added as a part of security scheme: bearer", + "key": "Authorization", + "value": "Bearer " + } + ], + "body": { + "mode": "raw", + "raw": "{\n \"uid\": \"\",\n \"name\": \"\",\n \"rules\": [\n {\n \"uid\": \"\",\n \"name\": \"\"\n },\n {\n \"uid\": \"\",\n \"name\": \"\"\n }\n ]\n}", + "options": { + "raw": { + "headerFamily": "json", + "language": "json" + } + } + }, + "url": { + "raw": "{{baseUrl}}/super-admin/roles/:uid?uid=", + "host": [ + "{{baseUrl}}" + ], + "path": [ + "super-admin", + "roles", + ":uid" + ], + "query": [ + { + "key": "uid", + "value": "", + "description": "(Required) ID of role to return" + } + ], + "variable": [ + { + "key": "uid" + } + ] + } + }, + "status": "OK", + "code": 200, + "_postman_previewlanguage": "json", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + } + ], + "cookie": [], + "body": "{\n \"uid\": \"\",\n \"name\": \"\",\n \"rules\": [\n {\n \"uid\": \"\",\n \"name\": \"\"\n },\n {\n \"uid\": \"\",\n \"name\": \"\"\n }\n ]\n}" + }, + { + "name": "Invalid status value", + "originalRequest": { + "method": "PUT", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + }, + { + "description": "Added as a part of security scheme: bearer", + "key": "Authorization", + "value": "Bearer " + } + ], + "body": { + "mode": "raw", + "raw": "{\n \"uid\": \"\",\n \"name\": \"\",\n \"rules\": [\n {\n \"uid\": \"\",\n \"name\": \"\"\n },\n {\n \"uid\": \"\",\n \"name\": \"\"\n }\n ]\n}", + "options": { + "raw": { + "headerFamily": "json", + "language": "json" + } + } + }, + "url": { + "raw": "{{baseUrl}}/super-admin/roles/:uid?uid=", + "host": [ + "{{baseUrl}}" + ], + "path": [ + "super-admin", + "roles", + ":uid" + ], + "query": [ + { + "key": "uid", + "value": "", + "description": "(Required) ID of role to return" + } + ], + "variable": [ + { + "key": "uid" + } + ] + } + }, + "status": "Bad Request", + "code": 400, + "_postman_previewlanguage": "text", + "header": [], + "cookie": [], + "body": "" + } + ] + } + ] + }, + { + "name": "Get all roles", + "request": { + "auth": { + "type": "bearer", + "bearer": [ + { + "key": "token", + "value": "{{bearerToken}}", + "type": "string" + } + ] + }, + "method": "GET", + "header": [ + { + "key": "Accept", + "value": "application/json" + } + ], + "url": { + "raw": "{{baseUrl}}/super-admin/roles", + "host": [ + "{{baseUrl}}" + ], + "path": [ + "super-admin", + "roles" + ] + } + }, + "response": [ + { + "name": "successful operation", + "originalRequest": { + "method": "GET", + "header": [ + { + "key": "Accept", + "value": "application/json" + }, + { + "description": "Added as a part of security scheme: bearer", + "key": "Authorization", + "value": "Bearer " + } + ], + "url": { + "raw": "{{baseUrl}}/super-admin/roles", + "host": [ + "{{baseUrl}}" + ], + "path": [ + "super-admin", + "roles" + ] + } + }, + "status": "OK", + "code": 200, + "_postman_previewlanguage": "json", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + } + ], + "cookie": [], + "body": "[\n {\n \"uid\": \"\",\n \"name\": \"\",\n \"rules\": [\n {\n \"uid\": \"\",\n \"name\": \"\"\n },\n {\n \"uid\": \"\",\n \"name\": \"\"\n }\n ]\n },\n {\n \"uid\": \"\",\n \"name\": \"\",\n \"rules\": [\n {\n \"uid\": \"\",\n \"name\": \"\"\n },\n {\n \"uid\": \"\",\n \"name\": \"\"\n }\n ]\n }\n]" + }, + { + "name": "Invalid status value", + "originalRequest": { + "method": "GET", + "header": [ + { + "description": "Added as a part of security scheme: bearer", + "key": "Authorization", + "value": "Bearer " + } + ], + "url": { + "raw": "{{baseUrl}}/super-admin/roles", + "host": [ + "{{baseUrl}}" + ], + "path": [ + "super-admin", + "roles" + ] + } + }, + "status": "Bad Request", + "code": 400, + "_postman_previewlanguage": "text", + "header": [], + "cookie": [], + "body": "" + } + ] + }, + { + "name": "Add a new role", + "request": { + "auth": { + "type": "bearer", + "bearer": [ + { + "key": "token", + "value": "{{bearerToken}}", + "type": "string" + } + ] + }, + "method": "POST", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + }, + { + "key": "Accept", + "value": "application/json" + } + ], + "body": { + "mode": "raw", + "raw": "{\n \"uid\": \"\",\n \"name\": \"\",\n \"rules\": [\n {\n \"uid\": \"\",\n \"name\": \"\"\n },\n {\n \"uid\": \"\",\n \"name\": \"\"\n }\n ]\n}", + "options": { + "raw": { + "headerFamily": "json", + "language": "json" + } + } + }, + "url": { + "raw": "{{baseUrl}}/super-admin/roles", + "host": [ + "{{baseUrl}}" + ], + "path": [ + "super-admin", + "roles" + ] + } + }, + "response": [ + { + "name": "successful operation", + "originalRequest": { + "method": "POST", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + }, + { + "key": "Accept", + "value": "application/json" + }, + { + "description": "Added as a part of security scheme: bearer", + "key": "Authorization", + "value": "Bearer " + } + ], + "body": { + "mode": "raw", + "raw": "{\n \"uid\": \"\",\n \"name\": \"\",\n \"rules\": [\n {\n \"uid\": \"\",\n \"name\": \"\"\n },\n {\n \"uid\": \"\",\n \"name\": \"\"\n }\n ]\n}", + "options": { + "raw": { + "headerFamily": "json", + "language": "json" + } + } + }, + "url": { + "raw": "{{baseUrl}}/super-admin/roles", + "host": [ + "{{baseUrl}}" + ], + "path": [ + "super-admin", + "roles" + ] + } + }, + "status": "OK", + "code": 200, + "_postman_previewlanguage": "json", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + } + ], + "cookie": [], + "body": "{\n \"uid\": \"\",\n \"name\": \"\",\n \"rules\": [\n {\n \"uid\": \"\",\n \"name\": \"\"\n },\n {\n \"uid\": \"\",\n \"name\": \"\"\n }\n ]\n}" + }, + { + "name": "Invalid status value", + "originalRequest": { + "method": "POST", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + }, + { + "description": "Added as a part of security scheme: bearer", + "key": "Authorization", + "value": "Bearer " + } + ], + "body": { + "mode": "raw", + "raw": "{\n \"uid\": \"\",\n \"name\": \"\",\n \"rules\": [\n {\n \"uid\": \"\",\n \"name\": \"\"\n },\n {\n \"uid\": \"\",\n \"name\": \"\"\n }\n ]\n}", + "options": { + "raw": { + "headerFamily": "json", + "language": "json" + } + } + }, + "url": { + "raw": "{{baseUrl}}/super-admin/roles", + "host": [ + "{{baseUrl}}" + ], + "path": [ + "super-admin", + "roles" + ] + } + }, + "status": "Bad Request", + "code": 400, + "_postman_previewlanguage": "text", + "header": [], + "cookie": [], + "body": "" + } + ] + } + ] + }, + { + "name": "notifications", + "item": [ + { + "name": "{uid}", + "item": [ + { + "name": "Update an existing notification", + "request": { + "auth": { + "type": "bearer", + "bearer": [ + { + "key": "token", + "value": "{{bearerToken}}", + "type": "string" + } + ] + }, + "method": "PUT", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + } + ], + "body": { + "mode": "raw", + "raw": "{\n \"value\": \"reference #/components/schemas/Notification not found in the OpenAPI spec\"\n}", + "options": { + "raw": { + "headerFamily": "json", + "language": "json" + } + } + }, + "url": { + "raw": "{{baseUrl}}/super-admin/notifications/:uid", + "host": [ + "{{baseUrl}}" + ], + "path": [ + "super-admin", + "notifications", + ":uid" + ], + "variable": [ + { + "key": "uid", + "value": "", + "description": "(Required) ID of notification to return" + } + ] + }, + "description": "Returns a single notification updated" + }, + "response": [ + { + "name": "successful operation", + "originalRequest": { + "method": "PUT", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + }, + { + "description": "Added as a part of security scheme: bearer", + "key": "Authorization", + "value": "Bearer " + } + ], + "body": { + "mode": "raw", + "raw": "{\n \"value\": \"reference #/components/schemas/Notification not found in the OpenAPI spec\"\n}", + "options": { + "raw": { + "headerFamily": "json", + "language": "json" + } + } + }, + "url": { + "raw": "{{baseUrl}}/super-admin/notifications/:uid", + "host": [ + "{{baseUrl}}" + ], + "path": [ + "super-admin", + "notifications", + ":uid" + ], + "variable": [ + { + "key": "uid" + } + ] + } + }, + "status": "OK", + "code": 200, + "_postman_previewlanguage": "text", + "header": [], + "cookie": [], + "body": "" + }, + { + "name": "Invalid status value", + "originalRequest": { + "method": "PUT", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + }, + { + "description": "Added as a part of security scheme: bearer", + "key": "Authorization", + "value": "Bearer " + } + ], + "body": { + "mode": "raw", + "raw": "{\n \"value\": \"reference #/components/schemas/Notification not found in the OpenAPI spec\"\n}", + "options": { + "raw": { + "headerFamily": "json", + "language": "json" + } + } + }, + "url": { + "raw": "{{baseUrl}}/super-admin/notifications/:uid", + "host": [ + "{{baseUrl}}" + ], + "path": [ + "super-admin", + "notifications", + ":uid" + ], + "variable": [ + { + "key": "uid" + } + ] + } + }, + "status": "Bad Request", + "code": 400, + "_postman_previewlanguage": "text", + "header": [], + "cookie": [], + "body": "" + } + ] + }, + { + "name": "Find notification by ID", + "request": { + "auth": { + "type": "bearer", + "bearer": [ + { + "key": "token", + "value": "{{bearerToken}}", + "type": "string" + } + ] + }, + "method": "GET", + "header": [ + { + "key": "Accept", + "value": "application/json" + } + ], + "url": { + "raw": "{{baseUrl}}/super-admin/notifications/:uid?uid=", + "host": [ + "{{baseUrl}}" + ], + "path": [ + "super-admin", + "notifications", + ":uid" + ], + "query": [ + { + "key": "uid", + "value": "", + "description": "(Required) ID of notification to return" + } + ], + "variable": [ + { + "key": "uid" + } + ] + }, + "description": "Returns a single notification" + }, + "response": [ + { + "name": "successful operation", + "originalRequest": { + "method": "GET", + "header": [ + { + "key": "Accept", + "value": "application/json" + }, + { + "description": "Added as a part of security scheme: bearer", + "key": "Authorization", + "value": "Bearer " + } + ], + "url": { + "raw": "{{baseUrl}}/super-admin/notifications/:uid?uid=", + "host": [ + "{{baseUrl}}" + ], + "path": [ + "super-admin", + "notifications", + ":uid" + ], + "query": [ + { + "key": "uid", + "value": "", + "description": "(Required) ID of notification to return" + } + ], + "variable": [ + { + "key": "uid" + } + ] + } + }, + "status": "OK", + "code": 200, + "_postman_previewlanguage": "json", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + } + ], + "cookie": [], + "body": "[\n {\n \"value\": \"reference #/components/schemas/Notification not found in the OpenAPI spec\"\n },\n {\n \"value\": \"reference #/components/schemas/Notification not found in the OpenAPI spec\"\n }\n]" + }, + { + "name": "Invalid status value", + "originalRequest": { + "method": "GET", + "header": [ + { + "description": "Added as a part of security scheme: bearer", + "key": "Authorization", + "value": "Bearer " + } + ], + "url": { + "raw": "{{baseUrl}}/super-admin/notifications/:uid?uid=", + "host": [ + "{{baseUrl}}" + ], + "path": [ + "super-admin", + "notifications", + ":uid" + ], + "query": [ + { + "key": "uid", + "value": "", + "description": "(Required) ID of notification to return" + } + ], + "variable": [ + { + "key": "uid" + } + ] + } + }, + "status": "Bad Request", + "code": 400, + "_postman_previewlanguage": "text", + "header": [], + "cookie": [], + "body": "" + } + ] + } + ] + }, + { + "name": "Get all notifications", + "request": { + "auth": { + "type": "bearer", + "bearer": [ + { + "key": "token", + "value": "{{bearerToken}}", + "type": "string" + } + ] + }, + "method": "GET", + "header": [ + { + "key": "Accept", + "value": "application/json" + } + ], + "url": { + "raw": "{{baseUrl}}/super-admin/notifications", + "host": [ + "{{baseUrl}}" + ], + "path": [ + "super-admin", + "notifications" + ] + } + }, + "response": [ + { + "name": "successful operation", + "originalRequest": { + "method": "GET", + "header": [ + { + "key": "Accept", + "value": "application/json" + }, + { + "description": "Added as a part of security scheme: bearer", + "key": "Authorization", + "value": "Bearer " + } + ], + "url": { + "raw": "{{baseUrl}}/super-admin/notifications", + "host": [ + "{{baseUrl}}" + ], + "path": [ + "super-admin", + "notifications" + ] + } + }, + "status": "OK", + "code": 200, + "_postman_previewlanguage": "json", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + } + ], + "cookie": [], + "body": "[\n {\n \"value\": \"reference #/components/schemas/Notification not found in the OpenAPI spec\"\n },\n {\n \"value\": \"reference #/components/schemas/Notification not found in the OpenAPI spec\"\n }\n]" + }, + { + "name": "Invalid status value", + "originalRequest": { + "method": "GET", + "header": [ + { + "description": "Added as a part of security scheme: bearer", + "key": "Authorization", + "value": "Bearer " + } + ], + "url": { + "raw": "{{baseUrl}}/super-admin/notifications", + "host": [ + "{{baseUrl}}" + ], + "path": [ + "super-admin", + "notifications" + ] + } + }, + "status": "Bad Request", + "code": 400, + "_postman_previewlanguage": "text", + "header": [], + "cookie": [], + "body": "" + } + ] + } + ] + }, + { + "name": "users", + "item": [ + { + "name": "{uid}", + "item": [ + { + "name": "Find user by ID", + "request": { + "auth": { + "type": "bearer", + "bearer": [ + { + "key": "token", + "value": "{{bearerToken}}", + "type": "string" + } + ] + }, + "method": "GET", + "header": [ + { + "key": "Accept", + "value": "application/json" + } + ], + "url": { + "raw": "{{baseUrl}}/super-admin/users/:uid?uid=", + "host": [ + "{{baseUrl}}" + ], + "path": [ + "super-admin", + "users", + ":uid" + ], + "query": [ + { + "key": "uid", + "value": "", + "description": "(Required) ID of user to return" + } + ], + "variable": [ + { + "key": "uid" + } + ] + } + }, + "response": [ + { + "name": "successful operation", + "originalRequest": { + "method": "GET", + "header": [ + { + "key": "Accept", + "value": "application/json" + }, + { + "description": "Added as a part of security scheme: bearer", + "key": "Authorization", + "value": "Bearer " + } + ], + "url": { + "raw": "{{baseUrl}}/super-admin/users/:uid?uid=", + "host": [ + "{{baseUrl}}" + ], + "path": [ + "super-admin", + "users", + ":uid" + ], + "query": [ + { + "key": "uid", + "value": "", + "description": "(Required) ID of user to return" + } + ], + "variable": [ + { + "key": "uid" + } + ] + } + }, + "status": "OK", + "code": 200, + "_postman_previewlanguage": "json", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + } + ], + "cookie": [], + "body": "[\n {\n \"uid\": \"\",\n \"idNot\": \"\",\n \"contact\": {\n \"first_name\": \"\",\n \"last_name\": \"\",\n \"email\": \"\",\n \"cell_phone_number\": \"\"\n },\n \"office_folders\": [\n {\n \"uid\": \"\",\n \"name\": \"\",\n \"office\": {\n \"uid\": \"\",\n \"name\": \"\"\n }\n },\n {\n \"uid\": \"\",\n \"name\": \"\",\n \"office\": {\n \"uid\": \"\",\n \"name\": \"\"\n }\n }\n ],\n \"role\": {\n \"uid\": \"\",\n \"name\": \"\",\n \"rules\": [\n {\n \"uid\": \"\",\n \"name\": \"\"\n },\n {\n \"uid\": \"\",\n \"name\": \"\"\n }\n ]\n },\n \"office_role\": {\n \"uid\": \"\",\n \"name\": \"\",\n \"rules\": [\n {\n \"uid\": \"\",\n \"name\": \"\"\n },\n {\n \"uid\": \"\",\n \"name\": \"\"\n }\n ],\n \"office\": {\n \"uid\": \"\",\n \"name\": \"\"\n }\n }\n },\n {\n \"uid\": \"\",\n \"idNot\": \"\",\n \"contact\": {\n \"first_name\": \"\",\n \"last_name\": \"\",\n \"email\": \"\",\n \"cell_phone_number\": \"\"\n },\n \"office_folders\": [\n {\n \"uid\": \"\",\n \"name\": \"\",\n \"office\": {\n \"uid\": \"\",\n \"name\": \"\"\n }\n },\n {\n \"uid\": \"\",\n \"name\": \"\",\n \"office\": {\n \"uid\": \"\",\n \"name\": \"\"\n }\n }\n ],\n \"role\": {\n \"uid\": \"\",\n \"name\": \"\",\n \"rules\": [\n {\n \"uid\": \"\",\n \"name\": \"\"\n },\n {\n \"uid\": \"\",\n \"name\": \"\"\n }\n ]\n },\n \"office_role\": {\n \"uid\": \"\",\n \"name\": \"\",\n \"rules\": [\n {\n \"uid\": \"\",\n \"name\": \"\"\n },\n {\n \"uid\": \"\",\n \"name\": \"\"\n }\n ],\n \"office\": {\n \"uid\": \"\",\n \"name\": \"\"\n }\n }\n }\n]" + }, + { + "name": "Invalid status value", + "originalRequest": { + "method": "GET", + "header": [ + { + "description": "Added as a part of security scheme: bearer", + "key": "Authorization", + "value": "Bearer " + } + ], + "url": { + "raw": "{{baseUrl}}/super-admin/users/:uid?uid=", + "host": [ + "{{baseUrl}}" + ], + "path": [ + "super-admin", + "users", + ":uid" + ], + "query": [ + { + "key": "uid", + "value": "", + "description": "(Required) ID of user to return" + } + ], + "variable": [ + { + "key": "uid" + } + ] + } + }, + "status": "Bad Request", + "code": 400, + "_postman_previewlanguage": "text", + "header": [], + "cookie": [], + "body": "" + } + ] + }, + { + "name": "Update an existing user", + "request": { + "auth": { + "type": "bearer", + "bearer": [ + { + "key": "token", + "value": "{{bearerToken}}", + "type": "string" + } + ] + }, + "method": "PUT", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + } + ], + "body": { + "mode": "raw", + "raw": "{\n \"uid\": \"\",\n \"idNot\": \"\",\n \"contact\": {\n \"first_name\": \"\",\n \"last_name\": \"\",\n \"email\": \"\",\n \"cell_phone_number\": \"\"\n },\n \"office_folders\": [\n {\n \"uid\": \"\",\n \"name\": \"\",\n \"office\": {\n \"uid\": \"\",\n \"name\": \"\"\n }\n },\n {\n \"uid\": \"\",\n \"name\": \"\",\n \"office\": {\n \"uid\": \"\",\n \"name\": \"\"\n }\n }\n ],\n \"role\": {\n \"uid\": \"\",\n \"name\": \"\",\n \"rules\": [\n {\n \"uid\": \"\",\n \"name\": \"\"\n },\n {\n \"uid\": \"\",\n \"name\": \"\"\n }\n ]\n },\n \"office_role\": {\n \"uid\": \"\",\n \"name\": \"\",\n \"rules\": [\n {\n \"uid\": \"\",\n \"name\": \"\"\n },\n {\n \"uid\": \"\",\n \"name\": \"\"\n }\n ],\n \"office\": {\n \"uid\": \"\",\n \"name\": \"\"\n }\n }\n}", + "options": { + "raw": { + "headerFamily": "json", + "language": "json" + } + } + }, + "url": { + "raw": "{{baseUrl}}/super-admin/users/:uid?uid=", + "host": [ + "{{baseUrl}}" + ], + "path": [ + "super-admin", + "users", + ":uid" + ], + "query": [ + { + "key": "uid", + "value": "", + "description": "(Required) ID of user to return" + } + ], + "variable": [ + { + "key": "uid" + } + ] + } + }, + "response": [ + { + "name": "successful operation", + "originalRequest": { + "method": "PUT", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + }, + { + "description": "Added as a part of security scheme: bearer", + "key": "Authorization", + "value": "Bearer " + } + ], + "body": { + "mode": "raw", + "raw": "{\n \"uid\": \"\",\n \"idNot\": \"\",\n \"contact\": {\n \"first_name\": \"\",\n \"last_name\": \"\",\n \"email\": \"\",\n \"cell_phone_number\": \"\"\n },\n \"office_folders\": [\n {\n \"uid\": \"\",\n \"name\": \"\",\n \"office\": {\n \"uid\": \"\",\n \"name\": \"\"\n }\n },\n {\n \"uid\": \"\",\n \"name\": \"\",\n \"office\": {\n \"uid\": \"\",\n \"name\": \"\"\n }\n }\n ],\n \"role\": {\n \"uid\": \"\",\n \"name\": \"\",\n \"rules\": [\n {\n \"uid\": \"\",\n \"name\": \"\"\n },\n {\n \"uid\": \"\",\n \"name\": \"\"\n }\n ]\n },\n \"office_role\": {\n \"uid\": \"\",\n \"name\": \"\",\n \"rules\": [\n {\n \"uid\": \"\",\n \"name\": \"\"\n },\n {\n \"uid\": \"\",\n \"name\": \"\"\n }\n ],\n \"office\": {\n \"uid\": \"\",\n \"name\": \"\"\n }\n }\n}", + "options": { + "raw": { + "headerFamily": "json", + "language": "json" + } + } + }, + "url": { + "raw": "{{baseUrl}}/super-admin/users/:uid?uid=", + "host": [ + "{{baseUrl}}" + ], + "path": [ + "super-admin", + "users", + ":uid" + ], + "query": [ + { + "key": "uid", + "value": "", + "description": "(Required) ID of user to return" + } + ], + "variable": [ + { + "key": "uid" + } + ] + } + }, + "status": "OK", + "code": 200, + "_postman_previewlanguage": "text", + "header": [], + "cookie": [], + "body": "" + }, + { + "name": "Invalid status value", + "originalRequest": { + "method": "PUT", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + }, + { + "description": "Added as a part of security scheme: bearer", + "key": "Authorization", + "value": "Bearer " + } + ], + "body": { + "mode": "raw", + "raw": "{\n \"uid\": \"\",\n \"idNot\": \"\",\n \"contact\": {\n \"first_name\": \"\",\n \"last_name\": \"\",\n \"email\": \"\",\n \"cell_phone_number\": \"\"\n },\n \"office_folders\": [\n {\n \"uid\": \"\",\n \"name\": \"\",\n \"office\": {\n \"uid\": \"\",\n \"name\": \"\"\n }\n },\n {\n \"uid\": \"\",\n \"name\": \"\",\n \"office\": {\n \"uid\": \"\",\n \"name\": \"\"\n }\n }\n ],\n \"role\": {\n \"uid\": \"\",\n \"name\": \"\",\n \"rules\": [\n {\n \"uid\": \"\",\n \"name\": \"\"\n },\n {\n \"uid\": \"\",\n \"name\": \"\"\n }\n ]\n },\n \"office_role\": {\n \"uid\": \"\",\n \"name\": \"\",\n \"rules\": [\n {\n \"uid\": \"\",\n \"name\": \"\"\n },\n {\n \"uid\": \"\",\n \"name\": \"\"\n }\n ],\n \"office\": {\n \"uid\": \"\",\n \"name\": \"\"\n }\n }\n}", + "options": { + "raw": { + "headerFamily": "json", + "language": "json" + } + } + }, + "url": { + "raw": "{{baseUrl}}/super-admin/users/:uid?uid=", + "host": [ + "{{baseUrl}}" + ], + "path": [ + "super-admin", + "users", + ":uid" + ], + "query": [ + { + "key": "uid", + "value": "", + "description": "(Required) ID of user to return" + } + ], + "variable": [ + { + "key": "uid" + } + ] + } + }, + "status": "Bad Request", + "code": 400, + "_postman_previewlanguage": "text", + "header": [], + "cookie": [], + "body": "" + } + ] + } + ] + }, + { + "name": "Get all users", + "request": { + "auth": { + "type": "bearer", + "bearer": [ + { + "key": "token", + "value": "{{bearerToken}}", + "type": "string" + } + ] + }, + "method": "GET", + "header": [ + { + "key": "Accept", + "value": "application/json" + } + ], + "url": { + "raw": "{{baseUrl}}/super-admin/users", + "host": [ + "{{baseUrl}}" + ], + "path": [ + "super-admin", + "users" + ] + } + }, + "response": [ + { + "name": "successful operation", + "originalRequest": { + "method": "GET", + "header": [ + { + "key": "Accept", + "value": "application/json" + }, + { + "description": "Added as a part of security scheme: bearer", + "key": "Authorization", + "value": "Bearer " + } + ], + "url": { + "raw": "{{baseUrl}}/super-admin/users", + "host": [ + "{{baseUrl}}" + ], + "path": [ + "super-admin", + "users" + ] + } + }, + "status": "OK", + "code": 200, + "_postman_previewlanguage": "json", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + } + ], + "cookie": [], + "body": "[\n {\n \"uid\": \"\",\n \"idNot\": \"\",\n \"contact\": {\n \"first_name\": \"\",\n \"last_name\": \"\",\n \"email\": \"\",\n \"cell_phone_number\": \"\"\n },\n \"office_folders\": [\n {\n \"uid\": \"\",\n \"name\": \"\",\n \"office\": {\n \"uid\": \"\",\n \"name\": \"\"\n }\n },\n {\n \"uid\": \"\",\n \"name\": \"\",\n \"office\": {\n \"uid\": \"\",\n \"name\": \"\"\n }\n }\n ],\n \"role\": {\n \"uid\": \"\",\n \"name\": \"\",\n \"rules\": [\n {\n \"uid\": \"\",\n \"name\": \"\"\n },\n {\n \"uid\": \"\",\n \"name\": \"\"\n }\n ]\n },\n \"office_role\": {\n \"uid\": \"\",\n \"name\": \"\",\n \"rules\": [\n {\n \"uid\": \"\",\n \"name\": \"\"\n },\n {\n \"uid\": \"\",\n \"name\": \"\"\n }\n ],\n \"office\": {\n \"uid\": \"\",\n \"name\": \"\"\n }\n }\n },\n {\n \"uid\": \"\",\n \"idNot\": \"\",\n \"contact\": {\n \"first_name\": \"\",\n \"last_name\": \"\",\n \"email\": \"\",\n \"cell_phone_number\": \"\"\n },\n \"office_folders\": [\n {\n \"uid\": \"\",\n \"name\": \"\",\n \"office\": {\n \"uid\": \"\",\n \"name\": \"\"\n }\n },\n {\n \"uid\": \"\",\n \"name\": \"\",\n \"office\": {\n \"uid\": \"\",\n \"name\": \"\"\n }\n }\n ],\n \"role\": {\n \"uid\": \"\",\n \"name\": \"\",\n \"rules\": [\n {\n \"uid\": \"\",\n \"name\": \"\"\n },\n {\n \"uid\": \"\",\n \"name\": \"\"\n }\n ]\n },\n \"office_role\": {\n \"uid\": \"\",\n \"name\": \"\",\n \"rules\": [\n {\n \"uid\": \"\",\n \"name\": \"\"\n },\n {\n \"uid\": \"\",\n \"name\": \"\"\n }\n ],\n \"office\": {\n \"uid\": \"\",\n \"name\": \"\"\n }\n }\n }\n]" + }, + { + "name": "Invalid status value", + "originalRequest": { + "method": "GET", + "header": [ + { + "description": "Added as a part of security scheme: bearer", + "key": "Authorization", + "value": "Bearer " + } + ], + "url": { + "raw": "{{baseUrl}}/super-admin/users", + "host": [ + "{{baseUrl}}" + ], + "path": [ + "super-admin", + "users" + ] + } + }, + "status": "Bad Request", + "code": 400, + "_postman_previewlanguage": "text", + "header": [], + "cookie": [], + "body": "" + } + ] + } + ] + }, + { + "name": "live-votes", + "item": [ + { + "name": "{uid}", + "item": [ + { + "name": "Delete an existing live vote", + "request": { + "auth": { + "type": "bearer", + "bearer": [ + { + "key": "token", + "value": "{{bearerToken}}", + "type": "string" + } + ] + }, + "method": "DELETE", + "header": [], + "url": { + "raw": "{{baseUrl}}/super-admin/live-votes/:uid", + "host": [ + "{{baseUrl}}" + ], + "path": [ + "super-admin", + "live-votes", + ":uid" + ], + "variable": [ + { + "key": "uid", + "value": "", + "description": "(Required) ID of live vote to return" + } + ] + }, + "description": "Returns a single live vote deleted" + }, + "response": [ + { + "name": "successful operation", + "originalRequest": { + "method": "DELETE", + "header": [ + { + "description": "Added as a part of security scheme: bearer", + "key": "Authorization", + "value": "Bearer " + } + ], + "url": { + "raw": "{{baseUrl}}/super-admin/live-votes/:uid", + "host": [ + "{{baseUrl}}" + ], + "path": [ + "super-admin", + "live-votes", + ":uid" + ], + "variable": [ + { + "key": "uid" + } + ] + } + }, + "status": "OK", + "code": 200, + "_postman_previewlanguage": "text", + "header": [], + "cookie": [], + "body": "" + }, + { + "name": "Invalid status value", + "originalRequest": { + "method": "DELETE", + "header": [ + { + "description": "Added as a part of security scheme: bearer", + "key": "Authorization", + "value": "Bearer " + } + ], + "url": { + "raw": "{{baseUrl}}/super-admin/live-votes/:uid", + "host": [ + "{{baseUrl}}" + ], + "path": [ + "super-admin", + "live-votes", + ":uid" + ], + "variable": [ + { + "key": "uid" + } + ] + } + }, + "status": "Bad Request", + "code": 400, + "_postman_previewlanguage": "text", + "header": [], + "cookie": [], + "body": "" + } + ] + } + ] + }, + { + "name": "Add a new live vote", + "request": { + "auth": { + "type": "bearer", + "bearer": [ + { + "key": "token", + "value": "{{bearerToken}}", + "type": "string" + } + ] + }, + "method": "POST", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + } + ], + "body": { + "mode": "raw", + "raw": "{\n \"value\": \"reference #/components/schemas/LiveVote not found in the OpenAPI spec\"\n}", + "options": { + "raw": { + "headerFamily": "json", + "language": "json" + } + } + }, + "url": { + "raw": "{{baseUrl}}/super-admin/live-votes", + "host": [ + "{{baseUrl}}" + ], + "path": [ + "super-admin", + "live-votes" + ] + } + }, + "response": [ + { + "name": "successful operation", + "originalRequest": { + "method": "POST", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + }, + { + "description": "Added as a part of security scheme: bearer", + "key": "Authorization", + "value": "Bearer " + } + ], + "body": { + "mode": "raw", + "raw": "{\n \"value\": \"reference #/components/schemas/LiveVote not found in the OpenAPI spec\"\n}", + "options": { + "raw": { + "headerFamily": "json", + "language": "json" + } + } + }, + "url": { + "raw": "{{baseUrl}}/super-admin/live-votes", + "host": [ + "{{baseUrl}}" + ], + "path": [ + "super-admin", + "live-votes" + ] + } + }, + "status": "OK", + "code": 200, + "_postman_previewlanguage": "text", + "header": [], + "cookie": [], + "body": "" + }, + { + "name": "Invalid status value", + "originalRequest": { + "method": "POST", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + }, + { + "description": "Added as a part of security scheme: bearer", + "key": "Authorization", + "value": "Bearer " + } + ], + "body": { + "mode": "raw", + "raw": "{\n \"value\": \"reference #/components/schemas/LiveVote not found in the OpenAPI spec\"\n}", + "options": { + "raw": { + "headerFamily": "json", + "language": "json" + } + } + }, + "url": { + "raw": "{{baseUrl}}/super-admin/live-votes", + "host": [ + "{{baseUrl}}" + ], + "path": [ + "super-admin", + "live-votes" + ] + } + }, + "status": "Bad Request", + "code": 400, + "_postman_previewlanguage": "text", + "header": [], + "cookie": [], + "body": "" + } + ] + } + ] + } + ] + } + ], + "variable": [ + { + "key": "baseUrl", + "value": "https://api.stg.lecoffre.smart-chain.fr" + } + ] +} \ No newline at end of file diff --git a/doc/swagger.json b/doc/swagger.json new file mode 100644 index 00000000..4a816344 --- /dev/null +++ b/doc/swagger.json @@ -0,0 +1,6744 @@ +{ + "openapi": "3.0.0", + "info": { + "description": "You can find out more about Swagger at [http://swagger.io](http://swagger.io) or on [irc.freenode.net, #swagger](http://swagger.io/irc/).", + "version": "1.0.0", + "title": "Le Coffre Api" + }, + "servers": [ + { + "url": "https://api.stg.lecoffre.smart-chain.fr" + } + ], + "tags": [ + { + "name": "customer" + }, + { + "name": "notary" + }, + { + "name": "admin" + }, + { + "name": "super-admin" + } + ], + "paths": { + "/notary/customers": { + "get": { + "tags": ["notary"], + "summary": "Get all customers", + "description": "", + "operationId": "getCustomers", + + "responses": { + "200": { + "description": "successful operation", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Customer" + } + } + } + }, + "400": { + "description": "Invalid status value" + } + }, + "security": [ + { + "bearerAuth": [] + } + ] + }, + "post": { + "tags": ["notary"], + "summary": "Add a new customer", + "description": "", + "operationId": "addCustomer", + + "requestBody": { + "description": "Customer object that needs to be added to the store", + "required": true, + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Customer" + } + } + } + }, + "responses": { + "200": { + "description": "successful operation", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Customer" + } + } + } + }, + "400": { + "description": "Invalid status value" + } + }, + "security": [ + { + "bearerAuth": [] + } + ] + } + }, + "/notary/customers/{uid}": { + "get": { + "tags": ["notary"], + "summary": "Find customer by ID", + "description": "Returns a single customer", + "operationId": "getCustomerById", + + "parameters": [ + { + "name": "uid", + "in": "path", + "description": "ID of customer to return", + "required": true, + "schema": { "type": "string" } + } + ], + "responses": { + "200": { + "description": "successful operation", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Customer" + } + } + } + }, + "400": { + "description": "Invalid status value" + } + }, + "security": [ + { + "bearerAuth": [] + } + ] + }, + "put": { + "tags": ["notary"], + "summary": "Update an existing customer", + "description": "Returns a single customer updated", + "operationId": "updateCustomer", + + "parameters": [ + { + "name": "uid", + "in": "path", + "description": "ID of customer to return", + "required": true, + "schema": { "type": "string" } + } + ], + "requestBody": { + "description": "Customer object that needs to be added to the store", + "required": true, + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Customer" + } + } + } + }, + "responses": { + "200": { + "description": "successful operation", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Customer" + } + } + } + }, + "400": { + "description": "Invalid status value" + } + }, + "security": [ + { + "bearerAuth": [] + } + ] + }, + "delete": { + "tags": ["notary"], + "summary": "Delete an existing customer", + "description": "Returns a single customer deleted", + "operationId": "deleteCustomer", + + "parameters": [ + { + "name": "uid", + "in": "path", + "description": "ID of customer to return", + "required": true, + "schema": { "type": "string" } + } + ], + "responses": { + "200": { + "description": "successful operation", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Customer" + } + } + } + }, + "400": { + "description": "Invalid status value" + } + }, + "security": [ + { + "bearerAuth": [] + } + ] + } + }, + "/notary/deeds": { + "get": { + "tags": ["notary"], + "summary": "Get all deeds", + "description": "", + "operationId": "getDeeds", + + "responses": { + "200": { + "description": "successful operation", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Deed" + } + } + } + }, + "400": { + "description": "Invalid status value" + } + }, + "security": [ + { + "bearerAuth": [] + } + ] + }, + "post": { + "tags": ["notary"], + "summary": "Add a new deed", + "description": "", + "operationId": "addDeed", + + "requestBody": { + "description": "Deed object that needs to be added to the store", + "required": true, + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Deed" + } + } + } + }, + "responses": { + "200": { + "description": "successful operation", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Deed" + } + } + } + }, + "400": { + "description": "Invalid status value" + } + }, + "security": [ + { + "bearerAuth": [] + } + ] + } + }, + "/notary/deeds/{uid}": { + "get": { + "tags": ["notary"], + "summary": "Find deed by ID", + "description": "Returns a single deed", + "operationId": "getDeedById", + + "parameters": [ + { + "name": "uid", + "in": "path", + "description": "ID of deed to return", + "required": true, + "schema": { "type": "string" } + } + ], + "responses": { + "200": { + "description": "successful operation", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Deed" + } + } + } + }, + "400": { + "description": "Invalid status value" + } + }, + "security": [ + { + "bearerAuth": [] + } + ] + }, + "put": { + "tags": ["notary"], + "summary": "Update an existing deed", + "description": "Returns a single deed updated", + "operationId": "updateDeed", + + "parameters": [ + { + "name": "uid", + "in": "path", + "description": "ID of deed to return", + "required": true, + "schema": { "type": "string" } + } + ], + "requestBody": { + "description": "Deed object that needs to be added to the store", + "required": true, + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Deed" + } + } + } + }, + "responses": { + "200": { + "description": "successful operation", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Deed" + } + } + } + }, + "400": { + "description": "Invalid status value" + } + }, + "security": [ + { + "bearerAuth": [] + } + ] + }, + "delete": { + "tags": ["notary"], + "summary": "Delete an existing deed", + "description": "Returns a single deed deleted", + "operationId": "deleteDeed", + + "parameters": [ + { + "name": "uid", + "in": "path", + "description": "ID of deed to return", + "required": true, + "schema": { "type": "string" } + } + ], + "requestBody": { + "description": "Deed object that needs to be added to the store", + "required": true, + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Deed" + } + } + } + }, + "responses": { + "200": { + "description": "successful operation", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Deed" + } + } + } + }, + "400": { + "description": "Invalid status value" + } + }, + "security": [ + { + "bearerAuth": [] + } + ] + } + }, + "/notary/deed-types": { + "get": { + "tags": ["notary"], + "summary": "Get all deed types", + "description": "", + "operationId": "getDeedTypes", + + "responses": { + "200": { + "description": "successful operation", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/DeedType" + } + } + } + }, + "400": { + "description": "Invalid status value" + } + }, + "security": [ + { + "bearerAuth": [] + } + ] + }, + "post": { + "tags": ["notary"], + "summary": "Add a new deed type", + "description": "", + "operationId": "addDeedType", + + "requestBody": { + "description": "DeedType object that needs to be added to the store", + "required": true, + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/DeedType" + } + } + } + }, + "responses": { + "200": { + "description": "successful operation", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/DeedType" + } + } + } + }, + "400": { + "description": "Invalid status value" + } + }, + "security": [ + { + "bearerAuth": [] + } + ] + } + }, + "/notary/deed-types/{uid}": { + "get": { + "tags": ["notary"], + "summary": "Find deed type by ID", + "description": "Returns a single deed type", + "operationId": "getDeedTypeById", + + "parameters": [ + { + "name": "uid", + "in": "path", + "description": "ID of deed type to return", + "required": true, + "schema": { "type": "string" } + } + ], + "responses": { + "200": { + "description": "successful operation", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/DeedType" + } + } + } + }, + "400": { + "description": "Invalid status value" + } + }, + "security": [ + { + "bearerAuth": [] + } + ] + }, + "put": { + "tags": ["notary"], + "summary": "Update an existing deed type", + "description": "Returns a single deed type updated", + "operationId": "updateDeedType", + + "parameters": [ + { + "name": "uid", + "in": "path", + "description": "ID of deed type to return", + "required": true, + "schema": { "type": "string" } + } + ], + "requestBody": { + "description": "DeedType object that needs to be added to the store", + "required": true, + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/DeedType" + } + } + } + }, + "responses": { + "200": { + "description": "successful operation", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/DeedType" + } + } + } + }, + "400": { + "description": "Invalid status value" + } + }, + "security": [ + { + "bearerAuth": [] + } + ] + } + }, + "/notary/documents": { + "get": { + "tags": ["notary"], + "summary": "Get all documents", + "description": "", + "operationId": "getDocuments", + + "responses": { + "200": { + "description": "successful operation", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Document" + } + } + } + }, + "400": { + "description": "Invalid status value" + } + }, + "security": [ + { + "bearerAuth": [] + } + ] + }, + "post": { + "tags": ["notary"], + "summary": "Add a new document", + "description": "", + "operationId": "addDocument", + + "requestBody": { + "description": "Document object that needs to be added to the store", + "required": true, + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Document" + } + } + } + }, + "responses": { + "200": { + "description": "successful operation", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Document" + } + } + } + }, + "400": { + "description": "Invalid status value" + } + }, + "security": [ + { + "bearerAuth": [] + } + ] + } + }, + "/notary/documents/{uid}": { + "get": { + "tags": ["notary"], + "summary": "Find document by ID", + "description": "Returns a single document", + "operationId": "getDocumentById", + + "parameters": [ + { + "name": "uid", + "in": "path", + "description": "ID of document to return", + "required": true, + "schema": { "type": "string" } + } + ], + "responses": { + "200": { + "description": "successful operation", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Document" + } + } + } + }, + "400": { + "description": "Invalid status value" + } + }, + "security": [ + { + "bearerAuth": [] + } + ] + }, + "put": { + "tags": ["notary"], + "summary": "Update an existing document", + "description": "Returns a single document updated", + "operationId": "updateDocument", + + "parameters": [ + { + "name": "uid", + "in": "path", + "description": "ID of document to return", + "required": true, + "schema": { "type": "string" } + } + ], + "requestBody": { + "description": "Document object that needs to be added to the store", + "required": true, + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Document" + } + } + } + }, + "responses": { + "200": { + "description": "successful operation", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Document" + } + } + } + }, + "400": { + "description": "Invalid status value" + } + }, + "security": [ + { + "bearerAuth": [] + } + ] + }, + "delete": { + "tags": ["notary"], + "summary": "Delete an existing document", + "description": "Returns a single document deleted", + "operationId": "deleteDocument", + + "parameters": [ + { + "name": "uid", + "in": "path", + "description": "ID of document to return", + "required": true, + "schema": { "type": "string" } + } + ], + "requestBody": { + "description": "Document object that needs to be added to the store", + "required": true, + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Document" + } + } + } + }, + "responses": { + "200": { + "description": "successful operation", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Document" + } + } + } + }, + "400": { + "description": "Invalid status value" + } + }, + "security": [ + { + "bearerAuth": [] + } + ] + } + }, + "/notary/document-types": { + "get": { + "tags": ["notary"], + "summary": "Get all document types", + "description": "", + "operationId": "getDocumentTypes", + "responses": { + "200": { + "description": "successful operation", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/DocumentType" + } + } + } + }, + "400": { + "description": "Invalid status value" + } + }, + "security": [ + { + "bearerAuth": [] + } + ] + }, + "post": { + "tags": ["notary"], + "summary": "Add a new document type", + "description": "", + "operationId": "addDocumentType", + + "requestBody": { + "description": "DocumentType object that needs to be added to the store", + "required": true, + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/DocumentType" + } + } + } + }, + "responses": { + "200": { + "description": "successful operation", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/DocumentType" + } + } + } + }, + "400": { + "description": "Invalid status value" + } + }, + "security": [ + { + "bearerAuth": [] + } + ] + } + }, + "/notary/document-types/{uid}": { + "get": { + "tags": ["notary"], + "summary": "Find document type by ID", + "description": "Returns a single document type", + "operationId": "getDocumentTypeById", + + "parameters": [ + { + "name": "uid", + "in": "path", + "description": "ID of document type to return", + "required": true, + "schema": { "type": "string" } + } + ], + "responses": { + "200": { + "description": "successful operation", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/DocumentType" + } + } + } + }, + "400": { + "description": "Invalid status value" + } + }, + "security": [ + { + "bearerAuth": [] + } + ] + }, + "put": { + "tags": ["notary"], + "summary": "Update an existing document type", + "description": "Returns a single document type updated", + "operationId": "updateDocumentType", + + "parameters": [ + { + "name": "uid", + "in": "path", + "description": "ID of document type to return", + "required": true, + "schema": { "type": "string" } + } + ], + "requestBody": { + "description": "DocumentType object that needs to be added to the store", + "required": true, + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/DocumentType" + } + } + } + }, + "responses": { + "200": { + "description": "successful operation", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/DocumentType" + } + } + } + }, + "400": { + "description": "Invalid status value" + } + }, + "security": [ + { + "bearerAuth": [] + } + ] + }, + "delete": { + "tags": ["notary"], + "summary": "Delete an existing document type", + "description": "Returns a single document type deleted", + "operationId": "deleteDocumentType", + + "parameters": [ + { + "name": "uid", + "in": "path", + "description": "ID of document type to return", + "required": true, + "schema": { "type": "string" } + } + ], + "responses": { + "200": { + "description": "successful operation", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/DocumentType" + } + } + } + }, + "400": { + "description": "Invalid status value" + } + }, + "security": [ + { + "bearerAuth": [] + } + ] + } + }, + "/notary/files": { + "get": { + "tags": ["notary"], + "summary": "Get all files", + "description": "", + "operationId": "getFiles", + + "responses": { + "200": { + "description": "successful operation" + }, + "400": { + "description": "Invalid status value" + } + }, + "security": [ + { + "bearerAuth": [] + } + ] + } + }, + "/notary/files/{uid}": { + "get": { + "tags": ["notary"], + "summary": "Find file by ID", + "description": "Returns a single file", + "operationId": "getFileById", + + "parameters": [ + { + "name": "uid", + "in": "path", + "description": "ID of file to return", + "required": true, + "schema": { "type": "string" } + } + ], + "responses": { + "200": { + "description": "successful operation" + }, + "400": { + "description": "Invalid status value" + } + }, + "security": [ + { + "bearerAuth": [] + } + ] + }, + "delete": { + "tags": ["notary"], + "summary": "Delete an existing file", + "description": "Returns a single file deleted", + "operationId": "deleteFile", + + "parameters": [ + { + "name": "uid", + "in": "path", + "description": "ID of file to return", + "required": true, + "schema": { "type": "string" } + } + ], + "responses": { + "200": { + "description": "successful operation" + }, + "400": { + "description": "Invalid status value" + } + }, + "security": [ + { + "bearerAuth": [] + } + ] + } + }, + "/notary/files/download/{uid}": { + "get": { + "tags": ["notary"], + "summary": "Download file by ID", + "description": "Returns a single file", + "operationId": "downloadFileById", + + "parameters": [ + { + "name": "uid", + "in": "path", + "description": "ID of file to return", + "required": true, + "schema": { "type": "string" } + } + ], + "responses": { + "200": { + "description": "successful operation" + }, + "400": { + "description": "Invalid status value" + } + }, + "security": [ + { + "bearerAuth": [] + } + ] + } + }, + "/notary/anchors": { + "get": { + "tags": ["notary"], + "summary": "Get all anchors", + "description": "", + "operationId": "getAnchors", + + "responses": { + "200": { + "description": "successful operation" + }, + "400": { + "description": "Invalid status value" + } + }, + "security": [ + { + "bearerAuth": [] + } + ] + } + }, + "/notary/anchors/{uid}": { + "get": { + "tags": ["notary"], + "summary": "Find anchor by ID", + "description": "Returns a single anchor", + "operationId": "getAnchorById", + + "parameters": [ + { + "name": "uid", + "in": "path", + "description": "ID of anchor to return", + "required": true, + "schema": { "type": "string" } + } + ], + "responses": { + "200": { + "description": "successful operation" + }, + "400": { + "description": "Invalid status value" + } + }, + "security": [ + { + "bearerAuth": [] + } + ] + }, + "post": { + "tags": ["notary"], + "summary": "Add a new anchor", + "description": "", + "operationId": "addAnchor", + + "parameters": [ + { + "name": "uid", + "in": "path", + "description": "ID of anchor to return", + "required": true, + "schema": { "type": "string" } + } + ], + "requestBody": { + "description": "Anchor object that needs to be added to the store", + "required": true, + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Anchor" + } + } + } + }, + "responses": { + "200": { + "description": "successful operation" + }, + "400": { + "description": "Invalid status value" + } + }, + "security": [ + { + "bearerAuth": [] + } + ] + } + }, + "/notary/anchors/download/{uid}": { + "get": { + "tags": ["notary"], + "summary": "Download anchor by ID", + "description": "Returns a single anchor", + "operationId": "downloadAnchorById", + + "parameters": [ + { + "name": "uid", + "in": "path", + "description": "ID of anchor to return", + "required": true, + "schema": { "type": "string" } + } + ], + "responses": { + "200": { + "description": "successful operation" + }, + "400": { + "description": "Invalid status value" + } + }, + "security": [ + { + "bearerAuth": [] + } + ] + } + }, + "/notary/folders": { + "get": { + "tags": ["notary"], + "summary": "Get all folders", + "description": "", + "operationId": "getFolders", + + "responses": { + "200": { + "description": "successful operation" + }, + "400": { + "description": "Invalid status value" + } + }, + "security": [ + { + "bearerAuth": [] + } + ] + }, + "post": { + "tags": ["notary"], + "summary": "Add a new folder", + "description": "", + "operationId": "addFolder", + + "requestBody": { + "description": "Folder object that needs to be added to the store", + "required": true, + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Folder" + } + } + } + }, + "responses": { + "200": { + "description": "successful operation" + }, + "400": { + "description": "Invalid status value" + } + }, + "security": [ + { + "bearerAuth": [] + } + ] + } + }, + "/notary/folders/{uid}": { + "put": { + "tags": ["notary"], + "summary": "Update an existing folder", + "description": "Returns a single folder updated", + "operationId": "updateFolder", + + "parameters": [ + { + "name": "uid", + "in": "path", + "description": "ID of folder to return", + "required": true, + "schema": { "type": "string" } + } + ], + "requestBody": { + "description": "Folder object that needs to be added to the store", + "required": true, + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Folder" + } + } + } + }, + "responses": { + "200": { + "description": "successful operation" + }, + "400": { + "description": "Invalid status value" + } + }, + "security": [ + { + "bearerAuth": [] + } + ] + }, + "delete": { + "tags": ["notary"], + "summary": "Delete an existing folder", + "description": "Returns a single folder deleted", + "operationId": "deleteFolder", + + "parameters": [ + { + "name": "uid", + "in": "path", + "description": "ID of folder to return", + "required": true, + "schema": { "type": "string" } + } + ], + "responses": { + "200": { + "description": "successful operation" + }, + "400": { + "description": "Invalid status value" + } + }, + "security": [ + { + "bearerAuth": [] + } + ] + }, + "get": { + "tags": ["notary"], + "summary": "Find folder by ID", + "description": "Returns a single folder", + "operationId": "getFolderById", + + "parameters": [ + { + "name": "uid", + "in": "query", + "description": "ID of folder to return", + "required": true, + "schema": { "type": "string" } + } + ], + "responses": { + "200": { + "description": "successful operation", + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { + "$ref": "#/components/schemas/Folder" + } + } + } + } + }, + "400": { + "description": "Invalid status value" + } + }, + "security": [ + { + "bearerAuth": [] + } + ] + } + }, + "/notary/office-roles": { + "get": { + "tags": ["notary"], + "summary": "Get all office roles", + "description": "", + "operationId": "getOfficeRoles", + + "responses": { + "200": { + "description": "successful operation", + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { + "$ref": "#/components/schemas/OfficeRole" + } + } + } + } + }, + "400": { + "description": "Invalid status value" + } + }, + "security": [ + { + "bearerAuth": [] + } + ] + } + }, + "/notary/office-roles/{uid}": { + "get": { + "tags": ["notary"], + "summary": "Find office role by ID", + "description": "Returns a single office role", + "operationId": "getOfficeRoleById", + + "parameters": [ + { + "name": "uid", + "in": "query", + "description": "ID of office role to return", + "required": true, + "schema": { "type": "string" } + } + ], + "responses": { + "200": { + "description": "successful operation", + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { + "$ref": "#/components/schemas/OfficeRole" + } + } + } + } + }, + "400": { + "description": "Invalid status value" + } + }, + "security": [ + { + "bearerAuth": [] + } + ] + } + }, + "/notary/offices": { + "get": { + "tags": ["notary"], + "summary": "Get all offices", + "description": "", + "operationId": "getOffices", + + "responses": { + "200": { + "description": "successful operation", + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { + "$ref": "#/components/schemas/Office" + } + } + } + } + }, + "400": { + "description": "Invalid status value" + } + }, + "security": [ + { + "bearerAuth": [] + } + ] + } + }, + "/notary/offices/{uid}": { + "get": { + "tags": ["notary"], + "summary": "Find office by ID", + "description": "Returns a single office", + "operationId": "getOfficeById", + + "parameters": [ + { + "name": "uid", + "in": "query", + "description": "ID of office to return", + "required": true, + "schema": { "type": "string" } + } + ], + "responses": { + "200": { + "description": "successful operation", + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { + "$ref": "#/components/schemas/Office" + } + } + } + } + }, + "400": { + "description": "Invalid status value" + } + }, + "security": [ + { + "bearerAuth": [] + } + ] + } + }, + "/notary/roles": { + "get": { + "tags": ["notary"], + "summary": "Get all roles", + "description": "", + "operationId": "getRoles", + + "responses": { + "200": { + "description": "successful operation", + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { + "$ref": "#/components/schemas/Role" + } + } + } + } + }, + "400": { + "description": "Invalid status value" + } + }, + "security": [ + { + "bearerAuth": [] + } + ] + } + }, + "/notary/roles/{uid}": { + "get": { + "tags": ["notary"], + "summary": "Find role by ID", + "description": "Returns a single role", + "operationId": "getRoleById", + + "parameters": [ + { + "name": "uid", + "in": "query", + "description": "ID of role to return", + "required": true, + "schema": { "type": "string" } + } + ], + "responses": { + "200": { + "description": "successful operation", + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { + "$ref": "#/components/schemas/Role" + } + } + } + } + }, + "400": { + "description": "Invalid status value" + } + }, + "security": [ + { + "bearerAuth": [] + } + ] + } + }, + "/notary/notifications": { + "get": { + "tags": ["notary"], + "summary": "Get all notifications", + "description": "", + "operationId": "getNotifications", + + "responses": { + "200": { + "description": "successful operation", + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { + "$ref": "#/components/schemas/Notification" + } + } + } + } + }, + "400": { + "description": "Invalid status value" + } + }, + "security": [ + { + "bearerAuth": [] + } + ] + } + }, + "/notary/notifications/{uid}": { + "put": { + "tags": ["notary"], + "summary": "Update an existing notification", + "description": "Returns a single notification updated", + "operationId": "updateNotification", + + "parameters": [ + { + "name": "uid", + "in": "path", + "description": "ID of notification to return", + "required": true, + "schema": { "type": "string" } + } + ], + "requestBody": { + "description": "Notification object that needs to be added to the store", + "required": true, + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Notification" + } + } + } + }, + "responses": { + "200": { + "description": "successful operation" + }, + "400": { + "description": "Invalid status value" + } + }, + "security": [ + { + "bearerAuth": [] + } + ] + }, + "get": { + "tags": ["notary"], + "summary": "Find notification by ID", + "description": "Returns a single notification", + "operationId": "getNotificationById", + + "parameters": [ + { + "name": "uid", + "in": "query", + "description": "ID of notification to return", + "required": true, + "schema": { "type": "string" } + } + ], + "responses": { + "200": { + "description": "successful operation", + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { + "$ref": "#/components/schemas/Notification" + } + } + } + } + }, + "400": { + "description": "Invalid status value" + } + }, + "security": [ + { + "bearerAuth": [] + } + ] + } + }, + "/notary/users": { + "get": { + "tags": ["notary"], + "summary": "Get all users", + "description": "", + "operationId": "getUsers", + + "responses": { + "200": { + "description": "successful operation", + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { + "$ref": "#/components/schemas/User" + } + } + } + } + }, + "400": { + "description": "Invalid status value" + } + }, + "security": [ + { + "bearerAuth": [] + } + ] + } + }, + "/notary/users/{uid}": { + "get": { + "tags": ["notary"], + "summary": "Find user by ID", + "description": "", + "operationId": "getUserById", + + "parameters": [ + { + "name": "uid", + "in": "query", + "description": "ID of user to return", + "required": true, + "schema": { "type": "string" } + } + ], + "responses": { + "200": { + "description": "successful operation", + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { + "$ref": "#/components/schemas/User" + } + } + } + } + }, + "400": { + "description": "Invalid status value" + } + }, + "security": [ + { + "bearerAuth": [] + } + ] + } + }, + "/customer/documents": { + "get": { + "tags": ["customer"], + "summary": "Get all documents", + "description": "", + "operationId": "getDocuments", + + "responses": { + "200": { + "description": "successful operation", + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { + "$ref": "#/components/schemas/Document" + } + } + } + } + }, + "400": { + "description": "Invalid status value" + } + }, + "security": [ + { + "bearerAuth": [] + } + ] + }, + "post": { + "tags": ["customer"], + "summary": "Add a new document", + "description": "", + "operationId": "addDocument", + + "requestBody": { + "description": "Document object that needs to be added to the store", + "required": true, + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Document" + } + } + } + }, + "responses": { + "200": { + "description": "successful operation", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Document" + } + } + } + }, + "400": { + "description": "Invalid status value" + } + }, + "security": [ + { + "bearerAuth": [] + } + ] + } + }, + "/customer/documents/{uid}": { + "get": { + "tags": ["customer"], + "summary": "Find document by ID", + "description": "Returns a single document", + "operationId": "getDocumentById", + + "parameters": [ + { + "name": "uid", + "in": "path", + "description": "ID of document to return", + "required": true, + "schema": { "type": "string" } + } + ], + "responses": { + "200": { + "description": "successful operation", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Document" + } + } + } + }, + "400": { + "description": "Invalid status value" + } + }, + "security": [ + { + "bearerAuth": [] + } + ] + } + }, + "/customer/files": { + "get": { + "tags": ["customer"], + "summary": "Get all files", + "description": "", + "operationId": "getFiles", + + "responses": { + "200": { + "description": "successful operation" + }, + "400": { + "description": "Invalid status value" + } + }, + "security": [ + { + "bearerAuth": [] + } + ] + }, + "post": { + "tags": ["customer"], + "summary": "Add a new file", + "description": "", + "operationId": "addFile", + "parameters": [ + { + "name": "q", + "in": "path", + "description": "requested document object", + "required": true, + "schema": { + "type": "object", + "properties": { + "document": { + "type": "object", + "properties": { + "uid": { + "type": "string" + } + } + } + } + } + } + ], + + "requestBody": { + "description": "File object that needs to be added to the store", + "required": true, + "content": { + "multipart/form-data": { + "schema": { + "type": "object", + "properties": { + "file": { + "type": "string", + "format": "binary" + } + } + } + } + } + }, + "responses": { + "200": { + "description": "successful operation" + }, + "400": { + "description": "Invalid status value" + } + }, + "security": [ + { + "bearerAuth": [] + } + ] + } + }, + "/customer/files/{uid}": { + "get": { + "tags": ["customer"], + "summary": "Find file by ID", + "description": "Returns a single file", + "operationId": "getFileById", + + "parameters": [ + { + "name": "uid", + "in": "path", + "description": "ID of file to return", + "required": true, + "schema": { "type": "string" } + } + ], + "responses": { + "200": { + "description": "successful operation" + }, + "400": { + "description": "Invalid status value" + } + }, + "security": [ + { + "bearerAuth": [] + } + ] + }, + "put": { + "tags": ["customer"], + "summary": "Update an existing file", + "description": "Returns a single file updated", + "operationId": "updateFile", + + "parameters": [ + { + "name": "uid", + "in": "path", + "description": "ID of file to return", + "required": true, + "schema": { "type": "string" } + } + ], + "requestBody": { + "description": "File object that needs to be added to the store", + "required": true, + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/File" + } + } + } + }, + "responses": { + "200": { + "description": "successful operation" + }, + "400": { + "description": "Invalid status value" + } + }, + "security": [ + { + "bearerAuth": [] + } + ] + }, + "delete": { + "tags": ["customer"], + "summary": "Delete an existing file", + "description": "Returns a single file deleted", + "operationId": "deleteFile", + + "parameters": [ + { + "name": "uid", + "in": "path", + "description": "ID of file to return", + "required": true, + "schema": { "type": "string" } + } + ], + "responses": { + "200": { + "description": "successful operation" + }, + "400": { + "description": "Invalid status value" + } + }, + "security": [ + { + "bearerAuth": [] + } + ] + } + }, + "/customer/folders": { + "get": { + "tags": ["customer"], + "summary": "Get all folders", + "description": "", + "operationId": "getFolders", + + "responses": { + "200": { + "description": "successful operation", + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { + "$ref": "#/components/schemas/Folder" + } + } + } + } + }, + "400": { + "description": "Invalid status value" + } + }, + "security": [ + { + "bearerAuth": [] + } + ] + } + }, + "/customer/folders/{uid}": { + "get": { + "tags": ["customer"], + "summary": "Find folder by ID", + "description": "Returns a single folder", + "operationId": "getFolderById", + + "parameters": [ + { + "name": "uid", + "in": "path", + "description": "ID of folder to return", + "required": true, + "schema": { "type": "string" } + } + ], + "responses": { + "200": { + "description": "successful operation" + }, + "400": { + "description": "Invalid status value" + } + }, + "security": [ + { + "bearerAuth": [] + } + ] + } + }, + "/admin/customers": { + "get": { + "tags": ["admin"], + "summary": "Get all customers", + "description": "", + "operationId": "getCustomers", + + "responses": { + "200": { + "description": "successful operation", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Customer" + } + } + } + }, + "400": { + "description": "Invalid status value" + } + }, + "security": [ + { + "bearerAuth": [] + } + ] + }, + "post": { + "tags": ["admin"], + "summary": "Add a new customer", + "description": "", + "operationId": "addCustomer", + + "requestBody": { + "description": "Customer object that needs to be added to the store", + "required": true, + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Customer" + } + } + } + }, + "responses": { + "200": { + "description": "successful operation", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Customer" + } + } + } + }, + "400": { + "description": "Invalid status value" + } + }, + "security": [ + { + "bearerAuth": [] + } + ] + } + }, + "/admin/customers/{uid}": { + "get": { + "tags": ["admin"], + "summary": "Find customer by ID", + "description": "Returns a single customer", + "operationId": "getCustomerById", + + "parameters": [ + { + "name": "uid", + "in": "path", + "description": "ID of customer to return", + "required": true, + "schema": { "type": "string" } + } + ], + "responses": { + "200": { + "description": "successful operation", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Customer" + } + } + } + }, + "400": { + "description": "Invalid status value" + } + }, + "security": [ + { + "bearerAuth": [] + } + ] + }, + "put": { + "tags": ["admin"], + "summary": "Update an existing customer", + "description": "Returns a single customer updated", + "operationId": "updateCustomer", + + "parameters": [ + { + "name": "uid", + "in": "path", + "description": "ID of customer to return", + "required": true, + "schema": { "type": "string" } + } + ], + "requestBody": { + "description": "Customer object that needs to be added to the store", + "required": true, + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Customer" + } + } + } + }, + "responses": { + "200": { + "description": "successful operation", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Customer" + } + } + } + }, + "400": { + "description": "Invalid status value" + } + }, + "security": [ + { + "bearerAuth": [] + } + ] + }, + "delete": { + "tags": ["admin"], + "summary": "Delete an existing customer", + "description": "Returns a single customer deleted", + "operationId": "deleteCustomer", + + "parameters": [ + { + "name": "uid", + "in": "path", + "description": "ID of customer to return", + "required": true, + "schema": { "type": "string" } + } + ], + "responses": { + "200": { + "description": "successful operation", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Customer" + } + } + } + }, + "400": { + "description": "Invalid status value" + } + }, + "security": [ + { + "bearerAuth": [] + } + ] + } + }, + "/admin/deeds": { + "get": { + "tags": ["admin"], + "summary": "Get all deeds", + "description": "", + "operationId": "getDeeds", + + "responses": { + "200": { + "description": "successful operation", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Deed" + } + } + } + }, + "400": { + "description": "Invalid status value" + } + }, + "security": [ + { + "bearerAuth": [] + } + ] + }, + "post": { + "tags": ["admin"], + "summary": "Add a new deed", + "description": "", + "operationId": "addDeed", + + "requestBody": { + "description": "Deed object that needs to be added to the store", + "required": true, + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Deed" + } + } + } + }, + "responses": { + "200": { + "description": "successful operation", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Deed" + } + } + } + }, + "400": { + "description": "Invalid status value" + } + }, + "security": [ + { + "bearerAuth": [] + } + ] + } + }, + "/admin/deeds/{uid}": { + "get": { + "tags": ["admin"], + "summary": "Find deed by ID", + "description": "Returns a single deed", + "operationId": "getDeedById", + + "parameters": [ + { + "name": "uid", + "in": "path", + "description": "ID of deed to return", + "required": true, + "schema": { "type": "string" } + } + ], + "responses": { + "200": { + "description": "successful operation", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Deed" + } + } + } + }, + "400": { + "description": "Invalid status value" + } + }, + "security": [ + { + "bearerAuth": [] + } + ] + }, + "put": { + "tags": ["admin"], + "summary": "Update an existing deed", + "description": "Returns a single deed updated", + "operationId": "updateDeed", + + "parameters": [ + { + "name": "uid", + "in": "path", + "description": "ID of deed to return", + "required": true, + "schema": { "type": "string" } + } + ], + "requestBody": { + "description": "Deed object that needs to be added to the store", + "required": true, + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Deed" + } + } + } + }, + "responses": { + "200": { + "description": "successful operation", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Deed" + } + } + } + }, + "400": { + "description": "Invalid status value" + } + }, + "security": [ + { + "bearerAuth": [] + } + ] + }, + "delete": { + "tags": ["admin"], + "summary": "Delete an existing deed", + "description": "Returns a single deed deleted", + "operationId": "deleteDeed", + + "parameters": [ + { + "name": "uid", + "in": "path", + "description": "ID of deed to return", + "required": true, + "schema": { "type": "string" } + } + ], + "requestBody": { + "description": "Deed object that needs to be added to the store", + "required": true, + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Deed" + } + } + } + }, + "responses": { + "200": { + "description": "successful operation", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Deed" + } + } + } + }, + "400": { + "description": "Invalid status value" + } + }, + "security": [ + { + "bearerAuth": [] + } + ] + } + }, + "/admin/deed-types": { + "get": { + "tags": ["admin"], + "summary": "Get all deed types", + "description": "", + "operationId": "getDeedTypes", + + "responses": { + "200": { + "description": "successful operation", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/DeedType" + } + } + } + }, + "400": { + "description": "Invalid status value" + } + }, + "security": [ + { + "bearerAuth": [] + } + ] + }, + "post": { + "tags": ["admin"], + "summary": "Add a new deed type", + "description": "", + "operationId": "addDeedType", + + "requestBody": { + "description": "DeedType object that needs to be added to the store", + "required": true, + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/DeedType" + } + } + } + }, + "responses": { + "200": { + "description": "successful operation", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/DeedType" + } + } + } + }, + "400": { + "description": "Invalid status value" + } + }, + "security": [ + { + "bearerAuth": [] + } + ] + } + }, + "/admin/deed-types/{uid}": { + "get": { + "tags": ["admin"], + "summary": "Find deed type by ID", + "description": "Returns a single deed type", + "operationId": "getDeedTypeById", + + "parameters": [ + { + "name": "uid", + "in": "path", + "description": "ID of deed type to return", + "required": true, + "schema": { "type": "string" } + } + ], + "responses": { + "200": { + "description": "successful operation", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/DeedType" + } + } + } + }, + "400": { + "description": "Invalid status value" + } + }, + "security": [ + { + "bearerAuth": [] + } + ] + }, + "put": { + "tags": ["admin"], + "summary": "Update an existing deed type", + "description": "Returns a single deed type updated", + "operationId": "updateDeedType", + + "parameters": [ + { + "name": "uid", + "in": "path", + "description": "ID of deed type to return", + "required": true, + "schema": { "type": "string" } + } + ], + "requestBody": { + "description": "DeedType object that needs to be added to the store", + "required": true, + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/DeedType" + } + } + } + }, + "responses": { + "200": { + "description": "successful operation", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/DeedType" + } + } + } + }, + "400": { + "description": "Invalid status value" + } + }, + "security": [ + { + "bearerAuth": [] + } + ] + } + }, + "/admin/documents": { + "get": { + "tags": ["admin"], + "summary": "Get all documents", + "description": "", + "operationId": "getDocuments", + + "responses": { + "200": { + "description": "successful operation", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Document" + } + } + } + }, + "400": { + "description": "Invalid status value" + } + }, + "security": [ + { + "bearerAuth": [] + } + ] + }, + "post": { + "tags": ["admin"], + "summary": "Add a new document", + "description": "", + "operationId": "addDocument", + + "requestBody": { + "description": "Document object that needs to be added to the store", + "required": true, + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Document" + } + } + } + }, + "responses": { + "200": { + "description": "successful operation", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Document" + } + } + } + }, + "400": { + "description": "Invalid status value" + } + }, + "security": [ + { + "bearerAuth": [] + } + ] + } + }, + "/admin/documents/{uid}": { + "get": { + "tags": ["admin"], + "summary": "Find document by ID", + "description": "Returns a single document", + "operationId": "getDocumentById", + + "parameters": [ + { + "name": "uid", + "in": "path", + "description": "ID of document to return", + "required": true, + "schema": { "type": "string" } + } + ], + "responses": { + "200": { + "description": "successful operation", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Document" + } + } + } + }, + "400": { + "description": "Invalid status value" + } + }, + "security": [ + { + "bearerAuth": [] + } + ] + }, + "put": { + "tags": ["admin"], + "summary": "Update an existing document", + "description": "Returns a single document updated", + "operationId": "updateDocument", + + "parameters": [ + { + "name": "uid", + "in": "path", + "description": "ID of document to return", + "required": true, + "schema": { "type": "string" } + } + ], + "requestBody": { + "description": "Document object that needs to be added to the store", + "required": true, + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Document" + } + } + } + }, + "responses": { + "200": { + "description": "successful operation", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Document" + } + } + } + }, + "400": { + "description": "Invalid status value" + } + }, + "security": [ + { + "bearerAuth": [] + } + ] + }, + "delete": { + "tags": ["admin"], + "summary": "Delete an existing document", + "description": "Returns a single document deleted", + "operationId": "deleteDocument", + + "parameters": [ + { + "name": "uid", + "in": "path", + "description": "ID of document to return", + "required": true, + "schema": { "type": "string" } + } + ], + "requestBody": { + "description": "Document object that needs to be added to the store", + "required": true, + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Document" + } + } + } + }, + "responses": { + "200": { + "description": "successful operation", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Document" + } + } + } + }, + "400": { + "description": "Invalid status value" + } + }, + "security": [ + { + "bearerAuth": [] + } + ] + } + }, + "/admin/document-types": { + "get": { + "tags": ["admin"], + "summary": "Get all document types", + "description": "", + "operationId": "getDocumentTypes", + + "responses": { + "200": { + "description": "successful operation", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/DocumentType" + } + } + } + }, + "400": { + "description": "Invalid status value" + } + }, + "security": [ + { + "bearerAuth": [] + } + ] + }, + "post": { + "tags": ["admin"], + "summary": "Add a new document type", + "description": "", + "operationId": "addDocumentType", + + "requestBody": { + "description": "DocumentType object that needs to be added to the store", + "required": true, + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/DocumentType" + } + } + } + }, + "responses": { + "200": { + "description": "successful operation", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/DocumentType" + } + } + } + }, + "400": { + "description": "Invalid status value" + } + }, + "security": [ + { + "bearerAuth": [] + } + ] + } + }, + "/admin/document-types/{uid}": { + "get": { + "tags": ["admin"], + "summary": "Find document type by ID", + "description": "Returns a single document type", + "operationId": "getDocumentTypeById", + + "parameters": [ + { + "name": "uid", + "in": "path", + "description": "ID of document type to return", + "required": true, + "schema": { "type": "string" } + } + ], + "responses": { + "200": { + "description": "successful operation", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/DocumentType" + } + } + } + }, + "400": { + "description": "Invalid status value" + } + }, + "security": [ + { + "bearerAuth": [] + } + ] + }, + "put": { + "tags": ["admin"], + "summary": "Update an existing document type", + "description": "Returns a single document type updated", + "operationId": "updateDocumentType", + + "parameters": [ + { + "name": "uid", + "in": "path", + "description": "ID of document type to return", + "required": true, + "schema": { "type": "string" } + } + ], + "requestBody": { + "description": "DocumentType object that needs to be added to the store", + "required": true, + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/DocumentType" + } + } + } + }, + "responses": { + "200": { + "description": "successful operation", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/DocumentType" + } + } + } + }, + "400": { + "description": "Invalid status value" + } + }, + "security": [ + { + "bearerAuth": [] + } + ] + }, + "delete": { + "tags": ["admin"], + "summary": "Delete an existing document type", + "description": "Returns a single document type deleted", + "operationId": "deleteDocumentType", + + "parameters": [ + { + "name": "uid", + "in": "path", + "description": "ID of document type to return", + "required": true, + "schema": { "type": "string" } + } + ], + "responses": { + "200": { + "description": "successful operation", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/DocumentType" + } + } + } + }, + "400": { + "description": "Invalid status value" + } + }, + "security": [ + { + "bearerAuth": [] + } + ] + } + }, + "/admin/files": { + "get": { + "tags": ["admin"], + "summary": "Get all files", + "description": "", + "operationId": "getFiles", + + "responses": { + "200": { + "description": "successful operation" + }, + "400": { + "description": "Invalid status value" + } + }, + "security": [ + { + "bearerAuth": [] + } + ] + } + }, + "/admin/files/{uid}": { + "get": { + "tags": ["admin"], + "summary": "Find file by ID", + "description": "Returns a single file", + "operationId": "getFileById", + + "parameters": [ + { + "name": "uid", + "in": "path", + "description": "ID of file to return", + "required": true, + "schema": { "type": "string" } + } + ], + "responses": { + "200": { + "description": "successful operation" + }, + "400": { + "description": "Invalid status value" + } + }, + "security": [ + { + "bearerAuth": [] + } + ] + }, + "delete": { + "tags": ["admin"], + "summary": "Delete an existing file", + "description": "Returns a single file deleted", + "operationId": "deleteFile", + + "parameters": [ + { + "name": "uid", + "in": "path", + "description": "ID of file to return", + "required": true, + "schema": { "type": "string" } + } + ], + "responses": { + "200": { + "description": "successful operation" + }, + "400": { + "description": "Invalid status value" + } + }, + "security": [ + { + "bearerAuth": [] + } + ] + } + }, + "/admin/files/download/{uid}": { + "get": { + "tags": ["admin"], + "summary": "Download file by ID", + "description": "Returns a single file", + "operationId": "downloadFileById", + + "parameters": [ + { + "name": "uid", + "in": "path", + "description": "ID of file to return", + "required": true, + "schema": { "type": "string" } + } + ], + "responses": { + "200": { + "description": "successful operation" + }, + "400": { + "description": "Invalid status value" + } + }, + "security": [ + { + "bearerAuth": [] + } + ] + } + }, + "/admin/anchors": { + "get": { + "tags": ["admin"], + "summary": "Get all anchors", + "description": "", + "operationId": "getAnchors", + + "responses": { + "200": { + "description": "successful operation" + }, + "400": { + "description": "Invalid status value" + } + }, + "security": [ + { + "bearerAuth": [] + } + ] + } + }, + "/admin/anchors/{uid}": { + "get": { + "tags": ["admin"], + "summary": "Find anchor by ID", + "description": "Returns a single anchor", + "operationId": "getAnchorById", + + "parameters": [ + { + "name": "uid", + "in": "path", + "description": "ID of anchor to return", + "required": true, + "schema": { "type": "string" } + } + ], + "responses": { + "200": { + "description": "successful operation" + }, + "400": { + "description": "Invalid status value" + } + }, + "security": [ + { + "bearerAuth": [] + } + ] + }, + "post": { + "tags": ["admin"], + "summary": "Add a new anchor", + "description": "", + "operationId": "addAnchor", + + "parameters": [ + { + "name": "uid", + "in": "path", + "description": "ID of anchor to return", + "required": true, + "schema": { "type": "string" } + } + ], + "requestBody": { + "description": "Anchor object that needs to be added to the store", + "required": true, + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Anchor" + } + } + } + }, + "responses": { + "200": { + "description": "successful operation" + }, + "400": { + "description": "Invalid status value" + } + }, + "security": [ + { + "bearerAuth": [] + } + ] + } + }, + "/admin/anchors/download/{uid}": { + "get": { + "tags": ["admin"], + "summary": "Download anchor by ID", + "description": "Returns a single anchor", + "operationId": "downloadAnchorById", + + "parameters": [ + { + "name": "uid", + "in": "path", + "description": "ID of anchor to return", + "required": true, + "schema": { "type": "string" } + } + ], + "responses": { + "200": { + "description": "successful operation" + }, + "400": { + "description": "Invalid status value" + } + }, + "security": [ + { + "bearerAuth": [] + } + ] + } + }, + "/admin/folders": { + "get": { + "tags": ["admin"], + "summary": "Get all folders", + "description": "", + "operationId": "getFolders", + + "responses": { + "200": { + "description": "successful operation" + }, + "400": { + "description": "Invalid status value" + } + }, + "security": [ + { + "bearerAuth": [] + } + ] + }, + "post": { + "tags": ["admin"], + "summary": "Add a new folder", + "description": "", + "operationId": "addFolder", + + "requestBody": { + "description": "Folder object that needs to be added to the store", + "required": true, + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Folder" + } + } + } + }, + "responses": { + "200": { + "description": "successful operation" + }, + "400": { + "description": "Invalid status value" + } + }, + "security": [ + { + "bearerAuth": [] + } + ] + } + }, + "/admin/folders/{uid}": { + "put": { + "tags": ["admin"], + "summary": "Update an existing folder", + "description": "Returns a single folder updated", + "operationId": "updateFolder", + + "parameters": [ + { + "name": "uid", + "in": "path", + "description": "ID of folder to return", + "required": true, + "schema": { "type": "string" } + } + ], + "requestBody": { + "description": "Folder object that needs to be added to the store", + "required": true, + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Folder" + } + } + } + }, + "responses": { + "200": { + "description": "successful operation" + }, + "400": { + "description": "Invalid status value" + } + }, + "security": [ + { + "bearerAuth": [] + } + ] + }, + "delete": { + "tags": ["admin"], + "summary": "Delete an existing folder", + "description": "Returns a single folder deleted", + "operationId": "deleteFolder", + + "parameters": [ + { + "name": "uid", + "in": "path", + "description": "ID of folder to return", + "required": true, + "schema": { "type": "string" } + } + ], + "responses": { + "200": { + "description": "successful operation" + }, + "400": { + "description": "Invalid status value" + } + }, + "security": [ + { + "bearerAuth": [] + } + ] + }, + "get": { + "tags": ["admin"], + "summary": "Find folder by ID", + "description": "Returns a single folder", + "operationId": "getFolderById", + + "parameters": [ + { + "name": "uid", + "in": "query", + "description": "ID of folder to return", + "required": true, + "schema": { "type": "string" } + } + ], + "responses": { + "200": { + "description": "successful operation", + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { + "$ref": "#/components/schemas/Folder" + } + } + } + } + }, + "400": { + "description": "Invalid status value" + } + }, + "security": [ + { + "bearerAuth": [] + } + ] + } + }, + "/admin/office-roles": { + "get": { + "tags": ["admin"], + "summary": "Get all office roles", + "description": "", + "operationId": "getOfficeRoles", + + "responses": { + "200": { + "description": "successful operation", + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { + "$ref": "#/components/schemas/OfficeRole" + } + } + } + } + }, + "400": { + "description": "Invalid status value" + } + }, + "security": [ + { + "bearerAuth": [] + } + ] + }, + "post": { + "tags": ["admin"], + "summary": "Add a new office role", + "description": "", + "operationId": "addOfficeRole", + + "requestBody": { + "description": "OfficeRole object that needs to be added to the store", + "required": true, + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/OfficeRole" + } + } + } + }, + "responses": { + "200": { + "description": "successful operation", + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { + "$ref": "#/components/schemas/OfficeRole" + } + } + } + } + }, + "400": { + "description": "Invalid status value" + } + }, + "security": [ + { + "bearerAuth": [] + } + ] + } + }, + "/admin/office-roles/{uid}": { + "get": { + "tags": ["admin"], + "summary": "Find office role by ID", + "description": "Returns a single office role", + "operationId": "getOfficeRoleById", + + "parameters": [ + { + "name": "uid", + "in": "query", + "description": "ID of office role to return", + "required": true, + "schema": { "type": "string" } + } + ], + "responses": { + "200": { + "description": "successful operation", + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { + "$ref": "#/components/schemas/OfficeRole" + } + } + } + } + }, + "400": { + "description": "Invalid status value" + } + }, + "security": [ + { + "bearerAuth": [] + } + ] + }, + "put": { + "tags": ["admin"], + "summary": "Update an existing office role", + "description": "Returns a single office role updated", + "operationId": "updateOfficeRole", + "parameters": [ + { + "name": "uid", + "in": "query", + "description": "ID of office role to return", + "required": true, + "schema": { "type": "string" } + } + ], + "requestBody": { + "description": "OfficeRole object that needs to be added to the store", + "required": true, + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/OfficeRole" + } + } + } + }, + "responses": { + "200": { + "description": "successful operation", + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { + "$ref": "#/components/schemas/OfficeRole" + } + } + } + } + }, + "400": { + "description": "Invalid status value" + } + }, + "security": [ + { + "bearerAuth": [] + } + ] + } + }, + "/admin/offices": { + "get": { + "tags": ["admin"], + "summary": "Get all offices", + "description": "", + "operationId": "getOffices", + + "responses": { + "200": { + "description": "successful operation", + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { + "$ref": "#/components/schemas/Office" + } + } + } + } + }, + "400": { + "description": "Invalid status value" + } + }, + "security": [ + { + "bearerAuth": [] + } + ] + } + }, + "/admin/offices/{uid}": { + "get": { + "tags": ["admin"], + "summary": "Find office by ID", + "description": "Returns a single office", + "operationId": "getOfficeById", + + "parameters": [ + { + "name": "uid", + "in": "query", + "description": "ID of office to return", + "required": true, + "schema": { "type": "string" } + } + ], + "responses": { + "200": { + "description": "successful operation", + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { + "$ref": "#/components/schemas/Office" + } + } + } + } + }, + "400": { + "description": "Invalid status value" + } + }, + "security": [ + { + "bearerAuth": [] + } + ] + } + }, + "/admin/roles": { + "get": { + "tags": ["admin"], + "summary": "Get all roles", + "description": "", + "operationId": "getRoles", + + "responses": { + "200": { + "description": "successful operation", + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { + "$ref": "#/components/schemas/Role" + } + } + } + } + }, + "400": { + "description": "Invalid status value" + } + }, + "security": [ + { + "bearerAuth": [] + } + ] + } + }, + "/admin/roles/{uid}": { + "get": { + "tags": ["admin"], + "summary": "Find role by ID", + "description": "Returns a single role", + "operationId": "getRoleById", + + "parameters": [ + { + "name": "uid", + "in": "query", + "description": "ID of role to return", + "required": true, + "schema": { "type": "string" } + } + ], + "responses": { + "200": { + "description": "successful operation", + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { + "$ref": "#/components/schemas/Role" + } + } + } + } + }, + "400": { + "description": "Invalid status value" + } + }, + "security": [ + { + "bearerAuth": [] + } + ] + } + }, + "/admin/notifications": { + "get": { + "tags": ["admin"], + "summary": "Get all notifications", + "description": "", + "operationId": "getNotifications", + + "responses": { + "200": { + "description": "successful operation", + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { + "$ref": "#/components/schemas/Notification" + } + } + } + } + }, + "400": { + "description": "Invalid status value" + } + }, + "security": [ + { + "bearerAuth": [] + } + ] + } + }, + "/admin/notifications/{uid}": { + "put": { + "tags": ["admin"], + "summary": "Update an existing notification", + "description": "Returns a single notification updated", + "operationId": "updateNotification", + + "parameters": [ + { + "name": "uid", + "in": "path", + "description": "ID of notification to return", + "required": true, + "schema": { "type": "string" } + } + ], + "requestBody": { + "description": "Notification object that needs to be added to the store", + "required": true, + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Notification" + } + } + } + }, + "responses": { + "200": { + "description": "successful operation" + }, + "400": { + "description": "Invalid status value" + } + }, + "security": [ + { + "bearerAuth": [] + } + ] + }, + "get": { + "tags": ["admin"], + "summary": "Find notification by ID", + "description": "Returns a single notification", + "operationId": "getNotificationById", + + "parameters": [ + { + "name": "uid", + "in": "query", + "description": "ID of notification to return", + "required": true, + "schema": { "type": "string" } + } + ], + "responses": { + "200": { + "description": "successful operation", + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { + "$ref": "#/components/schemas/Notification" + } + } + } + } + }, + "400": { + "description": "Invalid status value" + } + }, + "security": [ + { + "bearerAuth": [] + } + ] + } + }, + "/admin/users": { + "get": { + "tags": ["admin"], + "summary": "Get all users", + "description": "", + "operationId": "getUsers", + + "responses": { + "200": { + "description": "successful operation", + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { + "$ref": "#/components/schemas/User" + } + } + } + } + }, + "400": { + "description": "Invalid status value" + } + }, + "security": [ + { + "bearerAuth": [] + } + ] + } + }, + "/admin/users/{uid}": { + "get": { + "tags": ["admin"], + "summary": "Find user by ID", + "description": "", + "operationId": "getUserById", + + "parameters": [ + { + "name": "uid", + "in": "query", + "description": "ID of user to return", + "required": true, + "schema": { "type": "string" } + } + ], + "responses": { + "200": { + "description": "successful operation", + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { + "$ref": "#/components/schemas/User" + } + } + } + } + }, + "400": { + "description": "Invalid status value" + } + }, + "security": [ + { + "bearerAuth": [] + } + ] + }, + "put": { + "tags": ["admin"], + "summary": "Update an existing user", + "description": "", + "operationId": "updateUser", + + "parameters": [ + { + "name": "uid", + "in": "query", + "description": "ID of user to return", + "required": true, + "schema": { "type": "string" } + } + ], + "requestBody": { + "description": "User object that needs to be added to the store", + "required": true, + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/User" + } + } + } + }, + "responses": { + "200": { + "description": "successful operation" + }, + "400": { + "description": "Invalid status value" + } + }, + "security": [ + { + "bearerAuth": [] + } + ] + } + }, + "/super-admin/customers": { + "get": { + "tags": ["super-admin"], + "summary": "Get all customers", + "description": "", + "operationId": "getCustomers", + + "responses": { + "200": { + "description": "successful operation", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Customer" + } + } + } + }, + "400": { + "description": "Invalid status value" + } + }, + "security": [ + { + "bearerAuth": [] + } + ] + }, + "post": { + "tags": ["super-admin"], + "summary": "Add a new customer", + "description": "", + "operationId": "addCustomer", + + "requestBody": { + "description": "Customer object that needs to be added to the store", + "required": true, + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Customer" + } + } + } + }, + "responses": { + "200": { + "description": "successful operation", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Customer" + } + } + } + }, + "400": { + "description": "Invalid status value" + } + }, + "security": [ + { + "bearerAuth": [] + } + ] + } + }, + "/super-admin/customers/{uid}": { + "get": { + "tags": ["super-admin"], + "summary": "Find customer by ID", + "description": "Returns a single customer", + "operationId": "getCustomerById", + + "parameters": [ + { + "name": "uid", + "in": "path", + "description": "ID of customer to return", + "required": true, + "schema": { "type": "string" } + } + ], + "responses": { + "200": { + "description": "successful operation", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Customer" + } + } + } + }, + "400": { + "description": "Invalid status value" + } + }, + "security": [ + { + "bearerAuth": [] + } + ] + }, + "put": { + "tags": ["super-admin"], + "summary": "Update an existing customer", + "description": "Returns a single customer updated", + "operationId": "updateCustomer", + + "parameters": [ + { + "name": "uid", + "in": "path", + "description": "ID of customer to return", + "required": true, + "schema": { "type": "string" } + } + ], + "requestBody": { + "description": "Customer object that needs to be added to the store", + "required": true, + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Customer" + } + } + } + }, + "responses": { + "200": { + "description": "successful operation", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Customer" + } + } + } + }, + "400": { + "description": "Invalid status value" + } + }, + "security": [ + { + "bearerAuth": [] + } + ] + }, + "delete": { + "tags": ["super-admin"], + "summary": "Delete an existing customer", + "description": "Returns a single customer deleted", + "operationId": "deleteCustomer", + + "parameters": [ + { + "name": "uid", + "in": "path", + "description": "ID of customer to return", + "required": true, + "schema": { "type": "string" } + } + ], + "responses": { + "200": { + "description": "successful operation", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Customer" + } + } + } + }, + "400": { + "description": "Invalid status value" + } + }, + "security": [ + { + "bearerAuth": [] + } + ] + } + }, + "/super-admin/deeds": { + "get": { + "tags": ["super-admin"], + "summary": "Get all deeds", + "description": "", + "operationId": "getDeeds", + + "responses": { + "200": { + "description": "successful operation", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Deed" + } + } + } + }, + "400": { + "description": "Invalid status value" + } + }, + "security": [ + { + "bearerAuth": [] + } + ] + }, + "post": { + "tags": ["super-admin"], + "summary": "Add a new deed", + "description": "", + "operationId": "addDeed", + + "requestBody": { + "description": "Deed object that needs to be added to the store", + "required": true, + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Deed" + } + } + } + }, + "responses": { + "200": { + "description": "successful operation", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Deed" + } + } + } + }, + "400": { + "description": "Invalid status value" + } + }, + "security": [ + { + "bearerAuth": [] + } + ] + } + }, + "/super-admin/deeds/{uid}": { + "get": { + "tags": ["super-admin"], + "summary": "Find deed by ID", + "description": "Returns a single deed", + "operationId": "getDeedById", + + "parameters": [ + { + "name": "uid", + "in": "path", + "description": "ID of deed to return", + "required": true, + "schema": { "type": "string" } + } + ], + "responses": { + "200": { + "description": "successful operation", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Deed" + } + } + } + }, + "400": { + "description": "Invalid status value" + } + }, + "security": [ + { + "bearerAuth": [] + } + ] + }, + "put": { + "tags": ["super-admin"], + "summary": "Update an existing deed", + "description": "Returns a single deed updated", + "operationId": "updateDeed", + + "parameters": [ + { + "name": "uid", + "in": "path", + "description": "ID of deed to return", + "required": true, + "schema": { "type": "string" } + } + ], + "requestBody": { + "description": "Deed object that needs to be added to the store", + "required": true, + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Deed" + } + } + } + }, + "responses": { + "200": { + "description": "successful operation", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Deed" + } + } + } + }, + "400": { + "description": "Invalid status value" + } + }, + "security": [ + { + "bearerAuth": [] + } + ] + }, + "delete": { + "tags": ["super-admin"], + "summary": "Delete an existing deed", + "description": "Returns a single deed deleted", + "operationId": "deleteDeed", + + "parameters": [ + { + "name": "uid", + "in": "path", + "description": "ID of deed to return", + "required": true, + "schema": { "type": "string" } + } + ], + "requestBody": { + "description": "Deed object that needs to be added to the store", + "required": true, + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Deed" + } + } + } + }, + "responses": { + "200": { + "description": "successful operation", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Deed" + } + } + } + }, + "400": { + "description": "Invalid status value" + } + }, + "security": [ + { + "bearerAuth": [] + } + ] + } + }, + "/super-admin/deed-types": { + "get": { + "tags": ["super-admin"], + "summary": "Get all deed types", + "description": "", + "operationId": "getDeedTypes", + + "responses": { + "200": { + "description": "successful operation", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/DeedType" + } + } + } + }, + "400": { + "description": "Invalid status value" + } + }, + "security": [ + { + "bearerAuth": [] + } + ] + }, + "post": { + "tags": ["super-admin"], + "summary": "Add a new deed type", + "description": "", + "operationId": "addDeedType", + + "requestBody": { + "description": "DeedType object that needs to be added to the store", + "required": true, + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/DeedType" + } + } + } + }, + "responses": { + "200": { + "description": "successful operation", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/DeedType" + } + } + } + }, + "400": { + "description": "Invalid status value" + } + }, + "security": [ + { + "bearerAuth": [] + } + ] + } + }, + "/super-admin/deed-types/{uid}": { + "get": { + "tags": ["super-admin"], + "summary": "Find deed type by ID", + "description": "Returns a single deed type", + "operationId": "getDeedTypeById", + + "parameters": [ + { + "name": "uid", + "in": "path", + "description": "ID of deed type to return", + "required": true, + "schema": { "type": "string" } + } + ], + "responses": { + "200": { + "description": "successful operation", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/DeedType" + } + } + } + }, + "400": { + "description": "Invalid status value" + } + }, + "security": [ + { + "bearerAuth": [] + } + ] + }, + "put": { + "tags": ["super-admin"], + "summary": "Update an existing deed type", + "description": "Returns a single deed type updated", + "operationId": "updateDeedType", + + "parameters": [ + { + "name": "uid", + "in": "path", + "description": "ID of deed type to return", + "required": true, + "schema": { "type": "string" } + } + ], + "requestBody": { + "description": "DeedType object that needs to be added to the store", + "required": true, + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/DeedType" + } + } + } + }, + "responses": { + "200": { + "description": "successful operation", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/DeedType" + } + } + } + }, + "400": { + "description": "Invalid status value" + } + }, + "security": [ + { + "bearerAuth": [] + } + ] + } + }, + "/super-admin/documents": { + "get": { + "tags": ["super-admin"], + "summary": "Get all documents", + "description": "", + "operationId": "getDocuments", + + "responses": { + "200": { + "description": "successful operation", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Document" + } + } + } + }, + "400": { + "description": "Invalid status value" + } + }, + "security": [ + { + "bearerAuth": [] + } + ] + }, + "post": { + "tags": ["super-admin"], + "summary": "Add a new document", + "description": "", + "operationId": "addDocument", + + "requestBody": { + "description": "Document object that needs to be added to the store", + "required": true, + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Document" + } + } + } + }, + "responses": { + "200": { + "description": "successful operation", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Document" + } + } + } + }, + "400": { + "description": "Invalid status value" + } + }, + "security": [ + { + "bearerAuth": [] + } + ] + } + }, + "/super-admin/documents/{uid}": { + "get": { + "tags": ["super-admin"], + "summary": "Find document by ID", + "description": "Returns a single document", + "operationId": "getDocumentById", + + "parameters": [ + { + "name": "uid", + "in": "path", + "description": "ID of document to return", + "required": true, + "schema": { "type": "string" } + } + ], + "responses": { + "200": { + "description": "successful operation", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Document" + } + } + } + }, + "400": { + "description": "Invalid status value" + } + }, + "security": [ + { + "bearerAuth": [] + } + ] + }, + "put": { + "tags": ["super-admin"], + "summary": "Update an existing document", + "description": "Returns a single document updated", + "operationId": "updateDocument", + + "parameters": [ + { + "name": "uid", + "in": "path", + "description": "ID of document to return", + "required": true, + "schema": { "type": "string" } + } + ], + "requestBody": { + "description": "Document object that needs to be added to the store", + "required": true, + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Document" + } + } + } + }, + "responses": { + "200": { + "description": "successful operation", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Document" + } + } + } + }, + "400": { + "description": "Invalid status value" + } + }, + "security": [ + { + "bearerAuth": [] + } + ] + }, + "delete": { + "tags": ["super-admin"], + "summary": "Delete an existing document", + "description": "Returns a single document deleted", + "operationId": "deleteDocument", + + "parameters": [ + { + "name": "uid", + "in": "path", + "description": "ID of document to return", + "required": true, + "schema": { "type": "string" } + } + ], + "requestBody": { + "description": "Document object that needs to be added to the store", + "required": true, + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Document" + } + } + } + }, + "responses": { + "200": { + "description": "successful operation", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Document" + } + } + } + }, + "400": { + "description": "Invalid status value" + } + }, + "security": [ + { + "bearerAuth": [] + } + ] + } + }, + "/super-admin/document-types": { + "get": { + "tags": ["super-admin"], + "summary": "Get all document types", + "description": "", + "operationId": "getDocumentTypes", + + "responses": { + "200": { + "description": "successful operation", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/DocumentType" + } + } + } + }, + "400": { + "description": "Invalid status value" + } + }, + "security": [ + { + "bearerAuth": [] + } + ] + }, + "post": { + "tags": ["super-admin"], + "summary": "Add a new document type", + "description": "", + "operationId": "addDocumentType", + + "requestBody": { + "description": "DocumentType object that needs to be added to the store", + "required": true, + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/DocumentType" + } + } + } + }, + "responses": { + "200": { + "description": "successful operation", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/DocumentType" + } + } + } + }, + "400": { + "description": "Invalid status value" + } + }, + "security": [ + { + "bearerAuth": [] + } + ] + } + }, + "/super-admin/document-types/{uid}": { + "get": { + "tags": ["super-admin"], + "summary": "Find document type by ID", + "description": "Returns a single document type", + "operationId": "getDocumentTypeById", + + "parameters": [ + { + "name": "uid", + "in": "path", + "description": "ID of document type to return", + "required": true, + "schema": { "type": "string" } + } + ], + "responses": { + "200": { + "description": "successful operation", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/DocumentType" + } + } + } + }, + "400": { + "description": "Invalid status value" + } + }, + "security": [ + { + "bearerAuth": [] + } + ] + }, + "put": { + "tags": ["super-admin"], + "summary": "Update an existing document type", + "description": "Returns a single document type updated", + "operationId": "updateDocumentType", + + "parameters": [ + { + "name": "uid", + "in": "path", + "description": "ID of document type to return", + "required": true, + "schema": { "type": "string" } + } + ], + "requestBody": { + "description": "DocumentType object that needs to be added to the store", + "required": true, + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/DocumentType" + } + } + } + }, + "responses": { + "200": { + "description": "successful operation", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/DocumentType" + } + } + } + }, + "400": { + "description": "Invalid status value" + } + }, + "security": [ + { + "bearerAuth": [] + } + ] + }, + "delete": { + "tags": ["super-admin"], + "summary": "Delete an existing document type", + "description": "Returns a single document type deleted", + "operationId": "deleteDocumentType", + + "parameters": [ + { + "name": "uid", + "in": "path", + "description": "ID of document type to return", + "required": true, + "schema": { "type": "string" } + } + ], + "responses": { + "200": { + "description": "successful operation", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/DocumentType" + } + } + } + }, + "400": { + "description": "Invalid status value" + } + }, + "security": [ + { + "bearerAuth": [] + } + ] + } + }, + "/super-admin/files": { + "get": { + "tags": ["super-admin"], + "summary": "Get all files", + "description": "", + "operationId": "getFiles", + + "responses": { + "200": { + "description": "successful operation" + }, + "400": { + "description": "Invalid status value" + } + }, + "security": [ + { + "bearerAuth": [] + } + ] + } + }, + "/super-admin/files/{uid}": { + "get": { + "tags": ["super-admin"], + "summary": "Find file by ID", + "description": "Returns a single file", + "operationId": "getFileById", + + "parameters": [ + { + "name": "uid", + "in": "path", + "description": "ID of file to return", + "required": true, + "schema": { "type": "string" } + } + ], + "responses": { + "200": { + "description": "successful operation" + }, + "400": { + "description": "Invalid status value" + } + }, + "security": [ + { + "bearerAuth": [] + } + ] + }, + "delete": { + "tags": ["super-admin"], + "summary": "Delete an existing file", + "description": "Returns a single file deleted", + "operationId": "deleteFile", + + "parameters": [ + { + "name": "uid", + "in": "path", + "description": "ID of file to return", + "required": true, + "schema": { "type": "string" } + } + ], + "responses": { + "200": { + "description": "successful operation" + }, + "400": { + "description": "Invalid status value" + } + }, + "security": [ + { + "bearerAuth": [] + } + ] + } + }, + "/super-admin/files/download/{uid}": { + "get": { + "tags": ["super-admin"], + "summary": "Download file by ID", + "description": "Returns a single file", + "operationId": "downloadFileById", + + "parameters": [ + { + "name": "uid", + "in": "path", + "description": "ID of file to return", + "required": true, + "schema": { "type": "string" } + } + ], + "responses": { + "200": { + "description": "successful operation" + }, + "400": { + "description": "Invalid status value" + } + }, + "security": [ + { + "bearerAuth": [] + } + ] + } + }, + "/super-admin/anchors": { + "get": { + "tags": ["super-admin"], + "summary": "Get all anchors", + "description": "", + "operationId": "getAnchors", + + "responses": { + "200": { + "description": "successful operation" + }, + "400": { + "description": "Invalid status value" + } + }, + "security": [ + { + "bearerAuth": [] + } + ] + } + }, + "/super-admin/anchors/{uid}": { + "get": { + "tags": ["super-admin"], + "summary": "Find anchor by ID", + "description": "Returns a single anchor", + "operationId": "getAnchorById", + + "parameters": [ + { + "name": "uid", + "in": "path", + "description": "ID of anchor to return", + "required": true, + "schema": { "type": "string" } + } + ], + "responses": { + "200": { + "description": "successful operation" + }, + "400": { + "description": "Invalid status value" + } + }, + "security": [ + { + "bearerAuth": [] + } + ] + }, + "post": { + "tags": ["super-admin"], + "summary": "Add a new anchor", + "description": "", + "operationId": "addAnchor", + + "parameters": [ + { + "name": "uid", + "in": "path", + "description": "ID of anchor to return", + "required": true, + "schema": { "type": "string" } + } + ], + "requestBody": { + "description": "Anchor object that needs to be added to the store", + "required": true, + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Anchor" + } + } + } + }, + "responses": { + "200": { + "description": "successful operation" + }, + "400": { + "description": "Invalid status value" + } + }, + "security": [ + { + "bearerAuth": [] + } + ] + } + }, + "/super-admin/anchors/download/{uid}": { + "get": { + "tags": ["super-admin"], + "summary": "Download anchor by ID", + "description": "Returns a single anchor", + "operationId": "downloadAnchorById", + + "parameters": [ + { + "name": "uid", + "in": "path", + "description": "ID of anchor to return", + "required": true, + "schema": { "type": "string" } + } + ], + "responses": { + "200": { + "description": "successful operation" + }, + "400": { + "description": "Invalid status value" + } + }, + "security": [ + { + "bearerAuth": [] + } + ] + } + }, + "/super-admin/folders": { + "get": { + "tags": ["super-admin"], + "summary": "Get all folders", + "description": "", + "operationId": "getFolders", + + "responses": { + "200": { + "description": "successful operation" + }, + "400": { + "description": "Invalid status value" + } + }, + "security": [ + { + "bearerAuth": [] + } + ] + }, + "post": { + "tags": ["super-admin"], + "summary": "Add a new folder", + "description": "", + "operationId": "addFolder", + + "requestBody": { + "description": "Folder object that needs to be added to the store", + "required": true, + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Folder" + } + } + } + }, + "responses": { + "200": { + "description": "successful operation" + }, + "400": { + "description": "Invalid status value" + } + }, + "security": [ + { + "bearerAuth": [] + } + ] + } + }, + "/super-admin/folders/{uid}": { + "put": { + "tags": ["super-admin"], + "summary": "Update an existing folder", + "description": "Returns a single folder updated", + "operationId": "updateFolder", + + "parameters": [ + { + "name": "uid", + "in": "path", + "description": "ID of folder to return", + "required": true, + "schema": { "type": "string" } + } + ], + "requestBody": { + "description": "Folder object that needs to be added to the store", + "required": true, + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Folder" + } + } + } + }, + "responses": { + "200": { + "description": "successful operation" + }, + "400": { + "description": "Invalid status value" + } + }, + "security": [ + { + "bearerAuth": [] + } + ] + }, + "delete": { + "tags": ["super-admin"], + "summary": "Delete an existing folder", + "description": "Returns a single folder deleted", + "operationId": "deleteFolder", + + "parameters": [ + { + "name": "uid", + "in": "path", + "description": "ID of folder to return", + "required": true, + "schema": { "type": "string" } + } + ], + "responses": { + "200": { + "description": "successful operation" + }, + "400": { + "description": "Invalid status value" + } + }, + "security": [ + { + "bearerAuth": [] + } + ] + }, + "get": { + "tags": ["super-admin"], + "summary": "Find folder by ID", + "description": "Returns a single folder", + "operationId": "getFolderById", + + "parameters": [ + { + "name": "uid", + "in": "query", + "description": "ID of folder to return", + "required": true, + "schema": { "type": "string" } + } + ], + "responses": { + "200": { + "description": "successful operation", + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { + "$ref": "#/components/schemas/Folder" + } + } + } + } + }, + "400": { + "description": "Invalid status value" + } + }, + "security": [ + { + "bearerAuth": [] + } + ] + } + }, + "/super-admin/office-roles": { + "get": { + "tags": ["super-admin"], + "summary": "Get all office roles", + "description": "", + "operationId": "getOfficeRoles", + + "responses": { + "200": { + "description": "successful operation", + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { + "$ref": "#/components/schemas/OfficeRole" + } + } + } + } + }, + "400": { + "description": "Invalid status value" + } + }, + "security": [ + { + "bearerAuth": [] + } + ] + }, + "post": { + "tags": ["super-admin"], + "summary": "Add a new office role", + "description": "", + "operationId": "addOfficeRole", + + "requestBody": { + "description": "OfficeRole object that needs to be added to the store", + "required": true, + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/OfficeRole" + } + } + } + }, + "responses": { + "200": { + "description": "successful operation", + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { + "$ref": "#/components/schemas/OfficeRole" + } + } + } + } + }, + "400": { + "description": "Invalid status value" + } + }, + "security": [ + { + "bearerAuth": [] + } + ] + } + }, + "/super-admin/office-roles/{uid}": { + "get": { + "tags": ["super-admin"], + "summary": "Find office role by ID", + "description": "Returns a single office role", + "operationId": "getOfficeRoleById", + + "parameters": [ + { + "name": "uid", + "in": "query", + "description": "ID of office role to return", + "required": true, + "schema": { "type": "string" } + } + ], + "responses": { + "200": { + "description": "successful operation", + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { + "$ref": "#/components/schemas/OfficeRole" + } + } + } + } + }, + "400": { + "description": "Invalid status value" + } + }, + "security": [ + { + "bearerAuth": [] + } + ] + }, + "put": { + "tags": ["super-admin"], + "summary": "Update an existing office role", + "description": "Returns a single office role updated", + "operationId": "updateOfficeRole", + + "parameters": [ + { + "name": "uid", + "in": "query", + "description": "ID of office role to return", + "required": true, + "schema": { "type": "string" } + } + ], + "requestBody": { + "description": "OfficeRole object that needs to be added to the store", + "required": true, + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/OfficeRole" + } + } + } + }, + "responses": { + "200": { + "description": "successful operation", + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { + "$ref": "#/components/schemas/OfficeRole" + } + } + } + } + }, + "400": { + "description": "Invalid status value" + } + }, + "security": [ + { + "bearerAuth": [] + } + ] + } + }, + "/super-admin/offices": { + "get": { + "tags": ["super-admin"], + "summary": "Get all offices", + "description": "", + "operationId": "getOffices", + + "responses": { + "200": { + "description": "successful operation", + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { + "$ref": "#/components/schemas/Office" + } + } + } + } + }, + "400": { + "description": "Invalid status value" + } + }, + "security": [ + { + "bearerAuth": [] + } + ] + }, + "post": { + "tags": ["super-admin"], + "summary": "Add a new office", + "description": "", + "operationId": "addOffice", + + "requestBody": { + "description": "Office object that needs to be added to the store", + "required": true, + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Office" + } + } + } + }, + "responses": { + "200": { + "description": "successful operation", + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { + "$ref": "#/components/schemas/Office" + } + } + } + } + }, + "400": { + "description": "Invalid status value" + } + }, + "security": [ + { + "bearerAuth": [] + } + ] + } + }, + "/super-admin/offices/{uid}": { + "get": { + "tags": ["super-admin"], + "summary": "Find office by ID", + "description": "Returns a single office", + "operationId": "getOfficeById", + + "parameters": [ + { + "name": "uid", + "in": "query", + "description": "ID of office to return", + "required": true, + "schema": { "type": "string" } + } + ], + "responses": { + "200": { + "description": "successful operation", + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { + "$ref": "#/components/schemas/Office" + } + } + } + } + }, + "400": { + "description": "Invalid status value" + } + }, + "security": [ + { + "bearerAuth": [] + } + ] + }, + "put": { + "tags": ["super-admin"], + "summary": "Update an existing office", + "description": "Returns a single office updated", + "operationId": "updateOffice", + + "parameters": [ + { + "name": "uid", + "in": "query", + "description": "ID of office to return", + "required": true, + "schema": { "type": "string" } + } + ], + "requestBody": { + "description": "Office object that needs to be added to the store", + "required": true, + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Office" + } + } + } + }, + "responses": { + "200": { + "description": "successful operation", + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { + "$ref": "#/components/schemas/Office" + } + } + } + } + }, + "400": { + "description": "Invalid status value" + } + }, + "security": [ + { + "bearerAuth": [] + } + ] + } + }, + "/super-admin/roles": { + "get": { + "tags": ["super-admin"], + "summary": "Get all roles", + "description": "", + "operationId": "getRoles", + + "responses": { + "200": { + "description": "successful operation", + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { + "$ref": "#/components/schemas/Role" + } + } + } + } + }, + "400": { + "description": "Invalid status value" + } + }, + "security": [ + { + "bearerAuth": [] + } + ] + }, + "post": { + "tags": ["super-admin"], + "summary": "Add a new role", + "description": "", + "operationId": "addRole", + + "requestBody": { + "description": "Role object that needs to be added to the store", + "required": true, + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Role" + } + } + } + }, + "responses": { + "200": { + "description": "successful operation", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Role" + } + } + } + }, + "400": { + "description": "Invalid status value" + } + }, + "security": [ + { + "bearerAuth": [] + } + ] + } + }, + "/super-admin/roles/{uid}": { + "get": { + "tags": ["super-admin"], + "summary": "Find role by ID", + "description": "Returns a single role", + "operationId": "getRoleById", + + "parameters": [ + { + "name": "uid", + "in": "query", + "description": "ID of role to return", + "required": true, + "schema": { "type": "string" } + } + ], + "responses": { + "200": { + "description": "successful operation", + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { + "$ref": "#/components/schemas/Role" + } + } + } + } + }, + "400": { + "description": "Invalid status value" + } + }, + "security": [ + { + "bearerAuth": [] + } + ] + }, + "put": { + "tags": ["super-admin"], + "summary": "Update an existing role", + "description": "Returns a single role updated", + "operationId": "updateRole", + + "parameters": [ + { + "name": "uid", + "in": "query", + "description": "ID of role to return", + "required": true, + "schema": { "type": "string" } + } + ], + "requestBody": { + "description": "Role object that needs to be added to the store", + "required": true, + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Role" + } + } + } + }, + "responses": { + "200": { + "description": "successful operation", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Role" + } + } + } + }, + "400": { + "description": "Invalid status value" + } + }, + "security": [ + { + "bearerAuth": [] + } + ] + } + }, + "/super-admin/notifications": { + "get": { + "tags": ["super-admin"], + "summary": "Get all notifications", + "description": "", + "operationId": "getNotifications", + + "responses": { + "200": { + "description": "successful operation", + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { + "$ref": "#/components/schemas/Notification" + } + } + } + } + }, + "400": { + "description": "Invalid status value" + } + }, + "security": [ + { + "bearerAuth": [] + } + ] + } + }, + "/super-admin/notifications/{uid}": { + "put": { + "tags": ["super-admin"], + "summary": "Update an existing notification", + "description": "Returns a single notification updated", + "operationId": "updateNotification", + + "parameters": [ + { + "name": "uid", + "in": "path", + "description": "ID of notification to return", + "required": true, + "schema": { "type": "string" } + } + ], + "requestBody": { + "description": "Notification object that needs to be added to the store", + "required": true, + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Notification" + } + } + } + }, + "responses": { + "200": { + "description": "successful operation" + }, + "400": { + "description": "Invalid status value" + } + }, + "security": [ + { + "bearerAuth": [] + } + ] + }, + "get": { + "tags": ["super-admin"], + "summary": "Find notification by ID", + "description": "Returns a single notification", + "operationId": "getNotificationById", + + "parameters": [ + { + "name": "uid", + "in": "query", + "description": "ID of notification to return", + "required": true, + "schema": { "type": "string" } + } + ], + "responses": { + "200": { + "description": "successful operation", + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { + "$ref": "#/components/schemas/Notification" + } + } + } + } + }, + "400": { + "description": "Invalid status value" + } + }, + "security": [ + { + "bearerAuth": [] + } + ] + } + }, + "/super-admin/users": { + "get": { + "tags": ["super-admin"], + "summary": "Get all users", + "description": "", + "operationId": "getUsers", + + "responses": { + "200": { + "description": "successful operation", + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { + "$ref": "#/components/schemas/User" + } + } + } + } + }, + "400": { + "description": "Invalid status value" + } + }, + "security": [ + { + "bearerAuth": [] + } + ] + } + }, + "/super-admin/users/{uid}": { + "get": { + "tags": ["super-admin"], + "summary": "Find user by ID", + "description": "", + "operationId": "getUserById", + + "parameters": [ + { + "name": "uid", + "in": "query", + "description": "ID of user to return", + "required": true, + "schema": { "type": "string" } + } + ], + "responses": { + "200": { + "description": "successful operation", + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { + "$ref": "#/components/schemas/User" + } + } + } + } + }, + "400": { + "description": "Invalid status value" + } + }, + "security": [ + { + "bearerAuth": [] + } + ] + }, + "put": { + "tags": ["super-admin"], + "summary": "Update an existing user", + "description": "", + "operationId": "updateUser", + + "parameters": [ + { + "name": "uid", + "in": "query", + "description": "ID of user to return", + "required": true, + "schema": { "type": "string" } + } + ], + "requestBody": { + "description": "User object that needs to be added to the store", + "required": true, + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/User" + } + } + } + }, + "responses": { + "200": { + "description": "successful operation" + }, + "400": { + "description": "Invalid status value" + } + }, + "security": [ + { + "bearerAuth": [] + } + ] + } + }, + "/super-admin/live-votes": { + "post": { + "tags": ["super-admin"], + "summary": "Add a new live vote", + "description": "", + "operationId": "addLiveVote", + + "requestBody": { + "description": "LiveVote object that needs to be added to the store", + "required": true, + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/LiveVote" + } + } + } + }, + "responses": { + "200": { + "description": "successful operation" + }, + "400": { + "description": "Invalid status value" + } + }, + "security": [ + { + "bearerAuth": [] + } + ] + } + }, + "/super-admin/live-votes/{uid}": { + "delete": { + "tags": ["super-admin"], + "summary": "Delete an existing live vote", + "description": "Returns a single live vote deleted", + "operationId": "deleteLiveVote", + + "parameters": [ + { + "name": "uid", + "in": "path", + "description": "ID of live vote to return", + "required": true, + "schema": { "type": "string" } + } + ], + "responses": { + "200": { + "description": "successful operation" + }, + "400": { + "description": "Invalid status value" + } + }, + "security": [ + { + "bearerAuth": [] + } + ] + } + } + }, + "components": { + "securitySchemes": { + "bearerAuth": { + "type": "http", + "scheme": "bearer", + "bearerFormat": "JWT" + } + }, + "schemas": { + "Customer": { + "type": "object", + "properties": { + "uid": { + "type": "string" + }, + "status": { + "type": "string" + }, + "contact": { + "type": "object", + "properties": { + "civility": { + "type": "string" + }, + "first_name": { + "type": "string" + }, + "last_name": { + "type": "string" + }, + "email": { + "type": "string" + }, + "cell_phone_number": { + "type": "string" + } + } + }, + "office_folders": { + "type": "array", + "items": { + "type": "object", + "properties": { + "uid": { + "type": "string" + }, + "name": { + "type": "string" + }, + "office": { + "type": "object", + "properties": { + "uid": { + "type": "string" + }, + "name": { + "type": "string" + } + } + } + } + } + }, + "documents": { + "type": "array", + "items": { + "type": "object", + "properties": { + "uid": { + "type": "string" + }, + "name": { + "type": "string" + }, + "type": { + "type": "object", + "properties": { + "uid": { + "type": "string" + }, + "name": { + "type": "string" + } + } + }, + "file": { + "type": "object", + "properties": { + "uid": { + "type": "string" + }, + "name": { + "type": "string" + } + } + }, + "folder": { + "type": "object", + "properties": { + "uid": { + "type": "string" + }, + "name": { + "type": "string" + } + } + } + } + } + }, + "createdAt": { + "type": "string" + }, + "updatedAt": { + "type": "string" + } + } + }, + "Document": { + "type": "object", + "properties": { + "uid": { + "type": "string" + }, + "name": { + "type": "string" + }, + "type": { + "type": "object", + "properties": { + "uid": { + "type": "string" + }, + "name": { + "type": "string" + } + } + }, + "file": { + "type": "object", + "properties": { + "uid": { + "type": "string" + }, + "name": { + "type": "string" + } + } + }, + "folder": { + "type": "object", + "properties": { + "uid": { + "type": "string" + }, + "name": { + "type": "string" + } + } + }, + "createdAt": { + "type": "string" + }, + "updatedAt": { + "type": "string" + } + } + }, + "DocumentType": { + "type": "object", + "properties": { + "uid": { + "type": "string" + }, + "name": { + "type": "string" + }, + "office": { + "type": "object", + "properties": { + "uid": { + "type": "string" + }, + "name": { + "type": "string" + } + } + }, + "createdAt": { + "type": "string" + }, + "updatedAt": { + "type": "string" + } + } + }, + "Deed": { + "type": "object", + "properties": { + "uid": { + "type": "string" + }, + "deed_type": { + "type": "object", + "properties": { + "uid": { + "type": "string" + }, + "name": { + "type": "string" + }, + "description": { + "type": "string" + }, + "archived_at": { + "type": "string" + }, + "createdAt": { + "type": "string" + }, + "updatedAt": { + "type": "string" + } + } + }, + "document_types": { + "type": "array", + "items": { + "type": "object", + "properties": { + "uid": { + "type": "string" + }, + "name": { + "type": "string" + }, + "public_description": { + "type": "string" + }, + "private_description": { + "type": "string" + }, + "archived_at": { + "type": "string" + }, + "createdAt": { + "type": "string" + }, + "updatedAt": { + "type": "string" + } + } + } + }, + "office": { + "type": "object", + "properties": { + "uid": { + "type": "string" + }, + "name": { + "type": "string" + } + } + }, + "folder": { + "type": "object", + "properties": { + "uid": { + "type": "string" + }, + "name": { + "type": "string" + } + } + }, + "createdAt": { + "type": "string" + }, + "updatedAt": { + "type": "string" + } + } + }, + "DeedType": { + "type": "object", + "properties": { + "uid": { + "type": "string" + }, + "name": { + "type": "string" + }, + "description": { + "type": "string" + }, + "archived_at": { + "type": "string" + }, + "office": { + "type": "object", + "properties": { + "uid": { + "type": "string" + }, + "name": { + "type": "string" + } + } + }, + "createdAt": { + "type": "string" + }, + "updatedAt": { + "type": "string" + } + } + }, + "File": { + "type": "object", + "properties": { + "uid": { + "type": "string" + }, + "name": { + "type": "string" + }, + "path": { + "type": "string" + }, + "size": { + "type": "string" + }, + "mime_type": { + "type": "string" + }, + "createdAt": { + "type": "string" + }, + "updatedAt": { + "type": "string" + } + } + }, + "Folder": { + "type": "object", + "properties": { + "uid": { + "type": "string" + }, + "deed": { + "type": "object", + "properties": { + "uid": { + "type": "string" + }, + "deed_type": { + "type": "object", + "properties": { + "uid": { + "type": "string" + }, + "name": { + "type": "string" + }, + "description": { + "type": "string" + }, + "archived_at": { + "type": "string" + }, + "createdAt": { + "type": "string" + }, + "updatedAt": { + "type": "string" + } + } + } + } + }, + "office": { + "type": "object", + "properties": { + "uid": { + "type": "string" + }, + "name": { + "type": "string" + } + } + }, + "createdAt": { + "type": "string" + }, + "updatedAt": { + "type": "string" + } + } + }, + "User": { + "type": "object", + "properties": { + "uid": { + "type": "string" + }, + "idNot": { + "type": "string" + }, + "contact": { + "type": "object", + "properties": { + "first_name": { + "type": "string" + }, + "last_name": { + "type": "string" + }, + "email": { + "type": "string" + }, + "cell_phone_number": { + "type": "string" + } + } + }, + "office_folders": { + "type": "array", + "items": { + "type": "object", + "properties": { + "uid": { + "type": "string" + }, + "name": { + "type": "string" + }, + "office": { + "type": "object", + "properties": { + "uid": { + "type": "string" + }, + "name": { + "type": "string" + } + } + } + } + } + }, + "role": { + "type": "object", + "properties": { + "uid": { + "type": "string" + }, + "name": { + "type": "string" + }, + "rules": { + "type": "array", + "items": { + "type": "object", + "properties": { + "uid": { + "type": "string" + }, + "name": { + "type": "string" + } + } + } + } + } + }, + "office_role": { + "type": "object", + "properties": { + "uid": { + "type": "string" + }, + "name": { + "type": "string" + }, + "rules": { + "type": "array", + "items": { + "type": "object", + "properties": { + "uid": { + "type": "string" + }, + "name": { + "type": "string" + } + } + } + }, + "office": { + "type": "object", + "properties": { + "uid": { + "type": "string" + }, + "name": { + "type": "string" + } + } + } + } + } + } + }, + "OfficeRole": { + "type": "object", + "properties": { + "uid": { + "type": "string" + }, + "name": { + "type": "string" + }, + "rules": { + "type": "array", + "items": { + "type": "object", + "properties": { + "uid": { + "type": "string" + }, + "name": { + "type": "string" + } + } + } + }, + "office": { + "type": "object", + "properties": { + "uid": { + "type": "string" + }, + "name": { + "type": "string" + } + } + } + } + }, + "Role": { + "type": "object", + "properties": { + "uid": { + "type": "string" + }, + "name": { + "type": "string" + }, + "rules": { + "type": "array", + "items": { + "type": "object", + "properties": { + "uid": { + "type": "string" + }, + "name": { + "type": "string" + } + } + } + } + } + }, + "Office": { + "type": "object", + "properties": { + "uid": { + "type": "string" + }, + "name": { + "type": "string" + } + } + }, + "Vote": { + "type": "object", + "properties": { + "uid": { + "type": "string" + }, + "appointment": { + "type": "object", + "properties": { + "uid": { + "type": "string" + }, + "user": { + "type": "object", + "properties": { + "uid": { + "type": "string" + } + } + }, + "status": { + "type": "string" + }, + "choice": { + "type": "string" + } + } + }, + "voter": { + "type": "object", + "properties": { + "uid": { + "type": "string" + } + } + } + } + }, + "Appointment": { + "type": "object", + "properties": { + "uid": { + "type": "string" + }, + "user": { + "type": "object", + "properties": { + "uid": { + "type": "string" + } + } + }, + "status": { + "type": "string" + }, + "choice": { + "type": "string" + }, + "votes": { + "type": "array", + "items": { + "type": "object", + "properties": { + "uid": { + "type": "string" + }, + "voter": { + "type": "object", + "properties": { + "uid": { + "type": "string" + } + } + } + } + } + } + } + } + } + }, + "externalDocs": { + "description": "Find out more about Swagger", + "url": "http://swagger.io" + } +} diff --git a/src/app/api/customer/DocumentsController.ts b/src/app/api/customer/DocumentsController.ts index 7e33f229..5d6142fb 100644 --- a/src/app/api/customer/DocumentsController.ts +++ b/src/app/api/customer/DocumentsController.ts @@ -70,6 +70,7 @@ export default class DocumentsController extends ApiController { if (req.query["q"]) { query = JSON.parse(req.query["q"] as string); if (query.folder) delete query.folder; + } const documentEntity = await this.documentsService.getByUid(uid, query); @@ -85,6 +86,7 @@ export default class DocumentsController extends ApiController { //success this.httpSuccess(response, document); } catch (error) { + console.log(error); this.httpInternalError(response); return; } diff --git a/src/app/api/customer/FilesController.ts b/src/app/api/customer/FilesController.ts index d5db8206..c2947a9c 100644 --- a/src/app/api/customer/FilesController.ts +++ b/src/app/api/customer/FilesController.ts @@ -1,9 +1,9 @@ import { Response, Request } from "express"; -import { Controller, Delete, Get, Post, Put } from "@ControllerPattern/index"; +import { Controller, Delete, Get, Post } from "@ControllerPattern/index"; import ApiController from "@Common/system/controller-pattern/ApiController"; import { Service } from "typedi"; import FilesService from "@Services/common/FilesService/FilesService"; -import { Files, Prisma } from "@prisma/client"; +import { Prisma } from "@prisma/client"; import { File } from "le-coffre-resources/dist/Customer"; import { Document } from "le-coffre-resources/dist/Customer"; import DocumentsService from "@Services/customer/DocumentsService/DocumentsService"; @@ -15,7 +15,11 @@ import { validateOrReject } from "class-validator"; @Controller() @Service() export default class FilesController extends ApiController { - constructor(private filesService: FilesService, private documentService: DocumentsService, private notificationBuilder : NotificationBuilder) { + constructor( + private filesService: FilesService, + private documentService: DocumentsService, + private notificationBuilder: NotificationBuilder, + ) { super(); } @@ -31,10 +35,15 @@ export default class FilesController extends ApiController { if (req.query["q"]) { query = JSON.parse(req.query["q"] as string); } - const customerId: string = req.body.user.customerId; - const customerWhereInput: Prisma.FilesWhereInput = { document: { depositor: { uid: customerId } } }; + const email: string = req.body.user.email; + if (!email) { + this.httpBadRequest(response, "Missing customer email"); + return; + } + if (query.where?.document?.depositor) delete query.where.document.depositor; + const customerWhereInput: Prisma.FilesWhereInput = { ...query.where, document: { depositor: { contact: { email: email } } } }; query.where = customerWhereInput; - if(query.include?.document) delete query.include.document; + if (query.include?.document) delete query.include.document; //call service to get prisma entity const fileEntities = await this.filesService.get(query); @@ -115,7 +124,6 @@ export default class FilesController extends ApiController { strategy: "excludeAll", }); - //success this.httpCreated(response, fileEntityHydrated); } catch (error) { @@ -124,41 +132,6 @@ export default class FilesController extends ApiController { } } - /** - * @description Update a specific file - */ - @Put("/api/v1/customer/files/:uid", [authHandler, fileHandler]) - protected async update(req: Request, response: Response) { - try { - const uid = req.params["uid"]; - if (!uid) { - throw new Error("No uid provided"); - } - - const fileFound = await this.filesService.getByUid(uid); - - if (!fileFound) { - this.httpNotFoundRequest(response, "file not found"); - return; - } - - //init File resource with request body values - const fileEntity = File.hydrate(req.body); - - //call service to get prisma entity - const fileEntityUpdated: Files = await this.filesService.update(uid, fileEntity); - - //Hydrate ressource with prisma entity - const file = File.hydrate(fileEntityUpdated, { strategy: "excludeAll" }); - - //success - this.httpSuccess(response, file); - } catch (error) { - this.httpBadRequest(response, error); - return; - } - } - /** * @description Delete a specific File */ @@ -212,7 +185,7 @@ export default class FilesController extends ApiController { let query; if (req.query["q"]) { query = JSON.parse(req.query["q"] as string); - if(query.document) delete query.document; + if (query.document) delete query.document; } const fileEntity = await this.filesService.getByUid(uid, query); diff --git a/src/app/api/notary/CustomersController.ts b/src/app/api/notary/CustomersController.ts index 349229cf..f5bc1789 100644 --- a/src/app/api/notary/CustomersController.ts +++ b/src/app/api/notary/CustomersController.ts @@ -125,27 +125,29 @@ export default class CustomersController extends ApiController { return; } - const customers = await this.customersService.get({ - where: { - contact: { email: customerEntity.contact?.email }, - office_folders: { - some: { - office_uid: req.body.user.office_Id, + if (customerEntity.contact?.email) { + const customers = await this.customersService.get({ + where: { + contact: { email: customerEntity.contact?.email }, + office_folders: { + some: { + office_uid: req.body.user.office_Id, + }, }, }, - }, - }); + }); - if (customers.length != 0) { - try { - customers.forEach((customer) => { - if (customer.uid != uid) { - throw new Error("email déjà utilisé"); - } - }); - } catch (error) { - this.httpValidationError(response, [{ property: "email", constraints: { unique: "email déjà utilisé" } }]); - return; + if (customers.length != 0) { + try { + customers.forEach((customer) => { + if (customer.uid != uid) { + throw new Error("email déjà utilisé"); + } + }); + } catch (error) { + this.httpValidationError(response, [{ property: "email", constraints: { unique: "email déjà utilisé" } }]); + return; + } } } diff --git a/src/app/api/notary/UserNotificationController.ts b/src/app/api/notary/UserNotificationController.ts index 1654df3b..970a150b 100644 --- a/src/app/api/notary/UserNotificationController.ts +++ b/src/app/api/notary/UserNotificationController.ts @@ -6,6 +6,7 @@ import UserNotification from "le-coffre-resources/dist/Notary/UserNotification"; import UserNotificationService from "@Services/common/UserNotificationService/UserNotificationService"; import authHandler from "@App/middlewares/AuthHandler"; import { Prisma } from "@prisma/client"; +import roleHandler from "@App/middlewares/RolesHandler"; @Controller() @Service() @@ -17,7 +18,7 @@ export default class UserNotificationController extends ApiController { /** * @description Get all customers */ - @Get("/api/v1/notary/notifications", [authHandler]) + @Get("/api/v1/notary/notifications", [authHandler, roleHandler]) protected async get(req: Request, response: Response) { try { //get query @@ -51,7 +52,7 @@ export default class UserNotificationController extends ApiController { /** * @description Modify a specific customer by uid */ - @Put("/api/v1/notary/notifications/:uid", [authHandler]) + @Put("/api/v1/notary/notifications/:uid", [authHandler, roleHandler]) protected async put(req: Request, response: Response) { try { const uid = req.params["uid"]; @@ -94,7 +95,7 @@ export default class UserNotificationController extends ApiController { /** * @description Get a specific customer by uid */ - @Get("/api/v1/notary/notifications/:uid", [authHandler]) + @Get("/api/v1/notary/notifications/:uid", [authHandler, roleHandler]) protected async getOneByUid(req: Request, response: Response) { try { const uid = req.params["uid"]; diff --git a/src/app/middlewares/CustomerHandler/DocumentHandler.ts b/src/app/middlewares/CustomerHandler/DocumentHandler.ts index 5f390ba7..2bd74e8a 100644 --- a/src/app/middlewares/CustomerHandler/DocumentHandler.ts +++ b/src/app/middlewares/CustomerHandler/DocumentHandler.ts @@ -3,9 +3,9 @@ import DocumentsService from "@Services/customer/DocumentsService/DocumentsServi import Document from "le-coffre-resources/dist/SuperAdmin/Document"; import { NextFunction, Request, Response } from "express"; import Container from "typedi"; -import ContactsService from "@Services/common/ContactService/ContactService"; import OfficeFoldersService from "@Services/super-admin/OfficeFoldersService/OfficeFoldersService"; import { OfficeFolder } from "le-coffre-resources/dist/SuperAdmin"; +import CustomersService from "@Services/super-admin/CustomersService/CustomersService"; export default async function documentHandler(req: Request, response: Response, next: NextFunction) { try { @@ -23,8 +23,8 @@ export default async function documentHandler(req: Request, response: Response, } if (document?.depositor_uid != customerId) { - const contactService = Container.get(ContactsService); - const customers = await contactService.getByEmail(customerEmail); + const customerService = Container.get(CustomersService); + const customers = await customerService.get({where: {contact: { email: customerEmail}}}); if (customers && !customers.find((customer) => customer.uid === document?.depositor_uid)) { response.status(HttpCodes.UNAUTHORIZED).send("Not authorized with this depositor"); return; diff --git a/src/app/middlewares/RolesHandler.ts b/src/app/middlewares/RolesHandler.ts index 3a4a9c77..0a423db8 100644 --- a/src/app/middlewares/RolesHandler.ts +++ b/src/app/middlewares/RolesHandler.ts @@ -7,6 +7,11 @@ export default async function roleHandler(req: Request, response: Response, next const namespace = req.path && req.path.split("/")[3]; const role = req.body.user.role; + if(!role) { + response.status(HttpCodes.UNAUTHORIZED).send("Unauthorized without role"); + return; + } + if (namespace != "notary" && role != namespace && role != "super-admin") { response.status(HttpCodes.UNAUTHORIZED).send("Unauthorized with this role"); return;