From d3e7c9e80240c068aca2fe6a3915e222f83810fd Mon Sep 17 00:00:00 2001 From: OxSaitama Date: Wed, 11 Oct 2023 12:28:47 +0200 Subject: [PATCH 01/26] refacto refresh token --- src/app/api/id360/CustomerController.ts | 36 ++++++++++++++++++- src/app/api/idnot/UserController.ts | 3 ++ .../DocumentsService/DocumentsService.ts | 1 - .../common/AuthService/AuthService.ts | 4 +++ .../DocumentsService/DocumentsService.ts | 1 - .../DocumentsService/DocumentsService.ts | 1 - 6 files changed, 42 insertions(+), 4 deletions(-) diff --git a/src/app/api/id360/CustomerController.ts b/src/app/api/id360/CustomerController.ts index 475b5bb6..1af0e969 100644 --- a/src/app/api/id360/CustomerController.ts +++ b/src/app/api/id360/CustomerController.ts @@ -4,7 +4,7 @@ import ApiController from "@Common/system/controller-pattern/ApiController"; import { Service } from "typedi"; import Id360Service, { EnrollmentResponse } from "@Services/common/Id360Service/Id360Service"; import CustomersService from "@Services/customer/CustomersService/CustomersService"; -import AuthService from "@Services/common/AuthService/AuthService"; +import AuthService, { ICustomerJwtPayload } from "@Services/common/AuthService/AuthService"; import { Customer } from "le-coffre-resources/dist/SuperAdmin"; @Controller() @@ -88,4 +88,38 @@ export default class CustomerController extends ApiController { return; } } + + @Post("/api/v1/id360/customers/refresh-token") + protected async refreshToken(req: Request, response: Response) { + try { + const authHeader = req.headers["authorization"]; + const token = authHeader && authHeader.split(" ")[1]; + + if (!token) { + this.httpBadRequest(response); + return; + } + + let accessToken; + this.authService.verifyRefreshToken(token, (err, userPayload) => { + if (err) { + console.log(err); + this.httpUnauthorized(response); + return; + } + + const user = userPayload as ICustomerJwtPayload; + delete user.iat; + delete user.exp; + accessToken = this.authService.generateAccessToken(user); + }); + + //success + this.httpSuccess(response, { accessToken }); + } catch (error) { + console.log(error); + this.httpInternalError(response); + return; + } + } } diff --git a/src/app/api/idnot/UserController.ts b/src/app/api/idnot/UserController.ts index 9952e029..cac75ffc 100644 --- a/src/app/api/idnot/UserController.ts +++ b/src/app/api/idnot/UserController.ts @@ -70,12 +70,15 @@ export default class UserController extends ApiController { } const user = userPayload as IUserJwtPayload; + delete user.iat; + delete user.exp; accessToken = this.authService.generateAccessToken(user); }); //success this.httpSuccess(response, { accessToken }); } catch (error) { + console.log(error); this.httpInternalError(response); return; } diff --git a/src/services/admin/DocumentsService/DocumentsService.ts b/src/services/admin/DocumentsService/DocumentsService.ts index 5bdbead9..d76bd983 100644 --- a/src/services/admin/DocumentsService/DocumentsService.ts +++ b/src/services/admin/DocumentsService/DocumentsService.ts @@ -46,7 +46,6 @@ export default class DocumentsService extends BaseService { public async refuse(uid: string, document: Partial, refused_reason: string): Promise { if (document.files) { for (let i = 0; i < document.files.length; i++) { - console.log("archiving file", document.files[i]?.uid); await this.filesRepository.deleteKeyAndArchive(document.files[i]?.uid as string); } } diff --git a/src/services/common/AuthService/AuthService.ts b/src/services/common/AuthService/AuthService.ts index 88ed6af4..ca272d65 100644 --- a/src/services/common/AuthService/AuthService.ts +++ b/src/services/common/AuthService/AuthService.ts @@ -14,6 +14,8 @@ enum PROVIDER_OPENID { export interface ICustomerJwtPayload { customerId: string; email: string; + iat?: number; + exp?: number; } export interface IdNotJwtPayload { @@ -31,6 +33,8 @@ export interface IUserJwtPayload { office_Id: string; role: string; rules: string[]; + iat?: number; + exp?: number; } @Service() diff --git a/src/services/notary/DocumentsService/DocumentsService.ts b/src/services/notary/DocumentsService/DocumentsService.ts index c2260763..8f0819ac 100644 --- a/src/services/notary/DocumentsService/DocumentsService.ts +++ b/src/services/notary/DocumentsService/DocumentsService.ts @@ -46,7 +46,6 @@ export default class DocumentsService extends BaseService { public async refuse(uid: string, document: Partial, refused_reason: string): Promise { if (document.files) { for (let i = 0; i < document.files.length; i++) { - console.log("archiving file", document.files[i]?.uid); await this.filesRepository.deleteKeyAndArchive(document.files[i]?.uid as string); } } diff --git a/src/services/super-admin/DocumentsService/DocumentsService.ts b/src/services/super-admin/DocumentsService/DocumentsService.ts index 41041d7e..90cc405a 100644 --- a/src/services/super-admin/DocumentsService/DocumentsService.ts +++ b/src/services/super-admin/DocumentsService/DocumentsService.ts @@ -46,7 +46,6 @@ export default class DocumentsService extends BaseService { public async refuse(uid: string, document: Partial, refused_reason: string): Promise { if (document.files) { for (let i = 0; i < document.files.length; i++) { - console.log("archiving file", document.files[i]?.uid); await this.filesRepository.deleteKeyAndArchive(document.files[i]?.uid as string); } } From 8f7367eb63240971b6bab78aefa48d538b4b4231 Mon Sep 17 00:00:00 2001 From: OxSaitama Date: Wed, 11 Oct 2023 13:00:34 +0200 Subject: [PATCH 02/26] fix redirection on login error --- .../api/franceConnect/CustomerController.ts | 67 ------------------- src/app/api/id360/CustomerController.ts | 4 +- src/app/index.ts | 2 - .../controller-pattern/BaseController.ts | 1 + 4 files changed, 2 insertions(+), 72 deletions(-) delete mode 100644 src/app/api/franceConnect/CustomerController.ts diff --git a/src/app/api/franceConnect/CustomerController.ts b/src/app/api/franceConnect/CustomerController.ts deleted file mode 100644 index 7d05215f..00000000 --- a/src/app/api/franceConnect/CustomerController.ts +++ /dev/null @@ -1,67 +0,0 @@ -import { Response, Request } from "express"; -import { Controller, Post } from "@ControllerPattern/index"; -import ApiController from "@Common/system/controller-pattern/ApiController"; -import { Service } from "typedi"; -import AuthService, { ICustomerJwtPayload } from "@Services/common/AuthService/AuthService"; -import { JwtPayload } from "jsonwebtoken"; - -@Controller() -@Service() -export default class CustomerController extends ApiController { - constructor(private authService: AuthService) { - super(); - } - - // @Post("/api/v1/france-connect/customer/login/:email") - // protected async login(req: Request, response: Response) { - // try { - // const email = req.params["email"]; - // if (!email) throw new Error("email is required"); - - // const payload = await this.authService.getCustomerJwtPayload(email); - // if (!payload) { - // this.httpNotFoundRequest(response); - // return; - // } - // const accessToken = this.authService.generateAccessToken(payload); - // const refreshToken = this.authService.generateRefreshToken(payload); - // //success - // this.httpSuccess(response, { accessToken, refreshToken }); - // } catch (error) { - // this.httpInternalError(response); - // return; - // } - // } - - @Post("/api/v1/france-connect/customer/refresh-token") - protected async refreshToken(req: Request, response: Response) { - try { - const authHeader = req.headers["authorization"]; - const token = authHeader && authHeader.split(" ")[1]; - - if (!token) { - this.httpBadRequest(response); - return; - } - - let accessToken; - this.authService.verifyRefreshToken(token, (err, customerPayload) => { - if (err) { - this.httpUnauthorized(response); - return; - } - - const customer = customerPayload as JwtPayload; - delete customer.iat; - delete customer!.exp; - accessToken = this.authService.generateAccessToken({...customer} as ICustomerJwtPayload); - }); - - //success - this.httpSuccess(response, {accessToken}); - } catch (error) { - this.httpInternalError(response); - return; - } - } -} diff --git a/src/app/api/id360/CustomerController.ts b/src/app/api/id360/CustomerController.ts index 1af0e969..086b40b0 100644 --- a/src/app/api/id360/CustomerController.ts +++ b/src/app/api/id360/CustomerController.ts @@ -34,11 +34,9 @@ export default class CustomerController extends ApiController { return; } try { + await new Promise( resolve => setTimeout(resolve, 3000)); // wait 3 seconds to be sure that the enrollment is finilazed const res = await this.id360Service.getEnrollment(callbackToken); const enrollment = await res.json() as EnrollmentResponse; - if(enrollment.status === "STARTED") { - this.loginCallback(req, response); - } if (enrollment.status !== "OK") { this.httpUnauthorized(response, "Enrollment status is not OK"); return; diff --git a/src/app/index.ts b/src/app/index.ts index 274b1ed2..f5c3f00a 100644 --- a/src/app/index.ts +++ b/src/app/index.ts @@ -9,7 +9,6 @@ import DeedTypesControllerSuperAdmin from "./api/super-admin/DeedTypesController import DocumentsControllerSuperAdmin from "./api/super-admin/DocumentsController"; import DocumentTypesControllerSuperAdmin from "./api/super-admin/DocumentTypesController"; import IdNotUserController from "./api/idnot/UserController"; -import FranceConnectCustomerController from "./api/franceConnect/CustomerController"; import FilesControllerSuperAdmin from "./api/super-admin/FilesController"; import RulesControllerSuperAdmin from "./api/super-admin/RulesController"; import RolesControllerSuperAdmin from "./api/super-admin/RolesController"; @@ -64,7 +63,6 @@ export default { Container.get(DocumentTypesControllerSuperAdmin); Container.get(LiveVoteController); Container.get(IdNotUserController); - Container.get(FranceConnectCustomerController); Container.get(FilesControllerSuperAdmin); Container.get(DocumentsControllerSuperAdmin); Container.get(RulesControllerSuperAdmin); diff --git a/src/common/system/controller-pattern/BaseController.ts b/src/common/system/controller-pattern/BaseController.ts index 7baa9c02..b13d997a 100644 --- a/src/common/system/controller-pattern/BaseController.ts +++ b/src/common/system/controller-pattern/BaseController.ts @@ -45,6 +45,7 @@ export default abstract class BaseController { } protected httpResponse(response: Response, httpCode: HttpCodes, responseData: IResponseData = {}) { + console.log("httpResponse", httpCode, responseData); if (responseData instanceof Error) { throw responseData; } From 13139cf1679171657d00ba66476baa101410e96d Mon Sep 17 00:00:00 2001 From: OxSaitama Date: Wed, 11 Oct 2023 19:17:56 +0200 Subject: [PATCH 03/26] add error on same email and phone number --- src/app/api/admin/CustomersController.ts | 40 ++++++++++------- src/app/api/notary/CustomersController.ts | 44 ++++++++++++------- .../api/super-admin/CustomersController.ts | 36 +++++++++------ src/common/repositories/ContactRepository.ts | 12 +++++ .../controller-pattern/BaseController.ts | 1 - .../CustomersService/CustomersService.ts | 21 ++++++++- .../common/ContactService/ContactService.ts | 27 ++++++++++++ .../CustomersService/CustomersService.ts | 13 +++++- .../CustomersService/CustomersService.ts | 21 ++++++++- .../super-admin/CustomersService.test.ts | 3 +- 10 files changed, 170 insertions(+), 48 deletions(-) create mode 100644 src/services/common/ContactService/ContactService.ts diff --git a/src/app/api/admin/CustomersController.ts b/src/app/api/admin/CustomersController.ts index e1badb0d..5f9ed4ec 100644 --- a/src/app/api/admin/CustomersController.ts +++ b/src/app/api/admin/CustomersController.ts @@ -31,9 +31,9 @@ export default class CustomersController extends ApiController { } const officeId: string = req.body.user.office_Id; - if(query.where?.office_folders?.some?.office_uid) delete query.where.office_folders.some.office_uid; - if(query.where?.office_folders?.some?.office?.uid) delete query.where?.office_folders?.some?.office?.uid; - const customerWhereInput: Prisma.CustomersWhereInput = { ...query.where, office_folders: { some: { office_uid: officeId } }}; + if (query.where?.office_folders?.some?.office_uid) delete query.where.office_folders.some.office_uid; + if (query.where?.office_folders?.some?.office?.uid) delete query.where?.office_folders?.some?.office?.uid; + const customerWhereInput: Prisma.CustomersWhereInput = { ...query.where, office_folders: { some: { office_uid: officeId } } }; query.where = customerWhereInput; //call service to get prisma entity @@ -79,7 +79,7 @@ export default class CustomersController extends ApiController { /** * @description Modify a specific customer by uid */ - @Put("/api/v1/admin/customers/:uid", [authHandler, roleHandler, ruleHandler, customerHandler]) + @Put("/api/v1/notary/customers/:uid", [authHandler, ruleHandler, customerHandler]) protected async put(req: Request, response: Response) { try { const uid = req.params["uid"]; @@ -95,22 +95,32 @@ export default class CustomersController extends ApiController { return; } + req.body.contact.uid = userFound.contact_uid; + //init IUser resource with request body values const customerEntity = Customer.hydrate(req.body); - //validate user - await validateOrReject(customerEntity, { groups: ["updateCustomer"], forbidUnknownValues: false }); - + try { + await validateOrReject(customerEntity, { groups: ["updateCustomer"], forbidUnknownValues: false }); + } catch (error) { + this.httpValidationError(response, error); + return; + } //call service to get prisma entity - const customerEntityUpdated = await this.customersService.update(uid, customerEntity); + try { + const customerEntityUpdated = await this.customersService.update(uid, customerEntity); + //Hydrate ressource with prisma entity + const customer = Customer.hydrate(customerEntityUpdated, { + strategy: "excludeAll", + }); - //Hydrate ressource with prisma entity - const customer = Customer.hydrate(customerEntityUpdated, { - strategy: "excludeAll", - }); - - //success - this.httpSuccess(response, customer); + //success + this.httpSuccess(response, customer); + } catch (error) { + console.log(error); + this.httpValidationError(response, error); + return; + } } catch (error) { this.httpInternalError(response, error); return; diff --git a/src/app/api/notary/CustomersController.ts b/src/app/api/notary/CustomersController.ts index 4415fd34..69b6bb7f 100644 --- a/src/app/api/notary/CustomersController.ts +++ b/src/app/api/notary/CustomersController.ts @@ -30,8 +30,8 @@ export default class CustomersController extends ApiController { } const officeId: string = req.body.user.office_Id; - if(query.where?.office_folders) delete query.where.office_folders; - const customerWhereInput: Prisma.CustomersWhereInput = { ...query.where, office_folders: { some: { office_uid: officeId } }}; + if (query.where?.office_folders) delete query.where.office_folders; + const customerWhereInput: Prisma.CustomersWhereInput = { ...query.where, office_folders: { some: { office_uid: officeId } } }; query.where = customerWhereInput; //call service to get prisma entity @@ -57,8 +57,12 @@ export default class CustomersController extends ApiController { //init IUser resource with request body values const customerEntity = Customer.hydrate(req.body); //validate user - await validateOrReject(customerEntity, { groups: ["createCustomer"], forbidUnknownValues: false }); - + try { + await validateOrReject(customerEntity, { groups: ["createCustomer"], forbidUnknownValues: false }); + } catch (error) { + this.httpValidationError(response, error); + return; + } //call service to get prisma entity const customerEntityCreated = await this.customersService.create(customerEntity); //Hydrate ressource with prisma entity @@ -93,22 +97,32 @@ export default class CustomersController extends ApiController { return; } + req.body.contact.uid = userFound.contact_uid; + //init IUser resource with request body values const customerEntity = Customer.hydrate(req.body); - //validate user - await validateOrReject(customerEntity, { groups: ["updateCustomer"], forbidUnknownValues: false }); - + try { + await validateOrReject(customerEntity, { groups: ["updateCustomer"], forbidUnknownValues: false }); + } catch (error) { + this.httpValidationError(response, error); + return; + } //call service to get prisma entity - const customerEntityUpdated = await this.customersService.update(uid, customerEntity); + try { + const customerEntityUpdated = await this.customersService.update(uid, customerEntity); + //Hydrate ressource with prisma entity + const customer = Customer.hydrate(customerEntityUpdated, { + strategy: "excludeAll", + }); - //Hydrate ressource with prisma entity - const customer = Customer.hydrate(customerEntityUpdated, { - strategy: "excludeAll", - }); - - //success - this.httpSuccess(response, customer); + //success + this.httpSuccess(response, customer); + } catch (error) { + console.log(error); + this.httpValidationError(response, error); + return; + } } catch (error) { this.httpInternalError(response, error); return; diff --git a/src/app/api/super-admin/CustomersController.ts b/src/app/api/super-admin/CustomersController.ts index 628fa4ed..b3402942 100644 --- a/src/app/api/super-admin/CustomersController.ts +++ b/src/app/api/super-admin/CustomersController.ts @@ -79,7 +79,7 @@ export default class CustomersController extends ApiController { /** * @description Modify a specific customer by uid */ - @Put("/api/v1/super-admin/customers/:uid", [authHandler, roleHandler, ruleHandler, customerHandler]) + @Put("/api/v1/notary/customers/:uid", [authHandler, ruleHandler, customerHandler]) protected async put(req: Request, response: Response) { try { const uid = req.params["uid"]; @@ -94,23 +94,33 @@ export default class CustomersController extends ApiController { this.httpNotFoundRequest(response, "user not found"); return; } - + + req.body.contact.uid = userFound.contact_uid; + //init IUser resource with request body values const customerEntity = Customer.hydrate(req.body); - //validate user - await validateOrReject(customerEntity, { groups: ["updateCustomer"], forbidUnknownValues: false }); - + try { + await validateOrReject(customerEntity, { groups: ["updateCustomer"], forbidUnknownValues: false }); + } catch (error) { + this.httpValidationError(response, error); + return; + } //call service to get prisma entity - const customerEntityUpdated = await this.customersService.update(uid, customerEntity); + try { + const customerEntityUpdated = await this.customersService.update(uid, customerEntity); + //Hydrate ressource with prisma entity + const customer = Customer.hydrate(customerEntityUpdated, { + strategy: "excludeAll", + }); - //Hydrate ressource with prisma entity - const customer = Customer.hydrate(customerEntityUpdated, { - strategy: "excludeAll", - }); - - //success - this.httpSuccess(response, customer); + //success + this.httpSuccess(response, customer); + } catch (error) { + console.log(error); + this.httpValidationError(response, error); + return; + } } catch (error) { this.httpInternalError(response, error); return; diff --git a/src/common/repositories/ContactRepository.ts b/src/common/repositories/ContactRepository.ts index 8a3861ee..da12d0aa 100644 --- a/src/common/repositories/ContactRepository.ts +++ b/src/common/repositories/ContactRepository.ts @@ -26,4 +26,16 @@ export default class ContactRepository extends BaseRepository { include: { customers: true } }); } + + /** + * @description : Find unique customer by email + */ + public async findOneByPhoneNumber(cell_phone_number: string): Promise<(Contacts & {customers: Customers | null}) | null> { + return this.model.findUnique({ + where: { + cell_phone_number: cell_phone_number, + }, + include: { customers: true } + }); + } } diff --git a/src/common/system/controller-pattern/BaseController.ts b/src/common/system/controller-pattern/BaseController.ts index b13d997a..7baa9c02 100644 --- a/src/common/system/controller-pattern/BaseController.ts +++ b/src/common/system/controller-pattern/BaseController.ts @@ -45,7 +45,6 @@ export default abstract class BaseController { } protected httpResponse(response: Response, httpCode: HttpCodes, responseData: IResponseData = {}) { - console.log("httpResponse", httpCode, responseData); if (responseData instanceof Error) { throw responseData; } diff --git a/src/services/admin/CustomersService/CustomersService.ts b/src/services/admin/CustomersService/CustomersService.ts index 7656bed2..b4878d7d 100644 --- a/src/services/admin/CustomersService/CustomersService.ts +++ b/src/services/admin/CustomersService/CustomersService.ts @@ -1,12 +1,13 @@ import { Customers, Prisma } from "@prisma/client"; import CustomersRepository from "@Repositories/CustomersRepository"; import BaseService from "@Services/BaseService"; +import ContactsService from "@Services/common/ContactService/ContactService"; import { Customer } from "le-coffre-resources/dist/Admin"; import { Service } from "typedi"; @Service() export default class CustomersService extends BaseService { - constructor(private customerRepository: CustomersRepository) { + constructor(private customerRepository: CustomersRepository, private contactService: ContactsService) { super(); } @@ -23,6 +24,14 @@ export default class CustomersService extends BaseService { * @throws {Error} If customer cannot be created */ public async create(customerEntity: Customer): Promise { + const customers = await this.get({ + where: { + contact: { + OR: [{ email: customerEntity.contact?.email }, { cell_phone_number: customerEntity.contact?.cell_phone_number }], + }, + }, + }); + if(customers[0]) return customers[0]; return this.customerRepository.create(customerEntity); } @@ -31,6 +40,16 @@ export default class CustomersService extends BaseService { * @throws {Error} If customer cannot be modified */ public async update(uid: string, customerEntity: Customer): Promise { + let errors = []; + if(customerEntity.contact?.email) { + const contactWithSameEmail = await this.contactService.getByEmail(customerEntity.contact.email); + if(contactWithSameEmail && contactWithSameEmail.uid != customerEntity.contact.uid) errors.push({property: "email", constraints: {email: "Email déjà utilisé"}}); + } + if(customerEntity.contact?.cell_phone_number) { + const contactWithSamePhoneNumber = await this.contactService.getByPhone(customerEntity.contact.cell_phone_number); + if(contactWithSamePhoneNumber && contactWithSamePhoneNumber.uid != customerEntity.contact.uid) errors.push({property: "cell_phone_number", constraints: {phone: "numéro de téléphone déjà utilisé"}}); + } + if(errors.length != 0) throw errors; return this.customerRepository.update(uid, customerEntity); } diff --git a/src/services/common/ContactService/ContactService.ts b/src/services/common/ContactService/ContactService.ts new file mode 100644 index 00000000..f56f1b83 --- /dev/null +++ b/src/services/common/ContactService/ContactService.ts @@ -0,0 +1,27 @@ +import { Contacts, Customers } from "@prisma/client"; +import ContactsRepository from "@Repositories/ContactRepository"; +import BaseService from "@Services/BaseService"; +import { Service } from "typedi"; + +@Service() +export default class ContactsService extends BaseService { + constructor(private customerRepository: ContactsRepository) { + super(); + } + + /** + * @description : Get all Contacts + * @throws {Error} If Contacts cannot be get + */ + public async getByEmail(email: string): Promise<(Contacts & {customers: Customers | null}) | null> { + return this.customerRepository.findOneByEmail(email); + } + + /** + * @description : Create a new customer + * @throws {Error} If customer cannot be created + */ + public async getByPhone(cell_phone_number: string): Promise<(Contacts & {customers: Customers | null}) | null> { + return this.customerRepository.findOneByPhoneNumber(cell_phone_number); + } +} diff --git a/src/services/notary/CustomersService/CustomersService.ts b/src/services/notary/CustomersService/CustomersService.ts index 3202d143..721affd9 100644 --- a/src/services/notary/CustomersService/CustomersService.ts +++ b/src/services/notary/CustomersService/CustomersService.ts @@ -1,12 +1,13 @@ import { Customers, Prisma } from "@prisma/client"; import CustomersRepository from "@Repositories/CustomersRepository"; import BaseService from "@Services/BaseService"; +import ContactsService from "@Services/common/ContactService/ContactService"; import { Customer } from "le-coffre-resources/dist/Notary"; import { Service } from "typedi"; @Service() export default class CustomersService extends BaseService { - constructor(private customerRepository: CustomersRepository) { + constructor(private customerRepository: CustomersRepository, private contactService: ContactsService) { super(); } @@ -39,6 +40,16 @@ export default class CustomersService extends BaseService { * @throws {Error} If customer cannot be modified */ public async update(uid: string, customerEntity: Customer): Promise { + let errors = []; + if(customerEntity.contact?.email) { + const contactWithSameEmail = await this.contactService.getByEmail(customerEntity.contact.email); + if(contactWithSameEmail && contactWithSameEmail.uid != customerEntity.contact.uid) errors.push({property: "email", constraints: {email: "mail déjà utilisé"}}); + } + if(customerEntity.contact?.cell_phone_number) { + const contactWithSamePhoneNumber = await this.contactService.getByPhone(customerEntity.contact.cell_phone_number); + if(contactWithSamePhoneNumber && contactWithSamePhoneNumber.uid != customerEntity.contact.uid) errors.push({property: "cell_phone_number", constraints: {phone: "numéro de téléphone déjà utilisé"}}); + } + if(errors.length != 0) throw errors; return this.customerRepository.update(uid, customerEntity); } diff --git a/src/services/super-admin/CustomersService/CustomersService.ts b/src/services/super-admin/CustomersService/CustomersService.ts index 5501e1cb..5b8165ee 100644 --- a/src/services/super-admin/CustomersService/CustomersService.ts +++ b/src/services/super-admin/CustomersService/CustomersService.ts @@ -1,12 +1,13 @@ import { Customers, Prisma } from "@prisma/client"; import CustomersRepository from "@Repositories/CustomersRepository"; import BaseService from "@Services/BaseService"; +import ContactsService from "@Services/common/ContactService/ContactService"; import { Customer } from "le-coffre-resources/dist/SuperAdmin"; import { Service } from "typedi"; @Service() export default class CustomersService extends BaseService { - constructor(private customerRepository: CustomersRepository) { + constructor(private customerRepository: CustomersRepository, private contactService: ContactsService) { super(); } @@ -23,6 +24,14 @@ export default class CustomersService extends BaseService { * @throws {Error} If customer cannot be created */ public async create(customerEntity: Customer): Promise { + const customers = await this.get({ + where: { + contact: { + OR: [{ email: customerEntity.contact?.email }, { cell_phone_number: customerEntity.contact?.cell_phone_number }], + }, + }, + }); + if(customers[0]) return customers[0]; return this.customerRepository.create(customerEntity); } @@ -31,6 +40,16 @@ export default class CustomersService extends BaseService { * @throws {Error} If customer cannot be modified */ public async update(uid: string, customerEntity: Customer): Promise { + let errors = []; + if(customerEntity.contact?.email) { + const contactWithSameEmail = await this.contactService.getByEmail(customerEntity.contact.email); + if(contactWithSameEmail && contactWithSameEmail.uid != customerEntity.contact.uid) errors.push({property: "email", constraints: {email: "mail déjà utilisé"}}); + } + if(customerEntity.contact?.cell_phone_number) { + const contactWithSamePhoneNumber = await this.contactService.getByPhone(customerEntity.contact.cell_phone_number); + if(contactWithSamePhoneNumber && contactWithSamePhoneNumber.uid != customerEntity.contact.uid) errors.push({property: "cell_phone_number", constraints: {phone: "numéro de téléphone déjà utilisé"}}); + } + if(errors.length != 0) throw errors; return this.customerRepository.update(uid, customerEntity); } diff --git a/src/test/services/super-admin/CustomersService.test.ts b/src/test/services/super-admin/CustomersService.test.ts index 4b3f383e..01a540cd 100644 --- a/src/test/services/super-admin/CustomersService.test.ts +++ b/src/test/services/super-admin/CustomersService.test.ts @@ -6,10 +6,11 @@ import { PrismaClient } from "@prisma/client"; import { customer, customerContact, customerContact_, customer_ } from "@Test/config/MockedData"; import Container from "typedi"; import CustomersRepository from "@Repositories/CustomersRepository"; +import ContactService from "@Services/common/ContactService/ContactService"; const prisma = new PrismaClient(); -const CustomersServiceTest = new CustomersService(Container.get(CustomersRepository)); +const CustomersServiceTest = new CustomersService(Container.get(CustomersRepository), Container.get(ContactService)); afterAll(async () => { /* From 6815fe6f83b95535e047c6e6ea680e76b66260c1 Mon Sep 17 00:00:00 2001 From: Vins Date: Thu, 12 Oct 2023 12:00:48 +0200 Subject: [PATCH 04/26] Removed emilBuilder sendRecap function --- src/common/emails/EmailBuilder.ts | 11 +++++++---- src/common/repositories/EmailRepository.ts | 2 +- src/services/common/CronService/CronService.ts | 6 ++++-- .../common/MailchimpService/MailchimpService.ts | 14 ++------------ 4 files changed, 14 insertions(+), 19 deletions(-) diff --git a/src/common/emails/EmailBuilder.ts b/src/common/emails/EmailBuilder.ts index 9aec7bc5..7d76d3e0 100644 --- a/src/common/emails/EmailBuilder.ts +++ b/src/common/emails/EmailBuilder.ts @@ -6,10 +6,11 @@ import { Service } from "typedi"; import { ETemplates } from "./Templates/EmailTemplates"; import MailchimpService from "@Services/common/MailchimpService/MailchimpService"; import { BackendVariables } from "@Common/config/variables/Variables"; +import UsersService from "@Services/super-admin/UsersService/UsersService"; @Service() -export default class EmailBuilder { - public constructor(private mailchimpService: MailchimpService ,private documentsService: DocumentsService, protected variables: BackendVariables){} +export default class EmailBuilder{ + public constructor(private mailchimpService: MailchimpService ,private documentsService: DocumentsService, protected variables: BackendVariables, private usersService: UsersService){} public async sendDocumentEmails(documentEntity: Documents){ if(documentEntity.document_status !== "ASKED" && documentEntity.document_status !== "REFUSED") return; @@ -53,9 +54,11 @@ export default class EmailBuilder { }); } - public async sendRecapEmails(usersToEmail: User[]){ + public async sendRecapEmails(){ + const usersToEmail : User[] = await this.usersService.get({ where: { office_folders: { some:{ documents: { some: { document_status: "DEPOSITED" } } }} }, distinct: ["uid"], include: { contact: true } }); + usersToEmail.forEach(user => { - const to = user.contact!.email; + const to = user.contact!.email; const civility = this.getCivility(user.contact!.civility); const templateVariables = { diff --git a/src/common/repositories/EmailRepository.ts b/src/common/repositories/EmailRepository.ts index 82c9fa0f..6f1a7a45 100644 --- a/src/common/repositories/EmailRepository.ts +++ b/src/common/repositories/EmailRepository.ts @@ -26,7 +26,7 @@ export default class EmailRepository extends BaseRepository { /** * @description : Create an email */ - public async create(email: Emails): Promise { + public async create(email: Emails): Promise { const createArgs: Prisma.EmailsCreateArgs = { data: { templateName: email.templateName, diff --git a/src/services/common/CronService/CronService.ts b/src/services/common/CronService/CronService.ts index c37c6860..4b46e962 100644 --- a/src/services/common/CronService/CronService.ts +++ b/src/services/common/CronService/CronService.ts @@ -5,6 +5,7 @@ import FilesService from "../FilesService/FilesService"; import IdNotService from "../IdNotService/IdNotService"; import { PrismaClient } from "@prisma/client"; import NotificationBuilder from "@Common/notifications/NotificationBuilder"; +import EmailBuilder from "@Common/emails/EmailBuilder"; // import { PrismaClient } from "@prisma/client"; @Service() @@ -13,7 +14,8 @@ export default class CronService { private mailchimpService: MailchimpService, private filesService: FilesService, private idNotService: IdNotService, - private notificationBuilder: NotificationBuilder + private notificationBuilder: NotificationBuilder, + private emailBuilder: EmailBuilder, ) {} public async sendMails() { @@ -36,7 +38,7 @@ export default class CronService { const cronJob = new CronJob("0 20 * * FRI", async () => { // Every friday at 20:00 try { - await this.mailchimpService.sendRecapEmails(); + await this.emailBuilder.sendRecapEmails(); } catch (e) { console.error(e); } diff --git a/src/services/common/MailchimpService/MailchimpService.ts b/src/services/common/MailchimpService/MailchimpService.ts index 8eb603bf..4e73408c 100644 --- a/src/services/common/MailchimpService/MailchimpService.ts +++ b/src/services/common/MailchimpService/MailchimpService.ts @@ -4,18 +4,14 @@ import { Emails, Prisma } from "@prisma/client"; import { Service } from "typedi"; import MailchimpClient from "@mailchimp/mailchimp_transactional"; import { BackendVariables } from "@Common/config/variables/Variables"; -import UsersService from "@Services/super-admin/UsersService/UsersService"; -import EmailBuilder from "@Common/emails/EmailBuilder"; @Service() export default class MailchimpService extends BaseService { - private static readonly from = "vincent.alamelle@smart-chain.fr"; + private static readonly from = "no-reply@smart-chain.fr"; constructor( private emailRepository: EmailRepository, protected variables: BackendVariables, - private usersService: UsersService, - private emailBuilder: EmailBuilder, ) { super(); } @@ -32,7 +28,7 @@ export default class MailchimpService extends BaseService { * @description : Create a new email * @throws {Error} If email cannot be created */ - public async create(emailEntity: Emails): Promise { + public async create(emailEntity: Emails): Promise { emailEntity.from = MailchimpService.from; return this.emailRepository.create(emailEntity); } @@ -120,10 +116,4 @@ export default class MailchimpService extends BaseService { }; }); } - - public async sendRecapEmails() { - const usersToEmail = await this.usersService.get({ where: { office_folders: { some:{ documents: { some: { document_status: "DEPOSITED" } } }} }, distinct: ["uid"], include: { contact: true } }); - - await this.emailBuilder.sendRecapEmails(usersToEmail); - } } From 819b554b64e50fbfbc873e44e6165035b70f1626 Mon Sep 17 00:00:00 2001 From: OxSaitama Date: Thu, 12 Oct 2023 19:45:26 +0200 Subject: [PATCH 05/26] add validation errors --- package.json | 2 +- src/app/api/admin/DeedTypesController.ts | 5 -- src/app/api/admin/OfficeFoldersController.ts | 44 +++++++++------ src/app/api/notary/DocumentTypesController.ts | 11 ++-- src/app/api/notary/OfficeFoldersController.ts | 56 ++++++++++--------- .../super-admin/OfficeFoldersController.ts | 38 ++++++++----- .../DeedTypeHandler.ts | 12 ++++ .../DocumentTypeHandler.ts | 12 ++++ .../OfficeMembershipHandlers/FolderHandler.ts | 31 +++++----- .../repositories/OfficeFoldersRepository.ts | 10 +++- .../OfficeFoldersService.ts | 9 --- .../OfficeFoldersService.ts | 9 --- .../OfficeFoldersService.ts | 9 --- .../super-admin/OfficeFolderService.test.ts | 6 +- 14 files changed, 139 insertions(+), 115 deletions(-) diff --git a/package.json b/package.json index c0ec46b8..d1529382 100644 --- a/package.json +++ b/package.json @@ -53,7 +53,7 @@ "express": "^4.18.2", "fp-ts": "^2.16.1", "jsonwebtoken": "^9.0.0", - "le-coffre-resources": "git@github.com:smart-chain-fr/leCoffre-resources.git#v2.90", + "le-coffre-resources": "git@github.com:smart-chain-fr/leCoffre-resources.git#v2.92", "module-alias": "^2.2.2", "monocle-ts": "^2.3.13", "multer": "^1.4.5-lts.1", diff --git a/src/app/api/admin/DeedTypesController.ts b/src/app/api/admin/DeedTypesController.ts index d1273879..3963128e 100644 --- a/src/app/api/admin/DeedTypesController.ts +++ b/src/app/api/admin/DeedTypesController.ts @@ -74,11 +74,6 @@ export default class DeedTypesController extends ApiController { //validate deed type await validateOrReject(deedTypeEntity, { groups: ["createDeedType"], forbidUnknownValues: false }); - const doesExist = await this.deedTypesService.get({ where: { name: deedTypeEntity.name } }); - if (doesExist.length > 0) { - this.httpBadRequest(response, "Deed type name already used"); - return; - } //call service to get prisma entity const deedTypeEntityCreated = await this.deedTypesService.create(deedTypeEntity); diff --git a/src/app/api/admin/OfficeFoldersController.ts b/src/app/api/admin/OfficeFoldersController.ts index bf1c8732..2284ae19 100644 --- a/src/app/api/admin/OfficeFoldersController.ts +++ b/src/app/api/admin/OfficeFoldersController.ts @@ -62,7 +62,7 @@ export default class OfficeFoldersController extends ApiController { if (query.where?.stakeholders) delete query.where.stakeholders; const officeFoldersWhereInput: Prisma.OfficeFoldersWhereInput = { ...query.where, stakeholders: { some: { uid: userId } } }; query.where = officeFoldersWhereInput; - + //call service to get prisma entity const officeFolderEntities: OfficeFolders[] = await this.officeFoldersService.get(query); @@ -89,13 +89,18 @@ export default class OfficeFoldersController extends ApiController { await officeFolderRessource.validateOrReject?.({ groups: ["createFolder"], forbidUnknownValues: false }); //call service to get prisma entity - const officeFolderEntity = await this.officeFoldersService.create(officeFolderRessource); - //Hydrate ressource with prisma entity - const officeFolders = OfficeFolder.hydrate(officeFolderEntity, { - strategy: "excludeAll", - }); - //success - this.httpCreated(response, officeFolders); + try { + const officeFolderEntity = await this.officeFoldersService.create(officeFolderRessource); + //Hydrate ressource with prisma entity + const officeFolders = OfficeFolder.hydrate(officeFolderEntity, { + strategy: "excludeAll", + }); + //success + this.httpCreated(response, officeFolders); + } catch (error) { + this.httpValidationError(response, error); + return; + } } catch (error) { this.httpInternalError(response, error); return; @@ -120,7 +125,7 @@ export default class OfficeFoldersController extends ApiController { this.httpNotFoundRequest(response, "office folder not found"); return; } - + //init OfficeFolder resource with request body values const officeFolderEntity = OfficeFolder.hydrate(req.body); @@ -128,15 +133,20 @@ export default class OfficeFoldersController extends ApiController { await validateOrReject(officeFolderEntity, { groups: ["updateFolder"], forbidUnknownValues: false }); //call service to get prisma entity - const officeFolderEntityUpdated = await this.officeFoldersService.update(uid, officeFolderEntity); + try { + const officeFolderEntityUpdated = await this.officeFoldersService.update(uid, officeFolderEntity); - //Hydrate ressource with prisma entity - const officeFolders = OfficeFolder.hydrate(officeFolderEntityUpdated, { - strategy: "excludeAll", - }); + //Hydrate ressource with prisma entity + const officeFolders = OfficeFolder.hydrate(officeFolderEntityUpdated, { + strategy: "excludeAll", + }); - //success - this.httpSuccess(response, officeFolders); + //success + this.httpSuccess(response, officeFolders); + } catch (error) { + this.httpValidationError(response, error); + return; + } } catch (error) { this.httpInternalError(response, error); return; @@ -160,7 +170,7 @@ export default class OfficeFoldersController extends ApiController { if (req.query["q"]) { query = JSON.parse(req.query["q"] as string); } - + const officeFolderEntity = await this.officeFoldersService.getByUid(uid, query); if (!officeFolderEntity) { diff --git a/src/app/api/notary/DocumentTypesController.ts b/src/app/api/notary/DocumentTypesController.ts index 6a1a81bd..8071a296 100644 --- a/src/app/api/notary/DocumentTypesController.ts +++ b/src/app/api/notary/DocumentTypesController.ts @@ -4,7 +4,6 @@ import ApiController from "@Common/system/controller-pattern/ApiController"; import { Service } from "typedi"; import DocumentTypesService from "@Services/notary/DocumentTypesService/DocumentTypesService"; import { DocumentTypes, Prisma } from "@prisma/client"; -import ObjectHydrate from "@Common/helpers/ObjectHydrate"; import { DocumentType } from "le-coffre-resources/dist/Notary"; import { validateOrReject } from "class-validator"; import authHandler from "@App/middlewares/AuthHandler"; @@ -133,11 +132,15 @@ export default class DocumentTypesController extends ApiController { const documentTypeEntity = await this.documentTypesService.getByUid(uid, query); - //Hydrate ressource with prisma entity - const user = ObjectHydrate.hydrate(new DocumentType(), documentTypeEntity!, { strategy: "excludeAll" }); + if (!documentTypeEntity) { + this.httpNotFoundRequest(response, "document type not found"); + return; + } + + const documentType = DocumentType.hydrate(documentTypeEntity, { strategy: "excludeAll" }); //success - this.httpSuccess(response, user); + this.httpSuccess(response, documentType); } catch (error) { this.httpInternalError(response, error); return; diff --git a/src/app/api/notary/OfficeFoldersController.ts b/src/app/api/notary/OfficeFoldersController.ts index d5a5b115..f8dca5ad 100644 --- a/src/app/api/notary/OfficeFoldersController.ts +++ b/src/app/api/notary/OfficeFoldersController.ts @@ -86,13 +86,18 @@ export default class OfficeFoldersController extends ApiController { await officeFolderRessource.validateOrReject?.({ groups: ["createFolder"], forbidUnknownValues: false }); //call service to get prisma entity - const officeFolderEntity = await this.officeFoldersService.create(officeFolderRessource); - //Hydrate ressource with prisma entity - const officeFolders = OfficeFolder.hydrate(officeFolderEntity, { - strategy: "excludeAll", - }); - //success - this.httpCreated(response, officeFolders); + try { + const officeFolderEntity = await this.officeFoldersService.create(officeFolderRessource); + //Hydrate ressource with prisma entity + const officeFolders = OfficeFolder.hydrate(officeFolderEntity, { + strategy: "excludeAll", + }); + //success + this.httpCreated(response, officeFolders); + } catch (error) { + this.httpValidationError(response, error); + return; + } } catch (error) { this.httpInternalError(response, error); return; @@ -111,9 +116,7 @@ export default class OfficeFoldersController extends ApiController { return; } - const officeFolderFound = await this.officeFoldersService.getByUid(uid, { - folder_anchor: true, - }); + const officeFolderFound = await this.officeFoldersService.getByUid(uid); if (!officeFolderFound) { this.httpNotFoundRequest(response, "office folder not found"); @@ -121,25 +124,26 @@ export default class OfficeFoldersController extends ApiController { } //init OfficeFolder resource with request body values - const officefolderToUpdate = OfficeFolder.hydrate(req.body); - const officeFolderFoundEntity = OfficeFolder.hydrate(officeFolderFound); - //validate folder - await validateOrReject(officefolderToUpdate, { groups: ["updateFolder"], forbidUnknownValues: false }); + const officeFolderEntity = OfficeFolder.hydrate(req.body); - if (officeFolderFoundEntity.folder_anchor?.status === "VERIFIED_ON_CHAIN") { - this.httpBadRequest(response, "Cannot update a verified folder"); + //validate folder + await validateOrReject(officeFolderEntity, { groups: ["updateFolder"], forbidUnknownValues: false }); + + //call service to get prisma entity + try { + const officeFolderEntityUpdated = await this.officeFoldersService.update(uid, officeFolderEntity); + + //Hydrate ressource with prisma entity + const officeFolders = OfficeFolder.hydrate(officeFolderEntityUpdated, { + strategy: "excludeAll", + }); + + //success + this.httpSuccess(response, officeFolders); + } catch (error) { + this.httpValidationError(response, error); return; } - //call service to get prisma entity - const officeFolderEntityUpdated = await this.officeFoldersService.update(uid, officefolderToUpdate); - - //Hydrate ressource with prisma entity - const officeFolders = OfficeFolder.hydrate(officeFolderEntityUpdated, { - strategy: "excludeAll", - }); - - //success - this.httpSuccess(response, officeFolders); } catch (error) { this.httpInternalError(response, error); return; diff --git a/src/app/api/super-admin/OfficeFoldersController.ts b/src/app/api/super-admin/OfficeFoldersController.ts index f31d2807..200dc117 100644 --- a/src/app/api/super-admin/OfficeFoldersController.ts +++ b/src/app/api/super-admin/OfficeFoldersController.ts @@ -87,13 +87,18 @@ export default class OfficeFoldersController extends ApiController { await officeFolderRessource.validateOrReject?.({ groups: ["createFolder"], forbidUnknownValues: false }); //call service to get prisma entity - const officeFolderEntity = await this.officeFoldersService.create(officeFolderRessource); - //Hydrate ressource with prisma entity - const officeFolders = OfficeFolder.hydrate(officeFolderEntity, { - strategy: "excludeAll", - }); - //success - this.httpCreated(response, officeFolders); + try { + const officeFolderEntity = await this.officeFoldersService.create(officeFolderRessource); + //Hydrate ressource with prisma entity + const officeFolders = OfficeFolder.hydrate(officeFolderEntity, { + strategy: "excludeAll", + }); + //success + this.httpCreated(response, officeFolders); + } catch (error) { + this.httpValidationError(response, error); + return; + } } catch (error) { this.httpInternalError(response, error); return; @@ -126,15 +131,20 @@ export default class OfficeFoldersController extends ApiController { await validateOrReject(officeFolderEntity, { groups: ["updateFolder"], forbidUnknownValues: false }); //call service to get prisma entity - const officeFolderEntityUpdated = await this.officeFoldersService.update(uid, officeFolderEntity); + try { + const officeFolderEntityUpdated = await this.officeFoldersService.update(uid, officeFolderEntity); - //Hydrate ressource with prisma entity - const officeFolders = OfficeFolder.hydrate(officeFolderEntityUpdated, { - strategy: "excludeAll", - }); + //Hydrate ressource with prisma entity + const officeFolders = OfficeFolder.hydrate(officeFolderEntityUpdated, { + strategy: "excludeAll", + }); - //success - this.httpSuccess(response, officeFolders); + //success + this.httpSuccess(response, officeFolders); + } catch (error) { + this.httpValidationError(response, error); + return; + } } catch (error) { this.httpInternalError(response, error); return; diff --git a/src/app/middlewares/OfficeMembershipHandlers/DeedTypeHandler.ts b/src/app/middlewares/OfficeMembershipHandlers/DeedTypeHandler.ts index f8b8e104..57066861 100644 --- a/src/app/middlewares/OfficeMembershipHandlers/DeedTypeHandler.ts +++ b/src/app/middlewares/OfficeMembershipHandlers/DeedTypeHandler.ts @@ -11,12 +11,24 @@ export default async function deedTypeHandler(req: Request, response: Response, const uid = req.path && req.path.split("/")[5]; const documentTypes: DocumentType[] = req.body.document_types; const office = req.body.office; + const name = req.body.name; if (office && office.uid != officeId) { response.status(HttpCodes.UNAUTHORIZED).send("Unauthorized with this office"); return; } + if (name) { + const deedTypeService = Container.get(DeedTypesService); + const deedType = await deedTypeService.get({ + where: { AND: [{ name: { equals: name, mode: "insensitive" } }, { office: { uid: officeId } }] }, + }); + if (deedType[0] && (!uid || deedType[0].uid != uid)) { + response.status(HttpCodes.VALIDATION_ERROR).send([{ property: "name", constraints: { name: "Nom d'acte déjà utilisé" } }]); + return; + } + } + if (uid) { const deedTypeService = Container.get(DeedTypesService); const deedType = await deedTypeService.getByUidWithOffice(uid!); diff --git a/src/app/middlewares/OfficeMembershipHandlers/DocumentTypeHandler.ts b/src/app/middlewares/OfficeMembershipHandlers/DocumentTypeHandler.ts index 9c8c8071..e5078ba8 100644 --- a/src/app/middlewares/OfficeMembershipHandlers/DocumentTypeHandler.ts +++ b/src/app/middlewares/OfficeMembershipHandlers/DocumentTypeHandler.ts @@ -8,12 +8,24 @@ export default async function documentTypeHandler(req: Request, response: Respon const officeId = req.body.user.office_Id; const uid = req.path && req.path.split("/")[5]; const office = req.body.office; + const name = req.body.name; if (office && office.uid != officeId) { response.status(HttpCodes.UNAUTHORIZED).send("Unauthorized with this office"); return; } + if (name) { + const documentTypeService = Container.get(DocumentTypesService); + const documentType = await documentTypeService.get({ + where: { AND: [{ name: { equals: name, mode: "insensitive" } }, { office: { uid: officeId } }] }, + }); + if (documentType[0] && (!uid || documentType[0].uid != uid)) { + response.status(HttpCodes.VALIDATION_ERROR).send([{ property: "name", constraints: { name: "Nom de document déjà utilisé" } }]); + return; + } + } + if (uid) { const documentTypeService = Container.get(DocumentTypesService); const documentType = await documentTypeService.getByUidWithOffice(uid!); diff --git a/src/app/middlewares/OfficeMembershipHandlers/FolderHandler.ts b/src/app/middlewares/OfficeMembershipHandlers/FolderHandler.ts index 2019b74a..ae447090 100644 --- a/src/app/middlewares/OfficeMembershipHandlers/FolderHandler.ts +++ b/src/app/middlewares/OfficeMembershipHandlers/FolderHandler.ts @@ -10,14 +10,25 @@ export default async function folderHandler(req: Request, response: Response, ne const userId = req.body.user.userId; let uid = req.path && req.path.split("/")[5]; const office = req.body.office; - const officeFolderNumber = req.body.folder_number; const deed = req.body.deed; + const folderNumber = req.body.folder_number; if (office && office.uid != officeId) { response.status(HttpCodes.UNAUTHORIZED).send("Unauthorized with this office"); return; } + if(folderNumber) { + const officeFolderService = Container.get(OfficeFoldersService); + const sameFolderNumber = await officeFolderService.get({ + where: { AND: [{ folder_number: folderNumber }, { office_uid: officeId }] }, + }); + if(sameFolderNumber[0] && (!uid || uid != sameFolderNumber[0]?.uid)) { + response.status(HttpCodes.VALIDATION_ERROR).send([{ property: "folder_number", constraints: { folder_number: "Numéro de dossier déjà utilisé" } }]); + return; + } + } + if (deed && deed.deed_type) { const deedTypeService = Container.get(DeedTypesService); const deedTypeWithOffice = await deedTypeService.getByUidWithOffice(deed.deed_type.uid!); @@ -25,20 +36,12 @@ export default async function folderHandler(req: Request, response: Response, ne response.status(HttpCodes.NOT_FOUND).send("Deed type not found"); return; } - if (deedTypeWithOffice.office.uid != officeId) { - response.status(HttpCodes.UNAUTHORIZED).send("Unauthorized with this deed type"); + if(deedTypeWithOffice.archived_at) { + response.status(HttpCodes.FORBIDDEN).send("Deed type is archived"); return; } - } - - const officeFolderService = Container.get(OfficeFoldersService); - - if (officeFolderNumber && req.method == "POST") { - const officeFoldersWithSameNumber = await officeFolderService.get({ - where: { folder_number: officeFolderNumber, office: { uid: officeId } }, - }); - if (officeFoldersWithSameNumber.length) { - response.status(HttpCodes.BAD_REQUEST).send("Office number already used"); + if (deedTypeWithOffice.office.uid != officeId) { + response.status(HttpCodes.UNAUTHORIZED).send("Unauthorized with this deed type"); return; } } @@ -47,6 +50,8 @@ export default async function folderHandler(req: Request, response: Response, ne if(uid === "download") { uid = req.path && req.path.split("/")[6]; } + const officeFolderService = Container.get(OfficeFoldersService); + const officeFolder = await officeFolderService.getByUidWithStakeholders(uid!); if (!officeFolder) { diff --git a/src/common/repositories/OfficeFoldersRepository.ts b/src/common/repositories/OfficeFoldersRepository.ts index f918890a..7486b7c7 100644 --- a/src/common/repositories/OfficeFoldersRepository.ts +++ b/src/common/repositories/OfficeFoldersRepository.ts @@ -35,8 +35,12 @@ export default class OfficeFoldersRepository extends BaseRepository { description: officeFolder.description, status: EFolderStatus.LIVE, deed: { - connect: { - uid: officeFolder.deed?.uid, + create: { + deed_type: { + connect: { + uid: officeFolder.deed?.deed_type?.uid, + }, + }, }, }, office: { @@ -121,7 +125,7 @@ export default class OfficeFoldersRepository extends BaseRepository { }, include: { customers: true, - } + }, }); } diff --git a/src/services/admin/OfficeFoldersService/OfficeFoldersService.ts b/src/services/admin/OfficeFoldersService/OfficeFoldersService.ts index 8d474aef..43953660 100644 --- a/src/services/admin/OfficeFoldersService/OfficeFoldersService.ts +++ b/src/services/admin/OfficeFoldersService/OfficeFoldersService.ts @@ -3,16 +3,12 @@ import OfficeFoldersRepository from "@Repositories/OfficeFoldersRepository"; import BaseService from "@Services/BaseService"; import { OfficeFolder } from "le-coffre-resources/dist/Admin"; import { Service } from "typedi"; -import DeedTypesService from "../DeedTypesService/DeedTypesService"; -import DeedsRepository from "@Repositories/DeedsRepository"; import { Prisma } from "@prisma/client"; @Service() export default class OfficeFoldersService extends BaseService { constructor( private officeFoldersRepository: OfficeFoldersRepository, - private deedTypeService: DeedTypesService, - private deedRepository: DeedsRepository, ) { super(); } @@ -30,11 +26,6 @@ export default class OfficeFoldersService extends BaseService { * @throws {Error} If folder cannot be created */ public async create(officeFolderEntity: OfficeFolder): Promise { - const deedType = await this.deedTypeService.getByUid(officeFolderEntity.deed!.deed_type!.uid!); - if (!deedType) throw new Error("deed type not found"); - if (deedType.archived_at) throw new Error("deed type is archived"); - const deed = await this.deedRepository.create(officeFolderEntity.deed!); - officeFolderEntity.deed!.uid = deed.uid; return this.officeFoldersRepository.create(officeFolderEntity); } diff --git a/src/services/notary/OfficeFoldersService/OfficeFoldersService.ts b/src/services/notary/OfficeFoldersService/OfficeFoldersService.ts index 97fa5680..e2274813 100644 --- a/src/services/notary/OfficeFoldersService/OfficeFoldersService.ts +++ b/src/services/notary/OfficeFoldersService/OfficeFoldersService.ts @@ -3,16 +3,12 @@ import OfficeFoldersRepository from "@Repositories/OfficeFoldersRepository"; import BaseService from "@Services/BaseService"; import { OfficeFolder } from "le-coffre-resources/dist/Notary"; import { Service } from "typedi"; -import DeedTypesService from "../DeedTypesService/DeedTypesService"; -import DeedsRepository from "@Repositories/DeedsRepository"; import { Prisma } from "@prisma/client"; @Service() export default class OfficeFoldersService extends BaseService { constructor( private officeFoldersRepository: OfficeFoldersRepository, - private deedTypeService: DeedTypesService, - private deedRepository: DeedsRepository, ) { super(); } @@ -30,11 +26,6 @@ export default class OfficeFoldersService extends BaseService { * @throws {Error} If folder cannot be created */ public async create(officeFolderEntity: OfficeFolder): Promise { - const deedType = await this.deedTypeService.getByUid(officeFolderEntity.deed!.deed_type!.uid!); - if (!deedType) throw new Error("deed type not found"); - if (deedType.archived_at) throw new Error("deed type is archived"); - const deed = await this.deedRepository.create(officeFolderEntity.deed!); - officeFolderEntity.deed!.uid = deed.uid; return this.officeFoldersRepository.create(officeFolderEntity); } diff --git a/src/services/super-admin/OfficeFoldersService/OfficeFoldersService.ts b/src/services/super-admin/OfficeFoldersService/OfficeFoldersService.ts index 73e72808..ead0f2bb 100644 --- a/src/services/super-admin/OfficeFoldersService/OfficeFoldersService.ts +++ b/src/services/super-admin/OfficeFoldersService/OfficeFoldersService.ts @@ -3,16 +3,12 @@ import OfficeFoldersRepository from "@Repositories/OfficeFoldersRepository"; import BaseService from "@Services/BaseService"; import { OfficeFolder } from "le-coffre-resources/dist/SuperAdmin"; import { Service } from "typedi"; -import DeedTypesService from "../DeedTypesService/DeedTypesService"; -import DeedsRepository from "@Repositories/DeedsRepository"; import { Prisma } from "@prisma/client"; @Service() export default class OfficeFoldersService extends BaseService { constructor( private officeFoldersRepository: OfficeFoldersRepository, - private deedTypeService: DeedTypesService, - private deedRepository: DeedsRepository, ) { super(); } @@ -30,11 +26,6 @@ export default class OfficeFoldersService extends BaseService { * @throws {Error} If folder cannot be created */ public async create(officeFolderEntity: OfficeFolder): Promise { - const deedType = await this.deedTypeService.getByUid(officeFolderEntity.deed!.deed_type!.uid!); - if (!deedType) throw new Error("deed type not found"); - if (deedType.archived_at) throw new Error("deed type is archived"); - const deed = await this.deedRepository.create(officeFolderEntity.deed!); - officeFolderEntity.deed!.uid = deed.uid; return this.officeFoldersRepository.create(officeFolderEntity); } diff --git a/src/test/services/super-admin/OfficeFolderService.test.ts b/src/test/services/super-admin/OfficeFolderService.test.ts index 909a6ddd..579d0c7c 100644 --- a/src/test/services/super-admin/OfficeFolderService.test.ts +++ b/src/test/services/super-admin/OfficeFolderService.test.ts @@ -18,15 +18,11 @@ import OfficeFoldersRepository from "@Repositories/OfficeFoldersRepository"; import OfficeFolderService from "@Services/super-admin/OfficeFoldersService/OfficeFoldersService"; import { initCustomers, initDeedType, initDocumentType, initOffice, initUsers } from "@Test/config/Init"; import { OfficeFolder } from "le-coffre-resources/dist/SuperAdmin"; -import DeedTypesService from "@Services/super-admin/DeedTypesService/DeedTypesService"; -import DeedsRepository from "@Repositories/DeedsRepository"; const prisma = new PrismaClient(); const OfficeFolderServiceTest = new OfficeFolderService( - Container.get(OfficeFoldersRepository), - Container.get(DeedTypesService), - Container.get(DeedsRepository), + Container.get(OfficeFoldersRepository) ); beforeAll(async () => { From 988a10efde371d0fdc7d83f865bdf549310ada65 Mon Sep 17 00:00:00 2001 From: OxSaitama Date: Fri, 13 Oct 2023 11:26:29 +0200 Subject: [PATCH 06/26] fix package version --- package.json | 2 +- src/app/api/id360/CustomerController.ts | 28 ++++++++++++++++--------- 2 files changed, 19 insertions(+), 11 deletions(-) diff --git a/package.json b/package.json index d1529382..b8cdfe2f 100644 --- a/package.json +++ b/package.json @@ -53,7 +53,7 @@ "express": "^4.18.2", "fp-ts": "^2.16.1", "jsonwebtoken": "^9.0.0", - "le-coffre-resources": "git@github.com:smart-chain-fr/leCoffre-resources.git#v2.92", + "le-coffre-resources": "git@github.com:smart-chain-fr/leCoffre-resources.git#v2.93", "module-alias": "^2.2.2", "monocle-ts": "^2.3.13", "multer": "^1.4.5-lts.1", diff --git a/src/app/api/id360/CustomerController.ts b/src/app/api/id360/CustomerController.ts index 086b40b0..58d3fec6 100644 --- a/src/app/api/id360/CustomerController.ts +++ b/src/app/api/id360/CustomerController.ts @@ -34,26 +34,34 @@ export default class CustomerController extends ApiController { return; } try { - await new Promise( resolve => setTimeout(resolve, 3000)); // wait 3 seconds to be sure that the enrollment is finilazed + await new Promise((resolve) => setTimeout(resolve, 3000)); // wait 3 seconds to be sure that the enrollment is finilazed const res = await this.id360Service.getEnrollment(callbackToken); - const enrollment = await res.json() as EnrollmentResponse; + const enrollment = (await res.json()) as EnrollmentResponse; if (enrollment.status !== "OK") { this.httpUnauthorized(response, "Enrollment status is not OK"); return; } const customerData = await this.id360Service.getReport(enrollment.id); + const customer = await this.customerService.get({ where: { contact: { - last_name: { contains: customerData.external_methods.france_connect.results.france_connect_out_userinfo[0].family_name, - mode: 'insensitive' }, - first_name: { contains: customerData.external_methods.france_connect.results.france_connect_out_userinfo[0].given_name.split(" ")[0], - mode: 'insensitive'}, + last_name: { + contains: customerData.external_methods.france_connect.results.france_connect_out_userinfo[0].family_name, + mode: "insensitive", + }, + first_name: { + contains: + customerData.external_methods.france_connect.results.france_connect_out_userinfo[0].given_name.split( + " ", + )[0], + mode: "insensitive", + }, }, }, - include: { - contact: true, - } + include: { + contact: true, + }, }); // const contact = await this.customerService.getByEmail( // customerData.external_methods.france_connect.results.france_connect_out_userinfo[0].email, @@ -63,7 +71,7 @@ export default class CustomerController extends ApiController { return; } - const customersHydrated = Customer.hydrateArray(customer); + const customersHydrated = Customer.hydrateArray(customer); const payload = await this.authService.getCustomerJwtPayload(customersHydrated[0]!); const accessToken = this.authService.generateAccessToken(payload); const refreshToken = this.authService.generateRefreshToken(payload); From 77c2273ef058a2f87a520c019cba7d4041ce4eed Mon Sep 17 00:00:00 2001 From: OxSaitama Date: Fri, 13 Oct 2023 13:26:45 +0200 Subject: [PATCH 07/26] fix document types copy in deeds --- src/common/repositories/OfficeFoldersRepository.ts | 8 ++------ .../notary/OfficeFoldersService/OfficeFoldersService.ts | 4 ++++ 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/common/repositories/OfficeFoldersRepository.ts b/src/common/repositories/OfficeFoldersRepository.ts index 7486b7c7..67d40456 100644 --- a/src/common/repositories/OfficeFoldersRepository.ts +++ b/src/common/repositories/OfficeFoldersRepository.ts @@ -35,12 +35,8 @@ export default class OfficeFoldersRepository extends BaseRepository { description: officeFolder.description, status: EFolderStatus.LIVE, deed: { - create: { - deed_type: { - connect: { - uid: officeFolder.deed?.deed_type?.uid, - }, - }, + connect: { + uid: officeFolder.deed!.uid, }, }, office: { diff --git a/src/services/notary/OfficeFoldersService/OfficeFoldersService.ts b/src/services/notary/OfficeFoldersService/OfficeFoldersService.ts index e2274813..689b4bb3 100644 --- a/src/services/notary/OfficeFoldersService/OfficeFoldersService.ts +++ b/src/services/notary/OfficeFoldersService/OfficeFoldersService.ts @@ -4,11 +4,13 @@ import BaseService from "@Services/BaseService"; import { OfficeFolder } from "le-coffre-resources/dist/Notary"; import { Service } from "typedi"; import { Prisma } from "@prisma/client"; +import DeedsService from "../DeedsService/DeedsService"; @Service() export default class OfficeFoldersService extends BaseService { constructor( private officeFoldersRepository: OfficeFoldersRepository, + private deedService: DeedsService, ) { super(); } @@ -26,6 +28,8 @@ export default class OfficeFoldersService extends BaseService { * @throws {Error} If folder cannot be created */ public async create(officeFolderEntity: OfficeFolder): Promise { + const deed = await this.deedService.create(officeFolderEntity.deed!); + officeFolderEntity.deed!.uid = deed.uid; return this.officeFoldersRepository.create(officeFolderEntity); } From 1c6b9680f9b0c4b74bcffd9a32326b8a1203390b Mon Sep 17 00:00:00 2001 From: OxSaitama Date: Mon, 16 Oct 2023 16:22:07 +0200 Subject: [PATCH 08/26] handle empty collaborators error --- package.json | 2 +- .../OfficeMembershipHandlers/FolderHandler.ts | 9 ++++++++- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index b8cdfe2f..93cd586e 100644 --- a/package.json +++ b/package.json @@ -53,7 +53,7 @@ "express": "^4.18.2", "fp-ts": "^2.16.1", "jsonwebtoken": "^9.0.0", - "le-coffre-resources": "git@github.com:smart-chain-fr/leCoffre-resources.git#v2.93", + "le-coffre-resources": "git@github.com:smart-chain-fr/leCoffre-resources.git#v2.94", "module-alias": "^2.2.2", "monocle-ts": "^2.3.13", "multer": "^1.4.5-lts.1", diff --git a/src/app/middlewares/OfficeMembershipHandlers/FolderHandler.ts b/src/app/middlewares/OfficeMembershipHandlers/FolderHandler.ts index ae447090..08856602 100644 --- a/src/app/middlewares/OfficeMembershipHandlers/FolderHandler.ts +++ b/src/app/middlewares/OfficeMembershipHandlers/FolderHandler.ts @@ -12,6 +12,7 @@ export default async function folderHandler(req: Request, response: Response, ne const office = req.body.office; const deed = req.body.deed; const folderNumber = req.body.folder_number; + const stakeHolders = req.body.stakeholders as any[]; if (office && office.uid != officeId) { response.status(HttpCodes.UNAUTHORIZED).send("Unauthorized with this office"); @@ -24,11 +25,17 @@ export default async function folderHandler(req: Request, response: Response, ne where: { AND: [{ folder_number: folderNumber }, { office_uid: officeId }] }, }); if(sameFolderNumber[0] && (!uid || uid != sameFolderNumber[0]?.uid)) { - response.status(HttpCodes.VALIDATION_ERROR).send([{ property: "folder_number", constraints: { folder_number: "Numéro de dossier déjà utilisé" } }]); + const error = [{property: "folder_number", constraints: { folder_number: "Numéro de dossier déjà utilisé" } }]; + response.status(HttpCodes.VALIDATION_ERROR).send(error); return; } } + if(stakeHolders && stakeHolders.length === 0) { + response.status(HttpCodes.VALIDATION_ERROR).send([{ property: "stakeholders", constraints: { stakeholders: "Au moins un collaborateur est requis" } }]); + return; + } + if (deed && deed.deed_type) { const deedTypeService = Container.get(DeedTypesService); const deedTypeWithOffice = await deedTypeService.getByUidWithOffice(deed.deed_type.uid!); From 15b51a56a18fc59799257da41f5eedde00a93fcb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lo=C3=AFs=20Mansot?= <26844641+devfull@users.noreply.github.com> Date: Wed, 18 Oct 2023 10:48:59 +0200 Subject: [PATCH 09/26] add optics for folder files path retrieval --- src/common/optics/notary/index.ts | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/src/common/optics/notary/index.ts b/src/common/optics/notary/index.ts index 4e9441e2..1ee49646 100644 --- a/src/common/optics/notary/index.ts +++ b/src/common/optics/notary/index.ts @@ -10,6 +10,7 @@ import { Document, File, OfficeFolder } from "le-coffre-resources/dist/Notary"; export const folderDocumentsLens = Optics.Lens.fromNullableProp()("documents", []); export const documentFilesLens = Optics.Lens.fromNullableProp()("files", []); export const fileHashLens = Optics.Lens.fromProp()("hash"); +export const filePathLens = Optics.Lens.fromProp()("file_path"); /** * Traversals @@ -17,13 +18,16 @@ export const fileHashLens = Optics.Lens.fromProp()("hash"); export const documentsTraversal = Optics.fromTraversable(Array.Traversable)(); export const filesTraversal = Optics.fromTraversable(Array.Traversable)(); -export const folderHashesTraversal = folderDocumentsLens +export const folderFilesTraversal = folderDocumentsLens .composeTraversal(documentsTraversal) .composeLens(documentFilesLens) - .composeTraversal(filesTraversal) - .composeLens(fileHashLens); + .composeTraversal(filesTraversal); + +export const folderHashesTraversal = folderFilesTraversal.composeLens(fileHashLens); +export const folderFilesPathTraversal = folderFilesTraversal.composeLens(filePathLens); /** * Getters */ export const getFolderHashes = (folder: OfficeFolder) => Traversal.getAll(folder)(folderHashesTraversal); +export const getFolderFilesPath = (folder: OfficeFolder) => Traversal.getAll(folder)(folderFilesPathTraversal); From 0728559e0ec16563309a482b29b3a64df532f3a1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lo=C3=AFs=20Mansot?= <26844641+devfull@users.noreply.github.com> Date: Wed, 18 Oct 2023 16:47:12 +0200 Subject: [PATCH 10/26] update `anchors/download` route to get a complete zip archive The zip will contain: - the anchoring proof PDF ; - plus all accessible files stored on IPFS. If the key is invalid, a broken file will be added to the archive. If the key is missing, the file will not be added to the archive, because there is no way it could be deciphered. For now, all network errors from IPFS are silently ignored, resulting in an archive containing only the anchoring proof. --- package.json | 2 ++ .../notary/OfficeFolderAnchorsController.ts | 29 +++++++++++++++---- src/common/optics/notary/index.ts | 7 +++-- 3 files changed, 30 insertions(+), 8 deletions(-) diff --git a/package.json b/package.json index 93cd586e..0c161e19 100644 --- a/package.json +++ b/package.json @@ -45,6 +45,7 @@ "@mailchimp/mailchimp_transactional": "^1.0.50", "@pinata/sdk": "^2.1.0", "@prisma/client": "^4.11.0", + "adm-zip": "^0.5.10", "class-transformer": "^0.5.1", "class-validator": "^0.14.0", "classnames": "^2.3.2", @@ -71,6 +72,7 @@ "uuidv4": "^6.2.13" }, "devDependencies": { + "@types/adm-zip": "^0.5.3", "@types/cors": "^2.8.13", "@types/cron": "^2.0.1", "@types/express": "^4.17.16", diff --git a/src/app/api/notary/OfficeFolderAnchorsController.ts b/src/app/api/notary/OfficeFolderAnchorsController.ts index 3a43a703..c5a8a65b 100644 --- a/src/app/api/notary/OfficeFolderAnchorsController.ts +++ b/src/app/api/notary/OfficeFolderAnchorsController.ts @@ -3,9 +3,10 @@ import { Controller, Get, Post } from "@ControllerPattern/index"; import ApiController from "@Common/system/controller-pattern/ApiController"; import { Service } from "typedi"; import { Document, OfficeFolder } from "le-coffre-resources/dist/Notary"; -import { getFolderHashes } from "@Common/optics/notary"; +import { getFolderHashes, getFolderFilesUid } from "@Common/optics/notary"; import OfficeFoldersService from "@Services/notary/OfficeFoldersService/OfficeFoldersService"; import OfficeFolderAnchorsRepository from "@Repositories/OfficeFolderAnchorsRepository"; +import FilesService from "@Services/common/FilesService/FilesService"; import SecureService from "@Services/common/SecureService/SecureService"; import authHandler from "@App/middlewares/AuthHandler"; import ruleHandler from "@App/middlewares/RulesHandler"; @@ -14,6 +15,7 @@ import OfficeFolderAnchor from "le-coffre-resources/dist/Notary/OfficeFolderAnch import NotificationBuilder from "@Common/notifications/NotificationBuilder"; import { Prisma } from "@prisma/client"; import OfficeFolderAnchorsService from "@Services/notary/OfficeFolderAnchorsService/OfficeFolderAnchorsService"; +import Zip from "adm-zip"; const hydrateOfficeFolderAnchor = (data: any): OfficeFolderAnchor => OfficeFolderAnchor.hydrate( @@ -41,13 +43,14 @@ export default class OfficeFoldersController extends ApiController { private officeFolderAnchorsRepository: OfficeFolderAnchorsRepository, private officeFolderAnchorsService: OfficeFolderAnchorsService, private officeFoldersService: OfficeFoldersService, + private filesService: FilesService, private notificationBuilder: NotificationBuilder, ) { super(); } /** - * @description Download a folder anchoring proof document + * @description Download a folder anchoring proof document along with all accessible files */ @Get("/api/v1/notary/anchors/download/:uid", [authHandler, ruleHandler, folderHandler]) protected async download(req: Request, response: Response) { @@ -76,6 +79,7 @@ export default class OfficeFoldersController extends ApiController { const officeFolder = OfficeFolder.hydrate(officeFolderFound, { strategy: "excludeAll" }); const folderHashes = getFolderHashes(officeFolder); + const folderFilesUid = getFolderFilesUid(officeFolder); if (folderHashes.length === 0) { this.httpNotFoundRequest(response, "No file hash to anchor"); @@ -83,10 +87,25 @@ export default class OfficeFoldersController extends ApiController { } const sortedHashes = [...folderHashes].sort(); - const buffer = await this.secureService.download(sortedHashes); + const anchoringProof = await this.secureService.download(sortedHashes); - response.setHeader("Content-Type", "application/pdf"); - this.httpSuccess(response, buffer); + const addFileToZip = (zip: Zip) => (uid: string): Promise => + (async () => { + const data = await this.filesService.download(uid); + if (!data?.buffer) return; + zip.addFile(`${uid}-${data.file.file_name}`, data.buffer); + })() + + const uids: string[] = folderFilesUid.filter((uid): uid is string => uid !== undefined); + + const zip = new Zip(); + zip.addFile(`${uid}-certificat-de-dépôt.pdf`, anchoringProof); + await Promise.allSettled( + uids.map(addFileToZip(zip)) + ) + + response.setHeader("Content-Type", "application/zip"); + this.httpSuccess(response, zip.toBuffer()); } catch (error) { this.httpInternalError(response, error); return; diff --git a/src/common/optics/notary/index.ts b/src/common/optics/notary/index.ts index 1ee49646..ae7a4587 100644 --- a/src/common/optics/notary/index.ts +++ b/src/common/optics/notary/index.ts @@ -10,7 +10,7 @@ import { Document, File, OfficeFolder } from "le-coffre-resources/dist/Notary"; export const folderDocumentsLens = Optics.Lens.fromNullableProp()("documents", []); export const documentFilesLens = Optics.Lens.fromNullableProp()("files", []); export const fileHashLens = Optics.Lens.fromProp()("hash"); -export const filePathLens = Optics.Lens.fromProp()("file_path"); +export const fileUidLens = Optics.Lens.fromProp()("uid"); /** * Traversals @@ -24,10 +24,11 @@ export const folderFilesTraversal = folderDocumentsLens .composeTraversal(filesTraversal); export const folderHashesTraversal = folderFilesTraversal.composeLens(fileHashLens); -export const folderFilesPathTraversal = folderFilesTraversal.composeLens(filePathLens); +export const folderFilesUidTraversal = folderFilesTraversal.composeLens(fileUidLens); /** * Getters */ +export const getFolderFiles = (folder: OfficeFolder) => Traversal.getAll(folder)(folderFilesTraversal); export const getFolderHashes = (folder: OfficeFolder) => Traversal.getAll(folder)(folderHashesTraversal); -export const getFolderFilesPath = (folder: OfficeFolder) => Traversal.getAll(folder)(folderFilesPathTraversal); +export const getFolderFilesUid = (folder: OfficeFolder) => Traversal.getAll(folder)(folderFilesUidTraversal); From 40734f70fd027c3d9501b6a46ef7b9a9b8f6add4 Mon Sep 17 00:00:00 2001 From: OxSaitama Date: Wed, 18 Oct 2023 18:55:29 +0200 Subject: [PATCH 11/26] refacto user handling --- src/app/api/customer/DocumentsController.ts | 59 +++++++++------ src/app/api/customer/FilesController.ts | 3 + .../api/customer/OfficeFoldersController.ts | 35 ++++++--- src/app/api/id360/CustomerController.ts | 2 +- .../CustomerHandler/DocumentHandler.ts | 71 +++++++++++++------ .../CustomerHandler/FileHandler.ts | 18 +++-- .../CustomerHandler/FolderHandler.ts | 10 ++- .../migration.sql | 5 ++ src/common/databases/schema.prisma | 4 +- src/common/repositories/ContactRepository.ts | 8 +-- .../CustomersService/CustomersService.ts | 21 +----- .../common/AuthService/AuthService.ts | 14 ++-- .../common/ContactService/ContactService.ts | 8 +-- .../CustomersService/CustomersService.ts | 21 +----- .../CustomersService/CustomersService.ts | 21 +----- .../super-admin/CustomersService.test.ts | 3 +- 16 files changed, 165 insertions(+), 138 deletions(-) create mode 100644 src/common/databases/migrations/20231017095322_email_phone_number_not_unique/migration.sql diff --git a/src/app/api/customer/DocumentsController.ts b/src/app/api/customer/DocumentsController.ts index ab286bd1..7e33f229 100644 --- a/src/app/api/customer/DocumentsController.ts +++ b/src/app/api/customer/DocumentsController.ts @@ -4,12 +4,11 @@ import ApiController from "@Common/system/controller-pattern/ApiController"; import { Service } from "typedi"; import DocumentsService from "@Services/customer/DocumentsService/DocumentsService"; import { Documents, Prisma } from "@prisma/client"; -import { Document } from "le-coffre-resources/dist/Customer"; +import { Document, OfficeFolder } from "le-coffre-resources/dist/Customer"; import authHandler from "@App/middlewares/AuthHandler"; import documentHandler from "@App/middlewares/CustomerHandler/DocumentHandler"; import { validateOrReject } from "class-validator"; import OfficeFoldersService from "@Services/super-admin/OfficeFoldersService/OfficeFoldersService"; -import { OfficeFolder } from "le-coffre-resources/dist/Notary"; @Controller() @Service() @@ -30,16 +29,19 @@ export default class DocumentsController extends ApiController { if (req.query["q"]) { query = JSON.parse(req.query["q"] as string); } - const customerId: string = req.body.user.customerId; - if(query.where?.depositor) delete query.where.depositor; - if(query.where?.depositor_uid) delete query.where.depositor_uid; - const customerWhereInput: Prisma.DocumentsWhereInput = { ...query.where, depositor: { uid: customerId } }; + const email: string = req.body.user.email; + if (!email) { + this.httpBadRequest(response, "Missing customer email"); + return; + } + if (query.where?.depositor) delete query.where.depositor; + if (query.where?.depositor_uid) delete query.where.depositor_uid; + const customerWhereInput: Prisma.DocumentsWhereInput = { ...query.where, depositor: { contact: { email: email } } }; query.where = customerWhereInput; - + if (query.include?.folder) delete query.include.folder; //call service to get prisma entity const documentEntities: Documents[] = await this.documentsService.get(query); - //Hydrate ressource with prisma entity const documents = Document.hydrateArray(documentEntities, { strategy: "excludeAll" }); @@ -55,7 +57,7 @@ export default class DocumentsController extends ApiController { /** * @description Get a specific document by uid */ - @Get("/api/v1/customer/documents/:uid",[authHandler,documentHandler]) + @Get("/api/v1/customer/documents/:uid", [authHandler, documentHandler]) protected async getOneByUid(req: Request, response: Response) { try { const uid = req.params["uid"]; @@ -64,9 +66,10 @@ export default class DocumentsController extends ApiController { return; } //get query - let query; + let query: Prisma.DocumentsInclude = {}; 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); @@ -91,29 +94,43 @@ export default class DocumentsController extends ApiController { * @description Create a new File * @returns File created */ - @Post("/api/v1/customer/documents", [authHandler]) + @Post("/api/v1/customer/documents", [authHandler, documentHandler]) protected async post(req: Request, response: Response) { try { //init Document resource with request body values const documentEntity = Document.hydrate(req.body); - if(!documentEntity.folder?.uid) { + const email = req.body.user.email; + + if (!documentEntity.folder?.uid) { this.httpBadRequest(response, "No folder uid provided"); return; - } + } - const folder = await this.officeFoldersService.getByUid(documentEntity.folder.uid, {folder_anchor: true}); - if(!folder) { + const folder = await this.officeFoldersService.getByUid(documentEntity.folder.uid, { + folder_anchor: true, + customers: { include: { contact: true } }, + }); + if (!folder) { this.httpBadRequest(response, "Folder not found"); return; } - - const folderEntity = OfficeFolder.hydrate(folder); - if (folderEntity.folder_anchor?.status === "VERIFIED_ON_CHAIN") { - this.httpBadRequest(response, "Cannot update a verified folder"); + const folderEntity = OfficeFolder.hydrate(folder, { strategy: "excludeAll" }); + if (!folderEntity.customers) { + this.httpBadRequest(response, "No customers found in folder"); + return; + } + const depositor = folderEntity.customers.find((customer) => customer.contact?.email === email); + + delete documentEntity.depositor; + documentEntity.depositor = depositor; + + try { + //validate document + await validateOrReject(documentEntity, { groups: ["createDocument"], forbidUnknownValues: false }); + } catch (error) { + this.httpValidationError(response, error); return; } - //validate document - await validateOrReject(documentEntity, { groups: ["createDocument"], forbidUnknownValues: false }); //call service to get prisma entity const documentEntityCreated = await this.documentsService.create(documentEntity); diff --git a/src/app/api/customer/FilesController.ts b/src/app/api/customer/FilesController.ts index 8fedd66d..d5db8206 100644 --- a/src/app/api/customer/FilesController.ts +++ b/src/app/api/customer/FilesController.ts @@ -34,6 +34,8 @@ export default class FilesController extends ApiController { const customerId: string = req.body.user.customerId; const customerWhereInput: Prisma.FilesWhereInput = { document: { depositor: { uid: customerId } } }; query.where = customerWhereInput; + if(query.include?.document) delete query.include.document; + //call service to get prisma entity const fileEntities = await this.filesService.get(query); @@ -210,6 +212,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; } const fileEntity = await this.filesService.getByUid(uid, query); diff --git a/src/app/api/customer/OfficeFoldersController.ts b/src/app/api/customer/OfficeFoldersController.ts index 7e44ef33..899e346a 100644 --- a/src/app/api/customer/OfficeFoldersController.ts +++ b/src/app/api/customer/OfficeFoldersController.ts @@ -22,7 +22,7 @@ export default class OfficeFoldersController extends ApiController { * @description Get all folders */ @Get("/api/v1/customer/folders", [authHandler]) - protected async get(req: Request, response: Response) { + protected async get(req: Request, response: Response) { try { //get query let query: Prisma.OfficeFoldersFindManyArgs = {}; @@ -30,14 +30,19 @@ export default class OfficeFoldersController extends ApiController { query = JSON.parse(req.query["q"] as string); } - const customerId: string = req.body.user.customerId; - if(!customerId) { - this.httpBadRequest(response, "No customerId provided"); + const email: string = req.body.user.email; + if (!email) { + this.httpBadRequest(response, "Missing customer email"); return; } - if(query.where?.customers) delete query.where.customers; - const officeFolderWhereInput: Prisma.OfficeFoldersWhereInput = { ...query.where, customers: { some: { uid: customerId } }}; + if (query.where?.customers) delete query.where.customers; + const officeFolderWhereInput: Prisma.OfficeFoldersWhereInput = { + ...query.where, + customers: { some: { contact: { email: email } } }, + }; query.where = officeFolderWhereInput; + if (query.include) delete query.include; + query.include = { customers: { include: { contact: true } } }; //call service to get prisma entity const officeFolderEntities: OfficeFolders[] = await this.officeFoldersService.get(query); @@ -46,6 +51,11 @@ export default class OfficeFoldersController extends ApiController { const officeFolders = OfficeFolder.hydrateArray(officeFolderEntities, { strategy: "excludeAll", }); + + officeFolders.forEach((officeFolder) => { + officeFolder.customers = officeFolder.customers!.filter((customer) => customer.contact?.email === email); + }); + //success this.httpSuccess(response, officeFolders); } catch (error) { @@ -53,7 +63,7 @@ export default class OfficeFoldersController extends ApiController { return; } } - + /** * @description Get a specific folder by uid * @returns IFolder @@ -67,12 +77,13 @@ export default class OfficeFoldersController extends ApiController { return; } - let query; + const email: string = req.body.user.email; + + let query: Prisma.OfficeFoldersInclude = {}; if (req.query["q"]) { query = JSON.parse(req.query["q"] as string); - if(query?.customers) { - query.customers = true; - } + if (query?.customers) delete query.customers; + query.customers = { include: { contact: true } }; } const officeFolderEntity = await this.officeFoldersService.getByUid(uid, query); @@ -84,6 +95,8 @@ export default class OfficeFoldersController extends ApiController { //Hydrate ressource with prisma entity const officeFolder = OfficeFolder.hydrate(officeFolderEntity, { strategy: "excludeAll" }); + officeFolder.customers = officeFolder.customers!.filter((customer) => customer.contact?.email === email); + //success this.httpSuccess(response, officeFolder); } catch (error) { diff --git a/src/app/api/id360/CustomerController.ts b/src/app/api/id360/CustomerController.ts index 58d3fec6..685d3700 100644 --- a/src/app/api/id360/CustomerController.ts +++ b/src/app/api/id360/CustomerController.ts @@ -72,7 +72,7 @@ export default class CustomerController extends ApiController { } const customersHydrated = Customer.hydrateArray(customer); - const payload = await this.authService.getCustomerJwtPayload(customersHydrated[0]!); + const payload = await this.authService.getCustomerJwtPayload(customersHydrated); const accessToken = this.authService.generateAccessToken(payload); const refreshToken = this.authService.generateRefreshToken(payload); this.httpSuccess(response, { accessToken, refreshToken }); diff --git a/src/app/middlewares/CustomerHandler/DocumentHandler.ts b/src/app/middlewares/CustomerHandler/DocumentHandler.ts index 71c0cded..5f390ba7 100644 --- a/src/app/middlewares/CustomerHandler/DocumentHandler.ts +++ b/src/app/middlewares/CustomerHandler/DocumentHandler.ts @@ -3,36 +3,65 @@ 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"; export default async function documentHandler(req: Request, response: Response, next: NextFunction) { try { const customerId = req.body.user.customerId; + const customerEmail = req.body.user.email; const uid = req.path && req.path.split("/")[5]; - if (!uid) { - response.status(HttpCodes.BAD_REQUEST).send("Missing document uid"); - return; - } + if (uid) { + const documentService = Container.get(DocumentsService); + const document = await documentService.getByUid(uid, { folder: { include: { folder_anchor: true } } }); - const documentService = Container.get(DocumentsService); - const document = await documentService.getByUid(uid, { folder: { include: { folder_anchor: true } } }); - - if (!document) { - response.status(HttpCodes.NOT_FOUND).send("Document not found"); - return; - } - - if (document?.depositor_uid != customerId) { - response.status(HttpCodes.UNAUTHORIZED).send("Not authorized with this depositor"); - return; - } - - if (req.method === "POST" || req.method === "PUT") { - const documentEntity = Document.hydrate(document); - if (documentEntity.folder?.folder_anchor?.status === "VERIFIED_ON_CHAIN") { - response.status(HttpCodes.BAD_REQUEST).send("Cannot update a verified folder"); + if (!document) { + response.status(HttpCodes.NOT_FOUND).send("Document not found"); return; } + + if (document?.depositor_uid != customerId) { + const contactService = Container.get(ContactsService); + const customers = await contactService.getByEmail(customerEmail); + if (customers && !customers.find((customer) => customer.uid === document?.depositor_uid)) { + response.status(HttpCodes.UNAUTHORIZED).send("Not authorized with this depositor"); + return; + } + } + + if (req.method === "PUT" || req.method === "DELETE") { + const documentEntity = Document.hydrate(document); + if (documentEntity.folder!.folder_anchor?.status === "VERIFIED_ON_CHAIN") { + response.status(HttpCodes.BAD_REQUEST).send("Cannot update a verified folder"); + return; + } + } + } + + if (req.method === "POST") { + const documentEntity = Document.hydrate(req.body); + const officeFolderService = Container.get(OfficeFoldersService); + if (documentEntity.folder?.uid) { + const folder = await officeFolderService.getByUid(documentEntity.folder.uid, { + folder_anchor: true, + customers: { include: { contact: true } }, + }); + if (!folder) { + response.status(HttpCodes.NOT_FOUND).send("Folder not found"); + return; + } + const folderEntity = OfficeFolder.hydrate(folder); + if (folderEntity.folder_anchor?.status === "VERIFIED_ON_CHAIN") { + response.status(HttpCodes.BAD_REQUEST).send("Cannot update a verified folder"); + return; + } + if (!folderEntity.customers?.find((customer) => customer.contact?.email === customerEmail)) { + response.status(HttpCodes.BAD_REQUEST).send("Cannot post a document in this folder"); + return; + } + } } next(); diff --git a/src/app/middlewares/CustomerHandler/FileHandler.ts b/src/app/middlewares/CustomerHandler/FileHandler.ts index 212ea3f7..6c3acfc2 100644 --- a/src/app/middlewares/CustomerHandler/FileHandler.ts +++ b/src/app/middlewares/CustomerHandler/FileHandler.ts @@ -5,9 +5,11 @@ import File from "le-coffre-resources/dist/SuperAdmin/File"; import { NextFunction, Request, Response } from "express"; import Container from "typedi"; import { EDocumentStatus } from "@prisma/client"; +import CustomersService from "@Services/super-admin/CustomersService/CustomersService"; export default async function fileHandler(req: Request, response: Response, next: NextFunction) { const customerId = req.body.user.customerId; + const customerEmail = req.body.user.email; const uid = req.path && req.path.split("/")[5]; const file: string | undefined = req.body["q"]; @@ -24,8 +26,12 @@ export default async function fileHandler(req: Request, response: Response, next return; } if (file.document.depositor_uid != customerId) { - response.status(HttpCodes.UNAUTHORIZED).send("Not authorized with this depositor"); - return; + const customerService = Container.get(CustomersService); + const customers = await customerService.get({where: {contact: { email: customerEmail}}}); + if (customers && !customers.find((customer) => customer.uid === file.document.depositor_uid)) { + response.status(HttpCodes.UNAUTHORIZED).send("Not authorized with this depositor"); + return; + } } if (req.method === "PUT") { if (file.document.document_status === EDocumentStatus.VALIDATED) { @@ -43,8 +49,12 @@ export default async function fileHandler(req: Request, response: Response, next return; } if (documentFound.depositor_uid != customerId) { - response.status(HttpCodes.UNAUTHORIZED).send("Not authorized with this depositor"); - return; + const customerService = Container.get(CustomersService); + const customers = await customerService.get({where: {contact: { email: customerEmail}}}); + if (customers && !customers.find((customer) => customer.uid === documentFound.depositor_uid)) { + response.status(HttpCodes.UNAUTHORIZED).send("Not authorized with this depositor"); + return; + } } if (documentFound.document_status === EDocumentStatus.VALIDATED) { response.status(HttpCodes.BAD_REQUEST).send("Cannot update a validated document"); diff --git a/src/app/middlewares/CustomerHandler/FolderHandler.ts b/src/app/middlewares/CustomerHandler/FolderHandler.ts index aaf6ad54..5e2ac111 100644 --- a/src/app/middlewares/CustomerHandler/FolderHandler.ts +++ b/src/app/middlewares/CustomerHandler/FolderHandler.ts @@ -1,10 +1,12 @@ import HttpCodes from "@Common/system/controller-pattern/HttpCodes"; import OfficeFoldersService from "@Services/customer/OfficeFoldersService/OfficeFoldersService"; +import CustomersService from "@Services/super-admin/CustomersService/CustomersService"; import { NextFunction, Request, Response } from "express"; import Container from "typedi"; export default async function officeFolderHandler(req: Request, response: Response, next: NextFunction) { const customerId = req.body.user.customerId; + const customerEmail = req.body.user.email; const uid = req.path && req.path.split("/")[5]; if (uid) { @@ -15,8 +17,12 @@ export default async function officeFolderHandler(req: Request, response: Respon return; } if (!officeFolder.customers.find((customer) => customer.uid == customerId)) { - response.status(HttpCodes.UNAUTHORIZED).send("Not authorized with this depositor"); - return; + const customerService = Container.get(CustomersService); + const customers = await customerService.get({where: {contact: { email: customerEmail}}}); + if (customers && !customers.filter((customer) => officeFolder.customers.includes(customer))) { + response.status(HttpCodes.UNAUTHORIZED).send("Not authorized with this depositor"); + return; + } } } diff --git a/src/common/databases/migrations/20231017095322_email_phone_number_not_unique/migration.sql b/src/common/databases/migrations/20231017095322_email_phone_number_not_unique/migration.sql new file mode 100644 index 00000000..7bc0a3d4 --- /dev/null +++ b/src/common/databases/migrations/20231017095322_email_phone_number_not_unique/migration.sql @@ -0,0 +1,5 @@ +-- DropIndex +DROP INDEX "contacts_cell_phone_number_key"; + +-- DropIndex +DROP INDEX "contacts_email_key"; diff --git a/src/common/databases/schema.prisma b/src/common/databases/schema.prisma index 113f741d..dcd5a5b0 100644 --- a/src/common/databases/schema.prisma +++ b/src/common/databases/schema.prisma @@ -35,9 +35,9 @@ model Contacts { uid String @id @unique @default(uuid()) first_name String @db.VarChar(255) last_name String @db.VarChar(255) - email String @unique @db.VarChar(255) + email String @db.VarChar(255) phone_number String? @db.VarChar(50) - cell_phone_number String @unique @db.VarChar(50) + cell_phone_number String @db.VarChar(50) civility ECivility @default(MALE) address Addresses? @relation(fields: [address_uid], references: [uid], onDelete: Cascade) address_uid String? @unique @db.VarChar(255) diff --git a/src/common/repositories/ContactRepository.ts b/src/common/repositories/ContactRepository.ts index da12d0aa..b1784291 100644 --- a/src/common/repositories/ContactRepository.ts +++ b/src/common/repositories/ContactRepository.ts @@ -18,8 +18,8 @@ export default class ContactRepository extends BaseRepository { /** * @description : Find unique customer by email */ - public async findOneByEmail(email: string): Promise<(Contacts & {customers: Customers | null}) | null> { - return this.model.findUnique({ + public async findSomeByEmail(email: string): Promise<(Contacts & {customers: Customers | null})[] | null> { + return this.model.findMany({ where: { email: email, }, @@ -30,8 +30,8 @@ export default class ContactRepository extends BaseRepository { /** * @description : Find unique customer by email */ - public async findOneByPhoneNumber(cell_phone_number: string): Promise<(Contacts & {customers: Customers | null}) | null> { - return this.model.findUnique({ + public async findSomeByPhoneNumber(cell_phone_number: string): Promise<(Contacts & {customers: Customers | null})[] | null> { + return this.model.findMany({ where: { cell_phone_number: cell_phone_number, }, diff --git a/src/services/admin/CustomersService/CustomersService.ts b/src/services/admin/CustomersService/CustomersService.ts index b4878d7d..7656bed2 100644 --- a/src/services/admin/CustomersService/CustomersService.ts +++ b/src/services/admin/CustomersService/CustomersService.ts @@ -1,13 +1,12 @@ import { Customers, Prisma } from "@prisma/client"; import CustomersRepository from "@Repositories/CustomersRepository"; import BaseService from "@Services/BaseService"; -import ContactsService from "@Services/common/ContactService/ContactService"; import { Customer } from "le-coffre-resources/dist/Admin"; import { Service } from "typedi"; @Service() export default class CustomersService extends BaseService { - constructor(private customerRepository: CustomersRepository, private contactService: ContactsService) { + constructor(private customerRepository: CustomersRepository) { super(); } @@ -24,14 +23,6 @@ export default class CustomersService extends BaseService { * @throws {Error} If customer cannot be created */ public async create(customerEntity: Customer): Promise { - const customers = await this.get({ - where: { - contact: { - OR: [{ email: customerEntity.contact?.email }, { cell_phone_number: customerEntity.contact?.cell_phone_number }], - }, - }, - }); - if(customers[0]) return customers[0]; return this.customerRepository.create(customerEntity); } @@ -40,16 +31,6 @@ export default class CustomersService extends BaseService { * @throws {Error} If customer cannot be modified */ public async update(uid: string, customerEntity: Customer): Promise { - let errors = []; - if(customerEntity.contact?.email) { - const contactWithSameEmail = await this.contactService.getByEmail(customerEntity.contact.email); - if(contactWithSameEmail && contactWithSameEmail.uid != customerEntity.contact.uid) errors.push({property: "email", constraints: {email: "Email déjà utilisé"}}); - } - if(customerEntity.contact?.cell_phone_number) { - const contactWithSamePhoneNumber = await this.contactService.getByPhone(customerEntity.contact.cell_phone_number); - if(contactWithSamePhoneNumber && contactWithSamePhoneNumber.uid != customerEntity.contact.uid) errors.push({property: "cell_phone_number", constraints: {phone: "numéro de téléphone déjà utilisé"}}); - } - if(errors.length != 0) throw errors; return this.customerRepository.update(uid, customerEntity); } diff --git a/src/services/common/AuthService/AuthService.ts b/src/services/common/AuthService/AuthService.ts index ca272d65..f4f35b53 100644 --- a/src/services/common/AuthService/AuthService.ts +++ b/src/services/common/AuthService/AuthService.ts @@ -43,14 +43,16 @@ export default class AuthService extends BaseService { super(); } - public async getCustomerJwtPayload(customer: Customer): Promise { - if(customer.status === ECustomerStatus["PENDING"]) { - customer.status = ECustomerStatus["VALIDATED"]; - this.customerService.update(customer.uid!, customer); + public async getCustomerJwtPayload(customers: Customer[]): Promise { + for (const customer of customers){ + if (customer.status === ECustomerStatus["PENDING"]) { + customer.status = ECustomerStatus["VALIDATED"]; + await this.customerService.update(customer.uid!, customer); + } } return { - customerId: customer.uid!, - email: customer.contact!.email, + customerId: customers[0]!.uid!, + email: customers[0]!.contact!.email, }; } diff --git a/src/services/common/ContactService/ContactService.ts b/src/services/common/ContactService/ContactService.ts index f56f1b83..c6c81431 100644 --- a/src/services/common/ContactService/ContactService.ts +++ b/src/services/common/ContactService/ContactService.ts @@ -13,15 +13,15 @@ export default class ContactsService extends BaseService { * @description : Get all Contacts * @throws {Error} If Contacts cannot be get */ - public async getByEmail(email: string): Promise<(Contacts & {customers: Customers | null}) | null> { - return this.customerRepository.findOneByEmail(email); + public async getByEmail(email: string): Promise<(Contacts & {customers: Customers | null})[] | null> { + return this.customerRepository.findSomeByEmail(email); } /** * @description : Create a new customer * @throws {Error} If customer cannot be created */ - public async getByPhone(cell_phone_number: string): Promise<(Contacts & {customers: Customers | null}) | null> { - return this.customerRepository.findOneByPhoneNumber(cell_phone_number); + public async getByPhone(cell_phone_number: string): Promise<(Contacts & {customers: Customers | null})[] | null> { + return this.customerRepository.findSomeByPhoneNumber(cell_phone_number); } } diff --git a/src/services/notary/CustomersService/CustomersService.ts b/src/services/notary/CustomersService/CustomersService.ts index 721affd9..72e6923d 100644 --- a/src/services/notary/CustomersService/CustomersService.ts +++ b/src/services/notary/CustomersService/CustomersService.ts @@ -1,13 +1,12 @@ import { Customers, Prisma } from "@prisma/client"; import CustomersRepository from "@Repositories/CustomersRepository"; import BaseService from "@Services/BaseService"; -import ContactsService from "@Services/common/ContactService/ContactService"; import { Customer } from "le-coffre-resources/dist/Notary"; import { Service } from "typedi"; @Service() export default class CustomersService extends BaseService { - constructor(private customerRepository: CustomersRepository, private contactService: ContactsService) { + constructor(private customerRepository: CustomersRepository) { super(); } @@ -24,14 +23,6 @@ export default class CustomersService extends BaseService { * @throws {Error} If customer cannot be created */ public async create(customerEntity: Customer): Promise { - const customers = await this.get({ - where: { - contact: { - OR: [{ email: customerEntity.contact?.email }, { cell_phone_number: customerEntity.contact?.cell_phone_number }], - }, - }, - }); - if(customers[0]) return customers[0]; return this.customerRepository.create(customerEntity); } @@ -40,16 +31,6 @@ export default class CustomersService extends BaseService { * @throws {Error} If customer cannot be modified */ public async update(uid: string, customerEntity: Customer): Promise { - let errors = []; - if(customerEntity.contact?.email) { - const contactWithSameEmail = await this.contactService.getByEmail(customerEntity.contact.email); - if(contactWithSameEmail && contactWithSameEmail.uid != customerEntity.contact.uid) errors.push({property: "email", constraints: {email: "mail déjà utilisé"}}); - } - if(customerEntity.contact?.cell_phone_number) { - const contactWithSamePhoneNumber = await this.contactService.getByPhone(customerEntity.contact.cell_phone_number); - if(contactWithSamePhoneNumber && contactWithSamePhoneNumber.uid != customerEntity.contact.uid) errors.push({property: "cell_phone_number", constraints: {phone: "numéro de téléphone déjà utilisé"}}); - } - if(errors.length != 0) throw errors; return this.customerRepository.update(uid, customerEntity); } diff --git a/src/services/super-admin/CustomersService/CustomersService.ts b/src/services/super-admin/CustomersService/CustomersService.ts index 5b8165ee..5501e1cb 100644 --- a/src/services/super-admin/CustomersService/CustomersService.ts +++ b/src/services/super-admin/CustomersService/CustomersService.ts @@ -1,13 +1,12 @@ import { Customers, Prisma } from "@prisma/client"; import CustomersRepository from "@Repositories/CustomersRepository"; import BaseService from "@Services/BaseService"; -import ContactsService from "@Services/common/ContactService/ContactService"; import { Customer } from "le-coffre-resources/dist/SuperAdmin"; import { Service } from "typedi"; @Service() export default class CustomersService extends BaseService { - constructor(private customerRepository: CustomersRepository, private contactService: ContactsService) { + constructor(private customerRepository: CustomersRepository) { super(); } @@ -24,14 +23,6 @@ export default class CustomersService extends BaseService { * @throws {Error} If customer cannot be created */ public async create(customerEntity: Customer): Promise { - const customers = await this.get({ - where: { - contact: { - OR: [{ email: customerEntity.contact?.email }, { cell_phone_number: customerEntity.contact?.cell_phone_number }], - }, - }, - }); - if(customers[0]) return customers[0]; return this.customerRepository.create(customerEntity); } @@ -40,16 +31,6 @@ export default class CustomersService extends BaseService { * @throws {Error} If customer cannot be modified */ public async update(uid: string, customerEntity: Customer): Promise { - let errors = []; - if(customerEntity.contact?.email) { - const contactWithSameEmail = await this.contactService.getByEmail(customerEntity.contact.email); - if(contactWithSameEmail && contactWithSameEmail.uid != customerEntity.contact.uid) errors.push({property: "email", constraints: {email: "mail déjà utilisé"}}); - } - if(customerEntity.contact?.cell_phone_number) { - const contactWithSamePhoneNumber = await this.contactService.getByPhone(customerEntity.contact.cell_phone_number); - if(contactWithSamePhoneNumber && contactWithSamePhoneNumber.uid != customerEntity.contact.uid) errors.push({property: "cell_phone_number", constraints: {phone: "numéro de téléphone déjà utilisé"}}); - } - if(errors.length != 0) throw errors; return this.customerRepository.update(uid, customerEntity); } diff --git a/src/test/services/super-admin/CustomersService.test.ts b/src/test/services/super-admin/CustomersService.test.ts index 01a540cd..4b3f383e 100644 --- a/src/test/services/super-admin/CustomersService.test.ts +++ b/src/test/services/super-admin/CustomersService.test.ts @@ -6,11 +6,10 @@ import { PrismaClient } from "@prisma/client"; import { customer, customerContact, customerContact_, customer_ } from "@Test/config/MockedData"; import Container from "typedi"; import CustomersRepository from "@Repositories/CustomersRepository"; -import ContactService from "@Services/common/ContactService/ContactService"; const prisma = new PrismaClient(); -const CustomersServiceTest = new CustomersService(Container.get(CustomersRepository), Container.get(ContactService)); +const CustomersServiceTest = new CustomersService(Container.get(CustomersRepository)); afterAll(async () => { /* From 1c175ac816eaa2906a09bd7e2a07e4d4b093f341 Mon Sep 17 00:00:00 2001 From: OxSaitama Date: Thu, 19 Oct 2023 14:43:44 +0200 Subject: [PATCH 12/26] check on already used email --- src/app/api/admin/CustomersController.ts | 50 ++++++++++++++++- src/app/api/notary/CustomersController.ts | 41 ++++++++++++++ .../api/super-admin/CustomersController.ts | 54 +++++++++++++++++-- 3 files changed, 139 insertions(+), 6 deletions(-) diff --git a/src/app/api/admin/CustomersController.ts b/src/app/api/admin/CustomersController.ts index 5f9ed4ec..c0aa1c49 100644 --- a/src/app/api/admin/CustomersController.ts +++ b/src/app/api/admin/CustomersController.ts @@ -50,17 +50,38 @@ export default class CustomersController extends ApiController { } } + /** * @description Create a new customer */ - @Post("/api/v1/admin/customers", [authHandler, ruleHandler]) + @Post("/api/v1/notary/customers", [authHandler, ruleHandler]) protected async post(req: Request, response: Response) { try { //init IUser resource with request body values const customerEntity = Customer.hydrate(req.body); //validate user - await validateOrReject(customerEntity, { groups: ["createCustomer"], forbidUnknownValues: false }); + try { + await validateOrReject(customerEntity, { groups: ["createCustomer"], forbidUnknownValues: false }); + } catch (error) { + this.httpValidationError(response, error); + return; + } + 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) { + this.httpValidationError(response, [{ property: "email", constraints: { unique: "email déjà utilisé" } }]); + return; + } //call service to get prisma entity const customerEntityCreated = await this.customersService.create(customerEntity); //Hydrate ressource with prisma entity @@ -106,6 +127,31 @@ export default class CustomersController extends ApiController { this.httpValidationError(response, error); return; } + + 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; + } + } + //call service to get prisma entity try { const customerEntityUpdated = await this.customersService.update(uid, customerEntity); diff --git a/src/app/api/notary/CustomersController.ts b/src/app/api/notary/CustomersController.ts index 69b6bb7f..349229cf 100644 --- a/src/app/api/notary/CustomersController.ts +++ b/src/app/api/notary/CustomersController.ts @@ -63,6 +63,22 @@ export default class CustomersController extends ApiController { this.httpValidationError(response, error); return; } + + 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) { + this.httpValidationError(response, [{ property: "email", constraints: { unique: "email déjà utilisé" } }]); + return; + } //call service to get prisma entity const customerEntityCreated = await this.customersService.create(customerEntity); //Hydrate ressource with prisma entity @@ -108,6 +124,31 @@ export default class CustomersController extends ApiController { this.httpValidationError(response, error); return; } + + 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; + } + } + //call service to get prisma entity try { const customerEntityUpdated = await this.customersService.update(uid, customerEntity); diff --git a/src/app/api/super-admin/CustomersController.ts b/src/app/api/super-admin/CustomersController.ts index b3402942..05ef2c6a 100644 --- a/src/app/api/super-admin/CustomersController.ts +++ b/src/app/api/super-admin/CustomersController.ts @@ -50,17 +50,38 @@ export default class CustomersController extends ApiController { } } + /** * @description Create a new customer */ - @Post("/api/v1/super-admin/customers", [authHandler, roleHandler, ruleHandler]) + @Post("/api/v1/notary/customers", [authHandler, ruleHandler]) protected async post(req: Request, response: Response) { try { //init IUser resource with request body values const customerEntity = Customer.hydrate(req.body); //validate user - await validateOrReject(customerEntity, { groups: ["createCustomer"], forbidUnknownValues: false }); + try { + await validateOrReject(customerEntity, { groups: ["createCustomer"], forbidUnknownValues: false }); + } catch (error) { + this.httpValidationError(response, error); + return; + } + 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) { + this.httpValidationError(response, [{ property: "email", constraints: { unique: "email déjà utilisé" } }]); + return; + } //call service to get prisma entity const customerEntityCreated = await this.customersService.create(customerEntity); //Hydrate ressource with prisma entity @@ -94,9 +115,9 @@ export default class CustomersController extends ApiController { this.httpNotFoundRequest(response, "user not found"); return; } - + req.body.contact.uid = userFound.contact_uid; - + //init IUser resource with request body values const customerEntity = Customer.hydrate(req.body); //validate user @@ -106,6 +127,31 @@ export default class CustomersController extends ApiController { this.httpValidationError(response, error); return; } + + 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; + } + } + //call service to get prisma entity try { const customerEntityUpdated = await this.customersService.update(uid, customerEntity); From af6783a63319cdedd93828158d780c67dba7e80f Mon Sep 17 00:00:00 2001 From: OxSaitama Date: Thu, 19 Oct 2023 15:32:06 +0200 Subject: [PATCH 13/26] refacto email builder --- src/app/api/admin/DocumentsController.ts | 10 +++++++++- src/app/api/notary/DocumentsController.ts | 5 +++-- src/app/api/super-admin/DocumentsController.ts | 11 ++++++----- src/common/emails/EmailBuilder.ts | 5 ++--- 4 files changed, 20 insertions(+), 11 deletions(-) diff --git a/src/app/api/admin/DocumentsController.ts b/src/app/api/admin/DocumentsController.ts index 9f9e322b..8e4ba2d1 100644 --- a/src/app/api/admin/DocumentsController.ts +++ b/src/app/api/admin/DocumentsController.ts @@ -10,11 +10,12 @@ import authHandler from "@App/middlewares/AuthHandler"; import ruleHandler from "@App/middlewares/RulesHandler"; import documentHandler from "@App/middlewares/OfficeMembershipHandlers/DocumentHandler"; import roleHandler from "@App/middlewares/RolesHandler"; +import EmailBuilder from "@Common/emails/EmailBuilder"; @Controller() @Service() export default class DocumentsController extends ApiController { - constructor(private documentsService: DocumentsService) { + constructor(private documentsService: DocumentsService, private emailBuilder: EmailBuilder) { super(); } @@ -70,6 +71,10 @@ export default class DocumentsController extends ApiController { strategy: "excludeAll", }); + //create email for asked document + this.emailBuilder.sendDocumentEmails(documentEntityCreated); + + //success this.httpCreated(response, document); } catch (error) { @@ -106,6 +111,9 @@ export default class DocumentsController extends ApiController { //call service to get prisma entity const documentEntityUpdated: Documents = await this.documentsService.update(uid, documentEntity); + //create email for asked document + this.emailBuilder.sendDocumentEmails(documentEntityUpdated); + //Hydrate ressource with prisma entity const document = Document.hydrate(documentEntityUpdated, { strategy: "excludeAll" }); diff --git a/src/app/api/notary/DocumentsController.ts b/src/app/api/notary/DocumentsController.ts index b6510943..beaf115b 100644 --- a/src/app/api/notary/DocumentsController.ts +++ b/src/app/api/notary/DocumentsController.ts @@ -177,9 +177,10 @@ export default class DocumentsController extends ApiController { //call service to get prisma entity const documentEntityUpdated: Documents = await this.documentsService.refuse(uid, documentEntity, req.body.refused_reason); + //create email for asked document - // this.emailBuilder.sendDocumentEmails(documentEntityUpdated); - // this.notificationBuilder.sendDocumentAnchoredNotificatiom(documentEntityUpdated); + this.emailBuilder.sendDocumentEmails(documentEntityUpdated); + //Hydrate ressource with prisma entity const document = Document.hydrate(documentEntityUpdated, { strategy: "excludeAll" }); diff --git a/src/app/api/super-admin/DocumentsController.ts b/src/app/api/super-admin/DocumentsController.ts index f33075d1..8e2cd24f 100644 --- a/src/app/api/super-admin/DocumentsController.ts +++ b/src/app/api/super-admin/DocumentsController.ts @@ -2,6 +2,7 @@ import authHandler from "@App/middlewares/AuthHandler"; import documentHandler from "@App/middlewares/OfficeMembershipHandlers/DocumentHandler"; import roleHandler from "@App/middlewares/RolesHandler"; import ruleHandler from "@App/middlewares/RulesHandler"; +import EmailBuilder from "@Common/emails/EmailBuilder"; import ApiController from "@Common/system/controller-pattern/ApiController"; import { Controller, Delete, Get, Post, Put } from "@ControllerPattern/index"; import { Documents, EDocumentStatus, Prisma } from "@prisma/client"; @@ -14,7 +15,7 @@ import { Service } from "typedi"; @Controller() @Service() export default class DocumentsController extends ApiController { - constructor(private documentsService: DocumentsService) { + constructor(private documentsService: DocumentsService, private emailBuilder: EmailBuilder) { super(); } @@ -36,8 +37,6 @@ export default class DocumentsController extends ApiController { if (!query.where) query.where = { document_type: { office: officeWhereInput } }; - // query.where.document_type!.office = officeWhereInput; - //call service to get prisma entity const documentEntities = await this.documentsService.get(query); @@ -74,6 +73,9 @@ export default class DocumentsController extends ApiController { strategy: "excludeAll", }); + //create email for asked document + this.emailBuilder.sendDocumentEmails(documentEntityCreated); + //success this.httpCreated(response, document); } catch (error) { @@ -155,8 +157,7 @@ export default class DocumentsController extends ApiController { const documentEntityUpdated: Documents = await this.documentsService.refuse(uid, documentEntity, req.body.refused_reason); //create email for asked document - // this.emailBuilder.sendDocumentEmails(documentEntityUpdated); - // this.notificationBuilder.sendDocumentAnchoredNotificatiom(documentEntityUpdated); + this.emailBuilder.sendDocumentEmails(documentEntityUpdated); //Hydrate ressource with prisma entity const document = Document.hydrate(documentEntityUpdated, { strategy: "excludeAll" }); diff --git a/src/common/emails/EmailBuilder.ts b/src/common/emails/EmailBuilder.ts index 7d76d3e0..c468fe55 100644 --- a/src/common/emails/EmailBuilder.ts +++ b/src/common/emails/EmailBuilder.ts @@ -24,12 +24,11 @@ export default class EmailBuilder{ if(lastEmail.length > 0) return; const to = document.depositor!.contact!.email; - const civility = this.getCivility(document.depositor!.contact!.civility); const templateVariables = { - civility: civility, + first_name: document.depositor!.contact!.first_name, last_name: document.depositor!.contact!.last_name, office_name: document.folder!.office!.name, - link: this.variables.APP_HOST + link: `${this.variables.APP_HOST}/customer-login` }; let templateName = ETemplates.DOCUMENT_ASKED; From 9cd108afd436fd8679555019adf437406333f024 Mon Sep 17 00:00:00 2001 From: OxSaitama Date: Thu, 19 Oct 2023 16:17:25 +0200 Subject: [PATCH 14/26] fix refuse document routing --- src/app/api/admin/DocumentsController.ts | 8 ++------ src/app/api/super-admin/DocumentsController.ts | 2 +- 2 files changed, 3 insertions(+), 7 deletions(-) diff --git a/src/app/api/admin/DocumentsController.ts b/src/app/api/admin/DocumentsController.ts index 8e4ba2d1..538c13ed 100644 --- a/src/app/api/admin/DocumentsController.ts +++ b/src/app/api/admin/DocumentsController.ts @@ -111,9 +111,6 @@ export default class DocumentsController extends ApiController { //call service to get prisma entity const documentEntityUpdated: Documents = await this.documentsService.update(uid, documentEntity); - //create email for asked document - this.emailBuilder.sendDocumentEmails(documentEntityUpdated); - //Hydrate ressource with prisma entity const document = Document.hydrate(documentEntityUpdated, { strategy: "excludeAll" }); @@ -128,7 +125,7 @@ export default class DocumentsController extends ApiController { /** * @description Update a specific document */ - @Put("/api/v1/notary/documents/:uid/refuse", [authHandler, ruleHandler, documentHandler]) + @Put("/api/v1/admin/documents/:uid/refuse", [authHandler, ruleHandler, documentHandler]) protected async refuseDocument(req: Request, response: Response) { try { const uid = req.params["uid"]; @@ -159,8 +156,7 @@ export default class DocumentsController extends ApiController { const documentEntityUpdated: Documents = await this.documentsService.refuse(uid, documentEntity, req.body.refused_reason); //create email for asked document - // this.emailBuilder.sendDocumentEmails(documentEntityUpdated); - // this.notificationBuilder.sendDocumentAnchoredNotificatiom(documentEntityUpdated); + this.emailBuilder.sendDocumentEmails(documentEntityUpdated); //Hydrate ressource with prisma entity const document = Document.hydrate(documentEntityUpdated, { strategy: "excludeAll" }); diff --git a/src/app/api/super-admin/DocumentsController.ts b/src/app/api/super-admin/DocumentsController.ts index 8e2cd24f..5f92b804 100644 --- a/src/app/api/super-admin/DocumentsController.ts +++ b/src/app/api/super-admin/DocumentsController.ts @@ -126,7 +126,7 @@ export default class DocumentsController extends ApiController { /** * @description Update a specific document */ - @Put("/api/v1/notary/documents/:uid/refuse", [authHandler, ruleHandler, documentHandler]) + @Put("/api/v1/super-admin/documents/:uid/refuse", [authHandler, ruleHandler, documentHandler]) protected async refuseDocument(req: Request, response: Response) { try { const uid = req.params["uid"]; From f51aad5e7344cad60beebd92bceba7e3c6e5d2f5 Mon Sep 17 00:00:00 2001 From: OxSaitama Date: Thu, 19 Oct 2023 16:19:14 +0200 Subject: [PATCH 15/26] add role handler --- src/app/api/admin/DocumentsController.ts | 2 +- src/app/api/super-admin/DocumentsController.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/app/api/admin/DocumentsController.ts b/src/app/api/admin/DocumentsController.ts index 538c13ed..2f47470f 100644 --- a/src/app/api/admin/DocumentsController.ts +++ b/src/app/api/admin/DocumentsController.ts @@ -125,7 +125,7 @@ export default class DocumentsController extends ApiController { /** * @description Update a specific document */ - @Put("/api/v1/admin/documents/:uid/refuse", [authHandler, ruleHandler, documentHandler]) + @Put("/api/v1/admin/documents/:uid/refuse", [authHandler, roleHandler, ruleHandler, documentHandler]) protected async refuseDocument(req: Request, response: Response) { try { const uid = req.params["uid"]; diff --git a/src/app/api/super-admin/DocumentsController.ts b/src/app/api/super-admin/DocumentsController.ts index 5f92b804..4fb68c2e 100644 --- a/src/app/api/super-admin/DocumentsController.ts +++ b/src/app/api/super-admin/DocumentsController.ts @@ -126,7 +126,7 @@ export default class DocumentsController extends ApiController { /** * @description Update a specific document */ - @Put("/api/v1/super-admin/documents/:uid/refuse", [authHandler, ruleHandler, documentHandler]) + @Put("/api/v1/super-admin/documents/:uid/refuse", [authHandler, roleHandler, ruleHandler, documentHandler]) protected async refuseDocument(req: Request, response: Response) { try { const uid = req.params["uid"]; From da979e3c85d572a225b701b510edb4dedae4a9fe Mon Sep 17 00:00:00 2001 From: OxSaitama Date: Thu, 19 Oct 2023 17:04:19 +0200 Subject: [PATCH 16/26] await email creation --- src/app/api/admin/DocumentsController.ts | 4 ++-- src/app/api/notary/DocumentsController.ts | 4 ++-- src/app/api/super-admin/DocumentsController.ts | 4 ++-- src/common/repositories/DocumentsRepository.ts | 6 +++--- .../super-admin/DocumentsService/DocumentsService.ts | 2 +- 5 files changed, 10 insertions(+), 10 deletions(-) diff --git a/src/app/api/admin/DocumentsController.ts b/src/app/api/admin/DocumentsController.ts index 2f47470f..8911c769 100644 --- a/src/app/api/admin/DocumentsController.ts +++ b/src/app/api/admin/DocumentsController.ts @@ -72,7 +72,7 @@ export default class DocumentsController extends ApiController { }); //create email for asked document - this.emailBuilder.sendDocumentEmails(documentEntityCreated); + await this.emailBuilder.sendDocumentEmails(documentEntityCreated); //success @@ -156,7 +156,7 @@ export default class DocumentsController extends ApiController { const documentEntityUpdated: Documents = await this.documentsService.refuse(uid, documentEntity, req.body.refused_reason); //create email for asked document - this.emailBuilder.sendDocumentEmails(documentEntityUpdated); + await this.emailBuilder.sendDocumentEmails(documentEntityUpdated); //Hydrate ressource with prisma entity const document = Document.hydrate(documentEntityUpdated, { strategy: "excludeAll" }); diff --git a/src/app/api/notary/DocumentsController.ts b/src/app/api/notary/DocumentsController.ts index beaf115b..f23a27f0 100644 --- a/src/app/api/notary/DocumentsController.ts +++ b/src/app/api/notary/DocumentsController.ts @@ -86,7 +86,7 @@ export default class DocumentsController extends ApiController { const documentEntityCreated = await this.documentsService.create(documentEntity); //create email for asked document - this.emailBuilder.sendDocumentEmails(documentEntityCreated); + await this.emailBuilder.sendDocumentEmails(documentEntityCreated); //Hydrate ressource with prisma entity const document = Document.hydrate(documentEntityCreated, { @@ -179,7 +179,7 @@ export default class DocumentsController extends ApiController { //create email for asked document - this.emailBuilder.sendDocumentEmails(documentEntityUpdated); + await this.emailBuilder.sendDocumentEmails(documentEntityUpdated); //Hydrate ressource with prisma entity diff --git a/src/app/api/super-admin/DocumentsController.ts b/src/app/api/super-admin/DocumentsController.ts index 4fb68c2e..73750914 100644 --- a/src/app/api/super-admin/DocumentsController.ts +++ b/src/app/api/super-admin/DocumentsController.ts @@ -74,7 +74,7 @@ export default class DocumentsController extends ApiController { }); //create email for asked document - this.emailBuilder.sendDocumentEmails(documentEntityCreated); + await this.emailBuilder.sendDocumentEmails(documentEntityCreated); //success this.httpCreated(response, document); @@ -157,7 +157,7 @@ export default class DocumentsController extends ApiController { const documentEntityUpdated: Documents = await this.documentsService.refuse(uid, documentEntity, req.body.refused_reason); //create email for asked document - this.emailBuilder.sendDocumentEmails(documentEntityUpdated); + await this.emailBuilder.sendDocumentEmails(documentEntityUpdated); //Hydrate ressource with prisma entity const document = Document.hydrate(documentEntityUpdated, { strategy: "excludeAll" }); diff --git a/src/common/repositories/DocumentsRepository.ts b/src/common/repositories/DocumentsRepository.ts index 5fcbf2f0..9eca2168 100644 --- a/src/common/repositories/DocumentsRepository.ts +++ b/src/common/repositories/DocumentsRepository.ts @@ -114,16 +114,16 @@ export default class DocumentsRepository extends BaseRepository { /** * @description : Update data of a document */ - public async refuse(uid: string, document: Partial, refusedReason?: string): Promise { + public async refuse(uid: string, refusedReason?: string): Promise { return this.model.update({ where: { uid: uid, }, data: { - document_status: EDocumentStatus[document.document_status as keyof typeof EDocumentStatus], + document_status: EDocumentStatus.REFUSED, document_history: { create: { - document_status: EDocumentStatus[document.document_status as keyof typeof EDocumentStatus], + document_status: EDocumentStatus.REFUSED, refused_reason: refusedReason, }, }, diff --git a/src/services/super-admin/DocumentsService/DocumentsService.ts b/src/services/super-admin/DocumentsService/DocumentsService.ts index 90cc405a..1f780d09 100644 --- a/src/services/super-admin/DocumentsService/DocumentsService.ts +++ b/src/services/super-admin/DocumentsService/DocumentsService.ts @@ -50,7 +50,7 @@ export default class DocumentsService extends BaseService { } } - return this.documentsRepository.refuse(uid, document, refused_reason); + return this.documentsRepository.refuse(uid, refused_reason); } /** From 8946108b2068cc94ddcba0d5ba0369a3f60c2519 Mon Sep 17 00:00:00 2001 From: OxSaitama Date: Thu, 19 Oct 2023 17:08:54 +0200 Subject: [PATCH 17/26] fix document service refuse args --- src/services/admin/DocumentsService/DocumentsService.ts | 2 +- src/services/notary/DocumentsService/DocumentsService.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/services/admin/DocumentsService/DocumentsService.ts b/src/services/admin/DocumentsService/DocumentsService.ts index d76bd983..ce3f4242 100644 --- a/src/services/admin/DocumentsService/DocumentsService.ts +++ b/src/services/admin/DocumentsService/DocumentsService.ts @@ -50,7 +50,7 @@ export default class DocumentsService extends BaseService { } } - return this.documentsRepository.refuse(uid, document, refused_reason); + return this.documentsRepository.refuse(uid, refused_reason); } /** diff --git a/src/services/notary/DocumentsService/DocumentsService.ts b/src/services/notary/DocumentsService/DocumentsService.ts index 8f0819ac..0dce86dc 100644 --- a/src/services/notary/DocumentsService/DocumentsService.ts +++ b/src/services/notary/DocumentsService/DocumentsService.ts @@ -50,7 +50,7 @@ export default class DocumentsService extends BaseService { } } - return this.documentsRepository.refuse(uid, document, refused_reason); + return this.documentsRepository.refuse(uid, refused_reason); } /** From e26f4eecc51019d0e505b9d9131a051fbe0ff1e4 Mon Sep 17 00:00:00 2001 From: OxSaitama Date: Thu, 19 Oct 2023 17:25:23 +0200 Subject: [PATCH 18/26] fix anti-spam feature --- src/common/emails/EmailBuilder.ts | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/src/common/emails/EmailBuilder.ts b/src/common/emails/EmailBuilder.ts index c468fe55..8c61d608 100644 --- a/src/common/emails/EmailBuilder.ts +++ b/src/common/emails/EmailBuilder.ts @@ -15,12 +15,19 @@ export default class EmailBuilder{ public async sendDocumentEmails(documentEntity: Documents){ if(documentEntity.document_status !== "ASKED" && documentEntity.document_status !== "REFUSED") return; + let templateName = ETemplates.DOCUMENT_ASKED; + let subject = "Votre notaire vous demande de déposer des pièces pour traiter votre dossier."; + if(documentEntity.document_status === "REFUSED"){ + templateName = ETemplates.DOCUMENT_REFUSED; + subject = "Un ou plusieurs documents ne sont pas validés. Vous avez une nouvelle action à réaliser."; + } + const documentPrisma = await this.documentsService.getByUid(documentEntity.uid, { depositor: {include: {contact: true}}, folder:{include:{ office: true}} }); if(!documentPrisma) throw new Error("Document not found"); const document = Document.hydrate(documentPrisma); //Use mailchimpService.get get if an email was sent to the user in the lst hour - const lastEmail = await this.mailchimpService.get({ where: { to: document.depositor!.contact!.email, sentAt: { gte: new Date(Date.now() - 3600000) } } }); + const lastEmail = await this.mailchimpService.get({ where: { to: document.depositor!.contact!.email, sentAt: { gte: new Date(Date.now() - 3600000) }, templateName: templateName} }); if(lastEmail.length > 0) return; const to = document.depositor!.contact!.email; @@ -31,13 +38,6 @@ export default class EmailBuilder{ link: `${this.variables.APP_HOST}/customer-login` }; - let templateName = ETemplates.DOCUMENT_ASKED; - let subject = "Votre notaire vous demande de déposer des pièces pour traiter votre dossier."; - if(documentEntity.document_status === "REFUSED"){ - templateName = ETemplates.DOCUMENT_REFUSED; - subject = "Un ou plusieurs documents ne sont pas validés. Vous avez une nouvelle action à réaliser."; - } - this.mailchimpService.create({ templateName, to, From 11ad41aae4b78052e9c03a01ad882873f826e61d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lo=C3=AFs=20Mansot?= <26844641+devfull@users.noreply.github.com> Date: Fri, 20 Oct 2023 11:46:32 +0200 Subject: [PATCH 19/26] reshape zip content structure --- src/app/api/notary/OfficeFolderAnchorsController.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/app/api/notary/OfficeFolderAnchorsController.ts b/src/app/api/notary/OfficeFolderAnchorsController.ts index c5a8a65b..efb31606 100644 --- a/src/app/api/notary/OfficeFolderAnchorsController.ts +++ b/src/app/api/notary/OfficeFolderAnchorsController.ts @@ -93,13 +93,13 @@ export default class OfficeFoldersController extends ApiController { (async () => { const data = await this.filesService.download(uid); if (!data?.buffer) return; - zip.addFile(`${uid}-${data.file.file_name}`, data.buffer); + zip.addFile(`Documents du client/${uid}-${data.file.file_name}`, data.buffer); })() const uids: string[] = folderFilesUid.filter((uid): uid is string => uid !== undefined); const zip = new Zip(); - zip.addFile(`${uid}-certificat-de-dépôt.pdf`, anchoringProof); + zip.addFile("Certificat de dépôt du dossier.pdf", anchoringProof); await Promise.allSettled( uids.map(addFileToZip(zip)) ) From 974d1225eeb5c975ea1720427abf29056410ac67 Mon Sep 17 00:00:00 2001 From: OxSaitama Date: Fri, 20 Oct 2023 12:18:04 +0200 Subject: [PATCH 20/26] fix email spams --- src/common/emails/EmailBuilder.ts | 159 +++++++++++++++++------------- 1 file changed, 88 insertions(+), 71 deletions(-) diff --git a/src/common/emails/EmailBuilder.ts b/src/common/emails/EmailBuilder.ts index 8c61d608..81eb1c1e 100644 --- a/src/common/emails/EmailBuilder.ts +++ b/src/common/emails/EmailBuilder.ts @@ -1,4 +1,3 @@ - import DocumentsService from "@Services/super-admin/DocumentsService/DocumentsService"; import { Documents } from "@prisma/client"; import User, { Document } from "le-coffre-resources/dist/SuperAdmin"; @@ -9,84 +8,102 @@ import { BackendVariables } from "@Common/config/variables/Variables"; import UsersService from "@Services/super-admin/UsersService/UsersService"; @Service() -export default class EmailBuilder{ - public constructor(private mailchimpService: MailchimpService ,private documentsService: DocumentsService, protected variables: BackendVariables, private usersService: UsersService){} +export default class EmailBuilder { + public constructor( + private mailchimpService: MailchimpService, + private documentsService: DocumentsService, + protected variables: BackendVariables, + private usersService: UsersService, + ) {} - public async sendDocumentEmails(documentEntity: Documents){ - if(documentEntity.document_status !== "ASKED" && documentEntity.document_status !== "REFUSED") return; + public async sendDocumentEmails(documentEntity: Documents) { + if (documentEntity.document_status !== "ASKED" && documentEntity.document_status !== "REFUSED") return; - let templateName = ETemplates.DOCUMENT_ASKED; - let subject = "Votre notaire vous demande de déposer des pièces pour traiter votre dossier."; - if(documentEntity.document_status === "REFUSED"){ - templateName = ETemplates.DOCUMENT_REFUSED; - subject = "Un ou plusieurs documents ne sont pas validés. Vous avez une nouvelle action à réaliser."; - } + let templateName = ETemplates.DOCUMENT_ASKED; + let subject = "Votre notaire vous demande de déposer des pièces pour traiter votre dossier."; + if (documentEntity.document_status === "REFUSED") { + templateName = ETemplates.DOCUMENT_REFUSED; + subject = "Un ou plusieurs documents ne sont pas validés. Vous avez une nouvelle action à réaliser."; + } - const documentPrisma = await this.documentsService.getByUid(documentEntity.uid, { depositor: {include: {contact: true}}, folder:{include:{ office: true}} }); - if(!documentPrisma) throw new Error("Document not found"); - const document = Document.hydrate(documentPrisma); + const documentPrisma = await this.documentsService.getByUid(documentEntity.uid, { + depositor: { include: { contact: true } }, + folder: { include: { office: true } }, + }); + if (!documentPrisma) throw new Error("Document not found"); + const document = Document.hydrate(documentPrisma); - //Use mailchimpService.get get if an email was sent to the user in the lst hour - const lastEmail = await this.mailchimpService.get({ where: { to: document.depositor!.contact!.email, sentAt: { gte: new Date(Date.now() - 3600000) }, templateName: templateName} }); - if(lastEmail.length > 0) return; - - const to = document.depositor!.contact!.email; - const templateVariables = { - first_name: document.depositor!.contact!.first_name, - last_name: document.depositor!.contact!.last_name, - office_name: document.folder!.office!.name, - link: `${this.variables.APP_HOST}/customer-login` - }; + //Use mailchimpService.get get if an email was sent to the user in the lst hour + const lastEmail = await this.mailchimpService.get({ + where: { + to: document.depositor!.contact!.email, + OR: [{ sentAt: { gte: new Date(Date.now() - 3600000) } }, { sentAt: null }], + templateName: templateName, + }, + }); + if (lastEmail.length > 0) return; - this.mailchimpService.create({ - templateName, - to, - subject, - templateVariables, - uid: "", - from: null, - cc: [], - cci: [], - sentAt: null, - nbTrySend: null, - lastTrySendDate: null, - }); - } + const to = document.depositor!.contact!.email; + const templateVariables = { + first_name: document.depositor!.contact!.first_name, + last_name: document.depositor!.contact!.last_name, + office_name: document.folder!.office!.name, + link: `${this.variables.APP_HOST}/customer-login`, + }; - public async sendRecapEmails(){ - const usersToEmail : User[] = await this.usersService.get({ where: { office_folders: { some:{ documents: { some: { document_status: "DEPOSITED" } } }} }, distinct: ["uid"], include: { contact: true } }); - - usersToEmail.forEach(user => { - const to = user.contact!.email; - const civility = this.getCivility(user.contact!.civility); + this.mailchimpService.create({ + templateName, + to, + subject, + templateVariables, + uid: "", + from: null, + cc: [], + cci: [], + sentAt: null, + nbTrySend: null, + lastTrySendDate: null, + }); + } - const templateVariables = { - civility: civility, - last_name: user.contact!.last_name, - link: this.variables.APP_HOST - }; + public async sendRecapEmails() { + const usersToEmail: User[] = await this.usersService.get({ + where: { office_folders: { some: { documents: { some: { document_status: "DEPOSITED" } } } } }, + distinct: ["uid"], + include: { contact: true }, + }); - const templateName = ETemplates.DOCUMENT_RECAP; - const subject = "Des clients vous ont envoyé des documents qui n'ont pas été validés."; + usersToEmail.forEach((user) => { + const to = user.contact!.email; + const civility = this.getCivility(user.contact!.civility); - this.mailchimpService.create({ - templateName, - to, - subject, - templateVariables, - uid: "", - from: null, - cc: [], - cci: [], - sentAt: null, - nbTrySend: null, - lastTrySendDate: null, - }); - }); - } + const templateVariables = { + civility: civility, + last_name: user.contact!.last_name, + link: this.variables.APP_HOST, + }; - public getCivility(civility: string){ - if(civility === "MALE") return "Mr" - else return "Mme" - } + const templateName = ETemplates.DOCUMENT_RECAP; + const subject = "Des clients vous ont envoyé des documents qui n'ont pas été validés."; + + this.mailchimpService.create({ + templateName, + to, + subject, + templateVariables, + uid: "", + from: null, + cc: [], + cci: [], + sentAt: null, + nbTrySend: null, + lastTrySendDate: null, + }); + }); + } + + public getCivility(civility: string) { + if (civility === "MALE") return "Mr"; + else return "Mme"; + } } From 5c99ccbd75edae641ba4f70eb1ed55fe9025ea61 Mon Sep 17 00:00:00 2001 From: OxSaitama Date: Mon, 23 Oct 2023 12:18:04 +0200 Subject: [PATCH 21/26] add api documentation --- doc/Le Coffre Api.postman_collection.json | 21275 ++++++++++++++++++++ doc/swagger.json | 6194 ++++++ 2 files changed, 27469 insertions(+) create mode 100644 doc/Le Coffre Api.postman_collection.json create mode 100644 doc/swagger.json diff --git a/doc/Le Coffre Api.postman_collection.json b/doc/Le Coffre Api.postman_collection.json new file mode 100644 index 00000000..1ed9601f --- /dev/null +++ b/doc/Le Coffre Api.postman_collection.json @@ -0,0 +1,21275 @@ +{ + "info": { + "_postman_id": "12da7bd2-25b7-483f-808d-f3ad49ac97e4", + "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}}notary" + ], + "path": [ + "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}}notary" + ], + "path": [ + "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}}notary" + ], + "path": [ + "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}}notary" + ], + "path": [ + "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}}notary" + ], + "path": [ + "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}}notary" + ], + "path": [ + "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}}notary" + ], + "path": [ + "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}}notary" + ], + "path": [ + "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}}notary" + ], + "path": [ + "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}}notary" + ], + "path": [ + "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}}notary" + ], + "path": [ + "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}}notary" + ], + "path": [ + "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}}notary" + ], + "path": [ + "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}}notary" + ], + "path": [ + "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}}notary" + ], + "path": [ + "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}}notary" + ], + "path": [ + "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}}notary" + ], + "path": [ + "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 \"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}}notary" + ], + "path": [ + "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 \"createdAt\": \"\",\n \"updatedAt\": \"\"\n}", + "options": { + "raw": { + "headerFamily": "json", + "language": "json" + } + } + }, + "url": { + "raw": "{{baseUrl}}notary/deeds/:uid", + "host": [ + "{{baseUrl}}notary" + ], + "path": [ + "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 \"createdAt\": \"\",\n \"updatedAt\": \"\"\n}", + "options": { + "raw": { + "headerFamily": "json", + "language": "json" + } + } + }, + "url": { + "raw": "{{baseUrl}}notary/deeds/:uid", + "host": [ + "{{baseUrl}}notary" + ], + "path": [ + "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 \"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 \"createdAt\": \"\",\n \"updatedAt\": \"\"\n}", + "options": { + "raw": { + "headerFamily": "json", + "language": "json" + } + } + }, + "url": { + "raw": "{{baseUrl}}notary/deeds/:uid", + "host": [ + "{{baseUrl}}notary" + ], + "path": [ + "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 \"createdAt\": \"\",\n \"updatedAt\": \"\"\n}", + "options": { + "raw": { + "headerFamily": "json", + "language": "json" + } + } + }, + "url": { + "raw": "{{baseUrl}}notary/deeds/:uid", + "host": [ + "{{baseUrl}}notary" + ], + "path": [ + "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 \"createdAt\": \"\",\n \"updatedAt\": \"\"\n}", + "options": { + "raw": { + "headerFamily": "json", + "language": "json" + } + } + }, + "url": { + "raw": "{{baseUrl}}notary/deeds/:uid", + "host": [ + "{{baseUrl}}notary" + ], + "path": [ + "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 \"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 \"createdAt\": \"\",\n \"updatedAt\": \"\"\n}", + "options": { + "raw": { + "headerFamily": "json", + "language": "json" + } + } + }, + "url": { + "raw": "{{baseUrl}}notary/deeds/:uid", + "host": [ + "{{baseUrl}}notary" + ], + "path": [ + "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}}notary" + ], + "path": [ + "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}}notary" + ], + "path": [ + "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 \"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}}notary" + ], + "path": [ + "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 \"createdAt\": \"\",\n \"updatedAt\": \"\"\n}", + "options": { + "raw": { + "headerFamily": "json", + "language": "json" + } + } + }, + "url": { + "raw": "{{baseUrl}}notary/deeds", + "host": [ + "{{baseUrl}}notary" + ], + "path": [ + "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 \"createdAt\": \"\",\n \"updatedAt\": \"\"\n}", + "options": { + "raw": { + "headerFamily": "json", + "language": "json" + } + } + }, + "url": { + "raw": "{{baseUrl}}notary/deeds", + "host": [ + "{{baseUrl}}notary" + ], + "path": [ + "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 \"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 \"createdAt\": \"\",\n \"updatedAt\": \"\"\n}", + "options": { + "raw": { + "headerFamily": "json", + "language": "json" + } + } + }, + "url": { + "raw": "{{baseUrl}}notary/deeds", + "host": [ + "{{baseUrl}}notary" + ], + "path": [ + "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}}notary" + ], + "path": [ + "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}}notary" + ], + "path": [ + "deed-types", + ":uid" + ], + "variable": [ + { + "key": "uid" + } + ] + } + }, + "status": "OK", + "code": 200, + "_postman_previewlanguage": "json", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + } + ], + "cookie": [], + "body": "{\n \"value\": \"reference #/components/schemas/DeedType not found in the OpenAPI spec\"\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}}notary" + ], + "path": [ + "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 \"value\": \"reference #/components/schemas/DeedType not found in the OpenAPI spec\"\n}", + "options": { + "raw": { + "headerFamily": "json", + "language": "json" + } + } + }, + "url": { + "raw": "{{baseUrl}}notary/deed-types/:uid", + "host": [ + "{{baseUrl}}notary" + ], + "path": [ + "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 \"value\": \"reference #/components/schemas/DeedType not found in the OpenAPI spec\"\n}", + "options": { + "raw": { + "headerFamily": "json", + "language": "json" + } + } + }, + "url": { + "raw": "{{baseUrl}}notary/deed-types/:uid", + "host": [ + "{{baseUrl}}notary" + ], + "path": [ + "deed-types", + ":uid" + ], + "variable": [ + { + "key": "uid" + } + ] + } + }, + "status": "OK", + "code": 200, + "_postman_previewlanguage": "json", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + } + ], + "cookie": [], + "body": "{\n \"value\": \"reference #/components/schemas/DeedType not found in the OpenAPI spec\"\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 \"value\": \"reference #/components/schemas/DeedType not found in the OpenAPI spec\"\n}", + "options": { + "raw": { + "headerFamily": "json", + "language": "json" + } + } + }, + "url": { + "raw": "{{baseUrl}}notary/deed-types/:uid", + "host": [ + "{{baseUrl}}notary" + ], + "path": [ + "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}}notary" + ], + "path": [ + "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}}notary" + ], + "path": [ + "deed-types" + ] + } + }, + "status": "OK", + "code": 200, + "_postman_previewlanguage": "json", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + } + ], + "cookie": [], + "body": "{\n \"value\": \"reference #/components/schemas/DeedType not found in the OpenAPI spec\"\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}}notary" + ], + "path": [ + "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 \"value\": \"reference #/components/schemas/DeedType not found in the OpenAPI spec\"\n}", + "options": { + "raw": { + "headerFamily": "json", + "language": "json" + } + } + }, + "url": { + "raw": "{{baseUrl}}notary/deed-types", + "host": [ + "{{baseUrl}}notary" + ], + "path": [ + "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 \"value\": \"reference #/components/schemas/DeedType not found in the OpenAPI spec\"\n}", + "options": { + "raw": { + "headerFamily": "json", + "language": "json" + } + } + }, + "url": { + "raw": "{{baseUrl}}notary/deed-types", + "host": [ + "{{baseUrl}}notary" + ], + "path": [ + "deed-types" + ] + } + }, + "status": "OK", + "code": 200, + "_postman_previewlanguage": "json", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + } + ], + "cookie": [], + "body": "{\n \"value\": \"reference #/components/schemas/DeedType not found in the OpenAPI spec\"\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 \"value\": \"reference #/components/schemas/DeedType not found in the OpenAPI spec\"\n}", + "options": { + "raw": { + "headerFamily": "json", + "language": "json" + } + } + }, + "url": { + "raw": "{{baseUrl}}notary/deed-types", + "host": [ + "{{baseUrl}}notary" + ], + "path": [ + "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}}notary" + ], + "path": [ + "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}}notary" + ], + "path": [ + "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}}notary" + ], + "path": [ + "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}}notary" + ], + "path": [ + "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}}notary" + ], + "path": [ + "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}}notary" + ], + "path": [ + "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}}notary" + ], + "path": [ + "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}}notary" + ], + "path": [ + "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}}notary" + ], + "path": [ + "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}}notary" + ], + "path": [ + "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}}notary" + ], + "path": [ + "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}}notary" + ], + "path": [ + "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}}notary" + ], + "path": [ + "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}}notary" + ], + "path": [ + "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}}notary" + ], + "path": [ + "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}}notary" + ], + "path": [ + "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}}notary" + ], + "path": [ + "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}}notary" + ], + "path": [ + "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}}notary" + ], + "path": [ + "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}}notary" + ], + "path": [ + "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}}notary" + ], + "path": [ + "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}}notary" + ], + "path": [ + "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}}notary" + ], + "path": [ + "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}}notary" + ], + "path": [ + "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}}notary" + ], + "path": [ + "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}}notary" + ], + "path": [ + "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}}notary" + ], + "path": [ + "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}}notary" + ], + "path": [ + "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}}notary" + ], + "path": [ + "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}}notary" + ], + "path": [ + "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}}notary" + ], + "path": [ + "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}}notary" + ], + "path": [ + "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}}notary" + ], + "path": [ + "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}}notary" + ], + "path": [ + "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}}notary" + ], + "path": [ + "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}}notary" + ], + "path": [ + "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}}notary" + ], + "path": [ + "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}}notary" + ], + "path": [ + "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}}notary" + ], + "path": [ + "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}}notary" + ], + "path": [ + "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}}notary" + ], + "path": [ + "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}}notary" + ], + "path": [ + "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}}notary" + ], + "path": [ + "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}}notary" + ], + "path": [ + "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}}notary" + ], + "path": [ + "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}}notary" + ], + "path": [ + "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}}notary" + ], + "path": [ + "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}}notary" + ], + "path": [ + "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}}notary" + ], + "path": [ + "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}}notary" + ], + "path": [ + "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}}notary" + ], + "path": [ + "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}}notary" + ], + "path": [ + "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}}notary" + ], + "path": [ + "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}}notary" + ], + "path": [ + "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 \"value\": \"reference #/components/schemas/Folder not found in the OpenAPI spec\"\n}", + "options": { + "raw": { + "headerFamily": "json", + "language": "json" + } + } + }, + "url": { + "raw": "{{baseUrl}}notary/folders/:uid", + "host": [ + "{{baseUrl}}notary" + ], + "path": [ + "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 \"value\": \"reference #/components/schemas/Folder not found in the OpenAPI spec\"\n}", + "options": { + "raw": { + "headerFamily": "json", + "language": "json" + } + } + }, + "url": { + "raw": "{{baseUrl}}notary/folders/:uid", + "host": [ + "{{baseUrl}}notary" + ], + "path": [ + "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 \"value\": \"reference #/components/schemas/Folder not found in the OpenAPI spec\"\n}", + "options": { + "raw": { + "headerFamily": "json", + "language": "json" + } + } + }, + "url": { + "raw": "{{baseUrl}}notary/folders/:uid", + "host": [ + "{{baseUrl}}notary" + ], + "path": [ + "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}}notary" + ], + "path": [ + "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}}notary" + ], + "path": [ + "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}}notary" + ], + "path": [ + "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}}notary" + ], + "path": [ + "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}}notary" + ], + "path": [ + "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 \"value\": \"reference #/components/schemas/Folder not found in the OpenAPI spec\"\n },\n {\n \"value\": \"reference #/components/schemas/Folder 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/folders/:uid?uid=", + "host": [ + "{{baseUrl}}notary" + ], + "path": [ + "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}}notary" + ], + "path": [ + "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}}notary" + ], + "path": [ + "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}}notary" + ], + "path": [ + "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 \"value\": \"reference #/components/schemas/Folder not found in the OpenAPI spec\"\n}", + "options": { + "raw": { + "headerFamily": "json", + "language": "json" + } + } + }, + "url": { + "raw": "{{baseUrl}}notary/folders", + "host": [ + "{{baseUrl}}notary" + ], + "path": [ + "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 \"value\": \"reference #/components/schemas/Folder not found in the OpenAPI spec\"\n}", + "options": { + "raw": { + "headerFamily": "json", + "language": "json" + } + } + }, + "url": { + "raw": "{{baseUrl}}notary/folders", + "host": [ + "{{baseUrl}}notary" + ], + "path": [ + "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 \"value\": \"reference #/components/schemas/Folder not found in the OpenAPI spec\"\n}", + "options": { + "raw": { + "headerFamily": "json", + "language": "json" + } + } + }, + "url": { + "raw": "{{baseUrl}}notary/folders", + "host": [ + "{{baseUrl}}notary" + ], + "path": [ + "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}}notary" + ], + "path": [ + "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}}notary" + ], + "path": [ + "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 \"value\": \"reference #/components/schemas/OfficeRole not found in the OpenAPI spec\"\n },\n {\n \"value\": \"reference #/components/schemas/OfficeRole 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/office-roles/:uid?uid=", + "host": [ + "{{baseUrl}}notary" + ], + "path": [ + "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}}notary" + ], + "path": [ + "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}}notary" + ], + "path": [ + "office-roles" + ] + } + }, + "status": "OK", + "code": 200, + "_postman_previewlanguage": "json", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + } + ], + "cookie": [], + "body": "[\n {\n \"value\": \"reference #/components/schemas/OfficeRole not found in the OpenAPI spec\"\n },\n {\n \"value\": \"reference #/components/schemas/OfficeRole 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/office-roles", + "host": [ + "{{baseUrl}}notary" + ], + "path": [ + "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}}notary" + ], + "path": [ + "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}}notary" + ], + "path": [ + "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 \"value\": \"reference #/components/schemas/Office not found in the OpenAPI spec\"\n },\n {\n \"value\": \"reference #/components/schemas/Office 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/offices/:uid?uid=", + "host": [ + "{{baseUrl}}notary" + ], + "path": [ + "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}}notary" + ], + "path": [ + "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}}notary" + ], + "path": [ + "offices" + ] + } + }, + "status": "OK", + "code": 200, + "_postman_previewlanguage": "json", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + } + ], + "cookie": [], + "body": "[\n {\n \"value\": \"reference #/components/schemas/Office not found in the OpenAPI spec\"\n },\n {\n \"value\": \"reference #/components/schemas/Office 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/offices", + "host": [ + "{{baseUrl}}notary" + ], + "path": [ + "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}}notary" + ], + "path": [ + "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}}notary" + ], + "path": [ + "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 \"value\": \"reference #/components/schemas/Role not found in the OpenAPI spec\"\n },\n {\n \"value\": \"reference #/components/schemas/Role 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/roles/:uid?uid=", + "host": [ + "{{baseUrl}}notary" + ], + "path": [ + "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}}notary" + ], + "path": [ + "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}}notary" + ], + "path": [ + "roles" + ] + } + }, + "status": "OK", + "code": 200, + "_postman_previewlanguage": "json", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + } + ], + "cookie": [], + "body": "[\n {\n \"value\": \"reference #/components/schemas/Role not found in the OpenAPI spec\"\n },\n {\n \"value\": \"reference #/components/schemas/Role 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/roles", + "host": [ + "{{baseUrl}}notary" + ], + "path": [ + "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}}notary" + ], + "path": [ + "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}}notary" + ], + "path": [ + "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}}notary" + ], + "path": [ + "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}}notary" + ], + "path": [ + "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}}notary" + ], + "path": [ + "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}}notary" + ], + "path": [ + "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}}notary" + ], + "path": [ + "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}}notary" + ], + "path": [ + "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}}notary" + ], + "path": [ + "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}}notary" + ], + "path": [ + "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}}notary" + ], + "path": [ + "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 \"value\": \"reference #/components/schemas/User not found in the OpenAPI spec\"\n },\n {\n \"value\": \"reference #/components/schemas/User 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/users/:uid?uid=", + "host": [ + "{{baseUrl}}notary" + ], + "path": [ + "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}}notary" + ], + "path": [ + "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}}notary" + ], + "path": [ + "users" + ] + } + }, + "status": "OK", + "code": 200, + "_postman_previewlanguage": "json", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + } + ], + "cookie": [], + "body": "[\n {\n \"value\": \"reference #/components/schemas/User not found in the OpenAPI spec\"\n },\n {\n \"value\": \"reference #/components/schemas/User 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/users", + "host": [ + "{{baseUrl}}notary" + ], + "path": [ + "users" + ] + } + }, + "status": "Bad Request", + "code": 400, + "_postman_previewlanguage": "text", + "header": [], + "cookie": [], + "body": "" + } + ] + } + ] + } + ] + }, + { + "name": "customers", + "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}}customers/documents/:uid", + "host": [ + "{{baseUrl}}customers" + ], + "path": [ + "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}}customers/documents/:uid", + "host": [ + "{{baseUrl}}customers" + ], + "path": [ + "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}}customers/documents/:uid", + "host": [ + "{{baseUrl}}customers" + ], + "path": [ + "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}}customers/documents", + "host": [ + "{{baseUrl}}customers" + ], + "path": [ + "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}}customers/documents", + "host": [ + "{{baseUrl}}customers" + ], + "path": [ + "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}}customers/documents", + "host": [ + "{{baseUrl}}customers" + ], + "path": [ + "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}}customers/documents", + "host": [ + "{{baseUrl}}customers" + ], + "path": [ + "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}}customers/documents", + "host": [ + "{{baseUrl}}customers" + ], + "path": [ + "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}}customers/documents", + "host": [ + "{{baseUrl}}customers" + ], + "path": [ + "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}}customers/files/:uid", + "host": [ + "{{baseUrl}}customers" + ], + "path": [ + "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}}customers/files/:uid", + "host": [ + "{{baseUrl}}customers" + ], + "path": [ + "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}}customers/files/:uid", + "host": [ + "{{baseUrl}}customers" + ], + "path": [ + "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 \"value\": \"reference #/components/schemas/File not found in the OpenAPI spec\"\n}", + "options": { + "raw": { + "headerFamily": "json", + "language": "json" + } + } + }, + "url": { + "raw": "{{baseUrl}}customers/files/:uid", + "host": [ + "{{baseUrl}}customers" + ], + "path": [ + "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 \"value\": \"reference #/components/schemas/File not found in the OpenAPI spec\"\n}", + "options": { + "raw": { + "headerFamily": "json", + "language": "json" + } + } + }, + "url": { + "raw": "{{baseUrl}}customers/files/:uid", + "host": [ + "{{baseUrl}}customers" + ], + "path": [ + "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 \"value\": \"reference #/components/schemas/File not found in the OpenAPI spec\"\n}", + "options": { + "raw": { + "headerFamily": "json", + "language": "json" + } + } + }, + "url": { + "raw": "{{baseUrl}}customers/files/:uid", + "host": [ + "{{baseUrl}}customers" + ], + "path": [ + "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}}customers/files/:uid", + "host": [ + "{{baseUrl}}customers" + ], + "path": [ + "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}}customers/files/:uid", + "host": [ + "{{baseUrl}}customers" + ], + "path": [ + "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}}customers/files/:uid", + "host": [ + "{{baseUrl}}customers" + ], + "path": [ + "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}}customers/files", + "host": [ + "{{baseUrl}}customers" + ], + "path": [ + "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}}customers/files", + "host": [ + "{{baseUrl}}customers" + ], + "path": [ + "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}}customers/files", + "host": [ + "{{baseUrl}}customers" + ], + "path": [ + "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": "application/json" + } + ], + "body": { + "mode": "raw", + "raw": "{\n \"value\": \"reference #/components/schemas/File not found in the OpenAPI spec\"\n}", + "options": { + "raw": { + "headerFamily": "json", + "language": "json" + } + } + }, + "url": { + "raw": "{{baseUrl}}customers/files", + "host": [ + "{{baseUrl}}customers" + ], + "path": [ + "files" + ] + } + }, + "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/File not found in the OpenAPI spec\"\n}", + "options": { + "raw": { + "headerFamily": "json", + "language": "json" + } + } + }, + "url": { + "raw": "{{baseUrl}}customers/files", + "host": [ + "{{baseUrl}}customers" + ], + "path": [ + "files" + ] + } + }, + "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/File not found in the OpenAPI spec\"\n}", + "options": { + "raw": { + "headerFamily": "json", + "language": "json" + } + } + }, + "url": { + "raw": "{{baseUrl}}customers/files", + "host": [ + "{{baseUrl}}customers" + ], + "path": [ + "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}}customers/folders/:uid", + "host": [ + "{{baseUrl}}customers" + ], + "path": [ + "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}}customers/folders/:uid", + "host": [ + "{{baseUrl}}customers" + ], + "path": [ + "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}}customers/folders/:uid", + "host": [ + "{{baseUrl}}customers" + ], + "path": [ + "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}}customers/folders", + "host": [ + "{{baseUrl}}customers" + ], + "path": [ + "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}}customers/folders", + "host": [ + "{{baseUrl}}customers" + ], + "path": [ + "folders" + ] + } + }, + "status": "OK", + "code": 200, + "_postman_previewlanguage": "json", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + } + ], + "cookie": [], + "body": "[\n {\n \"value\": \"reference #/components/schemas/Folder not found in the OpenAPI spec\"\n },\n {\n \"value\": \"reference #/components/schemas/Folder 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}}customers/folders", + "host": [ + "{{baseUrl}}customers" + ], + "path": [ + "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}}admin" + ], + "path": [ + "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}}admin" + ], + "path": [ + "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}}admin" + ], + "path": [ + "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}}admin" + ], + "path": [ + "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}}admin" + ], + "path": [ + "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}}admin" + ], + "path": [ + "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}}admin" + ], + "path": [ + "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}}admin" + ], + "path": [ + "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}}admin" + ], + "path": [ + "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}}admin" + ], + "path": [ + "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}}admin" + ], + "path": [ + "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}}admin" + ], + "path": [ + "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}}admin" + ], + "path": [ + "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}}admin" + ], + "path": [ + "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}}admin" + ], + "path": [ + "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}}admin" + ], + "path": [ + "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}}admin" + ], + "path": [ + "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 \"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}}admin" + ], + "path": [ + "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 \"createdAt\": \"\",\n \"updatedAt\": \"\"\n}", + "options": { + "raw": { + "headerFamily": "json", + "language": "json" + } + } + }, + "url": { + "raw": "{{baseUrl}}admin/deeds/:uid", + "host": [ + "{{baseUrl}}admin" + ], + "path": [ + "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 \"createdAt\": \"\",\n \"updatedAt\": \"\"\n}", + "options": { + "raw": { + "headerFamily": "json", + "language": "json" + } + } + }, + "url": { + "raw": "{{baseUrl}}admin/deeds/:uid", + "host": [ + "{{baseUrl}}admin" + ], + "path": [ + "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 \"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 \"createdAt\": \"\",\n \"updatedAt\": \"\"\n}", + "options": { + "raw": { + "headerFamily": "json", + "language": "json" + } + } + }, + "url": { + "raw": "{{baseUrl}}admin/deeds/:uid", + "host": [ + "{{baseUrl}}admin" + ], + "path": [ + "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 \"createdAt\": \"\",\n \"updatedAt\": \"\"\n}", + "options": { + "raw": { + "headerFamily": "json", + "language": "json" + } + } + }, + "url": { + "raw": "{{baseUrl}}admin/deeds/:uid", + "host": [ + "{{baseUrl}}admin" + ], + "path": [ + "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 \"createdAt\": \"\",\n \"updatedAt\": \"\"\n}", + "options": { + "raw": { + "headerFamily": "json", + "language": "json" + } + } + }, + "url": { + "raw": "{{baseUrl}}admin/deeds/:uid", + "host": [ + "{{baseUrl}}admin" + ], + "path": [ + "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 \"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 \"createdAt\": \"\",\n \"updatedAt\": \"\"\n}", + "options": { + "raw": { + "headerFamily": "json", + "language": "json" + } + } + }, + "url": { + "raw": "{{baseUrl}}admin/deeds/:uid", + "host": [ + "{{baseUrl}}admin" + ], + "path": [ + "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}}admin" + ], + "path": [ + "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}}admin" + ], + "path": [ + "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 \"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}}admin" + ], + "path": [ + "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 \"createdAt\": \"\",\n \"updatedAt\": \"\"\n}", + "options": { + "raw": { + "headerFamily": "json", + "language": "json" + } + } + }, + "url": { + "raw": "{{baseUrl}}admin/deeds", + "host": [ + "{{baseUrl}}admin" + ], + "path": [ + "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 \"createdAt\": \"\",\n \"updatedAt\": \"\"\n}", + "options": { + "raw": { + "headerFamily": "json", + "language": "json" + } + } + }, + "url": { + "raw": "{{baseUrl}}admin/deeds", + "host": [ + "{{baseUrl}}admin" + ], + "path": [ + "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 \"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 \"createdAt\": \"\",\n \"updatedAt\": \"\"\n}", + "options": { + "raw": { + "headerFamily": "json", + "language": "json" + } + } + }, + "url": { + "raw": "{{baseUrl}}admin/deeds", + "host": [ + "{{baseUrl}}admin" + ], + "path": [ + "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}}admin" + ], + "path": [ + "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}}admin" + ], + "path": [ + "deed-types", + ":uid" + ], + "variable": [ + { + "key": "uid" + } + ] + } + }, + "status": "OK", + "code": 200, + "_postman_previewlanguage": "json", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + } + ], + "cookie": [], + "body": "{\n \"value\": \"reference #/components/schemas/DeedType not found in the OpenAPI spec\"\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}}admin" + ], + "path": [ + "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 \"value\": \"reference #/components/schemas/DeedType not found in the OpenAPI spec\"\n}", + "options": { + "raw": { + "headerFamily": "json", + "language": "json" + } + } + }, + "url": { + "raw": "{{baseUrl}}admin/deed-types/:uid", + "host": [ + "{{baseUrl}}admin" + ], + "path": [ + "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 \"value\": \"reference #/components/schemas/DeedType not found in the OpenAPI spec\"\n}", + "options": { + "raw": { + "headerFamily": "json", + "language": "json" + } + } + }, + "url": { + "raw": "{{baseUrl}}admin/deed-types/:uid", + "host": [ + "{{baseUrl}}admin" + ], + "path": [ + "deed-types", + ":uid" + ], + "variable": [ + { + "key": "uid" + } + ] + } + }, + "status": "OK", + "code": 200, + "_postman_previewlanguage": "json", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + } + ], + "cookie": [], + "body": "{\n \"value\": \"reference #/components/schemas/DeedType not found in the OpenAPI spec\"\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 \"value\": \"reference #/components/schemas/DeedType not found in the OpenAPI spec\"\n}", + "options": { + "raw": { + "headerFamily": "json", + "language": "json" + } + } + }, + "url": { + "raw": "{{baseUrl}}admin/deed-types/:uid", + "host": [ + "{{baseUrl}}admin" + ], + "path": [ + "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}}admin" + ], + "path": [ + "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}}admin" + ], + "path": [ + "deed-types" + ] + } + }, + "status": "OK", + "code": 200, + "_postman_previewlanguage": "json", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + } + ], + "cookie": [], + "body": "{\n \"value\": \"reference #/components/schemas/DeedType not found in the OpenAPI spec\"\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}}admin" + ], + "path": [ + "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 \"value\": \"reference #/components/schemas/DeedType not found in the OpenAPI spec\"\n}", + "options": { + "raw": { + "headerFamily": "json", + "language": "json" + } + } + }, + "url": { + "raw": "{{baseUrl}}admin/deed-types", + "host": [ + "{{baseUrl}}admin" + ], + "path": [ + "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 \"value\": \"reference #/components/schemas/DeedType not found in the OpenAPI spec\"\n}", + "options": { + "raw": { + "headerFamily": "json", + "language": "json" + } + } + }, + "url": { + "raw": "{{baseUrl}}admin/deed-types", + "host": [ + "{{baseUrl}}admin" + ], + "path": [ + "deed-types" + ] + } + }, + "status": "OK", + "code": 200, + "_postman_previewlanguage": "json", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + } + ], + "cookie": [], + "body": "{\n \"value\": \"reference #/components/schemas/DeedType not found in the OpenAPI spec\"\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 \"value\": \"reference #/components/schemas/DeedType not found in the OpenAPI spec\"\n}", + "options": { + "raw": { + "headerFamily": "json", + "language": "json" + } + } + }, + "url": { + "raw": "{{baseUrl}}admin/deed-types", + "host": [ + "{{baseUrl}}admin" + ], + "path": [ + "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}}admin" + ], + "path": [ + "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}}admin" + ], + "path": [ + "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}}admin" + ], + "path": [ + "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}}admin" + ], + "path": [ + "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}}admin" + ], + "path": [ + "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}}admin" + ], + "path": [ + "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}}admin" + ], + "path": [ + "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}}admin" + ], + "path": [ + "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}}admin" + ], + "path": [ + "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}}admin" + ], + "path": [ + "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}}admin" + ], + "path": [ + "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}}admin" + ], + "path": [ + "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}}admin" + ], + "path": [ + "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}}admin" + ], + "path": [ + "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}}admin" + ], + "path": [ + "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}}admin" + ], + "path": [ + "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}}admin" + ], + "path": [ + "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}}admin" + ], + "path": [ + "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}}admin" + ], + "path": [ + "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}}admin" + ], + "path": [ + "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}}admin" + ], + "path": [ + "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}}admin" + ], + "path": [ + "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}}admin" + ], + "path": [ + "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}}admin" + ], + "path": [ + "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}}admin" + ], + "path": [ + "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}}admin" + ], + "path": [ + "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}}admin" + ], + "path": [ + "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}}admin" + ], + "path": [ + "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}}admin" + ], + "path": [ + "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}}admin" + ], + "path": [ + "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}}admin" + ], + "path": [ + "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}}admin" + ], + "path": [ + "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}}admin" + ], + "path": [ + "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}}admin" + ], + "path": [ + "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}}admin" + ], + "path": [ + "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}}admin" + ], + "path": [ + "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}}admin" + ], + "path": [ + "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}}admin" + ], + "path": [ + "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}}admin" + ], + "path": [ + "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}}admin" + ], + "path": [ + "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}}admin" + ], + "path": [ + "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}}admin" + ], + "path": [ + "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}}admin" + ], + "path": [ + "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}}admin" + ], + "path": [ + "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}}admin" + ], + "path": [ + "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}}admin" + ], + "path": [ + "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}}admin" + ], + "path": [ + "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}}admin" + ], + "path": [ + "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}}admin" + ], + "path": [ + "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}}admin" + ], + "path": [ + "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}}admin" + ], + "path": [ + "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}}admin" + ], + "path": [ + "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}}admin" + ], + "path": [ + "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}}admin" + ], + "path": [ + "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 \"value\": \"reference #/components/schemas/Folder not found in the OpenAPI spec\"\n}", + "options": { + "raw": { + "headerFamily": "json", + "language": "json" + } + } + }, + "url": { + "raw": "{{baseUrl}}admin/folders/:uid", + "host": [ + "{{baseUrl}}admin" + ], + "path": [ + "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 \"value\": \"reference #/components/schemas/Folder not found in the OpenAPI spec\"\n}", + "options": { + "raw": { + "headerFamily": "json", + "language": "json" + } + } + }, + "url": { + "raw": "{{baseUrl}}admin/folders/:uid", + "host": [ + "{{baseUrl}}admin" + ], + "path": [ + "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 \"value\": \"reference #/components/schemas/Folder not found in the OpenAPI spec\"\n}", + "options": { + "raw": { + "headerFamily": "json", + "language": "json" + } + } + }, + "url": { + "raw": "{{baseUrl}}admin/folders/:uid", + "host": [ + "{{baseUrl}}admin" + ], + "path": [ + "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}}admin" + ], + "path": [ + "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}}admin" + ], + "path": [ + "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}}admin" + ], + "path": [ + "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}}admin" + ], + "path": [ + "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}}admin" + ], + "path": [ + "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 \"value\": \"reference #/components/schemas/Folder not found in the OpenAPI spec\"\n },\n {\n \"value\": \"reference #/components/schemas/Folder 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/folders/:uid?uid=", + "host": [ + "{{baseUrl}}admin" + ], + "path": [ + "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}}admin" + ], + "path": [ + "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}}admin" + ], + "path": [ + "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}}admin" + ], + "path": [ + "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 \"value\": \"reference #/components/schemas/Folder not found in the OpenAPI spec\"\n}", + "options": { + "raw": { + "headerFamily": "json", + "language": "json" + } + } + }, + "url": { + "raw": "{{baseUrl}}admin/folders", + "host": [ + "{{baseUrl}}admin" + ], + "path": [ + "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 \"value\": \"reference #/components/schemas/Folder not found in the OpenAPI spec\"\n}", + "options": { + "raw": { + "headerFamily": "json", + "language": "json" + } + } + }, + "url": { + "raw": "{{baseUrl}}admin/folders", + "host": [ + "{{baseUrl}}admin" + ], + "path": [ + "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 \"value\": \"reference #/components/schemas/Folder not found in the OpenAPI spec\"\n}", + "options": { + "raw": { + "headerFamily": "json", + "language": "json" + } + } + }, + "url": { + "raw": "{{baseUrl}}admin/folders", + "host": [ + "{{baseUrl}}admin" + ], + "path": [ + "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}}admin" + ], + "path": [ + "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}}admin" + ], + "path": [ + "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 \"value\": \"reference #/components/schemas/OfficeRole not found in the OpenAPI spec\"\n },\n {\n \"value\": \"reference #/components/schemas/OfficeRole 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/office-roles/:uid?uid=", + "host": [ + "{{baseUrl}}admin" + ], + "path": [ + "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 \"value\": \"reference #/components/schemas/OfficeRole not found in the OpenAPI spec\"\n}", + "options": { + "raw": { + "headerFamily": "json", + "language": "json" + } + } + }, + "url": { + "raw": "{{baseUrl}}admin/office-roles/:uid?uid=", + "host": [ + "{{baseUrl}}admin" + ], + "path": [ + "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 \"value\": \"reference #/components/schemas/OfficeRole not found in the OpenAPI spec\"\n}", + "options": { + "raw": { + "headerFamily": "json", + "language": "json" + } + } + }, + "url": { + "raw": "{{baseUrl}}admin/office-roles/:uid?uid=", + "host": [ + "{{baseUrl}}admin" + ], + "path": [ + "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 \"value\": \"reference #/components/schemas/OfficeRole not found in the OpenAPI spec\"\n },\n {\n \"value\": \"reference #/components/schemas/OfficeRole not found in the OpenAPI spec\"\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 \"value\": \"reference #/components/schemas/OfficeRole not found in the OpenAPI spec\"\n}", + "options": { + "raw": { + "headerFamily": "json", + "language": "json" + } + } + }, + "url": { + "raw": "{{baseUrl}}admin/office-roles/:uid?uid=", + "host": [ + "{{baseUrl}}admin" + ], + "path": [ + "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}}admin" + ], + "path": [ + "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}}admin" + ], + "path": [ + "office-roles" + ] + } + }, + "status": "OK", + "code": 200, + "_postman_previewlanguage": "json", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + } + ], + "cookie": [], + "body": "[\n {\n \"value\": \"reference #/components/schemas/OfficeRole not found in the OpenAPI spec\"\n },\n {\n \"value\": \"reference #/components/schemas/OfficeRole 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/office-roles", + "host": [ + "{{baseUrl}}admin" + ], + "path": [ + "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 \"value\": \"reference #/components/schemas/OfficeRole not found in the OpenAPI spec\"\n}", + "options": { + "raw": { + "headerFamily": "json", + "language": "json" + } + } + }, + "url": { + "raw": "{{baseUrl}}admin/office-roles", + "host": [ + "{{baseUrl}}admin" + ], + "path": [ + "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 \"value\": \"reference #/components/schemas/OfficeRole not found in the OpenAPI spec\"\n}", + "options": { + "raw": { + "headerFamily": "json", + "language": "json" + } + } + }, + "url": { + "raw": "{{baseUrl}}admin/office-roles", + "host": [ + "{{baseUrl}}admin" + ], + "path": [ + "office-roles" + ] + } + }, + "status": "OK", + "code": 200, + "_postman_previewlanguage": "json", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + } + ], + "cookie": [], + "body": "[\n {\n \"value\": \"reference #/components/schemas/OfficeRole not found in the OpenAPI spec\"\n },\n {\n \"value\": \"reference #/components/schemas/OfficeRole not found in the OpenAPI spec\"\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 \"value\": \"reference #/components/schemas/OfficeRole not found in the OpenAPI spec\"\n}", + "options": { + "raw": { + "headerFamily": "json", + "language": "json" + } + } + }, + "url": { + "raw": "{{baseUrl}}admin/office-roles", + "host": [ + "{{baseUrl}}admin" + ], + "path": [ + "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}}admin" + ], + "path": [ + "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}}admin" + ], + "path": [ + "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 \"value\": \"reference #/components/schemas/Office not found in the OpenAPI spec\"\n },\n {\n \"value\": \"reference #/components/schemas/Office 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/offices/:uid?uid=", + "host": [ + "{{baseUrl}}admin" + ], + "path": [ + "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}}admin" + ], + "path": [ + "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}}admin" + ], + "path": [ + "offices" + ] + } + }, + "status": "OK", + "code": 200, + "_postman_previewlanguage": "json", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + } + ], + "cookie": [], + "body": "[\n {\n \"value\": \"reference #/components/schemas/Office not found in the OpenAPI spec\"\n },\n {\n \"value\": \"reference #/components/schemas/Office 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/offices", + "host": [ + "{{baseUrl}}admin" + ], + "path": [ + "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}}admin" + ], + "path": [ + "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}}admin" + ], + "path": [ + "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 \"value\": \"reference #/components/schemas/Role not found in the OpenAPI spec\"\n },\n {\n \"value\": \"reference #/components/schemas/Role 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/roles/:uid?uid=", + "host": [ + "{{baseUrl}}admin" + ], + "path": [ + "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}}admin" + ], + "path": [ + "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}}admin" + ], + "path": [ + "roles" + ] + } + }, + "status": "OK", + "code": 200, + "_postman_previewlanguage": "json", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + } + ], + "cookie": [], + "body": "[\n {\n \"value\": \"reference #/components/schemas/Role not found in the OpenAPI spec\"\n },\n {\n \"value\": \"reference #/components/schemas/Role 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/roles", + "host": [ + "{{baseUrl}}admin" + ], + "path": [ + "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}}admin" + ], + "path": [ + "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}}admin" + ], + "path": [ + "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}}admin" + ], + "path": [ + "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}}admin" + ], + "path": [ + "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}}admin" + ], + "path": [ + "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}}admin" + ], + "path": [ + "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}}admin" + ], + "path": [ + "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}}admin" + ], + "path": [ + "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}}admin" + ], + "path": [ + "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}}admin" + ], + "path": [ + "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}}admin" + ], + "path": [ + "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 \"value\": \"reference #/components/schemas/User not found in the OpenAPI spec\"\n },\n {\n \"value\": \"reference #/components/schemas/User 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/users/:uid?uid=", + "host": [ + "{{baseUrl}}admin" + ], + "path": [ + "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 \"value\": \"reference #/components/schemas/User not found in the OpenAPI spec\"\n}", + "options": { + "raw": { + "headerFamily": "json", + "language": "json" + } + } + }, + "url": { + "raw": "{{baseUrl}}admin/users/:uid?uid=", + "host": [ + "{{baseUrl}}admin" + ], + "path": [ + "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 \"value\": \"reference #/components/schemas/User not found in the OpenAPI spec\"\n}", + "options": { + "raw": { + "headerFamily": "json", + "language": "json" + } + } + }, + "url": { + "raw": "{{baseUrl}}admin/users/:uid?uid=", + "host": [ + "{{baseUrl}}admin" + ], + "path": [ + "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 \"value\": \"reference #/components/schemas/User not found in the OpenAPI spec\"\n}", + "options": { + "raw": { + "headerFamily": "json", + "language": "json" + } + } + }, + "url": { + "raw": "{{baseUrl}}admin/users/:uid?uid=", + "host": [ + "{{baseUrl}}admin" + ], + "path": [ + "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}}admin" + ], + "path": [ + "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}}admin" + ], + "path": [ + "users" + ] + } + }, + "status": "OK", + "code": 200, + "_postman_previewlanguage": "json", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + } + ], + "cookie": [], + "body": "[\n {\n \"value\": \"reference #/components/schemas/User not found in the OpenAPI spec\"\n },\n {\n \"value\": \"reference #/components/schemas/User 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/users", + "host": [ + "{{baseUrl}}admin" + ], + "path": [ + "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}}super-admin" + ], + "path": [ + "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}}super-admin" + ], + "path": [ + "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}}super-admin" + ], + "path": [ + "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}}super-admin" + ], + "path": [ + "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}}super-admin" + ], + "path": [ + "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}}super-admin" + ], + "path": [ + "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}}super-admin" + ], + "path": [ + "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}}super-admin" + ], + "path": [ + "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}}super-admin" + ], + "path": [ + "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}}super-admin" + ], + "path": [ + "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}}super-admin" + ], + "path": [ + "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}}super-admin" + ], + "path": [ + "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}}super-admin" + ], + "path": [ + "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}}super-admin" + ], + "path": [ + "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}}super-admin" + ], + "path": [ + "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}}super-admin" + ], + "path": [ + "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}}super-admin" + ], + "path": [ + "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 \"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}}super-admin" + ], + "path": [ + "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 \"createdAt\": \"\",\n \"updatedAt\": \"\"\n}", + "options": { + "raw": { + "headerFamily": "json", + "language": "json" + } + } + }, + "url": { + "raw": "{{baseUrl}}super-admin/deeds/:uid", + "host": [ + "{{baseUrl}}super-admin" + ], + "path": [ + "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 \"createdAt\": \"\",\n \"updatedAt\": \"\"\n}", + "options": { + "raw": { + "headerFamily": "json", + "language": "json" + } + } + }, + "url": { + "raw": "{{baseUrl}}super-admin/deeds/:uid", + "host": [ + "{{baseUrl}}super-admin" + ], + "path": [ + "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 \"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 \"createdAt\": \"\",\n \"updatedAt\": \"\"\n}", + "options": { + "raw": { + "headerFamily": "json", + "language": "json" + } + } + }, + "url": { + "raw": "{{baseUrl}}super-admin/deeds/:uid", + "host": [ + "{{baseUrl}}super-admin" + ], + "path": [ + "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 \"createdAt\": \"\",\n \"updatedAt\": \"\"\n}", + "options": { + "raw": { + "headerFamily": "json", + "language": "json" + } + } + }, + "url": { + "raw": "{{baseUrl}}super-admin/deeds/:uid", + "host": [ + "{{baseUrl}}super-admin" + ], + "path": [ + "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 \"createdAt\": \"\",\n \"updatedAt\": \"\"\n}", + "options": { + "raw": { + "headerFamily": "json", + "language": "json" + } + } + }, + "url": { + "raw": "{{baseUrl}}super-admin/deeds/:uid", + "host": [ + "{{baseUrl}}super-admin" + ], + "path": [ + "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 \"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 \"createdAt\": \"\",\n \"updatedAt\": \"\"\n}", + "options": { + "raw": { + "headerFamily": "json", + "language": "json" + } + } + }, + "url": { + "raw": "{{baseUrl}}super-admin/deeds/:uid", + "host": [ + "{{baseUrl}}super-admin" + ], + "path": [ + "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}}super-admin" + ], + "path": [ + "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}}super-admin" + ], + "path": [ + "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 \"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}}super-admin" + ], + "path": [ + "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 \"createdAt\": \"\",\n \"updatedAt\": \"\"\n}", + "options": { + "raw": { + "headerFamily": "json", + "language": "json" + } + } + }, + "url": { + "raw": "{{baseUrl}}super-admin/deeds", + "host": [ + "{{baseUrl}}super-admin" + ], + "path": [ + "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 \"createdAt\": \"\",\n \"updatedAt\": \"\"\n}", + "options": { + "raw": { + "headerFamily": "json", + "language": "json" + } + } + }, + "url": { + "raw": "{{baseUrl}}super-admin/deeds", + "host": [ + "{{baseUrl}}super-admin" + ], + "path": [ + "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 \"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 \"createdAt\": \"\",\n \"updatedAt\": \"\"\n}", + "options": { + "raw": { + "headerFamily": "json", + "language": "json" + } + } + }, + "url": { + "raw": "{{baseUrl}}super-admin/deeds", + "host": [ + "{{baseUrl}}super-admin" + ], + "path": [ + "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}}super-admin" + ], + "path": [ + "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}}super-admin" + ], + "path": [ + "deed-types", + ":uid" + ], + "variable": [ + { + "key": "uid" + } + ] + } + }, + "status": "OK", + "code": 200, + "_postman_previewlanguage": "json", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + } + ], + "cookie": [], + "body": "{\n \"value\": \"reference #/components/schemas/DeedType not found in the OpenAPI spec\"\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}}super-admin" + ], + "path": [ + "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 \"value\": \"reference #/components/schemas/DeedType not found in the OpenAPI spec\"\n}", + "options": { + "raw": { + "headerFamily": "json", + "language": "json" + } + } + }, + "url": { + "raw": "{{baseUrl}}super-admin/deed-types/:uid", + "host": [ + "{{baseUrl}}super-admin" + ], + "path": [ + "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 \"value\": \"reference #/components/schemas/DeedType not found in the OpenAPI spec\"\n}", + "options": { + "raw": { + "headerFamily": "json", + "language": "json" + } + } + }, + "url": { + "raw": "{{baseUrl}}super-admin/deed-types/:uid", + "host": [ + "{{baseUrl}}super-admin" + ], + "path": [ + "deed-types", + ":uid" + ], + "variable": [ + { + "key": "uid" + } + ] + } + }, + "status": "OK", + "code": 200, + "_postman_previewlanguage": "json", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + } + ], + "cookie": [], + "body": "{\n \"value\": \"reference #/components/schemas/DeedType not found in the OpenAPI spec\"\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 \"value\": \"reference #/components/schemas/DeedType not found in the OpenAPI spec\"\n}", + "options": { + "raw": { + "headerFamily": "json", + "language": "json" + } + } + }, + "url": { + "raw": "{{baseUrl}}super-admin/deed-types/:uid", + "host": [ + "{{baseUrl}}super-admin" + ], + "path": [ + "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}}super-admin" + ], + "path": [ + "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}}super-admin" + ], + "path": [ + "deed-types" + ] + } + }, + "status": "OK", + "code": 200, + "_postman_previewlanguage": "json", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + } + ], + "cookie": [], + "body": "{\n \"value\": \"reference #/components/schemas/DeedType not found in the OpenAPI spec\"\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}}super-admin" + ], + "path": [ + "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 \"value\": \"reference #/components/schemas/DeedType not found in the OpenAPI spec\"\n}", + "options": { + "raw": { + "headerFamily": "json", + "language": "json" + } + } + }, + "url": { + "raw": "{{baseUrl}}super-admin/deed-types", + "host": [ + "{{baseUrl}}super-admin" + ], + "path": [ + "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 \"value\": \"reference #/components/schemas/DeedType not found in the OpenAPI spec\"\n}", + "options": { + "raw": { + "headerFamily": "json", + "language": "json" + } + } + }, + "url": { + "raw": "{{baseUrl}}super-admin/deed-types", + "host": [ + "{{baseUrl}}super-admin" + ], + "path": [ + "deed-types" + ] + } + }, + "status": "OK", + "code": 200, + "_postman_previewlanguage": "json", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + } + ], + "cookie": [], + "body": "{\n \"value\": \"reference #/components/schemas/DeedType not found in the OpenAPI spec\"\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 \"value\": \"reference #/components/schemas/DeedType not found in the OpenAPI spec\"\n}", + "options": { + "raw": { + "headerFamily": "json", + "language": "json" + } + } + }, + "url": { + "raw": "{{baseUrl}}super-admin/deed-types", + "host": [ + "{{baseUrl}}super-admin" + ], + "path": [ + "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}}super-admin" + ], + "path": [ + "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}}super-admin" + ], + "path": [ + "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}}super-admin" + ], + "path": [ + "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}}super-admin" + ], + "path": [ + "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}}super-admin" + ], + "path": [ + "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}}super-admin" + ], + "path": [ + "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}}super-admin" + ], + "path": [ + "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}}super-admin" + ], + "path": [ + "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}}super-admin" + ], + "path": [ + "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}}super-admin" + ], + "path": [ + "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}}super-admin" + ], + "path": [ + "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}}super-admin" + ], + "path": [ + "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}}super-admin" + ], + "path": [ + "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}}super-admin" + ], + "path": [ + "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}}super-admin" + ], + "path": [ + "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}}super-admin" + ], + "path": [ + "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}}super-admin" + ], + "path": [ + "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}}super-admin" + ], + "path": [ + "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}}super-admin" + ], + "path": [ + "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}}super-admin" + ], + "path": [ + "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}}super-admin" + ], + "path": [ + "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}}super-admin" + ], + "path": [ + "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}}super-admin" + ], + "path": [ + "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}}super-admin" + ], + "path": [ + "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}}super-admin" + ], + "path": [ + "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}}super-admin" + ], + "path": [ + "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}}super-admin" + ], + "path": [ + "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}}super-admin" + ], + "path": [ + "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}}super-admin" + ], + "path": [ + "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}}super-admin" + ], + "path": [ + "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}}super-admin" + ], + "path": [ + "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}}super-admin" + ], + "path": [ + "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}}super-admin" + ], + "path": [ + "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}}super-admin" + ], + "path": [ + "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}}super-admin" + ], + "path": [ + "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}}super-admin" + ], + "path": [ + "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}}super-admin" + ], + "path": [ + "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}}super-admin" + ], + "path": [ + "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}}super-admin" + ], + "path": [ + "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}}super-admin" + ], + "path": [ + "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}}super-admin" + ], + "path": [ + "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}}super-admin" + ], + "path": [ + "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}}super-admin" + ], + "path": [ + "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}}super-admin" + ], + "path": [ + "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}}super-admin" + ], + "path": [ + "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}}super-admin" + ], + "path": [ + "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}}super-admin" + ], + "path": [ + "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}}super-admin" + ], + "path": [ + "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}}super-admin" + ], + "path": [ + "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}}super-admin" + ], + "path": [ + "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}}super-admin" + ], + "path": [ + "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}}super-admin" + ], + "path": [ + "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}}super-admin" + ], + "path": [ + "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}}super-admin" + ], + "path": [ + "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 \"value\": \"reference #/components/schemas/Folder not found in the OpenAPI spec\"\n}", + "options": { + "raw": { + "headerFamily": "json", + "language": "json" + } + } + }, + "url": { + "raw": "{{baseUrl}}super-admin/folders/:uid", + "host": [ + "{{baseUrl}}super-admin" + ], + "path": [ + "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 \"value\": \"reference #/components/schemas/Folder not found in the OpenAPI spec\"\n}", + "options": { + "raw": { + "headerFamily": "json", + "language": "json" + } + } + }, + "url": { + "raw": "{{baseUrl}}super-admin/folders/:uid", + "host": [ + "{{baseUrl}}super-admin" + ], + "path": [ + "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 \"value\": \"reference #/components/schemas/Folder not found in the OpenAPI spec\"\n}", + "options": { + "raw": { + "headerFamily": "json", + "language": "json" + } + } + }, + "url": { + "raw": "{{baseUrl}}super-admin/folders/:uid", + "host": [ + "{{baseUrl}}super-admin" + ], + "path": [ + "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}}super-admin" + ], + "path": [ + "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}}super-admin" + ], + "path": [ + "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}}super-admin" + ], + "path": [ + "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}}super-admin" + ], + "path": [ + "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}}super-admin" + ], + "path": [ + "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 \"value\": \"reference #/components/schemas/Folder not found in the OpenAPI spec\"\n },\n {\n \"value\": \"reference #/components/schemas/Folder 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/folders/:uid?uid=", + "host": [ + "{{baseUrl}}super-admin" + ], + "path": [ + "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}}super-admin" + ], + "path": [ + "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}}super-admin" + ], + "path": [ + "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}}super-admin" + ], + "path": [ + "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 \"value\": \"reference #/components/schemas/Folder not found in the OpenAPI spec\"\n}", + "options": { + "raw": { + "headerFamily": "json", + "language": "json" + } + } + }, + "url": { + "raw": "{{baseUrl}}super-admin/folders", + "host": [ + "{{baseUrl}}super-admin" + ], + "path": [ + "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 \"value\": \"reference #/components/schemas/Folder not found in the OpenAPI spec\"\n}", + "options": { + "raw": { + "headerFamily": "json", + "language": "json" + } + } + }, + "url": { + "raw": "{{baseUrl}}super-admin/folders", + "host": [ + "{{baseUrl}}super-admin" + ], + "path": [ + "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 \"value\": \"reference #/components/schemas/Folder not found in the OpenAPI spec\"\n}", + "options": { + "raw": { + "headerFamily": "json", + "language": "json" + } + } + }, + "url": { + "raw": "{{baseUrl}}super-admin/folders", + "host": [ + "{{baseUrl}}super-admin" + ], + "path": [ + "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}}super-admin" + ], + "path": [ + "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}}super-admin" + ], + "path": [ + "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 \"value\": \"reference #/components/schemas/OfficeRole not found in the OpenAPI spec\"\n },\n {\n \"value\": \"reference #/components/schemas/OfficeRole 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/office-roles/:uid?uid=", + "host": [ + "{{baseUrl}}super-admin" + ], + "path": [ + "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 \"value\": \"reference #/components/schemas/OfficeRole not found in the OpenAPI spec\"\n}", + "options": { + "raw": { + "headerFamily": "json", + "language": "json" + } + } + }, + "url": { + "raw": "{{baseUrl}}super-admin/office-roles/:uid?uid=", + "host": [ + "{{baseUrl}}super-admin" + ], + "path": [ + "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 \"value\": \"reference #/components/schemas/OfficeRole not found in the OpenAPI spec\"\n}", + "options": { + "raw": { + "headerFamily": "json", + "language": "json" + } + } + }, + "url": { + "raw": "{{baseUrl}}super-admin/office-roles/:uid?uid=", + "host": [ + "{{baseUrl}}super-admin" + ], + "path": [ + "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 \"value\": \"reference #/components/schemas/OfficeRole not found in the OpenAPI spec\"\n },\n {\n \"value\": \"reference #/components/schemas/OfficeRole not found in the OpenAPI spec\"\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 \"value\": \"reference #/components/schemas/OfficeRole not found in the OpenAPI spec\"\n}", + "options": { + "raw": { + "headerFamily": "json", + "language": "json" + } + } + }, + "url": { + "raw": "{{baseUrl}}super-admin/office-roles/:uid?uid=", + "host": [ + "{{baseUrl}}super-admin" + ], + "path": [ + "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}}super-admin" + ], + "path": [ + "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}}super-admin" + ], + "path": [ + "office-roles" + ] + } + }, + "status": "OK", + "code": 200, + "_postman_previewlanguage": "json", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + } + ], + "cookie": [], + "body": "[\n {\n \"value\": \"reference #/components/schemas/OfficeRole not found in the OpenAPI spec\"\n },\n {\n \"value\": \"reference #/components/schemas/OfficeRole 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/office-roles", + "host": [ + "{{baseUrl}}super-admin" + ], + "path": [ + "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 \"value\": \"reference #/components/schemas/OfficeRole not found in the OpenAPI spec\"\n}", + "options": { + "raw": { + "headerFamily": "json", + "language": "json" + } + } + }, + "url": { + "raw": "{{baseUrl}}super-admin/office-roles", + "host": [ + "{{baseUrl}}super-admin" + ], + "path": [ + "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 \"value\": \"reference #/components/schemas/OfficeRole not found in the OpenAPI spec\"\n}", + "options": { + "raw": { + "headerFamily": "json", + "language": "json" + } + } + }, + "url": { + "raw": "{{baseUrl}}super-admin/office-roles", + "host": [ + "{{baseUrl}}super-admin" + ], + "path": [ + "office-roles" + ] + } + }, + "status": "OK", + "code": 200, + "_postman_previewlanguage": "json", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + } + ], + "cookie": [], + "body": "[\n {\n \"value\": \"reference #/components/schemas/OfficeRole not found in the OpenAPI spec\"\n },\n {\n \"value\": \"reference #/components/schemas/OfficeRole not found in the OpenAPI spec\"\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 \"value\": \"reference #/components/schemas/OfficeRole not found in the OpenAPI spec\"\n}", + "options": { + "raw": { + "headerFamily": "json", + "language": "json" + } + } + }, + "url": { + "raw": "{{baseUrl}}super-admin/office-roles", + "host": [ + "{{baseUrl}}super-admin" + ], + "path": [ + "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}}super-admin" + ], + "path": [ + "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}}super-admin" + ], + "path": [ + "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 \"value\": \"reference #/components/schemas/Office not found in the OpenAPI spec\"\n },\n {\n \"value\": \"reference #/components/schemas/Office 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/offices/:uid?uid=", + "host": [ + "{{baseUrl}}super-admin" + ], + "path": [ + "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 \"value\": \"reference #/components/schemas/Office not found in the OpenAPI spec\"\n}", + "options": { + "raw": { + "headerFamily": "json", + "language": "json" + } + } + }, + "url": { + "raw": "{{baseUrl}}super-admin/offices/:uid?uid=", + "host": [ + "{{baseUrl}}super-admin" + ], + "path": [ + "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 \"value\": \"reference #/components/schemas/Office not found in the OpenAPI spec\"\n}", + "options": { + "raw": { + "headerFamily": "json", + "language": "json" + } + } + }, + "url": { + "raw": "{{baseUrl}}super-admin/offices/:uid?uid=", + "host": [ + "{{baseUrl}}super-admin" + ], + "path": [ + "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 \"value\": \"reference #/components/schemas/Office not found in the OpenAPI spec\"\n },\n {\n \"value\": \"reference #/components/schemas/Office not found in the OpenAPI spec\"\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 \"value\": \"reference #/components/schemas/Office not found in the OpenAPI spec\"\n}", + "options": { + "raw": { + "headerFamily": "json", + "language": "json" + } + } + }, + "url": { + "raw": "{{baseUrl}}super-admin/offices/:uid?uid=", + "host": [ + "{{baseUrl}}super-admin" + ], + "path": [ + "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}}super-admin" + ], + "path": [ + "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}}super-admin" + ], + "path": [ + "offices" + ] + } + }, + "status": "OK", + "code": 200, + "_postman_previewlanguage": "json", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + } + ], + "cookie": [], + "body": "[\n {\n \"value\": \"reference #/components/schemas/Office not found in the OpenAPI spec\"\n },\n {\n \"value\": \"reference #/components/schemas/Office 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/offices", + "host": [ + "{{baseUrl}}super-admin" + ], + "path": [ + "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 \"value\": \"reference #/components/schemas/Office not found in the OpenAPI spec\"\n}", + "options": { + "raw": { + "headerFamily": "json", + "language": "json" + } + } + }, + "url": { + "raw": "{{baseUrl}}super-admin/offices", + "host": [ + "{{baseUrl}}super-admin" + ], + "path": [ + "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 \"value\": \"reference #/components/schemas/Office not found in the OpenAPI spec\"\n}", + "options": { + "raw": { + "headerFamily": "json", + "language": "json" + } + } + }, + "url": { + "raw": "{{baseUrl}}super-admin/offices", + "host": [ + "{{baseUrl}}super-admin" + ], + "path": [ + "offices" + ] + } + }, + "status": "OK", + "code": 200, + "_postman_previewlanguage": "json", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + } + ], + "cookie": [], + "body": "[\n {\n \"value\": \"reference #/components/schemas/Office not found in the OpenAPI spec\"\n },\n {\n \"value\": \"reference #/components/schemas/Office not found in the OpenAPI spec\"\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 \"value\": \"reference #/components/schemas/Office not found in the OpenAPI spec\"\n}", + "options": { + "raw": { + "headerFamily": "json", + "language": "json" + } + } + }, + "url": { + "raw": "{{baseUrl}}super-admin/offices", + "host": [ + "{{baseUrl}}super-admin" + ], + "path": [ + "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}}super-admin" + ], + "path": [ + "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}}super-admin" + ], + "path": [ + "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 \"value\": \"reference #/components/schemas/Role not found in the OpenAPI spec\"\n },\n {\n \"value\": \"reference #/components/schemas/Role 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/roles/:uid?uid=", + "host": [ + "{{baseUrl}}super-admin" + ], + "path": [ + "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 \"value\": \"reference #/components/schemas/Role not found in the OpenAPI spec\"\n}", + "options": { + "raw": { + "headerFamily": "json", + "language": "json" + } + } + }, + "url": { + "raw": "{{baseUrl}}super-admin/roles/:uid?uid=", + "host": [ + "{{baseUrl}}super-admin" + ], + "path": [ + "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 \"value\": \"reference #/components/schemas/Role not found in the OpenAPI spec\"\n}", + "options": { + "raw": { + "headerFamily": "json", + "language": "json" + } + } + }, + "url": { + "raw": "{{baseUrl}}super-admin/roles/:uid?uid=", + "host": [ + "{{baseUrl}}super-admin" + ], + "path": [ + "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 \"value\": \"reference #/components/schemas/Role not found in the OpenAPI spec\"\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 \"value\": \"reference #/components/schemas/Role not found in the OpenAPI spec\"\n}", + "options": { + "raw": { + "headerFamily": "json", + "language": "json" + } + } + }, + "url": { + "raw": "{{baseUrl}}super-admin/roles/:uid?uid=", + "host": [ + "{{baseUrl}}super-admin" + ], + "path": [ + "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}}super-admin" + ], + "path": [ + "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}}super-admin" + ], + "path": [ + "roles" + ] + } + }, + "status": "OK", + "code": 200, + "_postman_previewlanguage": "json", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + } + ], + "cookie": [], + "body": "[\n {\n \"value\": \"reference #/components/schemas/Role not found in the OpenAPI spec\"\n },\n {\n \"value\": \"reference #/components/schemas/Role 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/roles", + "host": [ + "{{baseUrl}}super-admin" + ], + "path": [ + "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 \"value\": \"reference #/components/schemas/Role not found in the OpenAPI spec\"\n}", + "options": { + "raw": { + "headerFamily": "json", + "language": "json" + } + } + }, + "url": { + "raw": "{{baseUrl}}super-admin/roles", + "host": [ + "{{baseUrl}}super-admin" + ], + "path": [ + "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 \"value\": \"reference #/components/schemas/Role not found in the OpenAPI spec\"\n}", + "options": { + "raw": { + "headerFamily": "json", + "language": "json" + } + } + }, + "url": { + "raw": "{{baseUrl}}super-admin/roles", + "host": [ + "{{baseUrl}}super-admin" + ], + "path": [ + "roles" + ] + } + }, + "status": "OK", + "code": 200, + "_postman_previewlanguage": "json", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + } + ], + "cookie": [], + "body": "{\n \"value\": \"reference #/components/schemas/Role not found in the OpenAPI spec\"\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 \"value\": \"reference #/components/schemas/Role not found in the OpenAPI spec\"\n}", + "options": { + "raw": { + "headerFamily": "json", + "language": "json" + } + } + }, + "url": { + "raw": "{{baseUrl}}super-admin/roles", + "host": [ + "{{baseUrl}}super-admin" + ], + "path": [ + "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}}super-admin" + ], + "path": [ + "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}}super-admin" + ], + "path": [ + "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}}super-admin" + ], + "path": [ + "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}}super-admin" + ], + "path": [ + "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}}super-admin" + ], + "path": [ + "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}}super-admin" + ], + "path": [ + "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}}super-admin" + ], + "path": [ + "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}}super-admin" + ], + "path": [ + "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}}super-admin" + ], + "path": [ + "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}}super-admin" + ], + "path": [ + "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}}super-admin" + ], + "path": [ + "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 \"value\": \"reference #/components/schemas/User not found in the OpenAPI spec\"\n },\n {\n \"value\": \"reference #/components/schemas/User 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/users/:uid?uid=", + "host": [ + "{{baseUrl}}super-admin" + ], + "path": [ + "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 \"value\": \"reference #/components/schemas/User not found in the OpenAPI spec\"\n}", + "options": { + "raw": { + "headerFamily": "json", + "language": "json" + } + } + }, + "url": { + "raw": "{{baseUrl}}super-admin/users/:uid?uid=", + "host": [ + "{{baseUrl}}super-admin" + ], + "path": [ + "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 \"value\": \"reference #/components/schemas/User not found in the OpenAPI spec\"\n}", + "options": { + "raw": { + "headerFamily": "json", + "language": "json" + } + } + }, + "url": { + "raw": "{{baseUrl}}super-admin/users/:uid?uid=", + "host": [ + "{{baseUrl}}super-admin" + ], + "path": [ + "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 \"value\": \"reference #/components/schemas/User not found in the OpenAPI spec\"\n}", + "options": { + "raw": { + "headerFamily": "json", + "language": "json" + } + } + }, + "url": { + "raw": "{{baseUrl}}super-admin/users/:uid?uid=", + "host": [ + "{{baseUrl}}super-admin" + ], + "path": [ + "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}}super-admin" + ], + "path": [ + "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}}super-admin" + ], + "path": [ + "users" + ] + } + }, + "status": "OK", + "code": 200, + "_postman_previewlanguage": "json", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + } + ], + "cookie": [], + "body": "[\n {\n \"value\": \"reference #/components/schemas/User not found in the OpenAPI spec\"\n },\n {\n \"value\": \"reference #/components/schemas/User 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/users", + "host": [ + "{{baseUrl}}super-admin" + ], + "path": [ + "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}}super-admin" + ], + "path": [ + "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}}super-admin" + ], + "path": [ + "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}}super-admin" + ], + "path": [ + "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/Vote not found in the OpenAPI spec\"\n}", + "options": { + "raw": { + "headerFamily": "json", + "language": "json" + } + } + }, + "url": { + "raw": "{{baseUrl}}super-admin/live-votes", + "host": [ + "{{baseUrl}}super-admin" + ], + "path": [ + "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/Vote not found in the OpenAPI spec\"\n}", + "options": { + "raw": { + "headerFamily": "json", + "language": "json" + } + } + }, + "url": { + "raw": "{{baseUrl}}super-admin/live-votes", + "host": [ + "{{baseUrl}}super-admin" + ], + "path": [ + "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/Vote not found in the OpenAPI spec\"\n}", + "options": { + "raw": { + "headerFamily": "json", + "language": "json" + } + } + }, + "url": { + "raw": "{{baseUrl}}super-admin/live-votes", + "host": [ + "{{baseUrl}}super-admin" + ], + "path": [ + "live-votes" + ] + } + }, + "status": "Bad Request", + "code": 400, + "_postman_previewlanguage": "text", + "header": [], + "cookie": [], + "body": "" + } + ] + } + ] + } + ] + } + ], + "variable": [ + { + "key": "baseUrl", + "value": "http://localhost:3000/api/v1" + } + ] +} \ No newline at end of file diff --git a/doc/swagger.json b/doc/swagger.json new file mode 100644 index 00000000..7c9bddfc --- /dev/null +++ b/doc/swagger.json @@ -0,0 +1,6194 @@ +{ + "swagger": "2.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" + }, + "host": "localhost:3000", + "basePath": "/api/v1", + "tags": [ + { + "name": "customer" + }, + { + "name": "notary" + }, + { + "name": "admin" + }, + { + "name": "super-admin" + } + ], + "schemes": ["http", "https"], + "paths": { + "notary/customers": { + "get": { + "tags": ["notary"], + "summary": "Get all customers", + "description": "", + "operationId": "getCustomers", + "produces": ["application/json"], + "responses": { + "200": { + "description": "successful operation", + "schema": { + "$ref": "#/definitions/Customer" + } + }, + "400": { + "description": "Invalid status value" + } + }, + "security": [ + { + "bearerAuth": [] + } + ] + }, + "post": { + "tags": ["notary"], + "summary": "Add a new customer", + "description": "", + "operationId": "addCustomer", + "produces": ["application/json"], + "parameters": [ + { + "in": "body", + "name": "body", + "description": "Customer object that needs to be added to the store", + "required": true, + "schema": { + "$ref": "#/definitions/Customer" + } + } + ], + "responses": { + "200": { + "description": "successful operation", + "schema": { + "$ref": "#/definitions/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", + "produces": ["application/json"], + "parameters": [ + { + "name": "uid", + "in": "path", + "description": "ID of customer to return", + "required": true, + "type": "string" + } + ], + "responses": { + "200": { + "description": "successful operation", + "schema": { + "$ref": "#/definitions/Customer" + } + }, + "400": { + "description": "Invalid status value" + } + }, + "security": [ + { + "bearerAuth": [] + } + ] + }, + "put": { + "tags": ["notary"], + "summary": "Update an existing customer", + "description": "Returns a single customer updated", + "operationId": "updateCustomer", + "produces": ["application/json"], + "parameters": [ + { + "name": "uid", + "in": "path", + "description": "ID of customer to return", + "required": true, + "type": "string" + }, + { + "in": "body", + "name": "body", + "description": "Customer object that needs to be added to the store", + "required": true, + "schema": { + "$ref": "#/definitions/Customer" + } + } + ], + "responses": { + "200": { + "description": "successful operation", + "schema": { + "$ref": "#/definitions/Customer" + } + }, + "400": { + "description": "Invalid status value" + } + }, + "security": [ + { + "bearerAuth": [] + } + ] + }, + "delete": { + "tags": ["notary"], + "summary": "Delete an existing customer", + "description": "Returns a single customer deleted", + "operationId": "deleteCustomer", + "produces": ["application/json"], + "parameters": [ + { + "name": "uid", + "in": "path", + "description": "ID of customer to return", + "required": true, + "type": "string" + } + ], + "responses": { + "200": { + "description": "successful operation", + "schema": { + "$ref": "#/definitions/Customer" + } + }, + "400": { + "description": "Invalid status value" + } + }, + "security": [ + { + "bearerAuth": [] + } + ] + } + }, + "notary/deeds": { + "get": { + "tags": ["notary"], + "summary": "Get all deeds", + "description": "", + "operationId": "getDeeds", + "produces": ["application/json"], + "responses": { + "200": { + "description": "successful operation", + "schema": { + "$ref": "#/definitions/Deed" + } + }, + "400": { + "description": "Invalid status value" + } + }, + "security": [ + { + "bearerAuth": [] + } + ] + }, + "post": { + "tags": ["notary"], + "summary": "Add a new deed", + "description": "", + "operationId": "addDeed", + "produces": ["application/json"], + "parameters": [ + { + "in": "body", + "name": "body", + "description": "Deed object that needs to be added to the store", + "required": true, + "schema": { + "$ref": "#/definitions/Deed" + } + } + ], + "responses": { + "200": { + "description": "successful operation", + "schema": { + "$ref": "#/definitions/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", + "produces": ["application/json"], + "parameters": [ + { + "name": "uid", + "in": "path", + "description": "ID of deed to return", + "required": true, + "type": "string" + } + ], + "responses": { + "200": { + "description": "successful operation", + "schema": { + "$ref": "#/definitions/Deed" + } + }, + "400": { + "description": "Invalid status value" + } + }, + "security": [ + { + "bearerAuth": [] + } + ] + }, + "put": { + "tags": ["notary"], + "summary": "Update an existing deed", + "description": "Returns a single deed updated", + "operationId": "updateDeed", + "produces": ["application/json"], + "parameters": [ + { + "name": "uid", + "in": "path", + "description": "ID of deed to return", + "required": true, + "type": "string" + }, + { + "in": "body", + "name": "body", + "description": "Deed object that needs to be added to the store", + "required": true, + "schema": { + "$ref": "#/definitions/Deed" + } + } + ], + "responses": { + "200": { + "description": "successful operation", + "schema": { + "$ref": "#/definitions/Deed" + } + }, + "400": { + "description": "Invalid status value" + } + }, + "security": [ + { + "bearerAuth": [] + } + ] + }, + "delete": { + "tags": ["notary"], + "summary": "Delete an existing deed", + "description": "Returns a single deed deleted", + "operationId": "deleteDeed", + "produces": ["application/json"], + "parameters": [ + { + "name": "uid", + "in": "path", + "description": "ID of deed to return", + "required": true, + "type": "string" + }, + { + "in": "body", + "name": "body", + "description": "Deed object that needs to be added to the store", + "required": true, + "schema": { + "$ref": "#/definitions/Deed" + } + } + ], + "responses": { + "200": { + "description": "successful operation", + "schema": { + "$ref": "#/definitions/Deed" + } + }, + "400": { + "description": "Invalid status value" + } + }, + "security": [ + { + "bearerAuth": [] + } + ] + } + }, + "notary/deed-types": { + "get": { + "tags": ["notary"], + "summary": "Get all deed types", + "description": "", + "operationId": "getDeedTypes", + "produces": ["application/json"], + "responses": { + "200": { + "description": "successful operation", + "schema": { + "$ref": "#/definitions/DeedType" + } + }, + "400": { + "description": "Invalid status value" + } + }, + "security": [ + { + "bearerAuth": [] + } + ] + }, + "post": { + "tags": ["notary"], + "summary": "Add a new deed type", + "description": "", + "operationId": "addDeedType", + "produces": ["application/json"], + "parameters": [ + { + "in": "body", + "name": "body", + "description": "DeedType object that needs to be added to the store", + "required": true, + "schema": { + "$ref": "#/definitions/DeedType" + } + } + ], + "responses": { + "200": { + "description": "successful operation", + "schema": { + "$ref": "#/definitions/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", + "produces": ["application/json"], + "parameters": [ + { + "name": "uid", + "in": "path", + "description": "ID of deed type to return", + "required": true, + "type": "string" + } + ], + "responses": { + "200": { + "description": "successful operation", + "schema": { + "$ref": "#/definitions/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", + "produces": ["application/json"], + "parameters": [ + { + "name": "uid", + "in": "path", + "description": "ID of deed type to return", + "required": true, + "type": "string" + }, + { + "in": "body", + "name": "body", + "description": "DeedType object that needs to be added to the store", + "required": true, + "schema": { + "$ref": "#/definitions/DeedType" + } + } + ], + "responses": { + "200": { + "description": "successful operation", + "schema": { + "$ref": "#/definitions/DeedType" + } + }, + "400": { + "description": "Invalid status value" + } + }, + "security": [ + { + "bearerAuth": [] + } + ] + } + }, + "notary/documents": { + "get": { + "tags": ["notary"], + "summary": "Get all documents", + "description": "", + "operationId": "getDocuments", + "produces": ["application/json"], + "responses": { + "200": { + "description": "successful operation", + "schema": { + "$ref": "#/definitions/Document" + } + }, + "400": { + "description": "Invalid status value" + } + }, + "security": [ + { + "bearerAuth": [] + } + ] + }, + "post": { + "tags": ["notary"], + "summary": "Add a new document", + "description": "", + "operationId": "addDocument", + "produces": ["application/json"], + "parameters": [ + { + "in": "body", + "name": "body", + "description": "Document object that needs to be added to the store", + "required": true, + "schema": { + "$ref": "#/definitions/Document" + } + } + ], + "responses": { + "200": { + "description": "successful operation", + "schema": { + "$ref": "#/definitions/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", + "produces": ["application/json"], + "parameters": [ + { + "name": "uid", + "in": "path", + "description": "ID of document to return", + "required": true, + "type": "string" + } + ], + "responses": { + "200": { + "description": "successful operation", + "schema": { + "$ref": "#/definitions/Document" + } + }, + "400": { + "description": "Invalid status value" + } + }, + "security": [ + { + "bearerAuth": [] + } + ] + }, + "put": { + "tags": ["notary"], + "summary": "Update an existing document", + "description": "Returns a single document updated", + "operationId": "updateDocument", + "produces": ["application/json"], + "parameters": [ + { + "name": "uid", + "in": "path", + "description": "ID of document to return", + "required": true, + "type": "string" + }, + { + "in": "body", + "name": "body", + "description": "Document object that needs to be added to the store", + "required": true, + "schema": { + "$ref": "#/definitions/Document" + } + } + ], + "responses": { + "200": { + "description": "successful operation", + "schema": { + "$ref": "#/definitions/Document" + } + }, + "400": { + "description": "Invalid status value" + } + }, + "security": [ + { + "bearerAuth": [] + } + ] + }, + "delete": { + "tags": ["notary"], + "summary": "Delete an existing document", + "description": "Returns a single document deleted", + "operationId": "deleteDocument", + "produces": ["application/json"], + "parameters": [ + { + "name": "uid", + "in": "path", + "description": "ID of document to return", + "required": true, + "type": "string" + }, + { + "in": "body", + "name": "body", + "description": "Document object that needs to be added to the store", + "required": true, + "schema": { + "$ref": "#/definitions/Document" + } + } + ], + "responses": { + "200": { + "description": "successful operation", + "schema": { + "$ref": "#/definitions/Document" + } + }, + "400": { + "description": "Invalid status value" + } + }, + "security": [ + { + "bearerAuth": [] + } + ] + } + }, + "notary/document-types": { + "get": { + "tags": ["notary"], + "summary": "Get all document types", + "description": "", + "operationId": "getDocumentTypes", + "produces": ["application/json"], + "responses": { + "200": { + "description": "successful operation", + "schema": { + "$ref": "#/definitions/DocumentType" + } + }, + "400": { + "description": "Invalid status value" + } + }, + "security": [ + { + "bearerAuth": [] + } + ] + }, + "post": { + "tags": ["notary"], + "summary": "Add a new document type", + "description": "", + "operationId": "addDocumentType", + "produces": ["application/json"], + "parameters": [ + { + "in": "body", + "name": "body", + "description": "DocumentType object that needs to be added to the store", + "required": true, + "schema": { + "$ref": "#/definitions/DocumentType" + } + } + ], + "responses": { + "200": { + "description": "successful operation", + "schema": { + "$ref": "#/definitions/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", + "produces": ["application/json"], + "parameters": [ + { + "name": "uid", + "in": "path", + "description": "ID of document type to return", + "required": true, + "type": "string" + } + ], + "responses": { + "200": { + "description": "successful operation", + "schema": { + "$ref": "#/definitions/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", + "produces": ["application/json"], + "parameters": [ + { + "name": "uid", + "in": "path", + "description": "ID of document type to return", + "required": true, + "type": "string" + }, + { + "in": "body", + "name": "body", + "description": "DocumentType object that needs to be added to the store", + "required": true, + "schema": { + "$ref": "#/definitions/DocumentType" + } + } + ], + "responses": { + "200": { + "description": "successful operation", + "schema": { + "$ref": "#/definitions/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", + "produces": ["application/json"], + "parameters": [ + { + "name": "uid", + "in": "path", + "description": "ID of document type to return", + "required": true, + "type": "string" + } + ], + "responses": { + "200": { + "description": "successful operation", + "schema": { + "$ref": "#/definitions/DocumentType" + } + }, + "400": { + "description": "Invalid status value" + } + }, + "security": [ + { + "bearerAuth": [] + } + ] + } + }, + "notary/files": { + "get": { + "tags": ["notary"], + "summary": "Get all files", + "description": "", + "operationId": "getFiles", + "produces": ["application/json"], + "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", + "produces": ["application/json"], + "parameters": [ + { + "name": "uid", + "in": "path", + "description": "ID of file to return", + "required": true, + "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", + "produces": ["application/json"], + "parameters": [ + { + "name": "uid", + "in": "path", + "description": "ID of file to return", + "required": true, + "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", + "produces": ["application/json"], + "parameters": [ + { + "name": "uid", + "in": "path", + "description": "ID of file to return", + "required": true, + "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", + "produces": ["application/json"], + "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", + "produces": ["application/json"], + "parameters": [ + { + "name": "uid", + "in": "path", + "description": "ID of anchor to return", + "required": true, + "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", + "produces": ["application/json"], + "parameters": [ + { + "name": "uid", + "in": "path", + "description": "ID of anchor to return", + "required": true, + "type": "string" + }, + { + "in": "body", + "name": "body", + "description": "Anchor object that needs to be added to the store", + "required": true, + "schema": { + "$ref": "#/definitions/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", + "produces": ["application/json"], + "parameters": [ + { + "name": "uid", + "in": "path", + "description": "ID of anchor to return", + "required": true, + "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", + "produces": ["application/json"], + "responses": { + "200": { + "description": "successful operation" + }, + "400": { + "description": "Invalid status value" + } + }, + "security": [ + { + "bearerAuth": [] + } + ] + }, + "post": { + "tags": ["notary"], + "summary": "Add a new folder", + "description": "", + "operationId": "addFolder", + "produces": ["application/json"], + "parameters": [ + { + "in": "body", + "name": "body", + "description": "Folder object that needs to be added to the store", + "required": true, + "schema": { + "$ref": "#/definitions/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", + "produces": ["application/json"], + "parameters": [ + { + "name": "uid", + "in": "path", + "description": "ID of folder to return", + "required": true, + "type": "string" + }, + { + "in": "body", + "name": "body", + "description": "Folder object that needs to be added to the store", + "required": true, + "schema": { + "$ref": "#/definitions/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", + "produces": ["application/json"], + "parameters": [ + { + "name": "uid", + "in": "path", + "description": "ID of folder to return", + "required": true, + "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", + "produces": ["application/json"], + "parameters": [ + { + "name": "uid", + "in": "query", + "description": "ID of folder to return", + "required": true, + "type": "string" + } + ], + "responses": { + "200": { + "description": "successful operation", + "schema": { + "type": "array", + "items": { + "$ref": "#/definitions/Folder" + } + } + }, + "400": { + "description": "Invalid status value" + } + }, + "security": [ + { + "bearerAuth": [] + } + ] + } + }, + "notary/office-roles": { + "get": { + "tags": ["notary"], + "summary": "Get all office roles", + "description": "", + "operationId": "getOfficeRoles", + "produces": ["application/json"], + "responses": { + "200": { + "description": "successful operation", + "schema": { + "type": "array", + "items": { + "$ref": "#/definitions/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", + "produces": ["application/json"], + "parameters": [ + { + "name": "uid", + "in": "query", + "description": "ID of office role to return", + "required": true, + "type": "string" + } + ], + "responses": { + "200": { + "description": "successful operation", + "schema": { + "type": "array", + "items": { + "$ref": "#/definitions/OfficeRole" + } + } + }, + "400": { + "description": "Invalid status value" + } + }, + "security": [ + { + "bearerAuth": [] + } + ] + }, + "security": [ + { + "bearerAuth": [] + } + ] + }, + "notary/offices": { + "get": { + "tags": ["notary"], + "summary": "Get all offices", + "description": "", + "operationId": "getOffices", + "produces": ["application/json"], + "responses": { + "200": { + "description": "successful operation", + "schema": { + "type": "array", + "items": { + "$ref": "#/definitions/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", + "produces": ["application/json"], + "parameters": [ + { + "name": "uid", + "in": "query", + "description": "ID of office to return", + "required": true, + "type": "string" + } + ], + "responses": { + "200": { + "description": "successful operation", + "schema": { + "type": "array", + "items": { + "$ref": "#/definitions/Office" + } + } + }, + "400": { + "description": "Invalid status value" + } + }, + "security": [ + { + "bearerAuth": [] + } + ] + } + }, + "notary/roles": { + "get": { + "tags": ["notary"], + "summary": "Get all roles", + "description": "", + "operationId": "getRoles", + "produces": ["application/json"], + "responses": { + "200": { + "description": "successful operation", + "schema": { + "type": "array", + "items": { + "$ref": "#/definitions/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", + "produces": ["application/json"], + "parameters": [ + { + "name": "uid", + "in": "query", + "description": "ID of role to return", + "required": true, + "type": "string" + } + ], + "responses": { + "200": { + "description": "successful operation", + "schema": { + "type": "array", + "items": { + "$ref": "#/definitions/Role" + } + } + }, + "400": { + "description": "Invalid status value" + } + }, + "security": [ + { + "bearerAuth": [] + } + ] + } + }, + "notary/notifications": { + "get": { + "tags": ["notary"], + "summary": "Get all notifications", + "description": "", + "operationId": "getNotifications", + "produces": ["application/json"], + "responses": { + "200": { + "description": "successful operation", + "schema": { + "type": "array", + "items": { + "$ref": "#/definitions/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", + "produces": ["application/json"], + "parameters": [ + { + "name": "uid", + "in": "path", + "description": "ID of notification to return", + "required": true, + "type": "string" + }, + { + "in": "body", + "name": "body", + "description": "Notification object that needs to be added to the store", + "required": true, + "schema": { + "$ref": "#/definitions/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", + "produces": ["application/json"], + "parameters": [ + { + "name": "uid", + "in": "query", + "description": "ID of notification to return", + "required": true, + "type": "string" + } + ], + "responses": { + "200": { + "description": "successful operation", + "schema": { + "type": "array", + "items": { + "$ref": "#/definitions/Notification" + } + } + }, + "400": { + "description": "Invalid status value" + } + }, + "security": [ + { + "bearerAuth": [] + } + ] + } + }, + "notary/users": { + "get": { + "tags": ["notary"], + "summary": "Get all users", + "description": "", + "operationId": "getUsers", + "produces": ["application/json"], + "responses": { + "200": { + "description": "successful operation", + "schema": { + "type": "array", + "items": { + "$ref": "#/definitions/User" + } + } + }, + "400": { + "description": "Invalid status value" + } + }, + "security": [ + { + "bearerAuth": [] + } + ] + } + }, + "notary/users/{uid}": { + "get": { + "tags": ["notary"], + "summary": "Find user by ID", + "description": "", + "operationId": "getUserById", + "produces": ["application/json"], + "parameters": [ + { + "name": "uid", + "in": "query", + "description": "ID of user to return", + "required": true, + "type": "string" + } + ], + "responses": { + "200": { + "description": "successful operation", + "schema": { + "type": "array", + "items": { + "$ref": "#/definitions/User" + } + } + }, + "400": { + "description": "Invalid status value" + } + }, + "security": [ + { + "bearerAuth": [] + } + ] + } + }, + "customers/documents": { + "get": { + "tags": ["customer"], + "summary": "Get all documents", + "description": "", + "operationId": "getDocuments", + "produces": ["application/json"], + "responses": { + "200": { + "description": "successful operation", + "schema": { + "type": "array", + "items": { + "$ref": "#/definitions/Document" + } + } + }, + "400": { + "description": "Invalid status value" + } + }, + "security": [ + { + "bearerAuth": [] + } + ] + }, + "post": { + "tags": ["customer"], + "summary": "Add a new document", + "description": "", + "operationId": "addDocument", + "produces": ["application/json"], + "parameters": [ + { + "in": "body", + "name": "body", + "description": "Document object that needs to be added to the store", + "required": true, + "schema": { + "$ref": "#/definitions/Document" + } + } + ], + "responses": { + "200": { + "description": "successful operation", + "schema": { + "$ref": "#/definitions/Document" + } + }, + "400": { + "description": "Invalid status value" + } + }, + "security": [ + { + "bearerAuth": [] + } + ] + } + }, + "customers/documents/{uid}": { + "get": { + "tags": ["customer"], + "summary": "Find document by ID", + "description": "Returns a single document", + "operationId": "getDocumentById", + "produces": ["application/json"], + "parameters": [ + { + "name": "uid", + "in": "path", + "description": "ID of document to return", + "required": true, + "type": "string" + } + ], + "responses": { + "200": { + "description": "successful operation", + "schema": { + "$ref": "#/definitions/Document" + } + }, + "400": { + "description": "Invalid status value" + } + }, + "security": [ + { + "bearerAuth": [] + } + ] + } + }, + "customers/files": { + "get": { + "tags": ["customer"], + "summary": "Get all files", + "description": "", + "operationId": "getFiles", + "produces": ["application/json"], + "responses": { + "200": { + "description": "successful operation" + }, + "400": { + "description": "Invalid status value" + } + }, + "security": [ + { + "bearerAuth": [] + } + ] + }, + "post": { + "tags": ["customer"], + "summary": "Add a new file", + "description": "", + "operationId": "addFile", + "produces": ["application/json"], + "parameters": [ + { + "in": "body", + "name": "body", + "description": "File object that needs to be added to the store", + "required": true, + "schema": { + "$ref": "#/definitions/File" + } + } + ], + "responses": { + "200": { + "description": "successful operation" + }, + "400": { + "description": "Invalid status value" + } + }, + "security": [ + { + "bearerAuth": [] + } + ] + } + }, + "customers/files/{uid}": { + "get": { + "tags": ["customer"], + "summary": "Find file by ID", + "description": "Returns a single file", + "operationId": "getFileById", + "produces": ["application/json"], + "parameters": [ + { + "name": "uid", + "in": "path", + "description": "ID of file to return", + "required": true, + "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", + "produces": ["application/json"], + "parameters": [ + { + "name": "uid", + "in": "path", + "description": "ID of file to return", + "required": true, + "type": "string" + }, + { + "in": "body", + "name": "body", + "description": "File object that needs to be added to the store", + "required": true, + "schema": { + "$ref": "#/definitions/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", + "produces": ["application/json"], + "parameters": [ + { + "name": "uid", + "in": "path", + "description": "ID of file to return", + "required": true, + "type": "string" + } + ], + "responses": { + "200": { + "description": "successful operation" + }, + "400": { + "description": "Invalid status value" + } + }, + "security": [ + { + "bearerAuth": [] + } + ] + } + }, + "customers/folders": { + "get": { + "tags": ["customer"], + "summary": "Get all folders", + "description": "", + "operationId": "getFolders", + "produces": ["application/json"], + "responses": { + "200": { + "description": "successful operation", + "schema": { + "type": "array", + "items": { + "$ref": "#/definitions/Folder" + } + } + }, + "400": { + "description": "Invalid status value" + } + }, + "security": [ + { + "bearerAuth": [] + } + ] + } + }, + "customers/folders/{uid}": { + "get": { + "tags": ["customer"], + "summary": "Find folder by ID", + "description": "Returns a single folder", + "operationId": "getFolderById", + "produces": ["application/json"], + "parameters": [ + { + "name": "uid", + "in": "path", + "description": "ID of folder to return", + "required": true, + "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", + "produces": ["application/json"], + "responses": { + "200": { + "description": "successful operation", + "schema": { + "$ref": "#/definitions/Customer" + } + }, + "400": { + "description": "Invalid status value" + } + }, + "security": [ + { + "bearerAuth": [] + } + ] + }, + "post": { + "tags": ["admin"], + "summary": "Add a new customer", + "description": "", + "operationId": "addCustomer", + "produces": ["application/json"], + "parameters": [ + { + "in": "body", + "name": "body", + "description": "Customer object that needs to be added to the store", + "required": true, + "schema": { + "$ref": "#/definitions/Customer" + } + } + ], + "responses": { + "200": { + "description": "successful operation", + "schema": { + "$ref": "#/definitions/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", + "produces": ["application/json"], + "parameters": [ + { + "name": "uid", + "in": "path", + "description": "ID of customer to return", + "required": true, + "type": "string" + } + ], + "responses": { + "200": { + "description": "successful operation", + "schema": { + "$ref": "#/definitions/Customer" + } + }, + "400": { + "description": "Invalid status value" + } + }, + "security": [ + { + "bearerAuth": [] + } + ] + }, + "put": { + "tags": ["admin"], + "summary": "Update an existing customer", + "description": "Returns a single customer updated", + "operationId": "updateCustomer", + "produces": ["application/json"], + "parameters": [ + { + "name": "uid", + "in": "path", + "description": "ID of customer to return", + "required": true, + "type": "string" + }, + { + "in": "body", + "name": "body", + "description": "Customer object that needs to be added to the store", + "required": true, + "schema": { + "$ref": "#/definitions/Customer" + } + } + ], + "responses": { + "200": { + "description": "successful operation", + "schema": { + "$ref": "#/definitions/Customer" + } + }, + "400": { + "description": "Invalid status value" + } + }, + "security": [ + { + "bearerAuth": [] + } + ] + }, + "delete": { + "tags": ["admin"], + "summary": "Delete an existing customer", + "description": "Returns a single customer deleted", + "operationId": "deleteCustomer", + "produces": ["application/json"], + "parameters": [ + { + "name": "uid", + "in": "path", + "description": "ID of customer to return", + "required": true, + "type": "string" + } + ], + "responses": { + "200": { + "description": "successful operation", + "schema": { + "$ref": "#/definitions/Customer" + } + }, + "400": { + "description": "Invalid status value" + } + }, + "security": [ + { + "bearerAuth": [] + } + ] + } + }, + "admin/deeds": { + "get": { + "tags": ["admin"], + "summary": "Get all deeds", + "description": "", + "operationId": "getDeeds", + "produces": ["application/json"], + "responses": { + "200": { + "description": "successful operation", + "schema": { + "$ref": "#/definitions/Deed" + } + }, + "400": { + "description": "Invalid status value" + } + }, + "security": [ + { + "bearerAuth": [] + } + ] + }, + "post": { + "tags": ["admin"], + "summary": "Add a new deed", + "description": "", + "operationId": "addDeed", + "produces": ["application/json"], + "parameters": [ + { + "in": "body", + "name": "body", + "description": "Deed object that needs to be added to the store", + "required": true, + "schema": { + "$ref": "#/definitions/Deed" + } + } + ], + "responses": { + "200": { + "description": "successful operation", + "schema": { + "$ref": "#/definitions/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", + "produces": ["application/json"], + "parameters": [ + { + "name": "uid", + "in": "path", + "description": "ID of deed to return", + "required": true, + "type": "string" + } + ], + "responses": { + "200": { + "description": "successful operation", + "schema": { + "$ref": "#/definitions/Deed" + } + }, + "400": { + "description": "Invalid status value" + } + }, + "security": [ + { + "bearerAuth": [] + } + ] + }, + "put": { + "tags": ["admin"], + "summary": "Update an existing deed", + "description": "Returns a single deed updated", + "operationId": "updateDeed", + "produces": ["application/json"], + "parameters": [ + { + "name": "uid", + "in": "path", + "description": "ID of deed to return", + "required": true, + "type": "string" + }, + { + "in": "body", + "name": "body", + "description": "Deed object that needs to be added to the store", + "required": true, + "schema": { + "$ref": "#/definitions/Deed" + } + } + ], + "responses": { + "200": { + "description": "successful operation", + "schema": { + "$ref": "#/definitions/Deed" + } + }, + "400": { + "description": "Invalid status value" + } + }, + "security": [ + { + "bearerAuth": [] + } + ] + }, + "delete": { + "tags": ["admin"], + "summary": "Delete an existing deed", + "description": "Returns a single deed deleted", + "operationId": "deleteDeed", + "produces": ["application/json"], + "parameters": [ + { + "name": "uid", + "in": "path", + "description": "ID of deed to return", + "required": true, + "type": "string" + }, + { + "in": "body", + "name": "body", + "description": "Deed object that needs to be added to the store", + "required": true, + "schema": { + "$ref": "#/definitions/Deed" + } + } + ], + "responses": { + "200": { + "description": "successful operation", + "schema": { + "$ref": "#/definitions/Deed" + } + }, + "400": { + "description": "Invalid status value" + } + }, + "security": [ + { + "bearerAuth": [] + } + ] + } + }, + "admin/deed-types": { + "get": { + "tags": ["admin"], + "summary": "Get all deed types", + "description": "", + "operationId": "getDeedTypes", + "produces": ["application/json"], + "responses": { + "200": { + "description": "successful operation", + "schema": { + "$ref": "#/definitions/DeedType" + } + }, + "400": { + "description": "Invalid status value" + } + }, + "security": [ + { + "bearerAuth": [] + } + ] + }, + "post": { + "tags": ["admin"], + "summary": "Add a new deed type", + "description": "", + "operationId": "addDeedType", + "produces": ["application/json"], + "parameters": [ + { + "in": "body", + "name": "body", + "description": "DeedType object that needs to be added to the store", + "required": true, + "schema": { + "$ref": "#/definitions/DeedType" + } + } + ], + "responses": { + "200": { + "description": "successful operation", + "schema": { + "$ref": "#/definitions/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", + "produces": ["application/json"], + "parameters": [ + { + "name": "uid", + "in": "path", + "description": "ID of deed type to return", + "required": true, + "type": "string" + } + ], + "responses": { + "200": { + "description": "successful operation", + "schema": { + "$ref": "#/definitions/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", + "produces": ["application/json"], + "parameters": [ + { + "name": "uid", + "in": "path", + "description": "ID of deed type to return", + "required": true, + "type": "string" + }, + { + "in": "body", + "name": "body", + "description": "DeedType object that needs to be added to the store", + "required": true, + "schema": { + "$ref": "#/definitions/DeedType" + } + } + ], + "responses": { + "200": { + "description": "successful operation", + "schema": { + "$ref": "#/definitions/DeedType" + } + }, + "400": { + "description": "Invalid status value" + } + }, + "security": [ + { + "bearerAuth": [] + } + ] + } + }, + "admin/documents": { + "get": { + "tags": ["admin"], + "summary": "Get all documents", + "description": "", + "operationId": "getDocuments", + "produces": ["application/json"], + "responses": { + "200": { + "description": "successful operation", + "schema": { + "$ref": "#/definitions/Document" + } + }, + "400": { + "description": "Invalid status value" + } + }, + "security": [ + { + "bearerAuth": [] + } + ] + }, + "post": { + "tags": ["admin"], + "summary": "Add a new document", + "description": "", + "operationId": "addDocument", + "produces": ["application/json"], + "parameters": [ + { + "in": "body", + "name": "body", + "description": "Document object that needs to be added to the store", + "required": true, + "schema": { + "$ref": "#/definitions/Document" + } + } + ], + "responses": { + "200": { + "description": "successful operation", + "schema": { + "$ref": "#/definitions/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", + "produces": ["application/json"], + "parameters": [ + { + "name": "uid", + "in": "path", + "description": "ID of document to return", + "required": true, + "type": "string" + } + ], + "responses": { + "200": { + "description": "successful operation", + "schema": { + "$ref": "#/definitions/Document" + } + }, + "400": { + "description": "Invalid status value" + } + }, + "security": [ + { + "bearerAuth": [] + } + ] + }, + "put": { + "tags": ["admin"], + "summary": "Update an existing document", + "description": "Returns a single document updated", + "operationId": "updateDocument", + "produces": ["application/json"], + "parameters": [ + { + "name": "uid", + "in": "path", + "description": "ID of document to return", + "required": true, + "type": "string" + }, + { + "in": "body", + "name": "body", + "description": "Document object that needs to be added to the store", + "required": true, + "schema": { + "$ref": "#/definitions/Document" + } + } + ], + "responses": { + "200": { + "description": "successful operation", + "schema": { + "$ref": "#/definitions/Document" + } + }, + "400": { + "description": "Invalid status value" + } + }, + "security": [ + { + "bearerAuth": [] + } + ] + }, + "delete": { + "tags": ["admin"], + "summary": "Delete an existing document", + "description": "Returns a single document deleted", + "operationId": "deleteDocument", + "produces": ["application/json"], + "parameters": [ + { + "name": "uid", + "in": "path", + "description": "ID of document to return", + "required": true, + "type": "string" + }, + { + "in": "body", + "name": "body", + "description": "Document object that needs to be added to the store", + "required": true, + "schema": { + "$ref": "#/definitions/Document" + } + } + ], + "responses": { + "200": { + "description": "successful operation", + "schema": { + "$ref": "#/definitions/Document" + } + }, + "400": { + "description": "Invalid status value" + } + }, + "security": [ + { + "bearerAuth": [] + } + ] + } + }, + "admin/document-types": { + "get": { + "tags": ["admin"], + "summary": "Get all document types", + "description": "", + "operationId": "getDocumentTypes", + "produces": ["application/json"], + "responses": { + "200": { + "description": "successful operation", + "schema": { + "$ref": "#/definitions/DocumentType" + } + }, + "400": { + "description": "Invalid status value" + } + }, + "security": [ + { + "bearerAuth": [] + } + ] + }, + "post": { + "tags": ["admin"], + "summary": "Add a new document type", + "description": "", + "operationId": "addDocumentType", + "produces": ["application/json"], + "parameters": [ + { + "in": "body", + "name": "body", + "description": "DocumentType object that needs to be added to the store", + "required": true, + "schema": { + "$ref": "#/definitions/DocumentType" + } + } + ], + "responses": { + "200": { + "description": "successful operation", + "schema": { + "$ref": "#/definitions/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", + "produces": ["application/json"], + "parameters": [ + { + "name": "uid", + "in": "path", + "description": "ID of document type to return", + "required": true, + "type": "string" + } + ], + "responses": { + "200": { + "description": "successful operation", + "schema": { + "$ref": "#/definitions/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", + "produces": ["application/json"], + "parameters": [ + { + "name": "uid", + "in": "path", + "description": "ID of document type to return", + "required": true, + "type": "string" + }, + { + "in": "body", + "name": "body", + "description": "DocumentType object that needs to be added to the store", + "required": true, + "schema": { + "$ref": "#/definitions/DocumentType" + } + } + ], + "responses": { + "200": { + "description": "successful operation", + "schema": { + "$ref": "#/definitions/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", + "produces": ["application/json"], + "parameters": [ + { + "name": "uid", + "in": "path", + "description": "ID of document type to return", + "required": true, + "type": "string" + } + ], + "responses": { + "200": { + "description": "successful operation", + "schema": { + "$ref": "#/definitions/DocumentType" + } + }, + "400": { + "description": "Invalid status value" + } + }, + "security": [ + { + "bearerAuth": [] + } + ] + } + }, + "admin/files": { + "get": { + "tags": ["admin"], + "summary": "Get all files", + "description": "", + "operationId": "getFiles", + "produces": ["application/json"], + "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", + "produces": ["application/json"], + "parameters": [ + { + "name": "uid", + "in": "path", + "description": "ID of file to return", + "required": true, + "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", + "produces": ["application/json"], + "parameters": [ + { + "name": "uid", + "in": "path", + "description": "ID of file to return", + "required": true, + "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", + "produces": ["application/json"], + "parameters": [ + { + "name": "uid", + "in": "path", + "description": "ID of file to return", + "required": true, + "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", + "produces": ["application/json"], + "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", + "produces": ["application/json"], + "parameters": [ + { + "name": "uid", + "in": "path", + "description": "ID of anchor to return", + "required": true, + "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", + "produces": ["application/json"], + "parameters": [ + { + "name": "uid", + "in": "path", + "description": "ID of anchor to return", + "required": true, + "type": "string" + }, + { + "in": "body", + "name": "body", + "description": "Anchor object that needs to be added to the store", + "required": true, + "schema": { + "$ref": "#/definitions/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", + "produces": ["application/json"], + "parameters": [ + { + "name": "uid", + "in": "path", + "description": "ID of anchor to return", + "required": true, + "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", + "produces": ["application/json"], + "responses": { + "200": { + "description": "successful operation" + }, + "400": { + "description": "Invalid status value" + } + }, + "security": [ + { + "bearerAuth": [] + } + ] + }, + "post": { + "tags": ["admin"], + "summary": "Add a new folder", + "description": "", + "operationId": "addFolder", + "produces": ["application/json"], + "parameters": [ + { + "in": "body", + "name": "body", + "description": "Folder object that needs to be added to the store", + "required": true, + "schema": { + "$ref": "#/definitions/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", + "produces": ["application/json"], + "parameters": [ + { + "name": "uid", + "in": "path", + "description": "ID of folder to return", + "required": true, + "type": "string" + }, + { + "in": "body", + "name": "body", + "description": "Folder object that needs to be added to the store", + "required": true, + "schema": { + "$ref": "#/definitions/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", + "produces": ["application/json"], + "parameters": [ + { + "name": "uid", + "in": "path", + "description": "ID of folder to return", + "required": true, + "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", + "produces": ["application/json"], + "parameters": [ + { + "name": "uid", + "in": "query", + "description": "ID of folder to return", + "required": true, + "type": "string" + } + ], + "responses": { + "200": { + "description": "successful operation", + "schema": { + "type": "array", + "items": { + "$ref": "#/definitions/Folder" + } + } + }, + "400": { + "description": "Invalid status value" + } + }, + "security": [ + { + "bearerAuth": [] + } + ] + } + }, + "admin/office-roles": { + "get": { + "tags": ["admin"], + "summary": "Get all office roles", + "description": "", + "operationId": "getOfficeRoles", + "produces": ["application/json"], + "responses": { + "200": { + "description": "successful operation", + "schema": { + "type": "array", + "items": { + "$ref": "#/definitions/OfficeRole" + } + } + }, + "400": { + "description": "Invalid status value" + } + }, + "security": [ + { + "bearerAuth": [] + } + ] + }, + "post": { + "tags": ["admin"], + "summary": "Add a new office role", + "description": "", + "operationId": "addOfficeRole", + "produces": ["application/json"], + "parameters": [ + { + "in": "body", + "name": "body", + "description": "OfficeRole object that needs to be added to the store", + "required": true, + "schema": { + "$ref": "#/definitions/OfficeRole" + } + } + ], + "responses": { + "200": { + "description": "successful operation", + "schema": { + "type": "array", + "items": { + "$ref": "#/definitions/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", + "produces": ["application/json"], + "parameters": [ + { + "name": "uid", + "in": "query", + "description": "ID of office role to return", + "required": true, + "type": "string" + } + ], + "responses": { + "200": { + "description": "successful operation", + "schema": { + "type": "array", + "items": { + "$ref": "#/definitions/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", + "produces": ["application/json"], + "parameters": [ + { + "name": "uid", + "in": "query", + "description": "ID of office role to return", + "required": true, + "type": "string" + }, + { + "in": "body", + "name": "body", + "description": "OfficeRole object that needs to be added to the store", + "required": true, + "schema": { + "$ref": "#/definitions/OfficeRole" + } + } + ], + "responses": { + "200": { + "description": "successful operation", + "schema": { + "type": "array", + "items": { + "$ref": "#/definitions/OfficeRole" + } + } + }, + "400": { + "description": "Invalid status value" + } + }, + "security": [ + { + "bearerAuth": [] + } + ] + } + }, + "admin/offices": { + "get": { + "tags": ["admin"], + "summary": "Get all offices", + "description": "", + "operationId": "getOffices", + "produces": ["application/json"], + "responses": { + "200": { + "description": "successful operation", + "schema": { + "type": "array", + "items": { + "$ref": "#/definitions/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", + "produces": ["application/json"], + "parameters": [ + { + "name": "uid", + "in": "query", + "description": "ID of office to return", + "required": true, + "type": "string" + } + ], + "responses": { + "200": { + "description": "successful operation", + "schema": { + "type": "array", + "items": { + "$ref": "#/definitions/Office" + } + } + }, + "400": { + "description": "Invalid status value" + } + }, + "security": [ + { + "bearerAuth": [] + } + ] + } + }, + "admin/roles": { + "get": { + "tags": ["admin"], + "summary": "Get all roles", + "description": "", + "operationId": "getRoles", + "produces": ["application/json"], + "responses": { + "200": { + "description": "successful operation", + "schema": { + "type": "array", + "items": { + "$ref": "#/definitions/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", + "produces": ["application/json"], + "parameters": [ + { + "name": "uid", + "in": "query", + "description": "ID of role to return", + "required": true, + "type": "string" + } + ], + "responses": { + "200": { + "description": "successful operation", + "schema": { + "type": "array", + "items": { + "$ref": "#/definitions/Role" + } + } + }, + "400": { + "description": "Invalid status value" + } + }, + "security": [ + { + "bearerAuth": [] + } + ] + } + }, + "admin/notifications": { + "get": { + "tags": ["admin"], + "summary": "Get all notifications", + "description": "", + "operationId": "getNotifications", + "produces": ["application/json"], + "responses": { + "200": { + "description": "successful operation", + "schema": { + "type": "array", + "items": { + "$ref": "#/definitions/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", + "produces": ["application/json"], + "parameters": [ + { + "name": "uid", + "in": "path", + "description": "ID of notification to return", + "required": true, + "type": "string" + }, + { + "in": "body", + "name": "body", + "description": "Notification object that needs to be added to the store", + "required": true, + "schema": { + "$ref": "#/definitions/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", + "produces": ["application/json"], + "parameters": [ + { + "name": "uid", + "in": "query", + "description": "ID of notification to return", + "required": true, + "type": "string" + } + ], + "responses": { + "200": { + "description": "successful operation", + "schema": { + "type": "array", + "items": { + "$ref": "#/definitions/Notification" + } + } + }, + "400": { + "description": "Invalid status value" + } + }, + "security": [ + { + "bearerAuth": [] + } + ] + } + }, + "admin/users": { + "get": { + "tags": ["admin"], + "summary": "Get all users", + "description": "", + "operationId": "getUsers", + "produces": ["application/json"], + "responses": { + "200": { + "description": "successful operation", + "schema": { + "type": "array", + "items": { + "$ref": "#/definitions/User" + } + } + }, + "400": { + "description": "Invalid status value" + } + }, + "security": [ + { + "bearerAuth": [] + } + ] + } + }, + "admin/users/{uid}": { + "get": { + "tags": ["admin"], + "summary": "Find user by ID", + "description": "", + "operationId": "getUserById", + "produces": ["application/json"], + "parameters": [ + { + "name": "uid", + "in": "query", + "description": "ID of user to return", + "required": true, + "type": "string" + } + ], + "responses": { + "200": { + "description": "successful operation", + "schema": { + "type": "array", + "items": { + "$ref": "#/definitions/User" + } + } + }, + "400": { + "description": "Invalid status value" + } + }, + "security": [ + { + "bearerAuth": [] + } + ] + }, + "put": { + "tags": ["admin"], + "summary": "Update an existing user", + "description": "", + "operationId": "updateUser", + "produces": ["application/json"], + "parameters": [ + { + "name": "uid", + "in": "query", + "description": "ID of user to return", + "required": true, + "type": "string" + }, + { + "in": "body", + "name": "body", + "description": "User object that needs to be added to the store", + "required": true, + "schema": { + "$ref": "#/definitions/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", + "produces": ["application/json"], + "responses": { + "200": { + "description": "successful operation", + "schema": { + "$ref": "#/definitions/Customer" + } + }, + "400": { + "description": "Invalid status value" + } + }, + "security": [ + { + "bearerAuth": [] + } + ] + }, + "post": { + "tags": ["super-admin"], + "summary": "Add a new customer", + "description": "", + "operationId": "addCustomer", + "produces": ["application/json"], + "parameters": [ + { + "in": "body", + "name": "body", + "description": "Customer object that needs to be added to the store", + "required": true, + "schema": { + "$ref": "#/definitions/Customer" + } + } + ], + "responses": { + "200": { + "description": "successful operation", + "schema": { + "$ref": "#/definitions/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", + "produces": ["application/json"], + "parameters": [ + { + "name": "uid", + "in": "path", + "description": "ID of customer to return", + "required": true, + "type": "string" + } + ], + "responses": { + "200": { + "description": "successful operation", + "schema": { + "$ref": "#/definitions/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", + "produces": ["application/json"], + "parameters": [ + { + "name": "uid", + "in": "path", + "description": "ID of customer to return", + "required": true, + "type": "string" + }, + { + "in": "body", + "name": "body", + "description": "Customer object that needs to be added to the store", + "required": true, + "schema": { + "$ref": "#/definitions/Customer" + } + } + ], + "responses": { + "200": { + "description": "successful operation", + "schema": { + "$ref": "#/definitions/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", + "produces": ["application/json"], + "parameters": [ + { + "name": "uid", + "in": "path", + "description": "ID of customer to return", + "required": true, + "type": "string" + } + ], + "responses": { + "200": { + "description": "successful operation", + "schema": { + "$ref": "#/definitions/Customer" + } + }, + "400": { + "description": "Invalid status value" + } + }, + "security": [ + { + "bearerAuth": [] + } + ] + } + }, + "super-admin/deeds": { + "get": { + "tags": ["super-admin"], + "summary": "Get all deeds", + "description": "", + "operationId": "getDeeds", + "produces": ["application/json"], + "responses": { + "200": { + "description": "successful operation", + "schema": { + "$ref": "#/definitions/Deed" + } + }, + "400": { + "description": "Invalid status value" + } + }, + "security": [ + { + "bearerAuth": [] + } + ] + }, + "post": { + "tags": ["super-admin"], + "summary": "Add a new deed", + "description": "", + "operationId": "addDeed", + "produces": ["application/json"], + "parameters": [ + { + "in": "body", + "name": "body", + "description": "Deed object that needs to be added to the store", + "required": true, + "schema": { + "$ref": "#/definitions/Deed" + } + } + ], + "responses": { + "200": { + "description": "successful operation", + "schema": { + "$ref": "#/definitions/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", + "produces": ["application/json"], + "parameters": [ + { + "name": "uid", + "in": "path", + "description": "ID of deed to return", + "required": true, + "type": "string" + } + ], + "responses": { + "200": { + "description": "successful operation", + "schema": { + "$ref": "#/definitions/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", + "produces": ["application/json"], + "parameters": [ + { + "name": "uid", + "in": "path", + "description": "ID of deed to return", + "required": true, + "type": "string" + }, + { + "in": "body", + "name": "body", + "description": "Deed object that needs to be added to the store", + "required": true, + "schema": { + "$ref": "#/definitions/Deed" + } + } + ], + "responses": { + "200": { + "description": "successful operation", + "schema": { + "$ref": "#/definitions/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", + "produces": ["application/json"], + "parameters": [ + { + "name": "uid", + "in": "path", + "description": "ID of deed to return", + "required": true, + "type": "string" + }, + { + "in": "body", + "name": "body", + "description": "Deed object that needs to be added to the store", + "required": true, + "schema": { + "$ref": "#/definitions/Deed" + } + } + ], + "responses": { + "200": { + "description": "successful operation", + "schema": { + "$ref": "#/definitions/Deed" + } + }, + "400": { + "description": "Invalid status value" + } + }, + "security": [ + { + "bearerAuth": [] + } + ] + } + }, + "super-admin/deed-types": { + "get": { + "tags": ["super-admin"], + "summary": "Get all deed types", + "description": "", + "operationId": "getDeedTypes", + "produces": ["application/json"], + "responses": { + "200": { + "description": "successful operation", + "schema": { + "$ref": "#/definitions/DeedType" + } + }, + "400": { + "description": "Invalid status value" + } + }, + "security": [ + { + "bearerAuth": [] + } + ] + }, + "post": { + "tags": ["super-admin"], + "summary": "Add a new deed type", + "description": "", + "operationId": "addDeedType", + "produces": ["application/json"], + "parameters": [ + { + "in": "body", + "name": "body", + "description": "DeedType object that needs to be added to the store", + "required": true, + "schema": { + "$ref": "#/definitions/DeedType" + } + } + ], + "responses": { + "200": { + "description": "successful operation", + "schema": { + "$ref": "#/definitions/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", + "produces": ["application/json"], + "parameters": [ + { + "name": "uid", + "in": "path", + "description": "ID of deed type to return", + "required": true, + "type": "string" + } + ], + "responses": { + "200": { + "description": "successful operation", + "schema": { + "$ref": "#/definitions/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", + "produces": ["application/json"], + "parameters": [ + { + "name": "uid", + "in": "path", + "description": "ID of deed type to return", + "required": true, + "type": "string" + }, + { + "in": "body", + "name": "body", + "description": "DeedType object that needs to be added to the store", + "required": true, + "schema": { + "$ref": "#/definitions/DeedType" + } + } + ], + "responses": { + "200": { + "description": "successful operation", + "schema": { + "$ref": "#/definitions/DeedType" + } + }, + "400": { + "description": "Invalid status value" + } + }, + "security": [ + { + "bearerAuth": [] + } + ] + } + }, + "super-admin/documents": { + "get": { + "tags": ["super-admin"], + "summary": "Get all documents", + "description": "", + "operationId": "getDocuments", + "produces": ["application/json"], + "responses": { + "200": { + "description": "successful operation", + "schema": { + "$ref": "#/definitions/Document" + } + }, + "400": { + "description": "Invalid status value" + } + }, + "security": [ + { + "bearerAuth": [] + } + ] + }, + "post": { + "tags": ["super-admin"], + "summary": "Add a new document", + "description": "", + "operationId": "addDocument", + "produces": ["application/json"], + "parameters": [ + { + "in": "body", + "name": "body", + "description": "Document object that needs to be added to the store", + "required": true, + "schema": { + "$ref": "#/definitions/Document" + } + } + ], + "responses": { + "200": { + "description": "successful operation", + "schema": { + "$ref": "#/definitions/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", + "produces": ["application/json"], + "parameters": [ + { + "name": "uid", + "in": "path", + "description": "ID of document to return", + "required": true, + "type": "string" + } + ], + "responses": { + "200": { + "description": "successful operation", + "schema": { + "$ref": "#/definitions/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", + "produces": ["application/json"], + "parameters": [ + { + "name": "uid", + "in": "path", + "description": "ID of document to return", + "required": true, + "type": "string" + }, + { + "in": "body", + "name": "body", + "description": "Document object that needs to be added to the store", + "required": true, + "schema": { + "$ref": "#/definitions/Document" + } + } + ], + "responses": { + "200": { + "description": "successful operation", + "schema": { + "$ref": "#/definitions/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", + "produces": ["application/json"], + "parameters": [ + { + "name": "uid", + "in": "path", + "description": "ID of document to return", + "required": true, + "type": "string" + }, + { + "in": "body", + "name": "body", + "description": "Document object that needs to be added to the store", + "required": true, + "schema": { + "$ref": "#/definitions/Document" + } + } + ], + "responses": { + "200": { + "description": "successful operation", + "schema": { + "$ref": "#/definitions/Document" + } + }, + "400": { + "description": "Invalid status value" + } + }, + "security": [ + { + "bearerAuth": [] + } + ] + } + }, + "super-admin/document-types": { + "get": { + "tags": ["super-admin"], + "summary": "Get all document types", + "description": "", + "operationId": "getDocumentTypes", + "produces": ["application/json"], + "responses": { + "200": { + "description": "successful operation", + "schema": { + "$ref": "#/definitions/DocumentType" + } + }, + "400": { + "description": "Invalid status value" + } + }, + "security": [ + { + "bearerAuth": [] + } + ] + }, + "post": { + "tags": ["super-admin"], + "summary": "Add a new document type", + "description": "", + "operationId": "addDocumentType", + "produces": ["application/json"], + "parameters": [ + { + "in": "body", + "name": "body", + "description": "DocumentType object that needs to be added to the store", + "required": true, + "schema": { + "$ref": "#/definitions/DocumentType" + } + } + ], + "responses": { + "200": { + "description": "successful operation", + "schema": { + "$ref": "#/definitions/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", + "produces": ["application/json"], + "parameters": [ + { + "name": "uid", + "in": "path", + "description": "ID of document type to return", + "required": true, + "type": "string" + } + ], + "responses": { + "200": { + "description": "successful operation", + "schema": { + "$ref": "#/definitions/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", + "produces": ["application/json"], + "parameters": [ + { + "name": "uid", + "in": "path", + "description": "ID of document type to return", + "required": true, + "type": "string" + }, + { + "in": "body", + "name": "body", + "description": "DocumentType object that needs to be added to the store", + "required": true, + "schema": { + "$ref": "#/definitions/DocumentType" + } + } + ], + "responses": { + "200": { + "description": "successful operation", + "schema": { + "$ref": "#/definitions/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", + "produces": ["application/json"], + "parameters": [ + { + "name": "uid", + "in": "path", + "description": "ID of document type to return", + "required": true, + "type": "string" + } + ], + "responses": { + "200": { + "description": "successful operation", + "schema": { + "$ref": "#/definitions/DocumentType" + } + }, + "400": { + "description": "Invalid status value" + } + }, + "security": [ + { + "bearerAuth": [] + } + ] + } + }, + "super-admin/files": { + "get": { + "tags": ["super-admin"], + "summary": "Get all files", + "description": "", + "operationId": "getFiles", + "produces": ["application/json"], + "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", + "produces": ["application/json"], + "parameters": [ + { + "name": "uid", + "in": "path", + "description": "ID of file to return", + "required": true, + "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", + "produces": ["application/json"], + "parameters": [ + { + "name": "uid", + "in": "path", + "description": "ID of file to return", + "required": true, + "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", + "produces": ["application/json"], + "parameters": [ + { + "name": "uid", + "in": "path", + "description": "ID of file to return", + "required": true, + "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", + "produces": ["application/json"], + "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", + "produces": ["application/json"], + "parameters": [ + { + "name": "uid", + "in": "path", + "description": "ID of anchor to return", + "required": true, + "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", + "produces": ["application/json"], + "parameters": [ + { + "name": "uid", + "in": "path", + "description": "ID of anchor to return", + "required": true, + "type": "string" + }, + { + "in": "body", + "name": "body", + "description": "Anchor object that needs to be added to the store", + "required": true, + "schema": { + "$ref": "#/definitions/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", + "produces": ["application/json"], + "parameters": [ + { + "name": "uid", + "in": "path", + "description": "ID of anchor to return", + "required": true, + "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", + "produces": ["application/json"], + "responses": { + "200": { + "description": "successful operation" + }, + "400": { + "description": "Invalid status value" + } + }, + "security": [ + { + "bearerAuth": [] + } + ] + }, + "post": { + "tags": ["super-admin"], + "summary": "Add a new folder", + "description": "", + "operationId": "addFolder", + "produces": ["application/json"], + "parameters": [ + { + "in": "body", + "name": "body", + "description": "Folder object that needs to be added to the store", + "required": true, + "schema": { + "$ref": "#/definitions/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", + "produces": ["application/json"], + "parameters": [ + { + "name": "uid", + "in": "path", + "description": "ID of folder to return", + "required": true, + "type": "string" + }, + { + "in": "body", + "name": "body", + "description": "Folder object that needs to be added to the store", + "required": true, + "schema": { + "$ref": "#/definitions/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", + "produces": ["application/json"], + "parameters": [ + { + "name": "uid", + "in": "path", + "description": "ID of folder to return", + "required": true, + "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", + "produces": ["application/json"], + "parameters": [ + { + "name": "uid", + "in": "query", + "description": "ID of folder to return", + "required": true, + "type": "string" + } + ], + "responses": { + "200": { + "description": "successful operation", + "schema": { + "type": "array", + "items": { + "$ref": "#/definitions/Folder" + } + } + }, + "400": { + "description": "Invalid status value" + } + }, + "security": [ + { + "bearerAuth": [] + } + ] + } + }, + "super-admin/office-roles": { + "get": { + "tags": ["super-admin"], + "summary": "Get all office roles", + "description": "", + "operationId": "getOfficeRoles", + "produces": ["application/json"], + "responses": { + "200": { + "description": "successful operation", + "schema": { + "type": "array", + "items": { + "$ref": "#/definitions/OfficeRole" + } + } + }, + "400": { + "description": "Invalid status value" + } + }, + "security": [ + { + "bearerAuth": [] + } + ] + }, + "post": { + "tags": ["super-admin"], + "summary": "Add a new office role", + "description": "", + "operationId": "addOfficeRole", + "produces": ["application/json"], + "parameters": [ + { + "in": "body", + "name": "body", + "description": "OfficeRole object that needs to be added to the store", + "required": true, + "schema": { + "$ref": "#/definitions/OfficeRole" + } + } + ], + "responses": { + "200": { + "description": "successful operation", + "schema": { + "type": "array", + "items": { + "$ref": "#/definitions/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", + "produces": ["application/json"], + "parameters": [ + { + "name": "uid", + "in": "query", + "description": "ID of office role to return", + "required": true, + "type": "string" + } + ], + "responses": { + "200": { + "description": "successful operation", + "schema": { + "type": "array", + "items": { + "$ref": "#/definitions/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", + "produces": ["application/json"], + "parameters": [ + { + "name": "uid", + "in": "query", + "description": "ID of office role to return", + "required": true, + "type": "string" + }, + { + "in": "body", + "name": "body", + "description": "OfficeRole object that needs to be added to the store", + "required": true, + "schema": { + "$ref": "#/definitions/OfficeRole" + } + } + ], + "responses": { + "200": { + "description": "successful operation", + "schema": { + "type": "array", + "items": { + "$ref": "#/definitions/OfficeRole" + } + } + }, + "400": { + "description": "Invalid status value" + } + }, + "security": [ + { + "bearerAuth": [] + } + ] + } + }, + "super-admin/offices": { + "get": { + "tags": ["super-admin"], + "summary": "Get all offices", + "description": "", + "operationId": "getOffices", + "produces": ["application/json"], + "responses": { + "200": { + "description": "successful operation", + "schema": { + "type": "array", + "items": { + "$ref": "#/definitions/Office" + } + } + }, + "400": { + "description": "Invalid status value" + } + }, + "security": [ + { + "bearerAuth": [] + } + ] + }, + "post": { + "tags": ["super-admin"], + "summary": "Add a new office", + "description": "", + "operationId": "addOffice", + "produces": ["application/json"], + "parameters": [ + { + "in": "body", + "name": "body", + "description": "Office object that needs to be added to the store", + "required": true, + "schema": { + "$ref": "#/definitions/Office" + } + } + ], + "responses": { + "200": { + "description": "successful operation", + "schema": { + "type": "array", + "items": { + "$ref": "#/definitions/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", + "produces": ["application/json"], + "parameters": [ + { + "name": "uid", + "in": "query", + "description": "ID of office to return", + "required": true, + "type": "string" + } + ], + "responses": { + "200": { + "description": "successful operation", + "schema": { + "type": "array", + "items": { + "$ref": "#/definitions/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", + "produces": ["application/json"], + "parameters": [ + { + "name": "uid", + "in": "query", + "description": "ID of office to return", + "required": true, + "type": "string" + }, + { + "in": "body", + "name": "body", + "description": "Office object that needs to be added to the store", + "required": true, + "schema": { + "$ref": "#/definitions/Office" + } + } + ], + "responses": { + "200": { + "description": "successful operation", + "schema": { + "type": "array", + "items": { + "$ref": "#/definitions/Office" + } + } + }, + "400": { + "description": "Invalid status value" + } + }, + "security": [ + { + "bearerAuth": [] + } + ] + } + }, + "super-admin/roles": { + "get": { + "tags": ["super-admin"], + "summary": "Get all roles", + "description": "", + "operationId": "getRoles", + "produces": ["application/json"], + "responses": { + "200": { + "description": "successful operation", + "schema": { + "type": "array", + "items": { + "$ref": "#/definitions/Role" + } + } + }, + "400": { + "description": "Invalid status value" + } + }, + "security": [ + { + "bearerAuth": [] + } + ] + }, + "post": { + "tags": ["super-admin"], + "summary": "Add a new role", + "description": "", + "operationId": "addRole", + "produces": ["application/json"], + "parameters": [ + { + "in": "body", + "name": "body", + "description": "Role object that needs to be added to the store", + "required": true, + "schema": { + "$ref": "#/definitions/Role" + } + } + ], + "responses": { + "200": { + "description": "successful operation", + "schema": { + "$ref": "#/definitions/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", + "produces": ["application/json"], + "parameters": [ + { + "name": "uid", + "in": "query", + "description": "ID of role to return", + "required": true, + "type": "string" + } + ], + "responses": { + "200": { + "description": "successful operation", + "schema": { + "type": "array", + "items": { + "$ref": "#/definitions/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", + "produces": ["application/json"], + "parameters": [ + { + "name": "uid", + "in": "query", + "description": "ID of role to return", + "required": true, + "type": "string" + }, + { + "in": "body", + "name": "body", + "description": "Role object that needs to be added to the store", + "required": true, + "schema": { + "$ref": "#/definitions/Role" + } + } + ], + "responses": { + "200": { + "description": "successful operation", + "schema": { + "$ref": "#/definitions/Role" + } + }, + "400": { + "description": "Invalid status value" + } + }, + "security": [ + { + "bearerAuth": [] + } + ] + } + }, + "super-admin/notifications": { + "get": { + "tags": ["super-admin"], + "summary": "Get all notifications", + "description": "", + "operationId": "getNotifications", + "produces": ["application/json"], + "responses": { + "200": { + "description": "successful operation", + "schema": { + "type": "array", + "items": { + "$ref": "#/definitions/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", + "produces": ["application/json"], + "parameters": [ + { + "name": "uid", + "in": "path", + "description": "ID of notification to return", + "required": true, + "type": "string" + }, + { + "in": "body", + "name": "body", + "description": "Notification object that needs to be added to the store", + "required": true, + "schema": { + "$ref": "#/definitions/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", + "produces": ["application/json"], + "parameters": [ + { + "name": "uid", + "in": "query", + "description": "ID of notification to return", + "required": true, + "type": "string" + } + ], + "responses": { + "200": { + "description": "successful operation", + "schema": { + "type": "array", + "items": { + "$ref": "#/definitions/Notification" + } + } + }, + "400": { + "description": "Invalid status value" + } + }, + "security": [ + { + "bearerAuth": [] + } + ] + } + }, + "super-admin/users": { + "get": { + "tags": ["super-admin"], + "summary": "Get all users", + "description": "", + "operationId": "getUsers", + "produces": ["application/json"], + "responses": { + "200": { + "description": "successful operation", + "schema": { + "type": "array", + "items": { + "$ref": "#/definitions/User" + } + } + }, + "400": { + "description": "Invalid status value" + } + }, + "security": [ + { + "bearerAuth": [] + } + ] + } + }, + "super-admin/users/{uid}": { + "get": { + "tags": ["super-admin"], + "summary": "Find user by ID", + "description": "", + "operationId": "getUserById", + "produces": ["application/json"], + "parameters": [ + { + "name": "uid", + "in": "query", + "description": "ID of user to return", + "required": true, + "type": "string" + } + ], + "responses": { + "200": { + "description": "successful operation", + "schema": { + "type": "array", + "items": { + "$ref": "#/definitions/User" + } + } + }, + "400": { + "description": "Invalid status value" + } + }, + "security": [ + { + "bearerAuth": [] + } + ] + }, + "put": { + "tags": ["super-admin"], + "summary": "Update an existing user", + "description": "", + "operationId": "updateUser", + "produces": ["application/json"], + "parameters": [ + { + "name": "uid", + "in": "query", + "description": "ID of user to return", + "required": true, + "type": "string" + }, + { + "in": "body", + "name": "body", + "description": "User object that needs to be added to the store", + "required": true, + "schema": { + "$ref": "#/definitions/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", + "produces": ["application/json"], + "parameters": [ + { + "in": "body", + "name": "body", + "description": "LiveVote object that needs to be added to the store", + "required": true, + "schema": { + "$ref": "#/definitions/Vote" + } + } + ], + "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", + "produces": ["application/json"], + "parameters": [ + { + "name": "uid", + "in": "path", + "description": "ID of live vote to return", + "required": true, + "type": "string" + } + ], + "responses": { + "200": { + "description": "successful operation" + }, + "400": { + "description": "Invalid status value" + } + }, + "security": [ + { + "bearerAuth": [] + } + ] + } + } + }, + "securityDefinitions": { + "bearerAuth": { + "type": "http", + "scheme": "bearer", + "bearerFormat": "JWT" + } + }, + "responses": { + "UnauthorizedError": { + "description": "Authentication information is missing or invalid", + "headers": { + "WWW_Authenticate": { + "type": "string" + } + } + } + }, + "definitions": { + "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" + } + } + }, + "createdAt": { + "type": "string" + }, + "updatedAt": { + "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": { + "types": "array", + "items": { + "type": "object", + "properties": { + "uid": { + "type": "string" + }, + "name": { + "type": "string" + } + } + } + } + } + }, + "office_role": { + "type": "object", + "properties": { + "uid": { + "type": "string" + }, + "name": { + "type": "string" + }, + "rules": { + "types": "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": { + "types": "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": { + "types": "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" + } +} From aaa0d9ba21c08054726155da9396596a836f9f40 Mon Sep 17 00:00:00 2001 From: OxSaitama Date: Mon, 23 Oct 2023 17:39:35 +0200 Subject: [PATCH 22/26] upgrade doc to openapi 3.0.0 --- doc/Le Coffre Api.postman_collection.json | 2875 ++++++++------ doc/swagger.json | 4214 ++++++++++++--------- 2 files changed, 4072 insertions(+), 3017 deletions(-) diff --git a/doc/Le Coffre Api.postman_collection.json b/doc/Le Coffre Api.postman_collection.json index 1ed9601f..dd6ac403 100644 --- a/doc/Le Coffre Api.postman_collection.json +++ b/doc/Le Coffre Api.postman_collection.json @@ -1,6 +1,6 @@ { "info": { - "_postman_id": "12da7bd2-25b7-483f-808d-f3ad49ac97e4", + "_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", @@ -37,11 +37,12 @@ } ], "url": { - "raw": "{{baseUrl}}notary/customers/:uid", + "raw": "{{baseUrl}}/notary/customers/:uid", "host": [ - "{{baseUrl}}notary" + "{{baseUrl}}" ], "path": [ + "notary", "customers", ":uid" ], @@ -72,11 +73,12 @@ } ], "url": { - "raw": "{{baseUrl}}notary/customers/:uid", + "raw": "{{baseUrl}}/notary/customers/:uid", "host": [ - "{{baseUrl}}notary" + "{{baseUrl}}" ], "path": [ + "notary", "customers", ":uid" ], @@ -111,11 +113,12 @@ } ], "url": { - "raw": "{{baseUrl}}notary/customers/:uid", + "raw": "{{baseUrl}}/notary/customers/:uid", "host": [ - "{{baseUrl}}notary" + "{{baseUrl}}" ], "path": [ + "notary", "customers", ":uid" ], @@ -170,11 +173,12 @@ } }, "url": { - "raw": "{{baseUrl}}notary/customers/:uid", + "raw": "{{baseUrl}}/notary/customers/:uid", "host": [ - "{{baseUrl}}notary" + "{{baseUrl}}" ], "path": [ + "notary", "customers", ":uid" ], @@ -219,11 +223,12 @@ } }, "url": { - "raw": "{{baseUrl}}notary/customers/:uid", + "raw": "{{baseUrl}}/notary/customers/:uid", "host": [ - "{{baseUrl}}notary" + "{{baseUrl}}" ], "path": [ + "notary", "customers", ":uid" ], @@ -272,11 +277,12 @@ } }, "url": { - "raw": "{{baseUrl}}notary/customers/:uid", + "raw": "{{baseUrl}}/notary/customers/:uid", "host": [ - "{{baseUrl}}notary" + "{{baseUrl}}" ], "path": [ + "notary", "customers", ":uid" ], @@ -317,11 +323,12 @@ } ], "url": { - "raw": "{{baseUrl}}notary/customers/:uid", + "raw": "{{baseUrl}}/notary/customers/:uid", "host": [ - "{{baseUrl}}notary" + "{{baseUrl}}" ], "path": [ + "notary", "customers", ":uid" ], @@ -352,11 +359,12 @@ } ], "url": { - "raw": "{{baseUrl}}notary/customers/:uid", + "raw": "{{baseUrl}}/notary/customers/:uid", "host": [ - "{{baseUrl}}notary" + "{{baseUrl}}" ], "path": [ + "notary", "customers", ":uid" ], @@ -391,11 +399,12 @@ } ], "url": { - "raw": "{{baseUrl}}notary/customers/:uid", + "raw": "{{baseUrl}}/notary/customers/:uid", "host": [ - "{{baseUrl}}notary" + "{{baseUrl}}" ], "path": [ + "notary", "customers", ":uid" ], @@ -438,11 +447,12 @@ } ], "url": { - "raw": "{{baseUrl}}notary/customers", + "raw": "{{baseUrl}}/notary/customers", "host": [ - "{{baseUrl}}notary" + "{{baseUrl}}" ], "path": [ + "notary", "customers" ] } @@ -464,11 +474,12 @@ } ], "url": { - "raw": "{{baseUrl}}notary/customers", + "raw": "{{baseUrl}}/notary/customers", "host": [ - "{{baseUrl}}notary" + "{{baseUrl}}" ], "path": [ + "notary", "customers" ] } @@ -497,11 +508,12 @@ } ], "url": { - "raw": "{{baseUrl}}notary/customers", + "raw": "{{baseUrl}}/notary/customers", "host": [ - "{{baseUrl}}notary" + "{{baseUrl}}" ], "path": [ + "notary", "customers" ] } @@ -550,11 +562,12 @@ } }, "url": { - "raw": "{{baseUrl}}notary/customers", + "raw": "{{baseUrl}}/notary/customers", "host": [ - "{{baseUrl}}notary" + "{{baseUrl}}" ], "path": [ + "notary", "customers" ] } @@ -590,11 +603,12 @@ } }, "url": { - "raw": "{{baseUrl}}notary/customers", + "raw": "{{baseUrl}}/notary/customers", "host": [ - "{{baseUrl}}notary" + "{{baseUrl}}" ], "path": [ + "notary", "customers" ] } @@ -637,11 +651,12 @@ } }, "url": { - "raw": "{{baseUrl}}notary/customers", + "raw": "{{baseUrl}}/notary/customers", "host": [ - "{{baseUrl}}notary" + "{{baseUrl}}" ], "path": [ + "notary", "customers" ] } @@ -684,11 +699,12 @@ } ], "url": { - "raw": "{{baseUrl}}notary/deeds/:uid", + "raw": "{{baseUrl}}/notary/deeds/:uid", "host": [ - "{{baseUrl}}notary" + "{{baseUrl}}" ], "path": [ + "notary", "deeds", ":uid" ], @@ -719,11 +735,12 @@ } ], "url": { - "raw": "{{baseUrl}}notary/deeds/:uid", + "raw": "{{baseUrl}}/notary/deeds/:uid", "host": [ - "{{baseUrl}}notary" + "{{baseUrl}}" ], "path": [ + "notary", "deeds", ":uid" ], @@ -744,7 +761,7 @@ } ], "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 \"createdAt\": \"\",\n \"updatedAt\": \"\"\n}" + "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", @@ -758,11 +775,12 @@ } ], "url": { - "raw": "{{baseUrl}}notary/deeds/:uid", + "raw": "{{baseUrl}}/notary/deeds/:uid", "host": [ - "{{baseUrl}}notary" + "{{baseUrl}}" ], "path": [ + "notary", "deeds", ":uid" ], @@ -808,7 +826,7 @@ ], "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 \"createdAt\": \"\",\n \"updatedAt\": \"\"\n}", + "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", @@ -817,11 +835,12 @@ } }, "url": { - "raw": "{{baseUrl}}notary/deeds/:uid", + "raw": "{{baseUrl}}/notary/deeds/:uid", "host": [ - "{{baseUrl}}notary" + "{{baseUrl}}" ], "path": [ + "notary", "deeds", ":uid" ], @@ -857,7 +876,7 @@ ], "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 \"createdAt\": \"\",\n \"updatedAt\": \"\"\n}", + "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", @@ -866,11 +885,12 @@ } }, "url": { - "raw": "{{baseUrl}}notary/deeds/:uid", + "raw": "{{baseUrl}}/notary/deeds/:uid", "host": [ - "{{baseUrl}}notary" + "{{baseUrl}}" ], "path": [ + "notary", "deeds", ":uid" ], @@ -891,7 +911,7 @@ } ], "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 \"createdAt\": \"\",\n \"updatedAt\": \"\"\n}" + "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", @@ -910,7 +930,7 @@ ], "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 \"createdAt\": \"\",\n \"updatedAt\": \"\"\n}", + "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", @@ -919,11 +939,12 @@ } }, "url": { - "raw": "{{baseUrl}}notary/deeds/:uid", + "raw": "{{baseUrl}}/notary/deeds/:uid", "host": [ - "{{baseUrl}}notary" + "{{baseUrl}}" ], "path": [ + "notary", "deeds", ":uid" ], @@ -969,7 +990,7 @@ ], "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 \"createdAt\": \"\",\n \"updatedAt\": \"\"\n}", + "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", @@ -978,11 +999,12 @@ } }, "url": { - "raw": "{{baseUrl}}notary/deeds/:uid", + "raw": "{{baseUrl}}/notary/deeds/:uid", "host": [ - "{{baseUrl}}notary" + "{{baseUrl}}" ], "path": [ + "notary", "deeds", ":uid" ], @@ -1018,7 +1040,7 @@ ], "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 \"createdAt\": \"\",\n \"updatedAt\": \"\"\n}", + "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", @@ -1027,11 +1049,12 @@ } }, "url": { - "raw": "{{baseUrl}}notary/deeds/:uid", + "raw": "{{baseUrl}}/notary/deeds/:uid", "host": [ - "{{baseUrl}}notary" + "{{baseUrl}}" ], "path": [ + "notary", "deeds", ":uid" ], @@ -1052,7 +1075,7 @@ } ], "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 \"createdAt\": \"\",\n \"updatedAt\": \"\"\n}" + "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", @@ -1071,7 +1094,7 @@ ], "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 \"createdAt\": \"\",\n \"updatedAt\": \"\"\n}", + "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", @@ -1080,11 +1103,12 @@ } }, "url": { - "raw": "{{baseUrl}}notary/deeds/:uid", + "raw": "{{baseUrl}}/notary/deeds/:uid", "host": [ - "{{baseUrl}}notary" + "{{baseUrl}}" ], "path": [ + "notary", "deeds", ":uid" ], @@ -1127,11 +1151,12 @@ } ], "url": { - "raw": "{{baseUrl}}notary/deeds", + "raw": "{{baseUrl}}/notary/deeds", "host": [ - "{{baseUrl}}notary" + "{{baseUrl}}" ], "path": [ + "notary", "deeds" ] } @@ -1153,11 +1178,12 @@ } ], "url": { - "raw": "{{baseUrl}}notary/deeds", + "raw": "{{baseUrl}}/notary/deeds", "host": [ - "{{baseUrl}}notary" + "{{baseUrl}}" ], "path": [ + "notary", "deeds" ] } @@ -1172,7 +1198,7 @@ } ], "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 \"createdAt\": \"\",\n \"updatedAt\": \"\"\n}" + "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", @@ -1186,11 +1212,12 @@ } ], "url": { - "raw": "{{baseUrl}}notary/deeds", + "raw": "{{baseUrl}}/notary/deeds", "host": [ - "{{baseUrl}}notary" + "{{baseUrl}}" ], "path": [ + "notary", "deeds" ] } @@ -1230,7 +1257,7 @@ ], "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 \"createdAt\": \"\",\n \"updatedAt\": \"\"\n}", + "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", @@ -1239,11 +1266,12 @@ } }, "url": { - "raw": "{{baseUrl}}notary/deeds", + "raw": "{{baseUrl}}/notary/deeds", "host": [ - "{{baseUrl}}notary" + "{{baseUrl}}" ], "path": [ + "notary", "deeds" ] } @@ -1270,7 +1298,7 @@ ], "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 \"createdAt\": \"\",\n \"updatedAt\": \"\"\n}", + "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", @@ -1279,11 +1307,12 @@ } }, "url": { - "raw": "{{baseUrl}}notary/deeds", + "raw": "{{baseUrl}}/notary/deeds", "host": [ - "{{baseUrl}}notary" + "{{baseUrl}}" ], "path": [ + "notary", "deeds" ] } @@ -1298,7 +1327,7 @@ } ], "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 \"createdAt\": \"\",\n \"updatedAt\": \"\"\n}" + "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", @@ -1317,7 +1346,7 @@ ], "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 \"createdAt\": \"\",\n \"updatedAt\": \"\"\n}", + "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", @@ -1326,11 +1355,12 @@ } }, "url": { - "raw": "{{baseUrl}}notary/deeds", + "raw": "{{baseUrl}}/notary/deeds", "host": [ - "{{baseUrl}}notary" + "{{baseUrl}}" ], "path": [ + "notary", "deeds" ] } @@ -1373,11 +1403,12 @@ } ], "url": { - "raw": "{{baseUrl}}notary/deed-types/:uid", + "raw": "{{baseUrl}}/notary/deed-types/:uid", "host": [ - "{{baseUrl}}notary" + "{{baseUrl}}" ], "path": [ + "notary", "deed-types", ":uid" ], @@ -1408,11 +1439,12 @@ } ], "url": { - "raw": "{{baseUrl}}notary/deed-types/:uid", + "raw": "{{baseUrl}}/notary/deed-types/:uid", "host": [ - "{{baseUrl}}notary" + "{{baseUrl}}" ], "path": [ + "notary", "deed-types", ":uid" ], @@ -1433,7 +1465,7 @@ } ], "cookie": [], - "body": "{\n \"value\": \"reference #/components/schemas/DeedType not found in the OpenAPI spec\"\n}" + "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", @@ -1447,11 +1479,12 @@ } ], "url": { - "raw": "{{baseUrl}}notary/deed-types/:uid", + "raw": "{{baseUrl}}/notary/deed-types/:uid", "host": [ - "{{baseUrl}}notary" + "{{baseUrl}}" ], "path": [ + "notary", "deed-types", ":uid" ], @@ -1497,7 +1530,7 @@ ], "body": { "mode": "raw", - "raw": "{\n \"value\": \"reference #/components/schemas/DeedType not found in the OpenAPI spec\"\n}", + "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", @@ -1506,11 +1539,12 @@ } }, "url": { - "raw": "{{baseUrl}}notary/deed-types/:uid", + "raw": "{{baseUrl}}/notary/deed-types/:uid", "host": [ - "{{baseUrl}}notary" + "{{baseUrl}}" ], "path": [ + "notary", "deed-types", ":uid" ], @@ -1546,7 +1580,7 @@ ], "body": { "mode": "raw", - "raw": "{\n \"value\": \"reference #/components/schemas/DeedType not found in the OpenAPI spec\"\n}", + "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", @@ -1555,11 +1589,12 @@ } }, "url": { - "raw": "{{baseUrl}}notary/deed-types/:uid", + "raw": "{{baseUrl}}/notary/deed-types/:uid", "host": [ - "{{baseUrl}}notary" + "{{baseUrl}}" ], "path": [ + "notary", "deed-types", ":uid" ], @@ -1580,7 +1615,7 @@ } ], "cookie": [], - "body": "{\n \"value\": \"reference #/components/schemas/DeedType not found in the OpenAPI spec\"\n}" + "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", @@ -1599,7 +1634,7 @@ ], "body": { "mode": "raw", - "raw": "{\n \"value\": \"reference #/components/schemas/DeedType not found in the OpenAPI spec\"\n}", + "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", @@ -1608,11 +1643,12 @@ } }, "url": { - "raw": "{{baseUrl}}notary/deed-types/:uid", + "raw": "{{baseUrl}}/notary/deed-types/:uid", "host": [ - "{{baseUrl}}notary" + "{{baseUrl}}" ], "path": [ + "notary", "deed-types", ":uid" ], @@ -1655,11 +1691,12 @@ } ], "url": { - "raw": "{{baseUrl}}notary/deed-types", + "raw": "{{baseUrl}}/notary/deed-types", "host": [ - "{{baseUrl}}notary" + "{{baseUrl}}" ], "path": [ + "notary", "deed-types" ] } @@ -1681,11 +1718,12 @@ } ], "url": { - "raw": "{{baseUrl}}notary/deed-types", + "raw": "{{baseUrl}}/notary/deed-types", "host": [ - "{{baseUrl}}notary" + "{{baseUrl}}" ], "path": [ + "notary", "deed-types" ] } @@ -1700,7 +1738,7 @@ } ], "cookie": [], - "body": "{\n \"value\": \"reference #/components/schemas/DeedType not found in the OpenAPI spec\"\n}" + "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", @@ -1714,11 +1752,12 @@ } ], "url": { - "raw": "{{baseUrl}}notary/deed-types", + "raw": "{{baseUrl}}/notary/deed-types", "host": [ - "{{baseUrl}}notary" + "{{baseUrl}}" ], "path": [ + "notary", "deed-types" ] } @@ -1758,7 +1797,7 @@ ], "body": { "mode": "raw", - "raw": "{\n \"value\": \"reference #/components/schemas/DeedType not found in the OpenAPI spec\"\n}", + "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", @@ -1767,11 +1806,12 @@ } }, "url": { - "raw": "{{baseUrl}}notary/deed-types", + "raw": "{{baseUrl}}/notary/deed-types", "host": [ - "{{baseUrl}}notary" + "{{baseUrl}}" ], "path": [ + "notary", "deed-types" ] } @@ -1798,7 +1838,7 @@ ], "body": { "mode": "raw", - "raw": "{\n \"value\": \"reference #/components/schemas/DeedType not found in the OpenAPI spec\"\n}", + "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", @@ -1807,11 +1847,12 @@ } }, "url": { - "raw": "{{baseUrl}}notary/deed-types", + "raw": "{{baseUrl}}/notary/deed-types", "host": [ - "{{baseUrl}}notary" + "{{baseUrl}}" ], "path": [ + "notary", "deed-types" ] } @@ -1826,7 +1867,7 @@ } ], "cookie": [], - "body": "{\n \"value\": \"reference #/components/schemas/DeedType not found in the OpenAPI spec\"\n}" + "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", @@ -1845,7 +1886,7 @@ ], "body": { "mode": "raw", - "raw": "{\n \"value\": \"reference #/components/schemas/DeedType not found in the OpenAPI spec\"\n}", + "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", @@ -1854,11 +1895,12 @@ } }, "url": { - "raw": "{{baseUrl}}notary/deed-types", + "raw": "{{baseUrl}}/notary/deed-types", "host": [ - "{{baseUrl}}notary" + "{{baseUrl}}" ], "path": [ + "notary", "deed-types" ] } @@ -1901,11 +1943,12 @@ } ], "url": { - "raw": "{{baseUrl}}notary/documents/:uid", + "raw": "{{baseUrl}}/notary/documents/:uid", "host": [ - "{{baseUrl}}notary" + "{{baseUrl}}" ], "path": [ + "notary", "documents", ":uid" ], @@ -1936,11 +1979,12 @@ } ], "url": { - "raw": "{{baseUrl}}notary/documents/:uid", + "raw": "{{baseUrl}}/notary/documents/:uid", "host": [ - "{{baseUrl}}notary" + "{{baseUrl}}" ], "path": [ + "notary", "documents", ":uid" ], @@ -1975,11 +2019,12 @@ } ], "url": { - "raw": "{{baseUrl}}notary/documents/:uid", + "raw": "{{baseUrl}}/notary/documents/:uid", "host": [ - "{{baseUrl}}notary" + "{{baseUrl}}" ], "path": [ + "notary", "documents", ":uid" ], @@ -2034,11 +2079,12 @@ } }, "url": { - "raw": "{{baseUrl}}notary/documents/:uid", + "raw": "{{baseUrl}}/notary/documents/:uid", "host": [ - "{{baseUrl}}notary" + "{{baseUrl}}" ], "path": [ + "notary", "documents", ":uid" ], @@ -2083,11 +2129,12 @@ } }, "url": { - "raw": "{{baseUrl}}notary/documents/:uid", + "raw": "{{baseUrl}}/notary/documents/:uid", "host": [ - "{{baseUrl}}notary" + "{{baseUrl}}" ], "path": [ + "notary", "documents", ":uid" ], @@ -2136,11 +2183,12 @@ } }, "url": { - "raw": "{{baseUrl}}notary/documents/:uid", + "raw": "{{baseUrl}}/notary/documents/:uid", "host": [ - "{{baseUrl}}notary" + "{{baseUrl}}" ], "path": [ + "notary", "documents", ":uid" ], @@ -2195,11 +2243,12 @@ } }, "url": { - "raw": "{{baseUrl}}notary/documents/:uid", + "raw": "{{baseUrl}}/notary/documents/:uid", "host": [ - "{{baseUrl}}notary" + "{{baseUrl}}" ], "path": [ + "notary", "documents", ":uid" ], @@ -2244,11 +2293,12 @@ } }, "url": { - "raw": "{{baseUrl}}notary/documents/:uid", + "raw": "{{baseUrl}}/notary/documents/:uid", "host": [ - "{{baseUrl}}notary" + "{{baseUrl}}" ], "path": [ + "notary", "documents", ":uid" ], @@ -2297,11 +2347,12 @@ } }, "url": { - "raw": "{{baseUrl}}notary/documents/:uid", + "raw": "{{baseUrl}}/notary/documents/:uid", "host": [ - "{{baseUrl}}notary" + "{{baseUrl}}" ], "path": [ + "notary", "documents", ":uid" ], @@ -2344,11 +2395,12 @@ } ], "url": { - "raw": "{{baseUrl}}notary/documents", + "raw": "{{baseUrl}}/notary/documents", "host": [ - "{{baseUrl}}notary" + "{{baseUrl}}" ], "path": [ + "notary", "documents" ] } @@ -2370,11 +2422,12 @@ } ], "url": { - "raw": "{{baseUrl}}notary/documents", + "raw": "{{baseUrl}}/notary/documents", "host": [ - "{{baseUrl}}notary" + "{{baseUrl}}" ], "path": [ + "notary", "documents" ] } @@ -2403,11 +2456,12 @@ } ], "url": { - "raw": "{{baseUrl}}notary/documents", + "raw": "{{baseUrl}}/notary/documents", "host": [ - "{{baseUrl}}notary" + "{{baseUrl}}" ], "path": [ + "notary", "documents" ] } @@ -2456,11 +2510,12 @@ } }, "url": { - "raw": "{{baseUrl}}notary/documents", + "raw": "{{baseUrl}}/notary/documents", "host": [ - "{{baseUrl}}notary" + "{{baseUrl}}" ], "path": [ + "notary", "documents" ] } @@ -2496,11 +2551,12 @@ } }, "url": { - "raw": "{{baseUrl}}notary/documents", + "raw": "{{baseUrl}}/notary/documents", "host": [ - "{{baseUrl}}notary" + "{{baseUrl}}" ], "path": [ + "notary", "documents" ] } @@ -2543,11 +2599,12 @@ } }, "url": { - "raw": "{{baseUrl}}notary/documents", + "raw": "{{baseUrl}}/notary/documents", "host": [ - "{{baseUrl}}notary" + "{{baseUrl}}" ], "path": [ + "notary", "documents" ] } @@ -2590,11 +2647,12 @@ } ], "url": { - "raw": "{{baseUrl}}notary/document-types/:uid", + "raw": "{{baseUrl}}/notary/document-types/:uid", "host": [ - "{{baseUrl}}notary" + "{{baseUrl}}" ], "path": [ + "notary", "document-types", ":uid" ], @@ -2625,11 +2683,12 @@ } ], "url": { - "raw": "{{baseUrl}}notary/document-types/:uid", + "raw": "{{baseUrl}}/notary/document-types/:uid", "host": [ - "{{baseUrl}}notary" + "{{baseUrl}}" ], "path": [ + "notary", "document-types", ":uid" ], @@ -2664,11 +2723,12 @@ } ], "url": { - "raw": "{{baseUrl}}notary/document-types/:uid", + "raw": "{{baseUrl}}/notary/document-types/:uid", "host": [ - "{{baseUrl}}notary" + "{{baseUrl}}" ], "path": [ + "notary", "document-types", ":uid" ], @@ -2723,11 +2783,12 @@ } }, "url": { - "raw": "{{baseUrl}}notary/document-types/:uid", + "raw": "{{baseUrl}}/notary/document-types/:uid", "host": [ - "{{baseUrl}}notary" + "{{baseUrl}}" ], "path": [ + "notary", "document-types", ":uid" ], @@ -2772,11 +2833,12 @@ } }, "url": { - "raw": "{{baseUrl}}notary/document-types/:uid", + "raw": "{{baseUrl}}/notary/document-types/:uid", "host": [ - "{{baseUrl}}notary" + "{{baseUrl}}" ], "path": [ + "notary", "document-types", ":uid" ], @@ -2825,11 +2887,12 @@ } }, "url": { - "raw": "{{baseUrl}}notary/document-types/:uid", + "raw": "{{baseUrl}}/notary/document-types/:uid", "host": [ - "{{baseUrl}}notary" + "{{baseUrl}}" ], "path": [ + "notary", "document-types", ":uid" ], @@ -2870,11 +2933,12 @@ } ], "url": { - "raw": "{{baseUrl}}notary/document-types/:uid", + "raw": "{{baseUrl}}/notary/document-types/:uid", "host": [ - "{{baseUrl}}notary" + "{{baseUrl}}" ], "path": [ + "notary", "document-types", ":uid" ], @@ -2905,11 +2969,12 @@ } ], "url": { - "raw": "{{baseUrl}}notary/document-types/:uid", + "raw": "{{baseUrl}}/notary/document-types/:uid", "host": [ - "{{baseUrl}}notary" + "{{baseUrl}}" ], "path": [ + "notary", "document-types", ":uid" ], @@ -2944,11 +3009,12 @@ } ], "url": { - "raw": "{{baseUrl}}notary/document-types/:uid", + "raw": "{{baseUrl}}/notary/document-types/:uid", "host": [ - "{{baseUrl}}notary" + "{{baseUrl}}" ], "path": [ + "notary", "document-types", ":uid" ], @@ -2991,11 +3057,12 @@ } ], "url": { - "raw": "{{baseUrl}}notary/document-types", + "raw": "{{baseUrl}}/notary/document-types", "host": [ - "{{baseUrl}}notary" + "{{baseUrl}}" ], "path": [ + "notary", "document-types" ] } @@ -3017,11 +3084,12 @@ } ], "url": { - "raw": "{{baseUrl}}notary/document-types", + "raw": "{{baseUrl}}/notary/document-types", "host": [ - "{{baseUrl}}notary" + "{{baseUrl}}" ], "path": [ + "notary", "document-types" ] } @@ -3050,11 +3118,12 @@ } ], "url": { - "raw": "{{baseUrl}}notary/document-types", + "raw": "{{baseUrl}}/notary/document-types", "host": [ - "{{baseUrl}}notary" + "{{baseUrl}}" ], "path": [ + "notary", "document-types" ] } @@ -3103,11 +3172,12 @@ } }, "url": { - "raw": "{{baseUrl}}notary/document-types", + "raw": "{{baseUrl}}/notary/document-types", "host": [ - "{{baseUrl}}notary" + "{{baseUrl}}" ], "path": [ + "notary", "document-types" ] } @@ -3143,11 +3213,12 @@ } }, "url": { - "raw": "{{baseUrl}}notary/document-types", + "raw": "{{baseUrl}}/notary/document-types", "host": [ - "{{baseUrl}}notary" + "{{baseUrl}}" ], "path": [ + "notary", "document-types" ] } @@ -3190,11 +3261,12 @@ } }, "url": { - "raw": "{{baseUrl}}notary/document-types", + "raw": "{{baseUrl}}/notary/document-types", "host": [ - "{{baseUrl}}notary" + "{{baseUrl}}" ], "path": [ + "notary", "document-types" ] } @@ -3232,11 +3304,12 @@ "method": "GET", "header": [], "url": { - "raw": "{{baseUrl}}notary/files/:uid", + "raw": "{{baseUrl}}/notary/files/:uid", "host": [ - "{{baseUrl}}notary" + "{{baseUrl}}" ], "path": [ + "notary", "files", ":uid" ], @@ -3263,11 +3336,12 @@ } ], "url": { - "raw": "{{baseUrl}}notary/files/:uid", + "raw": "{{baseUrl}}/notary/files/:uid", "host": [ - "{{baseUrl}}notary" + "{{baseUrl}}" ], "path": [ + "notary", "files", ":uid" ], @@ -3297,11 +3371,12 @@ } ], "url": { - "raw": "{{baseUrl}}notary/files/:uid", + "raw": "{{baseUrl}}/notary/files/:uid", "host": [ - "{{baseUrl}}notary" + "{{baseUrl}}" ], "path": [ + "notary", "files", ":uid" ], @@ -3337,11 +3412,12 @@ "method": "DELETE", "header": [], "url": { - "raw": "{{baseUrl}}notary/files/:uid", + "raw": "{{baseUrl}}/notary/files/:uid", "host": [ - "{{baseUrl}}notary" + "{{baseUrl}}" ], "path": [ + "notary", "files", ":uid" ], @@ -3368,11 +3444,12 @@ } ], "url": { - "raw": "{{baseUrl}}notary/files/:uid", + "raw": "{{baseUrl}}/notary/files/:uid", "host": [ - "{{baseUrl}}notary" + "{{baseUrl}}" ], "path": [ + "notary", "files", ":uid" ], @@ -3402,11 +3479,12 @@ } ], "url": { - "raw": "{{baseUrl}}notary/files/:uid", + "raw": "{{baseUrl}}/notary/files/:uid", "host": [ - "{{baseUrl}}notary" + "{{baseUrl}}" ], "path": [ + "notary", "files", ":uid" ], @@ -3450,11 +3528,12 @@ "method": "GET", "header": [], "url": { - "raw": "{{baseUrl}}notary/files/download/:uid", + "raw": "{{baseUrl}}/notary/files/download/:uid", "host": [ - "{{baseUrl}}notary" + "{{baseUrl}}" ], "path": [ + "notary", "files", "download", ":uid" @@ -3482,11 +3561,12 @@ } ], "url": { - "raw": "{{baseUrl}}notary/files/download/:uid", + "raw": "{{baseUrl}}/notary/files/download/:uid", "host": [ - "{{baseUrl}}notary" + "{{baseUrl}}" ], "path": [ + "notary", "files", "download", ":uid" @@ -3517,11 +3597,12 @@ } ], "url": { - "raw": "{{baseUrl}}notary/files/download/:uid", + "raw": "{{baseUrl}}/notary/files/download/:uid", "host": [ - "{{baseUrl}}notary" + "{{baseUrl}}" ], "path": [ + "notary", "files", "download", ":uid" @@ -3562,11 +3643,12 @@ "method": "GET", "header": [], "url": { - "raw": "{{baseUrl}}notary/files", + "raw": "{{baseUrl}}/notary/files", "host": [ - "{{baseUrl}}notary" + "{{baseUrl}}" ], "path": [ + "notary", "files" ] } @@ -3584,11 +3666,12 @@ } ], "url": { - "raw": "{{baseUrl}}notary/files", + "raw": "{{baseUrl}}/notary/files", "host": [ - "{{baseUrl}}notary" + "{{baseUrl}}" ], "path": [ + "notary", "files" ] } @@ -3612,11 +3695,12 @@ } ], "url": { - "raw": "{{baseUrl}}notary/files", + "raw": "{{baseUrl}}/notary/files", "host": [ - "{{baseUrl}}notary" + "{{baseUrl}}" ], "path": [ + "notary", "files" ] } @@ -3654,11 +3738,12 @@ "method": "GET", "header": [], "url": { - "raw": "{{baseUrl}}notary/anchors/:uid", + "raw": "{{baseUrl}}/notary/anchors/:uid", "host": [ - "{{baseUrl}}notary" + "{{baseUrl}}" ], "path": [ + "notary", "anchors", ":uid" ], @@ -3685,11 +3770,12 @@ } ], "url": { - "raw": "{{baseUrl}}notary/anchors/:uid", + "raw": "{{baseUrl}}/notary/anchors/:uid", "host": [ - "{{baseUrl}}notary" + "{{baseUrl}}" ], "path": [ + "notary", "anchors", ":uid" ], @@ -3719,11 +3805,12 @@ } ], "url": { - "raw": "{{baseUrl}}notary/anchors/:uid", + "raw": "{{baseUrl}}/notary/anchors/:uid", "host": [ - "{{baseUrl}}notary" + "{{baseUrl}}" ], "path": [ + "notary", "anchors", ":uid" ], @@ -3774,11 +3861,12 @@ } }, "url": { - "raw": "{{baseUrl}}notary/anchors/:uid", + "raw": "{{baseUrl}}/notary/anchors/:uid", "host": [ - "{{baseUrl}}notary" + "{{baseUrl}}" ], "path": [ + "notary", "anchors", ":uid" ], @@ -3818,11 +3906,12 @@ } }, "url": { - "raw": "{{baseUrl}}notary/anchors/:uid", + "raw": "{{baseUrl}}/notary/anchors/:uid", "host": [ - "{{baseUrl}}notary" + "{{baseUrl}}" ], "path": [ + "notary", "anchors", ":uid" ], @@ -3866,11 +3955,12 @@ } }, "url": { - "raw": "{{baseUrl}}notary/anchors/:uid", + "raw": "{{baseUrl}}/notary/anchors/:uid", "host": [ - "{{baseUrl}}notary" + "{{baseUrl}}" ], "path": [ + "notary", "anchors", ":uid" ], @@ -3914,11 +4004,12 @@ "method": "GET", "header": [], "url": { - "raw": "{{baseUrl}}notary/anchors/download/:uid", + "raw": "{{baseUrl}}/notary/anchors/download/:uid", "host": [ - "{{baseUrl}}notary" + "{{baseUrl}}" ], "path": [ + "notary", "anchors", "download", ":uid" @@ -3946,11 +4037,12 @@ } ], "url": { - "raw": "{{baseUrl}}notary/anchors/download/:uid", + "raw": "{{baseUrl}}/notary/anchors/download/:uid", "host": [ - "{{baseUrl}}notary" + "{{baseUrl}}" ], "path": [ + "notary", "anchors", "download", ":uid" @@ -3981,11 +4073,12 @@ } ], "url": { - "raw": "{{baseUrl}}notary/anchors/download/:uid", + "raw": "{{baseUrl}}/notary/anchors/download/:uid", "host": [ - "{{baseUrl}}notary" + "{{baseUrl}}" ], "path": [ + "notary", "anchors", "download", ":uid" @@ -4026,11 +4119,12 @@ "method": "GET", "header": [], "url": { - "raw": "{{baseUrl}}notary/anchors", + "raw": "{{baseUrl}}/notary/anchors", "host": [ - "{{baseUrl}}notary" + "{{baseUrl}}" ], "path": [ + "notary", "anchors" ] } @@ -4048,11 +4142,12 @@ } ], "url": { - "raw": "{{baseUrl}}notary/anchors", + "raw": "{{baseUrl}}/notary/anchors", "host": [ - "{{baseUrl}}notary" + "{{baseUrl}}" ], "path": [ + "notary", "anchors" ] } @@ -4076,11 +4171,12 @@ } ], "url": { - "raw": "{{baseUrl}}notary/anchors", + "raw": "{{baseUrl}}/notary/anchors", "host": [ - "{{baseUrl}}notary" + "{{baseUrl}}" ], "path": [ + "notary", "anchors" ] } @@ -4124,7 +4220,7 @@ ], "body": { "mode": "raw", - "raw": "{\n \"value\": \"reference #/components/schemas/Folder not found in the OpenAPI spec\"\n}", + "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", @@ -4133,11 +4229,12 @@ } }, "url": { - "raw": "{{baseUrl}}notary/folders/:uid", + "raw": "{{baseUrl}}/notary/folders/:uid", "host": [ - "{{baseUrl}}notary" + "{{baseUrl}}" ], "path": [ + "notary", "folders", ":uid" ], @@ -4169,7 +4266,7 @@ ], "body": { "mode": "raw", - "raw": "{\n \"value\": \"reference #/components/schemas/Folder not found in the OpenAPI spec\"\n}", + "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", @@ -4178,11 +4275,12 @@ } }, "url": { - "raw": "{{baseUrl}}notary/folders/:uid", + "raw": "{{baseUrl}}/notary/folders/:uid", "host": [ - "{{baseUrl}}notary" + "{{baseUrl}}" ], "path": [ + "notary", "folders", ":uid" ], @@ -4217,7 +4315,7 @@ ], "body": { "mode": "raw", - "raw": "{\n \"value\": \"reference #/components/schemas/Folder not found in the OpenAPI spec\"\n}", + "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", @@ -4226,11 +4324,12 @@ } }, "url": { - "raw": "{{baseUrl}}notary/folders/:uid", + "raw": "{{baseUrl}}/notary/folders/:uid", "host": [ - "{{baseUrl}}notary" + "{{baseUrl}}" ], "path": [ + "notary", "folders", ":uid" ], @@ -4266,11 +4365,12 @@ "method": "DELETE", "header": [], "url": { - "raw": "{{baseUrl}}notary/folders/:uid", + "raw": "{{baseUrl}}/notary/folders/:uid", "host": [ - "{{baseUrl}}notary" + "{{baseUrl}}" ], "path": [ + "notary", "folders", ":uid" ], @@ -4297,11 +4397,12 @@ } ], "url": { - "raw": "{{baseUrl}}notary/folders/:uid", + "raw": "{{baseUrl}}/notary/folders/:uid", "host": [ - "{{baseUrl}}notary" + "{{baseUrl}}" ], "path": [ + "notary", "folders", ":uid" ], @@ -4331,11 +4432,12 @@ } ], "url": { - "raw": "{{baseUrl}}notary/folders/:uid", + "raw": "{{baseUrl}}/notary/folders/:uid", "host": [ - "{{baseUrl}}notary" + "{{baseUrl}}" ], "path": [ + "notary", "folders", ":uid" ], @@ -4376,11 +4478,12 @@ } ], "url": { - "raw": "{{baseUrl}}notary/folders/:uid?uid=", + "raw": "{{baseUrl}}/notary/folders/:uid?uid=", "host": [ - "{{baseUrl}}notary" + "{{baseUrl}}" ], "path": [ + "notary", "folders", ":uid" ], @@ -4416,11 +4519,12 @@ } ], "url": { - "raw": "{{baseUrl}}notary/folders/:uid?uid=", + "raw": "{{baseUrl}}/notary/folders/:uid?uid=", "host": [ - "{{baseUrl}}notary" + "{{baseUrl}}" ], "path": [ + "notary", "folders", ":uid" ], @@ -4448,7 +4552,7 @@ } ], "cookie": [], - "body": "[\n {\n \"value\": \"reference #/components/schemas/Folder not found in the OpenAPI spec\"\n },\n {\n \"value\": \"reference #/components/schemas/Folder not found in the OpenAPI spec\"\n }\n]" + "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", @@ -4462,11 +4566,12 @@ } ], "url": { - "raw": "{{baseUrl}}notary/folders/:uid?uid=", + "raw": "{{baseUrl}}/notary/folders/:uid?uid=", "host": [ - "{{baseUrl}}notary" + "{{baseUrl}}" ], "path": [ + "notary", "folders", ":uid" ], @@ -4511,11 +4616,12 @@ "method": "GET", "header": [], "url": { - "raw": "{{baseUrl}}notary/folders", + "raw": "{{baseUrl}}/notary/folders", "host": [ - "{{baseUrl}}notary" + "{{baseUrl}}" ], "path": [ + "notary", "folders" ] } @@ -4533,11 +4639,12 @@ } ], "url": { - "raw": "{{baseUrl}}notary/folders", + "raw": "{{baseUrl}}/notary/folders", "host": [ - "{{baseUrl}}notary" + "{{baseUrl}}" ], "path": [ + "notary", "folders" ] } @@ -4561,11 +4668,12 @@ } ], "url": { - "raw": "{{baseUrl}}notary/folders", + "raw": "{{baseUrl}}/notary/folders", "host": [ - "{{baseUrl}}notary" + "{{baseUrl}}" ], "path": [ + "notary", "folders" ] } @@ -4601,7 +4709,7 @@ ], "body": { "mode": "raw", - "raw": "{\n \"value\": \"reference #/components/schemas/Folder not found in the OpenAPI spec\"\n}", + "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", @@ -4610,11 +4718,12 @@ } }, "url": { - "raw": "{{baseUrl}}notary/folders", + "raw": "{{baseUrl}}/notary/folders", "host": [ - "{{baseUrl}}notary" + "{{baseUrl}}" ], "path": [ + "notary", "folders" ] } @@ -4637,7 +4746,7 @@ ], "body": { "mode": "raw", - "raw": "{\n \"value\": \"reference #/components/schemas/Folder not found in the OpenAPI spec\"\n}", + "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", @@ -4646,11 +4755,12 @@ } }, "url": { - "raw": "{{baseUrl}}notary/folders", + "raw": "{{baseUrl}}/notary/folders", "host": [ - "{{baseUrl}}notary" + "{{baseUrl}}" ], "path": [ + "notary", "folders" ] } @@ -4679,7 +4789,7 @@ ], "body": { "mode": "raw", - "raw": "{\n \"value\": \"reference #/components/schemas/Folder not found in the OpenAPI spec\"\n}", + "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", @@ -4688,11 +4798,12 @@ } }, "url": { - "raw": "{{baseUrl}}notary/folders", + "raw": "{{baseUrl}}/notary/folders", "host": [ - "{{baseUrl}}notary" + "{{baseUrl}}" ], "path": [ + "notary", "folders" ] } @@ -4735,11 +4846,12 @@ } ], "url": { - "raw": "{{baseUrl}}notary/office-roles/:uid?uid=", + "raw": "{{baseUrl}}/notary/office-roles/:uid?uid=", "host": [ - "{{baseUrl}}notary" + "{{baseUrl}}" ], "path": [ + "notary", "office-roles", ":uid" ], @@ -4775,11 +4887,12 @@ } ], "url": { - "raw": "{{baseUrl}}notary/office-roles/:uid?uid=", + "raw": "{{baseUrl}}/notary/office-roles/:uid?uid=", "host": [ - "{{baseUrl}}notary" + "{{baseUrl}}" ], "path": [ + "notary", "office-roles", ":uid" ], @@ -4807,7 +4920,7 @@ } ], "cookie": [], - "body": "[\n {\n \"value\": \"reference #/components/schemas/OfficeRole not found in the OpenAPI spec\"\n },\n {\n \"value\": \"reference #/components/schemas/OfficeRole not found in the OpenAPI spec\"\n }\n]" + "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", @@ -4821,11 +4934,12 @@ } ], "url": { - "raw": "{{baseUrl}}notary/office-roles/:uid?uid=", + "raw": "{{baseUrl}}/notary/office-roles/:uid?uid=", "host": [ - "{{baseUrl}}notary" + "{{baseUrl}}" ], "path": [ + "notary", "office-roles", ":uid" ], @@ -4875,11 +4989,12 @@ } ], "url": { - "raw": "{{baseUrl}}notary/office-roles", + "raw": "{{baseUrl}}/notary/office-roles", "host": [ - "{{baseUrl}}notary" + "{{baseUrl}}" ], "path": [ + "notary", "office-roles" ] } @@ -4901,11 +5016,12 @@ } ], "url": { - "raw": "{{baseUrl}}notary/office-roles", + "raw": "{{baseUrl}}/notary/office-roles", "host": [ - "{{baseUrl}}notary" + "{{baseUrl}}" ], "path": [ + "notary", "office-roles" ] } @@ -4920,7 +5036,7 @@ } ], "cookie": [], - "body": "[\n {\n \"value\": \"reference #/components/schemas/OfficeRole not found in the OpenAPI spec\"\n },\n {\n \"value\": \"reference #/components/schemas/OfficeRole not found in the OpenAPI spec\"\n }\n]" + "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", @@ -4934,11 +5050,12 @@ } ], "url": { - "raw": "{{baseUrl}}notary/office-roles", + "raw": "{{baseUrl}}/notary/office-roles", "host": [ - "{{baseUrl}}notary" + "{{baseUrl}}" ], "path": [ + "notary", "office-roles" ] } @@ -4981,11 +5098,12 @@ } ], "url": { - "raw": "{{baseUrl}}notary/offices/:uid?uid=", + "raw": "{{baseUrl}}/notary/offices/:uid?uid=", "host": [ - "{{baseUrl}}notary" + "{{baseUrl}}" ], "path": [ + "notary", "offices", ":uid" ], @@ -5021,11 +5139,12 @@ } ], "url": { - "raw": "{{baseUrl}}notary/offices/:uid?uid=", + "raw": "{{baseUrl}}/notary/offices/:uid?uid=", "host": [ - "{{baseUrl}}notary" + "{{baseUrl}}" ], "path": [ + "notary", "offices", ":uid" ], @@ -5053,7 +5172,7 @@ } ], "cookie": [], - "body": "[\n {\n \"value\": \"reference #/components/schemas/Office not found in the OpenAPI spec\"\n },\n {\n \"value\": \"reference #/components/schemas/Office not found in the OpenAPI spec\"\n }\n]" + "body": "[\n {\n \"uid\": \"\",\n \"name\": \"\"\n },\n {\n \"uid\": \"\",\n \"name\": \"\"\n }\n]" }, { "name": "Invalid status value", @@ -5067,11 +5186,12 @@ } ], "url": { - "raw": "{{baseUrl}}notary/offices/:uid?uid=", + "raw": "{{baseUrl}}/notary/offices/:uid?uid=", "host": [ - "{{baseUrl}}notary" + "{{baseUrl}}" ], "path": [ + "notary", "offices", ":uid" ], @@ -5121,11 +5241,12 @@ } ], "url": { - "raw": "{{baseUrl}}notary/offices", + "raw": "{{baseUrl}}/notary/offices", "host": [ - "{{baseUrl}}notary" + "{{baseUrl}}" ], "path": [ + "notary", "offices" ] } @@ -5147,11 +5268,12 @@ } ], "url": { - "raw": "{{baseUrl}}notary/offices", + "raw": "{{baseUrl}}/notary/offices", "host": [ - "{{baseUrl}}notary" + "{{baseUrl}}" ], "path": [ + "notary", "offices" ] } @@ -5166,7 +5288,7 @@ } ], "cookie": [], - "body": "[\n {\n \"value\": \"reference #/components/schemas/Office not found in the OpenAPI spec\"\n },\n {\n \"value\": \"reference #/components/schemas/Office not found in the OpenAPI spec\"\n }\n]" + "body": "[\n {\n \"uid\": \"\",\n \"name\": \"\"\n },\n {\n \"uid\": \"\",\n \"name\": \"\"\n }\n]" }, { "name": "Invalid status value", @@ -5180,11 +5302,12 @@ } ], "url": { - "raw": "{{baseUrl}}notary/offices", + "raw": "{{baseUrl}}/notary/offices", "host": [ - "{{baseUrl}}notary" + "{{baseUrl}}" ], "path": [ + "notary", "offices" ] } @@ -5227,11 +5350,12 @@ } ], "url": { - "raw": "{{baseUrl}}notary/roles/:uid?uid=", + "raw": "{{baseUrl}}/notary/roles/:uid?uid=", "host": [ - "{{baseUrl}}notary" + "{{baseUrl}}" ], "path": [ + "notary", "roles", ":uid" ], @@ -5267,11 +5391,12 @@ } ], "url": { - "raw": "{{baseUrl}}notary/roles/:uid?uid=", + "raw": "{{baseUrl}}/notary/roles/:uid?uid=", "host": [ - "{{baseUrl}}notary" + "{{baseUrl}}" ], "path": [ + "notary", "roles", ":uid" ], @@ -5299,7 +5424,7 @@ } ], "cookie": [], - "body": "[\n {\n \"value\": \"reference #/components/schemas/Role not found in the OpenAPI spec\"\n },\n {\n \"value\": \"reference #/components/schemas/Role not found in the OpenAPI spec\"\n }\n]" + "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", @@ -5313,11 +5438,12 @@ } ], "url": { - "raw": "{{baseUrl}}notary/roles/:uid?uid=", + "raw": "{{baseUrl}}/notary/roles/:uid?uid=", "host": [ - "{{baseUrl}}notary" + "{{baseUrl}}" ], "path": [ + "notary", "roles", ":uid" ], @@ -5367,11 +5493,12 @@ } ], "url": { - "raw": "{{baseUrl}}notary/roles", + "raw": "{{baseUrl}}/notary/roles", "host": [ - "{{baseUrl}}notary" + "{{baseUrl}}" ], "path": [ + "notary", "roles" ] } @@ -5393,11 +5520,12 @@ } ], "url": { - "raw": "{{baseUrl}}notary/roles", + "raw": "{{baseUrl}}/notary/roles", "host": [ - "{{baseUrl}}notary" + "{{baseUrl}}" ], "path": [ + "notary", "roles" ] } @@ -5412,7 +5540,7 @@ } ], "cookie": [], - "body": "[\n {\n \"value\": \"reference #/components/schemas/Role not found in the OpenAPI spec\"\n },\n {\n \"value\": \"reference #/components/schemas/Role not found in the OpenAPI spec\"\n }\n]" + "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", @@ -5426,11 +5554,12 @@ } ], "url": { - "raw": "{{baseUrl}}notary/roles", + "raw": "{{baseUrl}}/notary/roles", "host": [ - "{{baseUrl}}notary" + "{{baseUrl}}" ], "path": [ + "notary", "roles" ] } @@ -5483,11 +5612,12 @@ } }, "url": { - "raw": "{{baseUrl}}notary/notifications/:uid", + "raw": "{{baseUrl}}/notary/notifications/:uid", "host": [ - "{{baseUrl}}notary" + "{{baseUrl}}" ], "path": [ + "notary", "notifications", ":uid" ], @@ -5528,11 +5658,12 @@ } }, "url": { - "raw": "{{baseUrl}}notary/notifications/:uid", + "raw": "{{baseUrl}}/notary/notifications/:uid", "host": [ - "{{baseUrl}}notary" + "{{baseUrl}}" ], "path": [ + "notary", "notifications", ":uid" ], @@ -5576,11 +5707,12 @@ } }, "url": { - "raw": "{{baseUrl}}notary/notifications/:uid", + "raw": "{{baseUrl}}/notary/notifications/:uid", "host": [ - "{{baseUrl}}notary" + "{{baseUrl}}" ], "path": [ + "notary", "notifications", ":uid" ], @@ -5621,11 +5753,12 @@ } ], "url": { - "raw": "{{baseUrl}}notary/notifications/:uid?uid=", + "raw": "{{baseUrl}}/notary/notifications/:uid?uid=", "host": [ - "{{baseUrl}}notary" + "{{baseUrl}}" ], "path": [ + "notary", "notifications", ":uid" ], @@ -5661,11 +5794,12 @@ } ], "url": { - "raw": "{{baseUrl}}notary/notifications/:uid?uid=", + "raw": "{{baseUrl}}/notary/notifications/:uid?uid=", "host": [ - "{{baseUrl}}notary" + "{{baseUrl}}" ], "path": [ + "notary", "notifications", ":uid" ], @@ -5707,11 +5841,12 @@ } ], "url": { - "raw": "{{baseUrl}}notary/notifications/:uid?uid=", + "raw": "{{baseUrl}}/notary/notifications/:uid?uid=", "host": [ - "{{baseUrl}}notary" + "{{baseUrl}}" ], "path": [ + "notary", "notifications", ":uid" ], @@ -5761,11 +5896,12 @@ } ], "url": { - "raw": "{{baseUrl}}notary/notifications", + "raw": "{{baseUrl}}/notary/notifications", "host": [ - "{{baseUrl}}notary" + "{{baseUrl}}" ], "path": [ + "notary", "notifications" ] } @@ -5787,11 +5923,12 @@ } ], "url": { - "raw": "{{baseUrl}}notary/notifications", + "raw": "{{baseUrl}}/notary/notifications", "host": [ - "{{baseUrl}}notary" + "{{baseUrl}}" ], "path": [ + "notary", "notifications" ] } @@ -5820,11 +5957,12 @@ } ], "url": { - "raw": "{{baseUrl}}notary/notifications", + "raw": "{{baseUrl}}/notary/notifications", "host": [ - "{{baseUrl}}notary" + "{{baseUrl}}" ], "path": [ + "notary", "notifications" ] } @@ -5867,11 +6005,12 @@ } ], "url": { - "raw": "{{baseUrl}}notary/users/:uid?uid=", + "raw": "{{baseUrl}}/notary/users/:uid?uid=", "host": [ - "{{baseUrl}}notary" + "{{baseUrl}}" ], "path": [ + "notary", "users", ":uid" ], @@ -5906,11 +6045,12 @@ } ], "url": { - "raw": "{{baseUrl}}notary/users/:uid?uid=", + "raw": "{{baseUrl}}/notary/users/:uid?uid=", "host": [ - "{{baseUrl}}notary" + "{{baseUrl}}" ], "path": [ + "notary", "users", ":uid" ], @@ -5938,7 +6078,7 @@ } ], "cookie": [], - "body": "[\n {\n \"value\": \"reference #/components/schemas/User not found in the OpenAPI spec\"\n },\n {\n \"value\": \"reference #/components/schemas/User not found in the OpenAPI spec\"\n }\n]" + "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", @@ -5952,11 +6092,12 @@ } ], "url": { - "raw": "{{baseUrl}}notary/users/:uid?uid=", + "raw": "{{baseUrl}}/notary/users/:uid?uid=", "host": [ - "{{baseUrl}}notary" + "{{baseUrl}}" ], "path": [ + "notary", "users", ":uid" ], @@ -6006,11 +6147,12 @@ } ], "url": { - "raw": "{{baseUrl}}notary/users", + "raw": "{{baseUrl}}/notary/users", "host": [ - "{{baseUrl}}notary" + "{{baseUrl}}" ], "path": [ + "notary", "users" ] } @@ -6032,11 +6174,12 @@ } ], "url": { - "raw": "{{baseUrl}}notary/users", + "raw": "{{baseUrl}}/notary/users", "host": [ - "{{baseUrl}}notary" + "{{baseUrl}}" ], "path": [ + "notary", "users" ] } @@ -6051,7 +6194,7 @@ } ], "cookie": [], - "body": "[\n {\n \"value\": \"reference #/components/schemas/User not found in the OpenAPI spec\"\n },\n {\n \"value\": \"reference #/components/schemas/User not found in the OpenAPI spec\"\n }\n]" + "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", @@ -6065,11 +6208,12 @@ } ], "url": { - "raw": "{{baseUrl}}notary/users", + "raw": "{{baseUrl}}/notary/users", "host": [ - "{{baseUrl}}notary" + "{{baseUrl}}" ], "path": [ + "notary", "users" ] } @@ -6088,7 +6232,7 @@ ] }, { - "name": "customers", + "name": "customer", "item": [ { "name": "documents", @@ -6117,11 +6261,12 @@ } ], "url": { - "raw": "{{baseUrl}}customers/documents/:uid", + "raw": "{{baseUrl}}/customer/documents/:uid", "host": [ - "{{baseUrl}}customers" + "{{baseUrl}}" ], "path": [ + "customer", "documents", ":uid" ], @@ -6152,11 +6297,12 @@ } ], "url": { - "raw": "{{baseUrl}}customers/documents/:uid", + "raw": "{{baseUrl}}/customer/documents/:uid", "host": [ - "{{baseUrl}}customers" + "{{baseUrl}}" ], "path": [ + "customer", "documents", ":uid" ], @@ -6191,11 +6337,12 @@ } ], "url": { - "raw": "{{baseUrl}}customers/documents/:uid", + "raw": "{{baseUrl}}/customer/documents/:uid", "host": [ - "{{baseUrl}}customers" + "{{baseUrl}}" ], "path": [ + "customer", "documents", ":uid" ], @@ -6238,11 +6385,12 @@ } ], "url": { - "raw": "{{baseUrl}}customers/documents", + "raw": "{{baseUrl}}/customer/documents", "host": [ - "{{baseUrl}}customers" + "{{baseUrl}}" ], "path": [ + "customer", "documents" ] } @@ -6264,11 +6412,12 @@ } ], "url": { - "raw": "{{baseUrl}}customers/documents", + "raw": "{{baseUrl}}/customer/documents", "host": [ - "{{baseUrl}}customers" + "{{baseUrl}}" ], "path": [ + "customer", "documents" ] } @@ -6297,11 +6446,12 @@ } ], "url": { - "raw": "{{baseUrl}}customers/documents", + "raw": "{{baseUrl}}/customer/documents", "host": [ - "{{baseUrl}}customers" + "{{baseUrl}}" ], "path": [ + "customer", "documents" ] } @@ -6350,11 +6500,12 @@ } }, "url": { - "raw": "{{baseUrl}}customers/documents", + "raw": "{{baseUrl}}/customer/documents", "host": [ - "{{baseUrl}}customers" + "{{baseUrl}}" ], "path": [ + "customer", "documents" ] } @@ -6390,11 +6541,12 @@ } }, "url": { - "raw": "{{baseUrl}}customers/documents", + "raw": "{{baseUrl}}/customer/documents", "host": [ - "{{baseUrl}}customers" + "{{baseUrl}}" ], "path": [ + "customer", "documents" ] } @@ -6437,11 +6589,12 @@ } }, "url": { - "raw": "{{baseUrl}}customers/documents", + "raw": "{{baseUrl}}/customer/documents", "host": [ - "{{baseUrl}}customers" + "{{baseUrl}}" ], "path": [ + "customer", "documents" ] } @@ -6479,11 +6632,12 @@ "method": "GET", "header": [], "url": { - "raw": "{{baseUrl}}customers/files/:uid", + "raw": "{{baseUrl}}/customer/files/:uid", "host": [ - "{{baseUrl}}customers" + "{{baseUrl}}" ], "path": [ + "customer", "files", ":uid" ], @@ -6510,11 +6664,12 @@ } ], "url": { - "raw": "{{baseUrl}}customers/files/:uid", + "raw": "{{baseUrl}}/customer/files/:uid", "host": [ - "{{baseUrl}}customers" + "{{baseUrl}}" ], "path": [ + "customer", "files", ":uid" ], @@ -6544,11 +6699,12 @@ } ], "url": { - "raw": "{{baseUrl}}customers/files/:uid", + "raw": "{{baseUrl}}/customer/files/:uid", "host": [ - "{{baseUrl}}customers" + "{{baseUrl}}" ], "path": [ + "customer", "files", ":uid" ], @@ -6590,7 +6746,7 @@ ], "body": { "mode": "raw", - "raw": "{\n \"value\": \"reference #/components/schemas/File not found in the OpenAPI spec\"\n}", + "raw": "{\n \"uid\": \"\",\n \"name\": \"\",\n \"path\": \"\",\n \"size\": \"\",\n \"mime_type\": \"\",\n \"createdAt\": \"\",\n \"updatedAt\": \"\"\n}", "options": { "raw": { "headerFamily": "json", @@ -6599,11 +6755,12 @@ } }, "url": { - "raw": "{{baseUrl}}customers/files/:uid", + "raw": "{{baseUrl}}/customer/files/:uid", "host": [ - "{{baseUrl}}customers" + "{{baseUrl}}" ], "path": [ + "customer", "files", ":uid" ], @@ -6635,7 +6792,7 @@ ], "body": { "mode": "raw", - "raw": "{\n \"value\": \"reference #/components/schemas/File not found in the OpenAPI spec\"\n}", + "raw": "{\n \"uid\": \"\",\n \"name\": \"\",\n \"path\": \"\",\n \"size\": \"\",\n \"mime_type\": \"\",\n \"createdAt\": \"\",\n \"updatedAt\": \"\"\n}", "options": { "raw": { "headerFamily": "json", @@ -6644,11 +6801,12 @@ } }, "url": { - "raw": "{{baseUrl}}customers/files/:uid", + "raw": "{{baseUrl}}/customer/files/:uid", "host": [ - "{{baseUrl}}customers" + "{{baseUrl}}" ], "path": [ + "customer", "files", ":uid" ], @@ -6683,7 +6841,7 @@ ], "body": { "mode": "raw", - "raw": "{\n \"value\": \"reference #/components/schemas/File not found in the OpenAPI spec\"\n}", + "raw": "{\n \"uid\": \"\",\n \"name\": \"\",\n \"path\": \"\",\n \"size\": \"\",\n \"mime_type\": \"\",\n \"createdAt\": \"\",\n \"updatedAt\": \"\"\n}", "options": { "raw": { "headerFamily": "json", @@ -6692,11 +6850,12 @@ } }, "url": { - "raw": "{{baseUrl}}customers/files/:uid", + "raw": "{{baseUrl}}/customer/files/:uid", "host": [ - "{{baseUrl}}customers" + "{{baseUrl}}" ], "path": [ + "customer", "files", ":uid" ], @@ -6732,11 +6891,12 @@ "method": "DELETE", "header": [], "url": { - "raw": "{{baseUrl}}customers/files/:uid", + "raw": "{{baseUrl}}/customer/files/:uid", "host": [ - "{{baseUrl}}customers" + "{{baseUrl}}" ], "path": [ + "customer", "files", ":uid" ], @@ -6763,11 +6923,12 @@ } ], "url": { - "raw": "{{baseUrl}}customers/files/:uid", + "raw": "{{baseUrl}}/customer/files/:uid", "host": [ - "{{baseUrl}}customers" + "{{baseUrl}}" ], "path": [ + "customer", "files", ":uid" ], @@ -6797,11 +6958,12 @@ } ], "url": { - "raw": "{{baseUrl}}customers/files/:uid", + "raw": "{{baseUrl}}/customer/files/:uid", "host": [ - "{{baseUrl}}customers" + "{{baseUrl}}" ], "path": [ + "customer", "files", ":uid" ], @@ -6839,11 +7001,12 @@ "method": "GET", "header": [], "url": { - "raw": "{{baseUrl}}customers/files", + "raw": "{{baseUrl}}/customer/files", "host": [ - "{{baseUrl}}customers" + "{{baseUrl}}" ], "path": [ + "customer", "files" ] } @@ -6861,11 +7024,12 @@ } ], "url": { - "raw": "{{baseUrl}}customers/files", + "raw": "{{baseUrl}}/customer/files", "host": [ - "{{baseUrl}}customers" + "{{baseUrl}}" ], "path": [ + "customer", "files" ] } @@ -6889,11 +7053,12 @@ } ], "url": { - "raw": "{{baseUrl}}customers/files", + "raw": "{{baseUrl}}/customer/files", "host": [ - "{{baseUrl}}customers" + "{{baseUrl}}" ], "path": [ + "customer", "files" ] } @@ -6924,26 +7089,34 @@ "header": [ { "key": "Content-Type", - "value": "application/json" + "value": "multipart/form-data" } ], "body": { - "mode": "raw", - "raw": "{\n \"value\": \"reference #/components/schemas/File not found in the OpenAPI spec\"\n}", - "options": { - "raw": { - "headerFamily": "json", - "language": "json" + "mode": "formdata", + "formdata": [ + { + "key": "file", + "value": "", + "type": "text" } - } + ] }, "url": { - "raw": "{{baseUrl}}customers/files", + "raw": "{{baseUrl}}/customer/files", "host": [ - "{{baseUrl}}customers" + "{{baseUrl}}" ], "path": [ + "customer", "files" + ], + "variable": [ + { + "key": "q", + "value": "document,[object Object]", + "description": "(Required) requested document object" + } ] } }, @@ -6955,7 +7128,7 @@ "header": [ { "key": "Content-Type", - "value": "application/json" + "value": "multipart/form-data" }, { "description": "Added as a part of security scheme: bearer", @@ -6964,21 +7137,22 @@ } ], "body": { - "mode": "raw", - "raw": "{\n \"value\": \"reference #/components/schemas/File not found in the OpenAPI spec\"\n}", - "options": { - "raw": { - "headerFamily": "json", - "language": "json" + "mode": "formdata", + "formdata": [ + { + "key": "file", + "value": "", + "type": "text" } - } + ] }, "url": { - "raw": "{{baseUrl}}customers/files", + "raw": "{{baseUrl}}/customer/files", "host": [ - "{{baseUrl}}customers" + "{{baseUrl}}" ], "path": [ + "customer", "files" ] } @@ -6997,7 +7171,7 @@ "header": [ { "key": "Content-Type", - "value": "application/json" + "value": "multipart/form-data" }, { "description": "Added as a part of security scheme: bearer", @@ -7006,21 +7180,22 @@ } ], "body": { - "mode": "raw", - "raw": "{\n \"value\": \"reference #/components/schemas/File not found in the OpenAPI spec\"\n}", - "options": { - "raw": { - "headerFamily": "json", - "language": "json" + "mode": "formdata", + "formdata": [ + { + "key": "file", + "value": "", + "type": "text" } - } + ] }, "url": { - "raw": "{{baseUrl}}customers/files", + "raw": "{{baseUrl}}/customer/files", "host": [ - "{{baseUrl}}customers" + "{{baseUrl}}" ], "path": [ + "customer", "files" ] } @@ -7058,11 +7233,12 @@ "method": "GET", "header": [], "url": { - "raw": "{{baseUrl}}customers/folders/:uid", + "raw": "{{baseUrl}}/customer/folders/:uid", "host": [ - "{{baseUrl}}customers" + "{{baseUrl}}" ], "path": [ + "customer", "folders", ":uid" ], @@ -7089,11 +7265,12 @@ } ], "url": { - "raw": "{{baseUrl}}customers/folders/:uid", + "raw": "{{baseUrl}}/customer/folders/:uid", "host": [ - "{{baseUrl}}customers" + "{{baseUrl}}" ], "path": [ + "customer", "folders", ":uid" ], @@ -7123,11 +7300,12 @@ } ], "url": { - "raw": "{{baseUrl}}customers/folders/:uid", + "raw": "{{baseUrl}}/customer/folders/:uid", "host": [ - "{{baseUrl}}customers" + "{{baseUrl}}" ], "path": [ + "customer", "folders", ":uid" ], @@ -7170,11 +7348,12 @@ } ], "url": { - "raw": "{{baseUrl}}customers/folders", + "raw": "{{baseUrl}}/customer/folders", "host": [ - "{{baseUrl}}customers" + "{{baseUrl}}" ], "path": [ + "customer", "folders" ] } @@ -7196,11 +7375,12 @@ } ], "url": { - "raw": "{{baseUrl}}customers/folders", + "raw": "{{baseUrl}}/customer/folders", "host": [ - "{{baseUrl}}customers" + "{{baseUrl}}" ], "path": [ + "customer", "folders" ] } @@ -7215,7 +7395,7 @@ } ], "cookie": [], - "body": "[\n {\n \"value\": \"reference #/components/schemas/Folder not found in the OpenAPI spec\"\n },\n {\n \"value\": \"reference #/components/schemas/Folder not found in the OpenAPI spec\"\n }\n]" + "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", @@ -7229,11 +7409,12 @@ } ], "url": { - "raw": "{{baseUrl}}customers/folders", + "raw": "{{baseUrl}}/customer/folders", "host": [ - "{{baseUrl}}customers" + "{{baseUrl}}" ], "path": [ + "customer", "folders" ] } @@ -7281,11 +7462,12 @@ } ], "url": { - "raw": "{{baseUrl}}admin/customers/:uid", + "raw": "{{baseUrl}}/admin/customers/:uid", "host": [ - "{{baseUrl}}admin" + "{{baseUrl}}" ], "path": [ + "admin", "customers", ":uid" ], @@ -7316,11 +7498,12 @@ } ], "url": { - "raw": "{{baseUrl}}admin/customers/:uid", + "raw": "{{baseUrl}}/admin/customers/:uid", "host": [ - "{{baseUrl}}admin" + "{{baseUrl}}" ], "path": [ + "admin", "customers", ":uid" ], @@ -7355,11 +7538,12 @@ } ], "url": { - "raw": "{{baseUrl}}admin/customers/:uid", + "raw": "{{baseUrl}}/admin/customers/:uid", "host": [ - "{{baseUrl}}admin" + "{{baseUrl}}" ], "path": [ + "admin", "customers", ":uid" ], @@ -7414,11 +7598,12 @@ } }, "url": { - "raw": "{{baseUrl}}admin/customers/:uid", + "raw": "{{baseUrl}}/admin/customers/:uid", "host": [ - "{{baseUrl}}admin" + "{{baseUrl}}" ], "path": [ + "admin", "customers", ":uid" ], @@ -7463,11 +7648,12 @@ } }, "url": { - "raw": "{{baseUrl}}admin/customers/:uid", + "raw": "{{baseUrl}}/admin/customers/:uid", "host": [ - "{{baseUrl}}admin" + "{{baseUrl}}" ], "path": [ + "admin", "customers", ":uid" ], @@ -7516,11 +7702,12 @@ } }, "url": { - "raw": "{{baseUrl}}admin/customers/:uid", + "raw": "{{baseUrl}}/admin/customers/:uid", "host": [ - "{{baseUrl}}admin" + "{{baseUrl}}" ], "path": [ + "admin", "customers", ":uid" ], @@ -7561,11 +7748,12 @@ } ], "url": { - "raw": "{{baseUrl}}admin/customers/:uid", + "raw": "{{baseUrl}}/admin/customers/:uid", "host": [ - "{{baseUrl}}admin" + "{{baseUrl}}" ], "path": [ + "admin", "customers", ":uid" ], @@ -7596,11 +7784,12 @@ } ], "url": { - "raw": "{{baseUrl}}admin/customers/:uid", + "raw": "{{baseUrl}}/admin/customers/:uid", "host": [ - "{{baseUrl}}admin" + "{{baseUrl}}" ], "path": [ + "admin", "customers", ":uid" ], @@ -7635,11 +7824,12 @@ } ], "url": { - "raw": "{{baseUrl}}admin/customers/:uid", + "raw": "{{baseUrl}}/admin/customers/:uid", "host": [ - "{{baseUrl}}admin" + "{{baseUrl}}" ], "path": [ + "admin", "customers", ":uid" ], @@ -7682,11 +7872,12 @@ } ], "url": { - "raw": "{{baseUrl}}admin/customers", + "raw": "{{baseUrl}}/admin/customers", "host": [ - "{{baseUrl}}admin" + "{{baseUrl}}" ], "path": [ + "admin", "customers" ] } @@ -7708,11 +7899,12 @@ } ], "url": { - "raw": "{{baseUrl}}admin/customers", + "raw": "{{baseUrl}}/admin/customers", "host": [ - "{{baseUrl}}admin" + "{{baseUrl}}" ], "path": [ + "admin", "customers" ] } @@ -7741,11 +7933,12 @@ } ], "url": { - "raw": "{{baseUrl}}admin/customers", + "raw": "{{baseUrl}}/admin/customers", "host": [ - "{{baseUrl}}admin" + "{{baseUrl}}" ], "path": [ + "admin", "customers" ] } @@ -7794,11 +7987,12 @@ } }, "url": { - "raw": "{{baseUrl}}admin/customers", + "raw": "{{baseUrl}}/admin/customers", "host": [ - "{{baseUrl}}admin" + "{{baseUrl}}" ], "path": [ + "admin", "customers" ] } @@ -7834,11 +8028,12 @@ } }, "url": { - "raw": "{{baseUrl}}admin/customers", + "raw": "{{baseUrl}}/admin/customers", "host": [ - "{{baseUrl}}admin" + "{{baseUrl}}" ], "path": [ + "admin", "customers" ] } @@ -7881,11 +8076,12 @@ } }, "url": { - "raw": "{{baseUrl}}admin/customers", + "raw": "{{baseUrl}}/admin/customers", "host": [ - "{{baseUrl}}admin" + "{{baseUrl}}" ], "path": [ + "admin", "customers" ] } @@ -7928,11 +8124,12 @@ } ], "url": { - "raw": "{{baseUrl}}admin/deeds/:uid", + "raw": "{{baseUrl}}/admin/deeds/:uid", "host": [ - "{{baseUrl}}admin" + "{{baseUrl}}" ], "path": [ + "admin", "deeds", ":uid" ], @@ -7963,11 +8160,12 @@ } ], "url": { - "raw": "{{baseUrl}}admin/deeds/:uid", + "raw": "{{baseUrl}}/admin/deeds/:uid", "host": [ - "{{baseUrl}}admin" + "{{baseUrl}}" ], "path": [ + "admin", "deeds", ":uid" ], @@ -7988,7 +8186,7 @@ } ], "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 \"createdAt\": \"\",\n \"updatedAt\": \"\"\n}" + "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", @@ -8002,11 +8200,12 @@ } ], "url": { - "raw": "{{baseUrl}}admin/deeds/:uid", + "raw": "{{baseUrl}}/admin/deeds/:uid", "host": [ - "{{baseUrl}}admin" + "{{baseUrl}}" ], "path": [ + "admin", "deeds", ":uid" ], @@ -8052,7 +8251,7 @@ ], "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 \"createdAt\": \"\",\n \"updatedAt\": \"\"\n}", + "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", @@ -8061,11 +8260,12 @@ } }, "url": { - "raw": "{{baseUrl}}admin/deeds/:uid", + "raw": "{{baseUrl}}/admin/deeds/:uid", "host": [ - "{{baseUrl}}admin" + "{{baseUrl}}" ], "path": [ + "admin", "deeds", ":uid" ], @@ -8101,7 +8301,7 @@ ], "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 \"createdAt\": \"\",\n \"updatedAt\": \"\"\n}", + "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", @@ -8110,11 +8310,12 @@ } }, "url": { - "raw": "{{baseUrl}}admin/deeds/:uid", + "raw": "{{baseUrl}}/admin/deeds/:uid", "host": [ - "{{baseUrl}}admin" + "{{baseUrl}}" ], "path": [ + "admin", "deeds", ":uid" ], @@ -8135,7 +8336,7 @@ } ], "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 \"createdAt\": \"\",\n \"updatedAt\": \"\"\n}" + "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", @@ -8154,7 +8355,7 @@ ], "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 \"createdAt\": \"\",\n \"updatedAt\": \"\"\n}", + "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", @@ -8163,11 +8364,12 @@ } }, "url": { - "raw": "{{baseUrl}}admin/deeds/:uid", + "raw": "{{baseUrl}}/admin/deeds/:uid", "host": [ - "{{baseUrl}}admin" + "{{baseUrl}}" ], "path": [ + "admin", "deeds", ":uid" ], @@ -8213,7 +8415,7 @@ ], "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 \"createdAt\": \"\",\n \"updatedAt\": \"\"\n}", + "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", @@ -8222,11 +8424,12 @@ } }, "url": { - "raw": "{{baseUrl}}admin/deeds/:uid", + "raw": "{{baseUrl}}/admin/deeds/:uid", "host": [ - "{{baseUrl}}admin" + "{{baseUrl}}" ], "path": [ + "admin", "deeds", ":uid" ], @@ -8262,7 +8465,7 @@ ], "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 \"createdAt\": \"\",\n \"updatedAt\": \"\"\n}", + "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", @@ -8271,11 +8474,12 @@ } }, "url": { - "raw": "{{baseUrl}}admin/deeds/:uid", + "raw": "{{baseUrl}}/admin/deeds/:uid", "host": [ - "{{baseUrl}}admin" + "{{baseUrl}}" ], "path": [ + "admin", "deeds", ":uid" ], @@ -8296,7 +8500,7 @@ } ], "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 \"createdAt\": \"\",\n \"updatedAt\": \"\"\n}" + "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", @@ -8315,7 +8519,7 @@ ], "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 \"createdAt\": \"\",\n \"updatedAt\": \"\"\n}", + "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", @@ -8324,11 +8528,12 @@ } }, "url": { - "raw": "{{baseUrl}}admin/deeds/:uid", + "raw": "{{baseUrl}}/admin/deeds/:uid", "host": [ - "{{baseUrl}}admin" + "{{baseUrl}}" ], "path": [ + "admin", "deeds", ":uid" ], @@ -8371,11 +8576,12 @@ } ], "url": { - "raw": "{{baseUrl}}admin/deeds", + "raw": "{{baseUrl}}/admin/deeds", "host": [ - "{{baseUrl}}admin" + "{{baseUrl}}" ], "path": [ + "admin", "deeds" ] } @@ -8397,11 +8603,12 @@ } ], "url": { - "raw": "{{baseUrl}}admin/deeds", + "raw": "{{baseUrl}}/admin/deeds", "host": [ - "{{baseUrl}}admin" + "{{baseUrl}}" ], "path": [ + "admin", "deeds" ] } @@ -8416,7 +8623,7 @@ } ], "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 \"createdAt\": \"\",\n \"updatedAt\": \"\"\n}" + "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", @@ -8430,11 +8637,12 @@ } ], "url": { - "raw": "{{baseUrl}}admin/deeds", + "raw": "{{baseUrl}}/admin/deeds", "host": [ - "{{baseUrl}}admin" + "{{baseUrl}}" ], "path": [ + "admin", "deeds" ] } @@ -8474,7 +8682,7 @@ ], "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 \"createdAt\": \"\",\n \"updatedAt\": \"\"\n}", + "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", @@ -8483,11 +8691,12 @@ } }, "url": { - "raw": "{{baseUrl}}admin/deeds", + "raw": "{{baseUrl}}/admin/deeds", "host": [ - "{{baseUrl}}admin" + "{{baseUrl}}" ], "path": [ + "admin", "deeds" ] } @@ -8514,7 +8723,7 @@ ], "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 \"createdAt\": \"\",\n \"updatedAt\": \"\"\n}", + "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", @@ -8523,11 +8732,12 @@ } }, "url": { - "raw": "{{baseUrl}}admin/deeds", + "raw": "{{baseUrl}}/admin/deeds", "host": [ - "{{baseUrl}}admin" + "{{baseUrl}}" ], "path": [ + "admin", "deeds" ] } @@ -8542,7 +8752,7 @@ } ], "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 \"createdAt\": \"\",\n \"updatedAt\": \"\"\n}" + "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", @@ -8561,7 +8771,7 @@ ], "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 \"createdAt\": \"\",\n \"updatedAt\": \"\"\n}", + "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", @@ -8570,11 +8780,12 @@ } }, "url": { - "raw": "{{baseUrl}}admin/deeds", + "raw": "{{baseUrl}}/admin/deeds", "host": [ - "{{baseUrl}}admin" + "{{baseUrl}}" ], "path": [ + "admin", "deeds" ] } @@ -8617,11 +8828,12 @@ } ], "url": { - "raw": "{{baseUrl}}admin/deed-types/:uid", + "raw": "{{baseUrl}}/admin/deed-types/:uid", "host": [ - "{{baseUrl}}admin" + "{{baseUrl}}" ], "path": [ + "admin", "deed-types", ":uid" ], @@ -8652,11 +8864,12 @@ } ], "url": { - "raw": "{{baseUrl}}admin/deed-types/:uid", + "raw": "{{baseUrl}}/admin/deed-types/:uid", "host": [ - "{{baseUrl}}admin" + "{{baseUrl}}" ], "path": [ + "admin", "deed-types", ":uid" ], @@ -8677,7 +8890,7 @@ } ], "cookie": [], - "body": "{\n \"value\": \"reference #/components/schemas/DeedType not found in the OpenAPI spec\"\n}" + "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", @@ -8691,11 +8904,12 @@ } ], "url": { - "raw": "{{baseUrl}}admin/deed-types/:uid", + "raw": "{{baseUrl}}/admin/deed-types/:uid", "host": [ - "{{baseUrl}}admin" + "{{baseUrl}}" ], "path": [ + "admin", "deed-types", ":uid" ], @@ -8741,7 +8955,7 @@ ], "body": { "mode": "raw", - "raw": "{\n \"value\": \"reference #/components/schemas/DeedType not found in the OpenAPI spec\"\n}", + "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", @@ -8750,11 +8964,12 @@ } }, "url": { - "raw": "{{baseUrl}}admin/deed-types/:uid", + "raw": "{{baseUrl}}/admin/deed-types/:uid", "host": [ - "{{baseUrl}}admin" + "{{baseUrl}}" ], "path": [ + "admin", "deed-types", ":uid" ], @@ -8790,7 +9005,7 @@ ], "body": { "mode": "raw", - "raw": "{\n \"value\": \"reference #/components/schemas/DeedType not found in the OpenAPI spec\"\n}", + "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", @@ -8799,11 +9014,12 @@ } }, "url": { - "raw": "{{baseUrl}}admin/deed-types/:uid", + "raw": "{{baseUrl}}/admin/deed-types/:uid", "host": [ - "{{baseUrl}}admin" + "{{baseUrl}}" ], "path": [ + "admin", "deed-types", ":uid" ], @@ -8824,7 +9040,7 @@ } ], "cookie": [], - "body": "{\n \"value\": \"reference #/components/schemas/DeedType not found in the OpenAPI spec\"\n}" + "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", @@ -8843,7 +9059,7 @@ ], "body": { "mode": "raw", - "raw": "{\n \"value\": \"reference #/components/schemas/DeedType not found in the OpenAPI spec\"\n}", + "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", @@ -8852,11 +9068,12 @@ } }, "url": { - "raw": "{{baseUrl}}admin/deed-types/:uid", + "raw": "{{baseUrl}}/admin/deed-types/:uid", "host": [ - "{{baseUrl}}admin" + "{{baseUrl}}" ], "path": [ + "admin", "deed-types", ":uid" ], @@ -8899,11 +9116,12 @@ } ], "url": { - "raw": "{{baseUrl}}admin/deed-types", + "raw": "{{baseUrl}}/admin/deed-types", "host": [ - "{{baseUrl}}admin" + "{{baseUrl}}" ], "path": [ + "admin", "deed-types" ] } @@ -8925,11 +9143,12 @@ } ], "url": { - "raw": "{{baseUrl}}admin/deed-types", + "raw": "{{baseUrl}}/admin/deed-types", "host": [ - "{{baseUrl}}admin" + "{{baseUrl}}" ], "path": [ + "admin", "deed-types" ] } @@ -8944,7 +9163,7 @@ } ], "cookie": [], - "body": "{\n \"value\": \"reference #/components/schemas/DeedType not found in the OpenAPI spec\"\n}" + "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", @@ -8958,11 +9177,12 @@ } ], "url": { - "raw": "{{baseUrl}}admin/deed-types", + "raw": "{{baseUrl}}/admin/deed-types", "host": [ - "{{baseUrl}}admin" + "{{baseUrl}}" ], "path": [ + "admin", "deed-types" ] } @@ -9002,7 +9222,7 @@ ], "body": { "mode": "raw", - "raw": "{\n \"value\": \"reference #/components/schemas/DeedType not found in the OpenAPI spec\"\n}", + "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", @@ -9011,11 +9231,12 @@ } }, "url": { - "raw": "{{baseUrl}}admin/deed-types", + "raw": "{{baseUrl}}/admin/deed-types", "host": [ - "{{baseUrl}}admin" + "{{baseUrl}}" ], "path": [ + "admin", "deed-types" ] } @@ -9042,7 +9263,7 @@ ], "body": { "mode": "raw", - "raw": "{\n \"value\": \"reference #/components/schemas/DeedType not found in the OpenAPI spec\"\n}", + "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", @@ -9051,11 +9272,12 @@ } }, "url": { - "raw": "{{baseUrl}}admin/deed-types", + "raw": "{{baseUrl}}/admin/deed-types", "host": [ - "{{baseUrl}}admin" + "{{baseUrl}}" ], "path": [ + "admin", "deed-types" ] } @@ -9070,7 +9292,7 @@ } ], "cookie": [], - "body": "{\n \"value\": \"reference #/components/schemas/DeedType not found in the OpenAPI spec\"\n}" + "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", @@ -9089,7 +9311,7 @@ ], "body": { "mode": "raw", - "raw": "{\n \"value\": \"reference #/components/schemas/DeedType not found in the OpenAPI spec\"\n}", + "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", @@ -9098,11 +9320,12 @@ } }, "url": { - "raw": "{{baseUrl}}admin/deed-types", + "raw": "{{baseUrl}}/admin/deed-types", "host": [ - "{{baseUrl}}admin" + "{{baseUrl}}" ], "path": [ + "admin", "deed-types" ] } @@ -9145,11 +9368,12 @@ } ], "url": { - "raw": "{{baseUrl}}admin/documents/:uid", + "raw": "{{baseUrl}}/admin/documents/:uid", "host": [ - "{{baseUrl}}admin" + "{{baseUrl}}" ], "path": [ + "admin", "documents", ":uid" ], @@ -9180,11 +9404,12 @@ } ], "url": { - "raw": "{{baseUrl}}admin/documents/:uid", + "raw": "{{baseUrl}}/admin/documents/:uid", "host": [ - "{{baseUrl}}admin" + "{{baseUrl}}" ], "path": [ + "admin", "documents", ":uid" ], @@ -9219,11 +9444,12 @@ } ], "url": { - "raw": "{{baseUrl}}admin/documents/:uid", + "raw": "{{baseUrl}}/admin/documents/:uid", "host": [ - "{{baseUrl}}admin" + "{{baseUrl}}" ], "path": [ + "admin", "documents", ":uid" ], @@ -9278,11 +9504,12 @@ } }, "url": { - "raw": "{{baseUrl}}admin/documents/:uid", + "raw": "{{baseUrl}}/admin/documents/:uid", "host": [ - "{{baseUrl}}admin" + "{{baseUrl}}" ], "path": [ + "admin", "documents", ":uid" ], @@ -9327,11 +9554,12 @@ } }, "url": { - "raw": "{{baseUrl}}admin/documents/:uid", + "raw": "{{baseUrl}}/admin/documents/:uid", "host": [ - "{{baseUrl}}admin" + "{{baseUrl}}" ], "path": [ + "admin", "documents", ":uid" ], @@ -9380,11 +9608,12 @@ } }, "url": { - "raw": "{{baseUrl}}admin/documents/:uid", + "raw": "{{baseUrl}}/admin/documents/:uid", "host": [ - "{{baseUrl}}admin" + "{{baseUrl}}" ], "path": [ + "admin", "documents", ":uid" ], @@ -9439,11 +9668,12 @@ } }, "url": { - "raw": "{{baseUrl}}admin/documents/:uid", + "raw": "{{baseUrl}}/admin/documents/:uid", "host": [ - "{{baseUrl}}admin" + "{{baseUrl}}" ], "path": [ + "admin", "documents", ":uid" ], @@ -9488,11 +9718,12 @@ } }, "url": { - "raw": "{{baseUrl}}admin/documents/:uid", + "raw": "{{baseUrl}}/admin/documents/:uid", "host": [ - "{{baseUrl}}admin" + "{{baseUrl}}" ], "path": [ + "admin", "documents", ":uid" ], @@ -9541,11 +9772,12 @@ } }, "url": { - "raw": "{{baseUrl}}admin/documents/:uid", + "raw": "{{baseUrl}}/admin/documents/:uid", "host": [ - "{{baseUrl}}admin" + "{{baseUrl}}" ], "path": [ + "admin", "documents", ":uid" ], @@ -9588,11 +9820,12 @@ } ], "url": { - "raw": "{{baseUrl}}admin/documents", + "raw": "{{baseUrl}}/admin/documents", "host": [ - "{{baseUrl}}admin" + "{{baseUrl}}" ], "path": [ + "admin", "documents" ] } @@ -9614,11 +9847,12 @@ } ], "url": { - "raw": "{{baseUrl}}admin/documents", + "raw": "{{baseUrl}}/admin/documents", "host": [ - "{{baseUrl}}admin" + "{{baseUrl}}" ], "path": [ + "admin", "documents" ] } @@ -9647,11 +9881,12 @@ } ], "url": { - "raw": "{{baseUrl}}admin/documents", + "raw": "{{baseUrl}}/admin/documents", "host": [ - "{{baseUrl}}admin" + "{{baseUrl}}" ], "path": [ + "admin", "documents" ] } @@ -9700,11 +9935,12 @@ } }, "url": { - "raw": "{{baseUrl}}admin/documents", + "raw": "{{baseUrl}}/admin/documents", "host": [ - "{{baseUrl}}admin" + "{{baseUrl}}" ], "path": [ + "admin", "documents" ] } @@ -9740,11 +9976,12 @@ } }, "url": { - "raw": "{{baseUrl}}admin/documents", + "raw": "{{baseUrl}}/admin/documents", "host": [ - "{{baseUrl}}admin" + "{{baseUrl}}" ], "path": [ + "admin", "documents" ] } @@ -9787,11 +10024,12 @@ } }, "url": { - "raw": "{{baseUrl}}admin/documents", + "raw": "{{baseUrl}}/admin/documents", "host": [ - "{{baseUrl}}admin" + "{{baseUrl}}" ], "path": [ + "admin", "documents" ] } @@ -9834,11 +10072,12 @@ } ], "url": { - "raw": "{{baseUrl}}admin/document-types/:uid", + "raw": "{{baseUrl}}/admin/document-types/:uid", "host": [ - "{{baseUrl}}admin" + "{{baseUrl}}" ], "path": [ + "admin", "document-types", ":uid" ], @@ -9869,11 +10108,12 @@ } ], "url": { - "raw": "{{baseUrl}}admin/document-types/:uid", + "raw": "{{baseUrl}}/admin/document-types/:uid", "host": [ - "{{baseUrl}}admin" + "{{baseUrl}}" ], "path": [ + "admin", "document-types", ":uid" ], @@ -9908,11 +10148,12 @@ } ], "url": { - "raw": "{{baseUrl}}admin/document-types/:uid", + "raw": "{{baseUrl}}/admin/document-types/:uid", "host": [ - "{{baseUrl}}admin" + "{{baseUrl}}" ], "path": [ + "admin", "document-types", ":uid" ], @@ -9967,11 +10208,12 @@ } }, "url": { - "raw": "{{baseUrl}}admin/document-types/:uid", + "raw": "{{baseUrl}}/admin/document-types/:uid", "host": [ - "{{baseUrl}}admin" + "{{baseUrl}}" ], "path": [ + "admin", "document-types", ":uid" ], @@ -10016,11 +10258,12 @@ } }, "url": { - "raw": "{{baseUrl}}admin/document-types/:uid", + "raw": "{{baseUrl}}/admin/document-types/:uid", "host": [ - "{{baseUrl}}admin" + "{{baseUrl}}" ], "path": [ + "admin", "document-types", ":uid" ], @@ -10069,11 +10312,12 @@ } }, "url": { - "raw": "{{baseUrl}}admin/document-types/:uid", + "raw": "{{baseUrl}}/admin/document-types/:uid", "host": [ - "{{baseUrl}}admin" + "{{baseUrl}}" ], "path": [ + "admin", "document-types", ":uid" ], @@ -10114,11 +10358,12 @@ } ], "url": { - "raw": "{{baseUrl}}admin/document-types/:uid", + "raw": "{{baseUrl}}/admin/document-types/:uid", "host": [ - "{{baseUrl}}admin" + "{{baseUrl}}" ], "path": [ + "admin", "document-types", ":uid" ], @@ -10149,11 +10394,12 @@ } ], "url": { - "raw": "{{baseUrl}}admin/document-types/:uid", + "raw": "{{baseUrl}}/admin/document-types/:uid", "host": [ - "{{baseUrl}}admin" + "{{baseUrl}}" ], "path": [ + "admin", "document-types", ":uid" ], @@ -10188,11 +10434,12 @@ } ], "url": { - "raw": "{{baseUrl}}admin/document-types/:uid", + "raw": "{{baseUrl}}/admin/document-types/:uid", "host": [ - "{{baseUrl}}admin" + "{{baseUrl}}" ], "path": [ + "admin", "document-types", ":uid" ], @@ -10235,11 +10482,12 @@ } ], "url": { - "raw": "{{baseUrl}}admin/document-types", + "raw": "{{baseUrl}}/admin/document-types", "host": [ - "{{baseUrl}}admin" + "{{baseUrl}}" ], "path": [ + "admin", "document-types" ] } @@ -10261,11 +10509,12 @@ } ], "url": { - "raw": "{{baseUrl}}admin/document-types", + "raw": "{{baseUrl}}/admin/document-types", "host": [ - "{{baseUrl}}admin" + "{{baseUrl}}" ], "path": [ + "admin", "document-types" ] } @@ -10294,11 +10543,12 @@ } ], "url": { - "raw": "{{baseUrl}}admin/document-types", + "raw": "{{baseUrl}}/admin/document-types", "host": [ - "{{baseUrl}}admin" + "{{baseUrl}}" ], "path": [ + "admin", "document-types" ] } @@ -10347,11 +10597,12 @@ } }, "url": { - "raw": "{{baseUrl}}admin/document-types", + "raw": "{{baseUrl}}/admin/document-types", "host": [ - "{{baseUrl}}admin" + "{{baseUrl}}" ], "path": [ + "admin", "document-types" ] } @@ -10387,11 +10638,12 @@ } }, "url": { - "raw": "{{baseUrl}}admin/document-types", + "raw": "{{baseUrl}}/admin/document-types", "host": [ - "{{baseUrl}}admin" + "{{baseUrl}}" ], "path": [ + "admin", "document-types" ] } @@ -10434,11 +10686,12 @@ } }, "url": { - "raw": "{{baseUrl}}admin/document-types", + "raw": "{{baseUrl}}/admin/document-types", "host": [ - "{{baseUrl}}admin" + "{{baseUrl}}" ], "path": [ + "admin", "document-types" ] } @@ -10476,11 +10729,12 @@ "method": "GET", "header": [], "url": { - "raw": "{{baseUrl}}admin/files/:uid", + "raw": "{{baseUrl}}/admin/files/:uid", "host": [ - "{{baseUrl}}admin" + "{{baseUrl}}" ], "path": [ + "admin", "files", ":uid" ], @@ -10507,11 +10761,12 @@ } ], "url": { - "raw": "{{baseUrl}}admin/files/:uid", + "raw": "{{baseUrl}}/admin/files/:uid", "host": [ - "{{baseUrl}}admin" + "{{baseUrl}}" ], "path": [ + "admin", "files", ":uid" ], @@ -10541,11 +10796,12 @@ } ], "url": { - "raw": "{{baseUrl}}admin/files/:uid", + "raw": "{{baseUrl}}/admin/files/:uid", "host": [ - "{{baseUrl}}admin" + "{{baseUrl}}" ], "path": [ + "admin", "files", ":uid" ], @@ -10581,11 +10837,12 @@ "method": "DELETE", "header": [], "url": { - "raw": "{{baseUrl}}admin/files/:uid", + "raw": "{{baseUrl}}/admin/files/:uid", "host": [ - "{{baseUrl}}admin" + "{{baseUrl}}" ], "path": [ + "admin", "files", ":uid" ], @@ -10612,11 +10869,12 @@ } ], "url": { - "raw": "{{baseUrl}}admin/files/:uid", + "raw": "{{baseUrl}}/admin/files/:uid", "host": [ - "{{baseUrl}}admin" + "{{baseUrl}}" ], "path": [ + "admin", "files", ":uid" ], @@ -10646,11 +10904,12 @@ } ], "url": { - "raw": "{{baseUrl}}admin/files/:uid", + "raw": "{{baseUrl}}/admin/files/:uid", "host": [ - "{{baseUrl}}admin" + "{{baseUrl}}" ], "path": [ + "admin", "files", ":uid" ], @@ -10694,11 +10953,12 @@ "method": "GET", "header": [], "url": { - "raw": "{{baseUrl}}admin/files/download/:uid", + "raw": "{{baseUrl}}/admin/files/download/:uid", "host": [ - "{{baseUrl}}admin" + "{{baseUrl}}" ], "path": [ + "admin", "files", "download", ":uid" @@ -10726,11 +10986,12 @@ } ], "url": { - "raw": "{{baseUrl}}admin/files/download/:uid", + "raw": "{{baseUrl}}/admin/files/download/:uid", "host": [ - "{{baseUrl}}admin" + "{{baseUrl}}" ], "path": [ + "admin", "files", "download", ":uid" @@ -10761,11 +11022,12 @@ } ], "url": { - "raw": "{{baseUrl}}admin/files/download/:uid", + "raw": "{{baseUrl}}/admin/files/download/:uid", "host": [ - "{{baseUrl}}admin" + "{{baseUrl}}" ], "path": [ + "admin", "files", "download", ":uid" @@ -10806,11 +11068,12 @@ "method": "GET", "header": [], "url": { - "raw": "{{baseUrl}}admin/files", + "raw": "{{baseUrl}}/admin/files", "host": [ - "{{baseUrl}}admin" + "{{baseUrl}}" ], "path": [ + "admin", "files" ] } @@ -10828,11 +11091,12 @@ } ], "url": { - "raw": "{{baseUrl}}admin/files", + "raw": "{{baseUrl}}/admin/files", "host": [ - "{{baseUrl}}admin" + "{{baseUrl}}" ], "path": [ + "admin", "files" ] } @@ -10856,11 +11120,12 @@ } ], "url": { - "raw": "{{baseUrl}}admin/files", + "raw": "{{baseUrl}}/admin/files", "host": [ - "{{baseUrl}}admin" + "{{baseUrl}}" ], "path": [ + "admin", "files" ] } @@ -10898,11 +11163,12 @@ "method": "GET", "header": [], "url": { - "raw": "{{baseUrl}}admin/anchors/:uid", + "raw": "{{baseUrl}}/admin/anchors/:uid", "host": [ - "{{baseUrl}}admin" + "{{baseUrl}}" ], "path": [ + "admin", "anchors", ":uid" ], @@ -10929,11 +11195,12 @@ } ], "url": { - "raw": "{{baseUrl}}admin/anchors/:uid", + "raw": "{{baseUrl}}/admin/anchors/:uid", "host": [ - "{{baseUrl}}admin" + "{{baseUrl}}" ], "path": [ + "admin", "anchors", ":uid" ], @@ -10963,11 +11230,12 @@ } ], "url": { - "raw": "{{baseUrl}}admin/anchors/:uid", + "raw": "{{baseUrl}}/admin/anchors/:uid", "host": [ - "{{baseUrl}}admin" + "{{baseUrl}}" ], "path": [ + "admin", "anchors", ":uid" ], @@ -11018,11 +11286,12 @@ } }, "url": { - "raw": "{{baseUrl}}admin/anchors/:uid", + "raw": "{{baseUrl}}/admin/anchors/:uid", "host": [ - "{{baseUrl}}admin" + "{{baseUrl}}" ], "path": [ + "admin", "anchors", ":uid" ], @@ -11062,11 +11331,12 @@ } }, "url": { - "raw": "{{baseUrl}}admin/anchors/:uid", + "raw": "{{baseUrl}}/admin/anchors/:uid", "host": [ - "{{baseUrl}}admin" + "{{baseUrl}}" ], "path": [ + "admin", "anchors", ":uid" ], @@ -11110,11 +11380,12 @@ } }, "url": { - "raw": "{{baseUrl}}admin/anchors/:uid", + "raw": "{{baseUrl}}/admin/anchors/:uid", "host": [ - "{{baseUrl}}admin" + "{{baseUrl}}" ], "path": [ + "admin", "anchors", ":uid" ], @@ -11158,11 +11429,12 @@ "method": "GET", "header": [], "url": { - "raw": "{{baseUrl}}admin/anchors/download/:uid", + "raw": "{{baseUrl}}/admin/anchors/download/:uid", "host": [ - "{{baseUrl}}admin" + "{{baseUrl}}" ], "path": [ + "admin", "anchors", "download", ":uid" @@ -11190,11 +11462,12 @@ } ], "url": { - "raw": "{{baseUrl}}admin/anchors/download/:uid", + "raw": "{{baseUrl}}/admin/anchors/download/:uid", "host": [ - "{{baseUrl}}admin" + "{{baseUrl}}" ], "path": [ + "admin", "anchors", "download", ":uid" @@ -11225,11 +11498,12 @@ } ], "url": { - "raw": "{{baseUrl}}admin/anchors/download/:uid", + "raw": "{{baseUrl}}/admin/anchors/download/:uid", "host": [ - "{{baseUrl}}admin" + "{{baseUrl}}" ], "path": [ + "admin", "anchors", "download", ":uid" @@ -11270,11 +11544,12 @@ "method": "GET", "header": [], "url": { - "raw": "{{baseUrl}}admin/anchors", + "raw": "{{baseUrl}}/admin/anchors", "host": [ - "{{baseUrl}}admin" + "{{baseUrl}}" ], "path": [ + "admin", "anchors" ] } @@ -11292,11 +11567,12 @@ } ], "url": { - "raw": "{{baseUrl}}admin/anchors", + "raw": "{{baseUrl}}/admin/anchors", "host": [ - "{{baseUrl}}admin" + "{{baseUrl}}" ], "path": [ + "admin", "anchors" ] } @@ -11320,11 +11596,12 @@ } ], "url": { - "raw": "{{baseUrl}}admin/anchors", + "raw": "{{baseUrl}}/admin/anchors", "host": [ - "{{baseUrl}}admin" + "{{baseUrl}}" ], "path": [ + "admin", "anchors" ] } @@ -11368,7 +11645,7 @@ ], "body": { "mode": "raw", - "raw": "{\n \"value\": \"reference #/components/schemas/Folder not found in the OpenAPI spec\"\n}", + "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", @@ -11377,11 +11654,12 @@ } }, "url": { - "raw": "{{baseUrl}}admin/folders/:uid", + "raw": "{{baseUrl}}/admin/folders/:uid", "host": [ - "{{baseUrl}}admin" + "{{baseUrl}}" ], "path": [ + "admin", "folders", ":uid" ], @@ -11413,7 +11691,7 @@ ], "body": { "mode": "raw", - "raw": "{\n \"value\": \"reference #/components/schemas/Folder not found in the OpenAPI spec\"\n}", + "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", @@ -11422,11 +11700,12 @@ } }, "url": { - "raw": "{{baseUrl}}admin/folders/:uid", + "raw": "{{baseUrl}}/admin/folders/:uid", "host": [ - "{{baseUrl}}admin" + "{{baseUrl}}" ], "path": [ + "admin", "folders", ":uid" ], @@ -11461,7 +11740,7 @@ ], "body": { "mode": "raw", - "raw": "{\n \"value\": \"reference #/components/schemas/Folder not found in the OpenAPI spec\"\n}", + "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", @@ -11470,11 +11749,12 @@ } }, "url": { - "raw": "{{baseUrl}}admin/folders/:uid", + "raw": "{{baseUrl}}/admin/folders/:uid", "host": [ - "{{baseUrl}}admin" + "{{baseUrl}}" ], "path": [ + "admin", "folders", ":uid" ], @@ -11510,11 +11790,12 @@ "method": "DELETE", "header": [], "url": { - "raw": "{{baseUrl}}admin/folders/:uid", + "raw": "{{baseUrl}}/admin/folders/:uid", "host": [ - "{{baseUrl}}admin" + "{{baseUrl}}" ], "path": [ + "admin", "folders", ":uid" ], @@ -11541,11 +11822,12 @@ } ], "url": { - "raw": "{{baseUrl}}admin/folders/:uid", + "raw": "{{baseUrl}}/admin/folders/:uid", "host": [ - "{{baseUrl}}admin" + "{{baseUrl}}" ], "path": [ + "admin", "folders", ":uid" ], @@ -11575,11 +11857,12 @@ } ], "url": { - "raw": "{{baseUrl}}admin/folders/:uid", + "raw": "{{baseUrl}}/admin/folders/:uid", "host": [ - "{{baseUrl}}admin" + "{{baseUrl}}" ], "path": [ + "admin", "folders", ":uid" ], @@ -11620,11 +11903,12 @@ } ], "url": { - "raw": "{{baseUrl}}admin/folders/:uid?uid=", + "raw": "{{baseUrl}}/admin/folders/:uid?uid=", "host": [ - "{{baseUrl}}admin" + "{{baseUrl}}" ], "path": [ + "admin", "folders", ":uid" ], @@ -11660,11 +11944,12 @@ } ], "url": { - "raw": "{{baseUrl}}admin/folders/:uid?uid=", + "raw": "{{baseUrl}}/admin/folders/:uid?uid=", "host": [ - "{{baseUrl}}admin" + "{{baseUrl}}" ], "path": [ + "admin", "folders", ":uid" ], @@ -11692,7 +11977,7 @@ } ], "cookie": [], - "body": "[\n {\n \"value\": \"reference #/components/schemas/Folder not found in the OpenAPI spec\"\n },\n {\n \"value\": \"reference #/components/schemas/Folder not found in the OpenAPI spec\"\n }\n]" + "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", @@ -11706,11 +11991,12 @@ } ], "url": { - "raw": "{{baseUrl}}admin/folders/:uid?uid=", + "raw": "{{baseUrl}}/admin/folders/:uid?uid=", "host": [ - "{{baseUrl}}admin" + "{{baseUrl}}" ], "path": [ + "admin", "folders", ":uid" ], @@ -11755,11 +12041,12 @@ "method": "GET", "header": [], "url": { - "raw": "{{baseUrl}}admin/folders", + "raw": "{{baseUrl}}/admin/folders", "host": [ - "{{baseUrl}}admin" + "{{baseUrl}}" ], "path": [ + "admin", "folders" ] } @@ -11777,11 +12064,12 @@ } ], "url": { - "raw": "{{baseUrl}}admin/folders", + "raw": "{{baseUrl}}/admin/folders", "host": [ - "{{baseUrl}}admin" + "{{baseUrl}}" ], "path": [ + "admin", "folders" ] } @@ -11805,11 +12093,12 @@ } ], "url": { - "raw": "{{baseUrl}}admin/folders", + "raw": "{{baseUrl}}/admin/folders", "host": [ - "{{baseUrl}}admin" + "{{baseUrl}}" ], "path": [ + "admin", "folders" ] } @@ -11845,7 +12134,7 @@ ], "body": { "mode": "raw", - "raw": "{\n \"value\": \"reference #/components/schemas/Folder not found in the OpenAPI spec\"\n}", + "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", @@ -11854,11 +12143,12 @@ } }, "url": { - "raw": "{{baseUrl}}admin/folders", + "raw": "{{baseUrl}}/admin/folders", "host": [ - "{{baseUrl}}admin" + "{{baseUrl}}" ], "path": [ + "admin", "folders" ] } @@ -11881,7 +12171,7 @@ ], "body": { "mode": "raw", - "raw": "{\n \"value\": \"reference #/components/schemas/Folder not found in the OpenAPI spec\"\n}", + "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", @@ -11890,11 +12180,12 @@ } }, "url": { - "raw": "{{baseUrl}}admin/folders", + "raw": "{{baseUrl}}/admin/folders", "host": [ - "{{baseUrl}}admin" + "{{baseUrl}}" ], "path": [ + "admin", "folders" ] } @@ -11923,7 +12214,7 @@ ], "body": { "mode": "raw", - "raw": "{\n \"value\": \"reference #/components/schemas/Folder not found in the OpenAPI spec\"\n}", + "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", @@ -11932,11 +12223,12 @@ } }, "url": { - "raw": "{{baseUrl}}admin/folders", + "raw": "{{baseUrl}}/admin/folders", "host": [ - "{{baseUrl}}admin" + "{{baseUrl}}" ], "path": [ + "admin", "folders" ] } @@ -11979,11 +12271,12 @@ } ], "url": { - "raw": "{{baseUrl}}admin/office-roles/:uid?uid=", + "raw": "{{baseUrl}}/admin/office-roles/:uid?uid=", "host": [ - "{{baseUrl}}admin" + "{{baseUrl}}" ], "path": [ + "admin", "office-roles", ":uid" ], @@ -12019,11 +12312,12 @@ } ], "url": { - "raw": "{{baseUrl}}admin/office-roles/:uid?uid=", + "raw": "{{baseUrl}}/admin/office-roles/:uid?uid=", "host": [ - "{{baseUrl}}admin" + "{{baseUrl}}" ], "path": [ + "admin", "office-roles", ":uid" ], @@ -12051,7 +12345,7 @@ } ], "cookie": [], - "body": "[\n {\n \"value\": \"reference #/components/schemas/OfficeRole not found in the OpenAPI spec\"\n },\n {\n \"value\": \"reference #/components/schemas/OfficeRole not found in the OpenAPI spec\"\n }\n]" + "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", @@ -12065,11 +12359,12 @@ } ], "url": { - "raw": "{{baseUrl}}admin/office-roles/:uid?uid=", + "raw": "{{baseUrl}}/admin/office-roles/:uid?uid=", "host": [ - "{{baseUrl}}admin" + "{{baseUrl}}" ], "path": [ + "admin", "office-roles", ":uid" ], @@ -12122,7 +12417,7 @@ ], "body": { "mode": "raw", - "raw": "{\n \"value\": \"reference #/components/schemas/OfficeRole not found in the OpenAPI spec\"\n}", + "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", @@ -12131,11 +12426,12 @@ } }, "url": { - "raw": "{{baseUrl}}admin/office-roles/:uid?uid=", + "raw": "{{baseUrl}}/admin/office-roles/:uid?uid=", "host": [ - "{{baseUrl}}admin" + "{{baseUrl}}" ], "path": [ + "admin", "office-roles", ":uid" ], @@ -12176,7 +12472,7 @@ ], "body": { "mode": "raw", - "raw": "{\n \"value\": \"reference #/components/schemas/OfficeRole not found in the OpenAPI spec\"\n}", + "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", @@ -12185,11 +12481,12 @@ } }, "url": { - "raw": "{{baseUrl}}admin/office-roles/:uid?uid=", + "raw": "{{baseUrl}}/admin/office-roles/:uid?uid=", "host": [ - "{{baseUrl}}admin" + "{{baseUrl}}" ], "path": [ + "admin", "office-roles", ":uid" ], @@ -12217,7 +12514,7 @@ } ], "cookie": [], - "body": "[\n {\n \"value\": \"reference #/components/schemas/OfficeRole not found in the OpenAPI spec\"\n },\n {\n \"value\": \"reference #/components/schemas/OfficeRole not found in the OpenAPI spec\"\n }\n]" + "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", @@ -12236,7 +12533,7 @@ ], "body": { "mode": "raw", - "raw": "{\n \"value\": \"reference #/components/schemas/OfficeRole not found in the OpenAPI spec\"\n}", + "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", @@ -12245,11 +12542,12 @@ } }, "url": { - "raw": "{{baseUrl}}admin/office-roles/:uid?uid=", + "raw": "{{baseUrl}}/admin/office-roles/:uid?uid=", "host": [ - "{{baseUrl}}admin" + "{{baseUrl}}" ], "path": [ + "admin", "office-roles", ":uid" ], @@ -12299,11 +12597,12 @@ } ], "url": { - "raw": "{{baseUrl}}admin/office-roles", + "raw": "{{baseUrl}}/admin/office-roles", "host": [ - "{{baseUrl}}admin" + "{{baseUrl}}" ], "path": [ + "admin", "office-roles" ] } @@ -12325,11 +12624,12 @@ } ], "url": { - "raw": "{{baseUrl}}admin/office-roles", + "raw": "{{baseUrl}}/admin/office-roles", "host": [ - "{{baseUrl}}admin" + "{{baseUrl}}" ], "path": [ + "admin", "office-roles" ] } @@ -12344,7 +12644,7 @@ } ], "cookie": [], - "body": "[\n {\n \"value\": \"reference #/components/schemas/OfficeRole not found in the OpenAPI spec\"\n },\n {\n \"value\": \"reference #/components/schemas/OfficeRole not found in the OpenAPI spec\"\n }\n]" + "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", @@ -12358,11 +12658,12 @@ } ], "url": { - "raw": "{{baseUrl}}admin/office-roles", + "raw": "{{baseUrl}}/admin/office-roles", "host": [ - "{{baseUrl}}admin" + "{{baseUrl}}" ], "path": [ + "admin", "office-roles" ] } @@ -12402,7 +12703,7 @@ ], "body": { "mode": "raw", - "raw": "{\n \"value\": \"reference #/components/schemas/OfficeRole not found in the OpenAPI spec\"\n}", + "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", @@ -12411,11 +12712,12 @@ } }, "url": { - "raw": "{{baseUrl}}admin/office-roles", + "raw": "{{baseUrl}}/admin/office-roles", "host": [ - "{{baseUrl}}admin" + "{{baseUrl}}" ], "path": [ + "admin", "office-roles" ] } @@ -12442,7 +12744,7 @@ ], "body": { "mode": "raw", - "raw": "{\n \"value\": \"reference #/components/schemas/OfficeRole not found in the OpenAPI spec\"\n}", + "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", @@ -12451,11 +12753,12 @@ } }, "url": { - "raw": "{{baseUrl}}admin/office-roles", + "raw": "{{baseUrl}}/admin/office-roles", "host": [ - "{{baseUrl}}admin" + "{{baseUrl}}" ], "path": [ + "admin", "office-roles" ] } @@ -12470,7 +12773,7 @@ } ], "cookie": [], - "body": "[\n {\n \"value\": \"reference #/components/schemas/OfficeRole not found in the OpenAPI spec\"\n },\n {\n \"value\": \"reference #/components/schemas/OfficeRole not found in the OpenAPI spec\"\n }\n]" + "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", @@ -12489,7 +12792,7 @@ ], "body": { "mode": "raw", - "raw": "{\n \"value\": \"reference #/components/schemas/OfficeRole not found in the OpenAPI spec\"\n}", + "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", @@ -12498,11 +12801,12 @@ } }, "url": { - "raw": "{{baseUrl}}admin/office-roles", + "raw": "{{baseUrl}}/admin/office-roles", "host": [ - "{{baseUrl}}admin" + "{{baseUrl}}" ], "path": [ + "admin", "office-roles" ] } @@ -12545,11 +12849,12 @@ } ], "url": { - "raw": "{{baseUrl}}admin/offices/:uid?uid=", + "raw": "{{baseUrl}}/admin/offices/:uid?uid=", "host": [ - "{{baseUrl}}admin" + "{{baseUrl}}" ], "path": [ + "admin", "offices", ":uid" ], @@ -12585,11 +12890,12 @@ } ], "url": { - "raw": "{{baseUrl}}admin/offices/:uid?uid=", + "raw": "{{baseUrl}}/admin/offices/:uid?uid=", "host": [ - "{{baseUrl}}admin" + "{{baseUrl}}" ], "path": [ + "admin", "offices", ":uid" ], @@ -12617,7 +12923,7 @@ } ], "cookie": [], - "body": "[\n {\n \"value\": \"reference #/components/schemas/Office not found in the OpenAPI spec\"\n },\n {\n \"value\": \"reference #/components/schemas/Office not found in the OpenAPI spec\"\n }\n]" + "body": "[\n {\n \"uid\": \"\",\n \"name\": \"\"\n },\n {\n \"uid\": \"\",\n \"name\": \"\"\n }\n]" }, { "name": "Invalid status value", @@ -12631,11 +12937,12 @@ } ], "url": { - "raw": "{{baseUrl}}admin/offices/:uid?uid=", + "raw": "{{baseUrl}}/admin/offices/:uid?uid=", "host": [ - "{{baseUrl}}admin" + "{{baseUrl}}" ], "path": [ + "admin", "offices", ":uid" ], @@ -12685,11 +12992,12 @@ } ], "url": { - "raw": "{{baseUrl}}admin/offices", + "raw": "{{baseUrl}}/admin/offices", "host": [ - "{{baseUrl}}admin" + "{{baseUrl}}" ], "path": [ + "admin", "offices" ] } @@ -12711,11 +13019,12 @@ } ], "url": { - "raw": "{{baseUrl}}admin/offices", + "raw": "{{baseUrl}}/admin/offices", "host": [ - "{{baseUrl}}admin" + "{{baseUrl}}" ], "path": [ + "admin", "offices" ] } @@ -12730,7 +13039,7 @@ } ], "cookie": [], - "body": "[\n {\n \"value\": \"reference #/components/schemas/Office not found in the OpenAPI spec\"\n },\n {\n \"value\": \"reference #/components/schemas/Office not found in the OpenAPI spec\"\n }\n]" + "body": "[\n {\n \"uid\": \"\",\n \"name\": \"\"\n },\n {\n \"uid\": \"\",\n \"name\": \"\"\n }\n]" }, { "name": "Invalid status value", @@ -12744,11 +13053,12 @@ } ], "url": { - "raw": "{{baseUrl}}admin/offices", + "raw": "{{baseUrl}}/admin/offices", "host": [ - "{{baseUrl}}admin" + "{{baseUrl}}" ], "path": [ + "admin", "offices" ] } @@ -12791,11 +13101,12 @@ } ], "url": { - "raw": "{{baseUrl}}admin/roles/:uid?uid=", + "raw": "{{baseUrl}}/admin/roles/:uid?uid=", "host": [ - "{{baseUrl}}admin" + "{{baseUrl}}" ], "path": [ + "admin", "roles", ":uid" ], @@ -12831,11 +13142,12 @@ } ], "url": { - "raw": "{{baseUrl}}admin/roles/:uid?uid=", + "raw": "{{baseUrl}}/admin/roles/:uid?uid=", "host": [ - "{{baseUrl}}admin" + "{{baseUrl}}" ], "path": [ + "admin", "roles", ":uid" ], @@ -12863,7 +13175,7 @@ } ], "cookie": [], - "body": "[\n {\n \"value\": \"reference #/components/schemas/Role not found in the OpenAPI spec\"\n },\n {\n \"value\": \"reference #/components/schemas/Role not found in the OpenAPI spec\"\n }\n]" + "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", @@ -12877,11 +13189,12 @@ } ], "url": { - "raw": "{{baseUrl}}admin/roles/:uid?uid=", + "raw": "{{baseUrl}}/admin/roles/:uid?uid=", "host": [ - "{{baseUrl}}admin" + "{{baseUrl}}" ], "path": [ + "admin", "roles", ":uid" ], @@ -12931,11 +13244,12 @@ } ], "url": { - "raw": "{{baseUrl}}admin/roles", + "raw": "{{baseUrl}}/admin/roles", "host": [ - "{{baseUrl}}admin" + "{{baseUrl}}" ], "path": [ + "admin", "roles" ] } @@ -12957,11 +13271,12 @@ } ], "url": { - "raw": "{{baseUrl}}admin/roles", + "raw": "{{baseUrl}}/admin/roles", "host": [ - "{{baseUrl}}admin" + "{{baseUrl}}" ], "path": [ + "admin", "roles" ] } @@ -12976,7 +13291,7 @@ } ], "cookie": [], - "body": "[\n {\n \"value\": \"reference #/components/schemas/Role not found in the OpenAPI spec\"\n },\n {\n \"value\": \"reference #/components/schemas/Role not found in the OpenAPI spec\"\n }\n]" + "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", @@ -12990,11 +13305,12 @@ } ], "url": { - "raw": "{{baseUrl}}admin/roles", + "raw": "{{baseUrl}}/admin/roles", "host": [ - "{{baseUrl}}admin" + "{{baseUrl}}" ], "path": [ + "admin", "roles" ] } @@ -13047,11 +13363,12 @@ } }, "url": { - "raw": "{{baseUrl}}admin/notifications/:uid", + "raw": "{{baseUrl}}/admin/notifications/:uid", "host": [ - "{{baseUrl}}admin" + "{{baseUrl}}" ], "path": [ + "admin", "notifications", ":uid" ], @@ -13092,11 +13409,12 @@ } }, "url": { - "raw": "{{baseUrl}}admin/notifications/:uid", + "raw": "{{baseUrl}}/admin/notifications/:uid", "host": [ - "{{baseUrl}}admin" + "{{baseUrl}}" ], "path": [ + "admin", "notifications", ":uid" ], @@ -13140,11 +13458,12 @@ } }, "url": { - "raw": "{{baseUrl}}admin/notifications/:uid", + "raw": "{{baseUrl}}/admin/notifications/:uid", "host": [ - "{{baseUrl}}admin" + "{{baseUrl}}" ], "path": [ + "admin", "notifications", ":uid" ], @@ -13185,11 +13504,12 @@ } ], "url": { - "raw": "{{baseUrl}}admin/notifications/:uid?uid=", + "raw": "{{baseUrl}}/admin/notifications/:uid?uid=", "host": [ - "{{baseUrl}}admin" + "{{baseUrl}}" ], "path": [ + "admin", "notifications", ":uid" ], @@ -13225,11 +13545,12 @@ } ], "url": { - "raw": "{{baseUrl}}admin/notifications/:uid?uid=", + "raw": "{{baseUrl}}/admin/notifications/:uid?uid=", "host": [ - "{{baseUrl}}admin" + "{{baseUrl}}" ], "path": [ + "admin", "notifications", ":uid" ], @@ -13271,11 +13592,12 @@ } ], "url": { - "raw": "{{baseUrl}}admin/notifications/:uid?uid=", + "raw": "{{baseUrl}}/admin/notifications/:uid?uid=", "host": [ - "{{baseUrl}}admin" + "{{baseUrl}}" ], "path": [ + "admin", "notifications", ":uid" ], @@ -13325,11 +13647,12 @@ } ], "url": { - "raw": "{{baseUrl}}admin/notifications", + "raw": "{{baseUrl}}/admin/notifications", "host": [ - "{{baseUrl}}admin" + "{{baseUrl}}" ], "path": [ + "admin", "notifications" ] } @@ -13351,11 +13674,12 @@ } ], "url": { - "raw": "{{baseUrl}}admin/notifications", + "raw": "{{baseUrl}}/admin/notifications", "host": [ - "{{baseUrl}}admin" + "{{baseUrl}}" ], "path": [ + "admin", "notifications" ] } @@ -13384,11 +13708,12 @@ } ], "url": { - "raw": "{{baseUrl}}admin/notifications", + "raw": "{{baseUrl}}/admin/notifications", "host": [ - "{{baseUrl}}admin" + "{{baseUrl}}" ], "path": [ + "admin", "notifications" ] } @@ -13431,11 +13756,12 @@ } ], "url": { - "raw": "{{baseUrl}}admin/users/:uid?uid=", + "raw": "{{baseUrl}}/admin/users/:uid?uid=", "host": [ - "{{baseUrl}}admin" + "{{baseUrl}}" ], "path": [ + "admin", "users", ":uid" ], @@ -13470,11 +13796,12 @@ } ], "url": { - "raw": "{{baseUrl}}admin/users/:uid?uid=", + "raw": "{{baseUrl}}/admin/users/:uid?uid=", "host": [ - "{{baseUrl}}admin" + "{{baseUrl}}" ], "path": [ + "admin", "users", ":uid" ], @@ -13502,7 +13829,7 @@ } ], "cookie": [], - "body": "[\n {\n \"value\": \"reference #/components/schemas/User not found in the OpenAPI spec\"\n },\n {\n \"value\": \"reference #/components/schemas/User not found in the OpenAPI spec\"\n }\n]" + "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", @@ -13516,11 +13843,12 @@ } ], "url": { - "raw": "{{baseUrl}}admin/users/:uid?uid=", + "raw": "{{baseUrl}}/admin/users/:uid?uid=", "host": [ - "{{baseUrl}}admin" + "{{baseUrl}}" ], "path": [ + "admin", "users", ":uid" ], @@ -13569,7 +13897,7 @@ ], "body": { "mode": "raw", - "raw": "{\n \"value\": \"reference #/components/schemas/User not found in the OpenAPI spec\"\n}", + "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", @@ -13578,11 +13906,12 @@ } }, "url": { - "raw": "{{baseUrl}}admin/users/:uid?uid=", + "raw": "{{baseUrl}}/admin/users/:uid?uid=", "host": [ - "{{baseUrl}}admin" + "{{baseUrl}}" ], "path": [ + "admin", "users", ":uid" ], @@ -13618,7 +13947,7 @@ ], "body": { "mode": "raw", - "raw": "{\n \"value\": \"reference #/components/schemas/User not found in the OpenAPI spec\"\n}", + "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", @@ -13627,11 +13956,12 @@ } }, "url": { - "raw": "{{baseUrl}}admin/users/:uid?uid=", + "raw": "{{baseUrl}}/admin/users/:uid?uid=", "host": [ - "{{baseUrl}}admin" + "{{baseUrl}}" ], "path": [ + "admin", "users", ":uid" ], @@ -13673,7 +14003,7 @@ ], "body": { "mode": "raw", - "raw": "{\n \"value\": \"reference #/components/schemas/User not found in the OpenAPI spec\"\n}", + "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", @@ -13682,11 +14012,12 @@ } }, "url": { - "raw": "{{baseUrl}}admin/users/:uid?uid=", + "raw": "{{baseUrl}}/admin/users/:uid?uid=", "host": [ - "{{baseUrl}}admin" + "{{baseUrl}}" ], "path": [ + "admin", "users", ":uid" ], @@ -13736,11 +14067,12 @@ } ], "url": { - "raw": "{{baseUrl}}admin/users", + "raw": "{{baseUrl}}/admin/users", "host": [ - "{{baseUrl}}admin" + "{{baseUrl}}" ], "path": [ + "admin", "users" ] } @@ -13762,11 +14094,12 @@ } ], "url": { - "raw": "{{baseUrl}}admin/users", + "raw": "{{baseUrl}}/admin/users", "host": [ - "{{baseUrl}}admin" + "{{baseUrl}}" ], "path": [ + "admin", "users" ] } @@ -13781,7 +14114,7 @@ } ], "cookie": [], - "body": "[\n {\n \"value\": \"reference #/components/schemas/User not found in the OpenAPI spec\"\n },\n {\n \"value\": \"reference #/components/schemas/User not found in the OpenAPI spec\"\n }\n]" + "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", @@ -13795,11 +14128,12 @@ } ], "url": { - "raw": "{{baseUrl}}admin/users", + "raw": "{{baseUrl}}/admin/users", "host": [ - "{{baseUrl}}admin" + "{{baseUrl}}" ], "path": [ + "admin", "users" ] } @@ -13847,11 +14181,12 @@ } ], "url": { - "raw": "{{baseUrl}}super-admin/customers/:uid", + "raw": "{{baseUrl}}/super-admin/customers/:uid", "host": [ - "{{baseUrl}}super-admin" + "{{baseUrl}}" ], "path": [ + "super-admin", "customers", ":uid" ], @@ -13882,11 +14217,12 @@ } ], "url": { - "raw": "{{baseUrl}}super-admin/customers/:uid", + "raw": "{{baseUrl}}/super-admin/customers/:uid", "host": [ - "{{baseUrl}}super-admin" + "{{baseUrl}}" ], "path": [ + "super-admin", "customers", ":uid" ], @@ -13921,11 +14257,12 @@ } ], "url": { - "raw": "{{baseUrl}}super-admin/customers/:uid", + "raw": "{{baseUrl}}/super-admin/customers/:uid", "host": [ - "{{baseUrl}}super-admin" + "{{baseUrl}}" ], "path": [ + "super-admin", "customers", ":uid" ], @@ -13980,11 +14317,12 @@ } }, "url": { - "raw": "{{baseUrl}}super-admin/customers/:uid", + "raw": "{{baseUrl}}/super-admin/customers/:uid", "host": [ - "{{baseUrl}}super-admin" + "{{baseUrl}}" ], "path": [ + "super-admin", "customers", ":uid" ], @@ -14029,11 +14367,12 @@ } }, "url": { - "raw": "{{baseUrl}}super-admin/customers/:uid", + "raw": "{{baseUrl}}/super-admin/customers/:uid", "host": [ - "{{baseUrl}}super-admin" + "{{baseUrl}}" ], "path": [ + "super-admin", "customers", ":uid" ], @@ -14082,11 +14421,12 @@ } }, "url": { - "raw": "{{baseUrl}}super-admin/customers/:uid", + "raw": "{{baseUrl}}/super-admin/customers/:uid", "host": [ - "{{baseUrl}}super-admin" + "{{baseUrl}}" ], "path": [ + "super-admin", "customers", ":uid" ], @@ -14127,11 +14467,12 @@ } ], "url": { - "raw": "{{baseUrl}}super-admin/customers/:uid", + "raw": "{{baseUrl}}/super-admin/customers/:uid", "host": [ - "{{baseUrl}}super-admin" + "{{baseUrl}}" ], "path": [ + "super-admin", "customers", ":uid" ], @@ -14162,11 +14503,12 @@ } ], "url": { - "raw": "{{baseUrl}}super-admin/customers/:uid", + "raw": "{{baseUrl}}/super-admin/customers/:uid", "host": [ - "{{baseUrl}}super-admin" + "{{baseUrl}}" ], "path": [ + "super-admin", "customers", ":uid" ], @@ -14201,11 +14543,12 @@ } ], "url": { - "raw": "{{baseUrl}}super-admin/customers/:uid", + "raw": "{{baseUrl}}/super-admin/customers/:uid", "host": [ - "{{baseUrl}}super-admin" + "{{baseUrl}}" ], "path": [ + "super-admin", "customers", ":uid" ], @@ -14248,11 +14591,12 @@ } ], "url": { - "raw": "{{baseUrl}}super-admin/customers", + "raw": "{{baseUrl}}/super-admin/customers", "host": [ - "{{baseUrl}}super-admin" + "{{baseUrl}}" ], "path": [ + "super-admin", "customers" ] } @@ -14274,11 +14618,12 @@ } ], "url": { - "raw": "{{baseUrl}}super-admin/customers", + "raw": "{{baseUrl}}/super-admin/customers", "host": [ - "{{baseUrl}}super-admin" + "{{baseUrl}}" ], "path": [ + "super-admin", "customers" ] } @@ -14307,11 +14652,12 @@ } ], "url": { - "raw": "{{baseUrl}}super-admin/customers", + "raw": "{{baseUrl}}/super-admin/customers", "host": [ - "{{baseUrl}}super-admin" + "{{baseUrl}}" ], "path": [ + "super-admin", "customers" ] } @@ -14360,11 +14706,12 @@ } }, "url": { - "raw": "{{baseUrl}}super-admin/customers", + "raw": "{{baseUrl}}/super-admin/customers", "host": [ - "{{baseUrl}}super-admin" + "{{baseUrl}}" ], "path": [ + "super-admin", "customers" ] } @@ -14400,11 +14747,12 @@ } }, "url": { - "raw": "{{baseUrl}}super-admin/customers", + "raw": "{{baseUrl}}/super-admin/customers", "host": [ - "{{baseUrl}}super-admin" + "{{baseUrl}}" ], "path": [ + "super-admin", "customers" ] } @@ -14447,11 +14795,12 @@ } }, "url": { - "raw": "{{baseUrl}}super-admin/customers", + "raw": "{{baseUrl}}/super-admin/customers", "host": [ - "{{baseUrl}}super-admin" + "{{baseUrl}}" ], "path": [ + "super-admin", "customers" ] } @@ -14494,11 +14843,12 @@ } ], "url": { - "raw": "{{baseUrl}}super-admin/deeds/:uid", + "raw": "{{baseUrl}}/super-admin/deeds/:uid", "host": [ - "{{baseUrl}}super-admin" + "{{baseUrl}}" ], "path": [ + "super-admin", "deeds", ":uid" ], @@ -14529,11 +14879,12 @@ } ], "url": { - "raw": "{{baseUrl}}super-admin/deeds/:uid", + "raw": "{{baseUrl}}/super-admin/deeds/:uid", "host": [ - "{{baseUrl}}super-admin" + "{{baseUrl}}" ], "path": [ + "super-admin", "deeds", ":uid" ], @@ -14554,7 +14905,7 @@ } ], "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 \"createdAt\": \"\",\n \"updatedAt\": \"\"\n}" + "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", @@ -14568,11 +14919,12 @@ } ], "url": { - "raw": "{{baseUrl}}super-admin/deeds/:uid", + "raw": "{{baseUrl}}/super-admin/deeds/:uid", "host": [ - "{{baseUrl}}super-admin" + "{{baseUrl}}" ], "path": [ + "super-admin", "deeds", ":uid" ], @@ -14618,7 +14970,7 @@ ], "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 \"createdAt\": \"\",\n \"updatedAt\": \"\"\n}", + "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", @@ -14627,11 +14979,12 @@ } }, "url": { - "raw": "{{baseUrl}}super-admin/deeds/:uid", + "raw": "{{baseUrl}}/super-admin/deeds/:uid", "host": [ - "{{baseUrl}}super-admin" + "{{baseUrl}}" ], "path": [ + "super-admin", "deeds", ":uid" ], @@ -14667,7 +15020,7 @@ ], "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 \"createdAt\": \"\",\n \"updatedAt\": \"\"\n}", + "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", @@ -14676,11 +15029,12 @@ } }, "url": { - "raw": "{{baseUrl}}super-admin/deeds/:uid", + "raw": "{{baseUrl}}/super-admin/deeds/:uid", "host": [ - "{{baseUrl}}super-admin" + "{{baseUrl}}" ], "path": [ + "super-admin", "deeds", ":uid" ], @@ -14701,7 +15055,7 @@ } ], "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 \"createdAt\": \"\",\n \"updatedAt\": \"\"\n}" + "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", @@ -14720,7 +15074,7 @@ ], "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 \"createdAt\": \"\",\n \"updatedAt\": \"\"\n}", + "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", @@ -14729,11 +15083,12 @@ } }, "url": { - "raw": "{{baseUrl}}super-admin/deeds/:uid", + "raw": "{{baseUrl}}/super-admin/deeds/:uid", "host": [ - "{{baseUrl}}super-admin" + "{{baseUrl}}" ], "path": [ + "super-admin", "deeds", ":uid" ], @@ -14779,7 +15134,7 @@ ], "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 \"createdAt\": \"\",\n \"updatedAt\": \"\"\n}", + "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", @@ -14788,11 +15143,12 @@ } }, "url": { - "raw": "{{baseUrl}}super-admin/deeds/:uid", + "raw": "{{baseUrl}}/super-admin/deeds/:uid", "host": [ - "{{baseUrl}}super-admin" + "{{baseUrl}}" ], "path": [ + "super-admin", "deeds", ":uid" ], @@ -14828,7 +15184,7 @@ ], "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 \"createdAt\": \"\",\n \"updatedAt\": \"\"\n}", + "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", @@ -14837,11 +15193,12 @@ } }, "url": { - "raw": "{{baseUrl}}super-admin/deeds/:uid", + "raw": "{{baseUrl}}/super-admin/deeds/:uid", "host": [ - "{{baseUrl}}super-admin" + "{{baseUrl}}" ], "path": [ + "super-admin", "deeds", ":uid" ], @@ -14862,7 +15219,7 @@ } ], "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 \"createdAt\": \"\",\n \"updatedAt\": \"\"\n}" + "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", @@ -14881,7 +15238,7 @@ ], "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 \"createdAt\": \"\",\n \"updatedAt\": \"\"\n}", + "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", @@ -14890,11 +15247,12 @@ } }, "url": { - "raw": "{{baseUrl}}super-admin/deeds/:uid", + "raw": "{{baseUrl}}/super-admin/deeds/:uid", "host": [ - "{{baseUrl}}super-admin" + "{{baseUrl}}" ], "path": [ + "super-admin", "deeds", ":uid" ], @@ -14937,11 +15295,12 @@ } ], "url": { - "raw": "{{baseUrl}}super-admin/deeds", + "raw": "{{baseUrl}}/super-admin/deeds", "host": [ - "{{baseUrl}}super-admin" + "{{baseUrl}}" ], "path": [ + "super-admin", "deeds" ] } @@ -14963,11 +15322,12 @@ } ], "url": { - "raw": "{{baseUrl}}super-admin/deeds", + "raw": "{{baseUrl}}/super-admin/deeds", "host": [ - "{{baseUrl}}super-admin" + "{{baseUrl}}" ], "path": [ + "super-admin", "deeds" ] } @@ -14982,7 +15342,7 @@ } ], "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 \"createdAt\": \"\",\n \"updatedAt\": \"\"\n}" + "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", @@ -14996,11 +15356,12 @@ } ], "url": { - "raw": "{{baseUrl}}super-admin/deeds", + "raw": "{{baseUrl}}/super-admin/deeds", "host": [ - "{{baseUrl}}super-admin" + "{{baseUrl}}" ], "path": [ + "super-admin", "deeds" ] } @@ -15040,7 +15401,7 @@ ], "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 \"createdAt\": \"\",\n \"updatedAt\": \"\"\n}", + "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", @@ -15049,11 +15410,12 @@ } }, "url": { - "raw": "{{baseUrl}}super-admin/deeds", + "raw": "{{baseUrl}}/super-admin/deeds", "host": [ - "{{baseUrl}}super-admin" + "{{baseUrl}}" ], "path": [ + "super-admin", "deeds" ] } @@ -15080,7 +15442,7 @@ ], "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 \"createdAt\": \"\",\n \"updatedAt\": \"\"\n}", + "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", @@ -15089,11 +15451,12 @@ } }, "url": { - "raw": "{{baseUrl}}super-admin/deeds", + "raw": "{{baseUrl}}/super-admin/deeds", "host": [ - "{{baseUrl}}super-admin" + "{{baseUrl}}" ], "path": [ + "super-admin", "deeds" ] } @@ -15108,7 +15471,7 @@ } ], "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 \"createdAt\": \"\",\n \"updatedAt\": \"\"\n}" + "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", @@ -15127,7 +15490,7 @@ ], "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 \"createdAt\": \"\",\n \"updatedAt\": \"\"\n}", + "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", @@ -15136,11 +15499,12 @@ } }, "url": { - "raw": "{{baseUrl}}super-admin/deeds", + "raw": "{{baseUrl}}/super-admin/deeds", "host": [ - "{{baseUrl}}super-admin" + "{{baseUrl}}" ], "path": [ + "super-admin", "deeds" ] } @@ -15183,11 +15547,12 @@ } ], "url": { - "raw": "{{baseUrl}}super-admin/deed-types/:uid", + "raw": "{{baseUrl}}/super-admin/deed-types/:uid", "host": [ - "{{baseUrl}}super-admin" + "{{baseUrl}}" ], "path": [ + "super-admin", "deed-types", ":uid" ], @@ -15218,11 +15583,12 @@ } ], "url": { - "raw": "{{baseUrl}}super-admin/deed-types/:uid", + "raw": "{{baseUrl}}/super-admin/deed-types/:uid", "host": [ - "{{baseUrl}}super-admin" + "{{baseUrl}}" ], "path": [ + "super-admin", "deed-types", ":uid" ], @@ -15243,7 +15609,7 @@ } ], "cookie": [], - "body": "{\n \"value\": \"reference #/components/schemas/DeedType not found in the OpenAPI spec\"\n}" + "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", @@ -15257,11 +15623,12 @@ } ], "url": { - "raw": "{{baseUrl}}super-admin/deed-types/:uid", + "raw": "{{baseUrl}}/super-admin/deed-types/:uid", "host": [ - "{{baseUrl}}super-admin" + "{{baseUrl}}" ], "path": [ + "super-admin", "deed-types", ":uid" ], @@ -15307,7 +15674,7 @@ ], "body": { "mode": "raw", - "raw": "{\n \"value\": \"reference #/components/schemas/DeedType not found in the OpenAPI spec\"\n}", + "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", @@ -15316,11 +15683,12 @@ } }, "url": { - "raw": "{{baseUrl}}super-admin/deed-types/:uid", + "raw": "{{baseUrl}}/super-admin/deed-types/:uid", "host": [ - "{{baseUrl}}super-admin" + "{{baseUrl}}" ], "path": [ + "super-admin", "deed-types", ":uid" ], @@ -15356,7 +15724,7 @@ ], "body": { "mode": "raw", - "raw": "{\n \"value\": \"reference #/components/schemas/DeedType not found in the OpenAPI spec\"\n}", + "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", @@ -15365,11 +15733,12 @@ } }, "url": { - "raw": "{{baseUrl}}super-admin/deed-types/:uid", + "raw": "{{baseUrl}}/super-admin/deed-types/:uid", "host": [ - "{{baseUrl}}super-admin" + "{{baseUrl}}" ], "path": [ + "super-admin", "deed-types", ":uid" ], @@ -15390,7 +15759,7 @@ } ], "cookie": [], - "body": "{\n \"value\": \"reference #/components/schemas/DeedType not found in the OpenAPI spec\"\n}" + "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", @@ -15409,7 +15778,7 @@ ], "body": { "mode": "raw", - "raw": "{\n \"value\": \"reference #/components/schemas/DeedType not found in the OpenAPI spec\"\n}", + "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", @@ -15418,11 +15787,12 @@ } }, "url": { - "raw": "{{baseUrl}}super-admin/deed-types/:uid", + "raw": "{{baseUrl}}/super-admin/deed-types/:uid", "host": [ - "{{baseUrl}}super-admin" + "{{baseUrl}}" ], "path": [ + "super-admin", "deed-types", ":uid" ], @@ -15465,11 +15835,12 @@ } ], "url": { - "raw": "{{baseUrl}}super-admin/deed-types", + "raw": "{{baseUrl}}/super-admin/deed-types", "host": [ - "{{baseUrl}}super-admin" + "{{baseUrl}}" ], "path": [ + "super-admin", "deed-types" ] } @@ -15491,11 +15862,12 @@ } ], "url": { - "raw": "{{baseUrl}}super-admin/deed-types", + "raw": "{{baseUrl}}/super-admin/deed-types", "host": [ - "{{baseUrl}}super-admin" + "{{baseUrl}}" ], "path": [ + "super-admin", "deed-types" ] } @@ -15510,7 +15882,7 @@ } ], "cookie": [], - "body": "{\n \"value\": \"reference #/components/schemas/DeedType not found in the OpenAPI spec\"\n}" + "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", @@ -15524,11 +15896,12 @@ } ], "url": { - "raw": "{{baseUrl}}super-admin/deed-types", + "raw": "{{baseUrl}}/super-admin/deed-types", "host": [ - "{{baseUrl}}super-admin" + "{{baseUrl}}" ], "path": [ + "super-admin", "deed-types" ] } @@ -15568,7 +15941,7 @@ ], "body": { "mode": "raw", - "raw": "{\n \"value\": \"reference #/components/schemas/DeedType not found in the OpenAPI spec\"\n}", + "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", @@ -15577,11 +15950,12 @@ } }, "url": { - "raw": "{{baseUrl}}super-admin/deed-types", + "raw": "{{baseUrl}}/super-admin/deed-types", "host": [ - "{{baseUrl}}super-admin" + "{{baseUrl}}" ], "path": [ + "super-admin", "deed-types" ] } @@ -15608,7 +15982,7 @@ ], "body": { "mode": "raw", - "raw": "{\n \"value\": \"reference #/components/schemas/DeedType not found in the OpenAPI spec\"\n}", + "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", @@ -15617,11 +15991,12 @@ } }, "url": { - "raw": "{{baseUrl}}super-admin/deed-types", + "raw": "{{baseUrl}}/super-admin/deed-types", "host": [ - "{{baseUrl}}super-admin" + "{{baseUrl}}" ], "path": [ + "super-admin", "deed-types" ] } @@ -15636,7 +16011,7 @@ } ], "cookie": [], - "body": "{\n \"value\": \"reference #/components/schemas/DeedType not found in the OpenAPI spec\"\n}" + "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", @@ -15655,7 +16030,7 @@ ], "body": { "mode": "raw", - "raw": "{\n \"value\": \"reference #/components/schemas/DeedType not found in the OpenAPI spec\"\n}", + "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", @@ -15664,11 +16039,12 @@ } }, "url": { - "raw": "{{baseUrl}}super-admin/deed-types", + "raw": "{{baseUrl}}/super-admin/deed-types", "host": [ - "{{baseUrl}}super-admin" + "{{baseUrl}}" ], "path": [ + "super-admin", "deed-types" ] } @@ -15711,11 +16087,12 @@ } ], "url": { - "raw": "{{baseUrl}}super-admin/documents/:uid", + "raw": "{{baseUrl}}/super-admin/documents/:uid", "host": [ - "{{baseUrl}}super-admin" + "{{baseUrl}}" ], "path": [ + "super-admin", "documents", ":uid" ], @@ -15746,11 +16123,12 @@ } ], "url": { - "raw": "{{baseUrl}}super-admin/documents/:uid", + "raw": "{{baseUrl}}/super-admin/documents/:uid", "host": [ - "{{baseUrl}}super-admin" + "{{baseUrl}}" ], "path": [ + "super-admin", "documents", ":uid" ], @@ -15785,11 +16163,12 @@ } ], "url": { - "raw": "{{baseUrl}}super-admin/documents/:uid", + "raw": "{{baseUrl}}/super-admin/documents/:uid", "host": [ - "{{baseUrl}}super-admin" + "{{baseUrl}}" ], "path": [ + "super-admin", "documents", ":uid" ], @@ -15844,11 +16223,12 @@ } }, "url": { - "raw": "{{baseUrl}}super-admin/documents/:uid", + "raw": "{{baseUrl}}/super-admin/documents/:uid", "host": [ - "{{baseUrl}}super-admin" + "{{baseUrl}}" ], "path": [ + "super-admin", "documents", ":uid" ], @@ -15893,11 +16273,12 @@ } }, "url": { - "raw": "{{baseUrl}}super-admin/documents/:uid", + "raw": "{{baseUrl}}/super-admin/documents/:uid", "host": [ - "{{baseUrl}}super-admin" + "{{baseUrl}}" ], "path": [ + "super-admin", "documents", ":uid" ], @@ -15946,11 +16327,12 @@ } }, "url": { - "raw": "{{baseUrl}}super-admin/documents/:uid", + "raw": "{{baseUrl}}/super-admin/documents/:uid", "host": [ - "{{baseUrl}}super-admin" + "{{baseUrl}}" ], "path": [ + "super-admin", "documents", ":uid" ], @@ -16005,11 +16387,12 @@ } }, "url": { - "raw": "{{baseUrl}}super-admin/documents/:uid", + "raw": "{{baseUrl}}/super-admin/documents/:uid", "host": [ - "{{baseUrl}}super-admin" + "{{baseUrl}}" ], "path": [ + "super-admin", "documents", ":uid" ], @@ -16054,11 +16437,12 @@ } }, "url": { - "raw": "{{baseUrl}}super-admin/documents/:uid", + "raw": "{{baseUrl}}/super-admin/documents/:uid", "host": [ - "{{baseUrl}}super-admin" + "{{baseUrl}}" ], "path": [ + "super-admin", "documents", ":uid" ], @@ -16107,11 +16491,12 @@ } }, "url": { - "raw": "{{baseUrl}}super-admin/documents/:uid", + "raw": "{{baseUrl}}/super-admin/documents/:uid", "host": [ - "{{baseUrl}}super-admin" + "{{baseUrl}}" ], "path": [ + "super-admin", "documents", ":uid" ], @@ -16154,11 +16539,12 @@ } ], "url": { - "raw": "{{baseUrl}}super-admin/documents", + "raw": "{{baseUrl}}/super-admin/documents", "host": [ - "{{baseUrl}}super-admin" + "{{baseUrl}}" ], "path": [ + "super-admin", "documents" ] } @@ -16180,11 +16566,12 @@ } ], "url": { - "raw": "{{baseUrl}}super-admin/documents", + "raw": "{{baseUrl}}/super-admin/documents", "host": [ - "{{baseUrl}}super-admin" + "{{baseUrl}}" ], "path": [ + "super-admin", "documents" ] } @@ -16213,11 +16600,12 @@ } ], "url": { - "raw": "{{baseUrl}}super-admin/documents", + "raw": "{{baseUrl}}/super-admin/documents", "host": [ - "{{baseUrl}}super-admin" + "{{baseUrl}}" ], "path": [ + "super-admin", "documents" ] } @@ -16266,11 +16654,12 @@ } }, "url": { - "raw": "{{baseUrl}}super-admin/documents", + "raw": "{{baseUrl}}/super-admin/documents", "host": [ - "{{baseUrl}}super-admin" + "{{baseUrl}}" ], "path": [ + "super-admin", "documents" ] } @@ -16306,11 +16695,12 @@ } }, "url": { - "raw": "{{baseUrl}}super-admin/documents", + "raw": "{{baseUrl}}/super-admin/documents", "host": [ - "{{baseUrl}}super-admin" + "{{baseUrl}}" ], "path": [ + "super-admin", "documents" ] } @@ -16353,11 +16743,12 @@ } }, "url": { - "raw": "{{baseUrl}}super-admin/documents", + "raw": "{{baseUrl}}/super-admin/documents", "host": [ - "{{baseUrl}}super-admin" + "{{baseUrl}}" ], "path": [ + "super-admin", "documents" ] } @@ -16400,11 +16791,12 @@ } ], "url": { - "raw": "{{baseUrl}}super-admin/document-types/:uid", + "raw": "{{baseUrl}}/super-admin/document-types/:uid", "host": [ - "{{baseUrl}}super-admin" + "{{baseUrl}}" ], "path": [ + "super-admin", "document-types", ":uid" ], @@ -16435,11 +16827,12 @@ } ], "url": { - "raw": "{{baseUrl}}super-admin/document-types/:uid", + "raw": "{{baseUrl}}/super-admin/document-types/:uid", "host": [ - "{{baseUrl}}super-admin" + "{{baseUrl}}" ], "path": [ + "super-admin", "document-types", ":uid" ], @@ -16474,11 +16867,12 @@ } ], "url": { - "raw": "{{baseUrl}}super-admin/document-types/:uid", + "raw": "{{baseUrl}}/super-admin/document-types/:uid", "host": [ - "{{baseUrl}}super-admin" + "{{baseUrl}}" ], "path": [ + "super-admin", "document-types", ":uid" ], @@ -16533,11 +16927,12 @@ } }, "url": { - "raw": "{{baseUrl}}super-admin/document-types/:uid", + "raw": "{{baseUrl}}/super-admin/document-types/:uid", "host": [ - "{{baseUrl}}super-admin" + "{{baseUrl}}" ], "path": [ + "super-admin", "document-types", ":uid" ], @@ -16582,11 +16977,12 @@ } }, "url": { - "raw": "{{baseUrl}}super-admin/document-types/:uid", + "raw": "{{baseUrl}}/super-admin/document-types/:uid", "host": [ - "{{baseUrl}}super-admin" + "{{baseUrl}}" ], "path": [ + "super-admin", "document-types", ":uid" ], @@ -16635,11 +17031,12 @@ } }, "url": { - "raw": "{{baseUrl}}super-admin/document-types/:uid", + "raw": "{{baseUrl}}/super-admin/document-types/:uid", "host": [ - "{{baseUrl}}super-admin" + "{{baseUrl}}" ], "path": [ + "super-admin", "document-types", ":uid" ], @@ -16680,11 +17077,12 @@ } ], "url": { - "raw": "{{baseUrl}}super-admin/document-types/:uid", + "raw": "{{baseUrl}}/super-admin/document-types/:uid", "host": [ - "{{baseUrl}}super-admin" + "{{baseUrl}}" ], "path": [ + "super-admin", "document-types", ":uid" ], @@ -16715,11 +17113,12 @@ } ], "url": { - "raw": "{{baseUrl}}super-admin/document-types/:uid", + "raw": "{{baseUrl}}/super-admin/document-types/:uid", "host": [ - "{{baseUrl}}super-admin" + "{{baseUrl}}" ], "path": [ + "super-admin", "document-types", ":uid" ], @@ -16754,11 +17153,12 @@ } ], "url": { - "raw": "{{baseUrl}}super-admin/document-types/:uid", + "raw": "{{baseUrl}}/super-admin/document-types/:uid", "host": [ - "{{baseUrl}}super-admin" + "{{baseUrl}}" ], "path": [ + "super-admin", "document-types", ":uid" ], @@ -16801,11 +17201,12 @@ } ], "url": { - "raw": "{{baseUrl}}super-admin/document-types", + "raw": "{{baseUrl}}/super-admin/document-types", "host": [ - "{{baseUrl}}super-admin" + "{{baseUrl}}" ], "path": [ + "super-admin", "document-types" ] } @@ -16827,11 +17228,12 @@ } ], "url": { - "raw": "{{baseUrl}}super-admin/document-types", + "raw": "{{baseUrl}}/super-admin/document-types", "host": [ - "{{baseUrl}}super-admin" + "{{baseUrl}}" ], "path": [ + "super-admin", "document-types" ] } @@ -16860,11 +17262,12 @@ } ], "url": { - "raw": "{{baseUrl}}super-admin/document-types", + "raw": "{{baseUrl}}/super-admin/document-types", "host": [ - "{{baseUrl}}super-admin" + "{{baseUrl}}" ], "path": [ + "super-admin", "document-types" ] } @@ -16913,11 +17316,12 @@ } }, "url": { - "raw": "{{baseUrl}}super-admin/document-types", + "raw": "{{baseUrl}}/super-admin/document-types", "host": [ - "{{baseUrl}}super-admin" + "{{baseUrl}}" ], "path": [ + "super-admin", "document-types" ] } @@ -16953,11 +17357,12 @@ } }, "url": { - "raw": "{{baseUrl}}super-admin/document-types", + "raw": "{{baseUrl}}/super-admin/document-types", "host": [ - "{{baseUrl}}super-admin" + "{{baseUrl}}" ], "path": [ + "super-admin", "document-types" ] } @@ -17000,11 +17405,12 @@ } }, "url": { - "raw": "{{baseUrl}}super-admin/document-types", + "raw": "{{baseUrl}}/super-admin/document-types", "host": [ - "{{baseUrl}}super-admin" + "{{baseUrl}}" ], "path": [ + "super-admin", "document-types" ] } @@ -17042,11 +17448,12 @@ "method": "GET", "header": [], "url": { - "raw": "{{baseUrl}}super-admin/files/:uid", + "raw": "{{baseUrl}}/super-admin/files/:uid", "host": [ - "{{baseUrl}}super-admin" + "{{baseUrl}}" ], "path": [ + "super-admin", "files", ":uid" ], @@ -17073,11 +17480,12 @@ } ], "url": { - "raw": "{{baseUrl}}super-admin/files/:uid", + "raw": "{{baseUrl}}/super-admin/files/:uid", "host": [ - "{{baseUrl}}super-admin" + "{{baseUrl}}" ], "path": [ + "super-admin", "files", ":uid" ], @@ -17107,11 +17515,12 @@ } ], "url": { - "raw": "{{baseUrl}}super-admin/files/:uid", + "raw": "{{baseUrl}}/super-admin/files/:uid", "host": [ - "{{baseUrl}}super-admin" + "{{baseUrl}}" ], "path": [ + "super-admin", "files", ":uid" ], @@ -17147,11 +17556,12 @@ "method": "DELETE", "header": [], "url": { - "raw": "{{baseUrl}}super-admin/files/:uid", + "raw": "{{baseUrl}}/super-admin/files/:uid", "host": [ - "{{baseUrl}}super-admin" + "{{baseUrl}}" ], "path": [ + "super-admin", "files", ":uid" ], @@ -17178,11 +17588,12 @@ } ], "url": { - "raw": "{{baseUrl}}super-admin/files/:uid", + "raw": "{{baseUrl}}/super-admin/files/:uid", "host": [ - "{{baseUrl}}super-admin" + "{{baseUrl}}" ], "path": [ + "super-admin", "files", ":uid" ], @@ -17212,11 +17623,12 @@ } ], "url": { - "raw": "{{baseUrl}}super-admin/files/:uid", + "raw": "{{baseUrl}}/super-admin/files/:uid", "host": [ - "{{baseUrl}}super-admin" + "{{baseUrl}}" ], "path": [ + "super-admin", "files", ":uid" ], @@ -17260,11 +17672,12 @@ "method": "GET", "header": [], "url": { - "raw": "{{baseUrl}}super-admin/files/download/:uid", + "raw": "{{baseUrl}}/super-admin/files/download/:uid", "host": [ - "{{baseUrl}}super-admin" + "{{baseUrl}}" ], "path": [ + "super-admin", "files", "download", ":uid" @@ -17292,11 +17705,12 @@ } ], "url": { - "raw": "{{baseUrl}}super-admin/files/download/:uid", + "raw": "{{baseUrl}}/super-admin/files/download/:uid", "host": [ - "{{baseUrl}}super-admin" + "{{baseUrl}}" ], "path": [ + "super-admin", "files", "download", ":uid" @@ -17327,11 +17741,12 @@ } ], "url": { - "raw": "{{baseUrl}}super-admin/files/download/:uid", + "raw": "{{baseUrl}}/super-admin/files/download/:uid", "host": [ - "{{baseUrl}}super-admin" + "{{baseUrl}}" ], "path": [ + "super-admin", "files", "download", ":uid" @@ -17372,11 +17787,12 @@ "method": "GET", "header": [], "url": { - "raw": "{{baseUrl}}super-admin/files", + "raw": "{{baseUrl}}/super-admin/files", "host": [ - "{{baseUrl}}super-admin" + "{{baseUrl}}" ], "path": [ + "super-admin", "files" ] } @@ -17394,11 +17810,12 @@ } ], "url": { - "raw": "{{baseUrl}}super-admin/files", + "raw": "{{baseUrl}}/super-admin/files", "host": [ - "{{baseUrl}}super-admin" + "{{baseUrl}}" ], "path": [ + "super-admin", "files" ] } @@ -17422,11 +17839,12 @@ } ], "url": { - "raw": "{{baseUrl}}super-admin/files", + "raw": "{{baseUrl}}/super-admin/files", "host": [ - "{{baseUrl}}super-admin" + "{{baseUrl}}" ], "path": [ + "super-admin", "files" ] } @@ -17464,11 +17882,12 @@ "method": "GET", "header": [], "url": { - "raw": "{{baseUrl}}super-admin/anchors/:uid", + "raw": "{{baseUrl}}/super-admin/anchors/:uid", "host": [ - "{{baseUrl}}super-admin" + "{{baseUrl}}" ], "path": [ + "super-admin", "anchors", ":uid" ], @@ -17495,11 +17914,12 @@ } ], "url": { - "raw": "{{baseUrl}}super-admin/anchors/:uid", + "raw": "{{baseUrl}}/super-admin/anchors/:uid", "host": [ - "{{baseUrl}}super-admin" + "{{baseUrl}}" ], "path": [ + "super-admin", "anchors", ":uid" ], @@ -17529,11 +17949,12 @@ } ], "url": { - "raw": "{{baseUrl}}super-admin/anchors/:uid", + "raw": "{{baseUrl}}/super-admin/anchors/:uid", "host": [ - "{{baseUrl}}super-admin" + "{{baseUrl}}" ], "path": [ + "super-admin", "anchors", ":uid" ], @@ -17584,11 +18005,12 @@ } }, "url": { - "raw": "{{baseUrl}}super-admin/anchors/:uid", + "raw": "{{baseUrl}}/super-admin/anchors/:uid", "host": [ - "{{baseUrl}}super-admin" + "{{baseUrl}}" ], "path": [ + "super-admin", "anchors", ":uid" ], @@ -17628,11 +18050,12 @@ } }, "url": { - "raw": "{{baseUrl}}super-admin/anchors/:uid", + "raw": "{{baseUrl}}/super-admin/anchors/:uid", "host": [ - "{{baseUrl}}super-admin" + "{{baseUrl}}" ], "path": [ + "super-admin", "anchors", ":uid" ], @@ -17676,11 +18099,12 @@ } }, "url": { - "raw": "{{baseUrl}}super-admin/anchors/:uid", + "raw": "{{baseUrl}}/super-admin/anchors/:uid", "host": [ - "{{baseUrl}}super-admin" + "{{baseUrl}}" ], "path": [ + "super-admin", "anchors", ":uid" ], @@ -17724,11 +18148,12 @@ "method": "GET", "header": [], "url": { - "raw": "{{baseUrl}}super-admin/anchors/download/:uid", + "raw": "{{baseUrl}}/super-admin/anchors/download/:uid", "host": [ - "{{baseUrl}}super-admin" + "{{baseUrl}}" ], "path": [ + "super-admin", "anchors", "download", ":uid" @@ -17756,11 +18181,12 @@ } ], "url": { - "raw": "{{baseUrl}}super-admin/anchors/download/:uid", + "raw": "{{baseUrl}}/super-admin/anchors/download/:uid", "host": [ - "{{baseUrl}}super-admin" + "{{baseUrl}}" ], "path": [ + "super-admin", "anchors", "download", ":uid" @@ -17791,11 +18217,12 @@ } ], "url": { - "raw": "{{baseUrl}}super-admin/anchors/download/:uid", + "raw": "{{baseUrl}}/super-admin/anchors/download/:uid", "host": [ - "{{baseUrl}}super-admin" + "{{baseUrl}}" ], "path": [ + "super-admin", "anchors", "download", ":uid" @@ -17836,11 +18263,12 @@ "method": "GET", "header": [], "url": { - "raw": "{{baseUrl}}super-admin/anchors", + "raw": "{{baseUrl}}/super-admin/anchors", "host": [ - "{{baseUrl}}super-admin" + "{{baseUrl}}" ], "path": [ + "super-admin", "anchors" ] } @@ -17858,11 +18286,12 @@ } ], "url": { - "raw": "{{baseUrl}}super-admin/anchors", + "raw": "{{baseUrl}}/super-admin/anchors", "host": [ - "{{baseUrl}}super-admin" + "{{baseUrl}}" ], "path": [ + "super-admin", "anchors" ] } @@ -17886,11 +18315,12 @@ } ], "url": { - "raw": "{{baseUrl}}super-admin/anchors", + "raw": "{{baseUrl}}/super-admin/anchors", "host": [ - "{{baseUrl}}super-admin" + "{{baseUrl}}" ], "path": [ + "super-admin", "anchors" ] } @@ -17934,7 +18364,7 @@ ], "body": { "mode": "raw", - "raw": "{\n \"value\": \"reference #/components/schemas/Folder not found in the OpenAPI spec\"\n}", + "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", @@ -17943,11 +18373,12 @@ } }, "url": { - "raw": "{{baseUrl}}super-admin/folders/:uid", + "raw": "{{baseUrl}}/super-admin/folders/:uid", "host": [ - "{{baseUrl}}super-admin" + "{{baseUrl}}" ], "path": [ + "super-admin", "folders", ":uid" ], @@ -17979,7 +18410,7 @@ ], "body": { "mode": "raw", - "raw": "{\n \"value\": \"reference #/components/schemas/Folder not found in the OpenAPI spec\"\n}", + "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", @@ -17988,11 +18419,12 @@ } }, "url": { - "raw": "{{baseUrl}}super-admin/folders/:uid", + "raw": "{{baseUrl}}/super-admin/folders/:uid", "host": [ - "{{baseUrl}}super-admin" + "{{baseUrl}}" ], "path": [ + "super-admin", "folders", ":uid" ], @@ -18027,7 +18459,7 @@ ], "body": { "mode": "raw", - "raw": "{\n \"value\": \"reference #/components/schemas/Folder not found in the OpenAPI spec\"\n}", + "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", @@ -18036,11 +18468,12 @@ } }, "url": { - "raw": "{{baseUrl}}super-admin/folders/:uid", + "raw": "{{baseUrl}}/super-admin/folders/:uid", "host": [ - "{{baseUrl}}super-admin" + "{{baseUrl}}" ], "path": [ + "super-admin", "folders", ":uid" ], @@ -18076,11 +18509,12 @@ "method": "DELETE", "header": [], "url": { - "raw": "{{baseUrl}}super-admin/folders/:uid", + "raw": "{{baseUrl}}/super-admin/folders/:uid", "host": [ - "{{baseUrl}}super-admin" + "{{baseUrl}}" ], "path": [ + "super-admin", "folders", ":uid" ], @@ -18107,11 +18541,12 @@ } ], "url": { - "raw": "{{baseUrl}}super-admin/folders/:uid", + "raw": "{{baseUrl}}/super-admin/folders/:uid", "host": [ - "{{baseUrl}}super-admin" + "{{baseUrl}}" ], "path": [ + "super-admin", "folders", ":uid" ], @@ -18141,11 +18576,12 @@ } ], "url": { - "raw": "{{baseUrl}}super-admin/folders/:uid", + "raw": "{{baseUrl}}/super-admin/folders/:uid", "host": [ - "{{baseUrl}}super-admin" + "{{baseUrl}}" ], "path": [ + "super-admin", "folders", ":uid" ], @@ -18186,11 +18622,12 @@ } ], "url": { - "raw": "{{baseUrl}}super-admin/folders/:uid?uid=", + "raw": "{{baseUrl}}/super-admin/folders/:uid?uid=", "host": [ - "{{baseUrl}}super-admin" + "{{baseUrl}}" ], "path": [ + "super-admin", "folders", ":uid" ], @@ -18226,11 +18663,12 @@ } ], "url": { - "raw": "{{baseUrl}}super-admin/folders/:uid?uid=", + "raw": "{{baseUrl}}/super-admin/folders/:uid?uid=", "host": [ - "{{baseUrl}}super-admin" + "{{baseUrl}}" ], "path": [ + "super-admin", "folders", ":uid" ], @@ -18258,7 +18696,7 @@ } ], "cookie": [], - "body": "[\n {\n \"value\": \"reference #/components/schemas/Folder not found in the OpenAPI spec\"\n },\n {\n \"value\": \"reference #/components/schemas/Folder not found in the OpenAPI spec\"\n }\n]" + "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", @@ -18272,11 +18710,12 @@ } ], "url": { - "raw": "{{baseUrl}}super-admin/folders/:uid?uid=", + "raw": "{{baseUrl}}/super-admin/folders/:uid?uid=", "host": [ - "{{baseUrl}}super-admin" + "{{baseUrl}}" ], "path": [ + "super-admin", "folders", ":uid" ], @@ -18321,11 +18760,12 @@ "method": "GET", "header": [], "url": { - "raw": "{{baseUrl}}super-admin/folders", + "raw": "{{baseUrl}}/super-admin/folders", "host": [ - "{{baseUrl}}super-admin" + "{{baseUrl}}" ], "path": [ + "super-admin", "folders" ] } @@ -18343,11 +18783,12 @@ } ], "url": { - "raw": "{{baseUrl}}super-admin/folders", + "raw": "{{baseUrl}}/super-admin/folders", "host": [ - "{{baseUrl}}super-admin" + "{{baseUrl}}" ], "path": [ + "super-admin", "folders" ] } @@ -18371,11 +18812,12 @@ } ], "url": { - "raw": "{{baseUrl}}super-admin/folders", + "raw": "{{baseUrl}}/super-admin/folders", "host": [ - "{{baseUrl}}super-admin" + "{{baseUrl}}" ], "path": [ + "super-admin", "folders" ] } @@ -18411,7 +18853,7 @@ ], "body": { "mode": "raw", - "raw": "{\n \"value\": \"reference #/components/schemas/Folder not found in the OpenAPI spec\"\n}", + "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", @@ -18420,11 +18862,12 @@ } }, "url": { - "raw": "{{baseUrl}}super-admin/folders", + "raw": "{{baseUrl}}/super-admin/folders", "host": [ - "{{baseUrl}}super-admin" + "{{baseUrl}}" ], "path": [ + "super-admin", "folders" ] } @@ -18447,7 +18890,7 @@ ], "body": { "mode": "raw", - "raw": "{\n \"value\": \"reference #/components/schemas/Folder not found in the OpenAPI spec\"\n}", + "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", @@ -18456,11 +18899,12 @@ } }, "url": { - "raw": "{{baseUrl}}super-admin/folders", + "raw": "{{baseUrl}}/super-admin/folders", "host": [ - "{{baseUrl}}super-admin" + "{{baseUrl}}" ], "path": [ + "super-admin", "folders" ] } @@ -18489,7 +18933,7 @@ ], "body": { "mode": "raw", - "raw": "{\n \"value\": \"reference #/components/schemas/Folder not found in the OpenAPI spec\"\n}", + "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", @@ -18498,11 +18942,12 @@ } }, "url": { - "raw": "{{baseUrl}}super-admin/folders", + "raw": "{{baseUrl}}/super-admin/folders", "host": [ - "{{baseUrl}}super-admin" + "{{baseUrl}}" ], "path": [ + "super-admin", "folders" ] } @@ -18545,11 +18990,12 @@ } ], "url": { - "raw": "{{baseUrl}}super-admin/office-roles/:uid?uid=", + "raw": "{{baseUrl}}/super-admin/office-roles/:uid?uid=", "host": [ - "{{baseUrl}}super-admin" + "{{baseUrl}}" ], "path": [ + "super-admin", "office-roles", ":uid" ], @@ -18585,11 +19031,12 @@ } ], "url": { - "raw": "{{baseUrl}}super-admin/office-roles/:uid?uid=", + "raw": "{{baseUrl}}/super-admin/office-roles/:uid?uid=", "host": [ - "{{baseUrl}}super-admin" + "{{baseUrl}}" ], "path": [ + "super-admin", "office-roles", ":uid" ], @@ -18617,7 +19064,7 @@ } ], "cookie": [], - "body": "[\n {\n \"value\": \"reference #/components/schemas/OfficeRole not found in the OpenAPI spec\"\n },\n {\n \"value\": \"reference #/components/schemas/OfficeRole not found in the OpenAPI spec\"\n }\n]" + "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", @@ -18631,11 +19078,12 @@ } ], "url": { - "raw": "{{baseUrl}}super-admin/office-roles/:uid?uid=", + "raw": "{{baseUrl}}/super-admin/office-roles/:uid?uid=", "host": [ - "{{baseUrl}}super-admin" + "{{baseUrl}}" ], "path": [ + "super-admin", "office-roles", ":uid" ], @@ -18688,7 +19136,7 @@ ], "body": { "mode": "raw", - "raw": "{\n \"value\": \"reference #/components/schemas/OfficeRole not found in the OpenAPI spec\"\n}", + "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", @@ -18697,11 +19145,12 @@ } }, "url": { - "raw": "{{baseUrl}}super-admin/office-roles/:uid?uid=", + "raw": "{{baseUrl}}/super-admin/office-roles/:uid?uid=", "host": [ - "{{baseUrl}}super-admin" + "{{baseUrl}}" ], "path": [ + "super-admin", "office-roles", ":uid" ], @@ -18742,7 +19191,7 @@ ], "body": { "mode": "raw", - "raw": "{\n \"value\": \"reference #/components/schemas/OfficeRole not found in the OpenAPI spec\"\n}", + "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", @@ -18751,11 +19200,12 @@ } }, "url": { - "raw": "{{baseUrl}}super-admin/office-roles/:uid?uid=", + "raw": "{{baseUrl}}/super-admin/office-roles/:uid?uid=", "host": [ - "{{baseUrl}}super-admin" + "{{baseUrl}}" ], "path": [ + "super-admin", "office-roles", ":uid" ], @@ -18783,7 +19233,7 @@ } ], "cookie": [], - "body": "[\n {\n \"value\": \"reference #/components/schemas/OfficeRole not found in the OpenAPI spec\"\n },\n {\n \"value\": \"reference #/components/schemas/OfficeRole not found in the OpenAPI spec\"\n }\n]" + "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", @@ -18802,7 +19252,7 @@ ], "body": { "mode": "raw", - "raw": "{\n \"value\": \"reference #/components/schemas/OfficeRole not found in the OpenAPI spec\"\n}", + "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", @@ -18811,11 +19261,12 @@ } }, "url": { - "raw": "{{baseUrl}}super-admin/office-roles/:uid?uid=", + "raw": "{{baseUrl}}/super-admin/office-roles/:uid?uid=", "host": [ - "{{baseUrl}}super-admin" + "{{baseUrl}}" ], "path": [ + "super-admin", "office-roles", ":uid" ], @@ -18865,11 +19316,12 @@ } ], "url": { - "raw": "{{baseUrl}}super-admin/office-roles", + "raw": "{{baseUrl}}/super-admin/office-roles", "host": [ - "{{baseUrl}}super-admin" + "{{baseUrl}}" ], "path": [ + "super-admin", "office-roles" ] } @@ -18891,11 +19343,12 @@ } ], "url": { - "raw": "{{baseUrl}}super-admin/office-roles", + "raw": "{{baseUrl}}/super-admin/office-roles", "host": [ - "{{baseUrl}}super-admin" + "{{baseUrl}}" ], "path": [ + "super-admin", "office-roles" ] } @@ -18910,7 +19363,7 @@ } ], "cookie": [], - "body": "[\n {\n \"value\": \"reference #/components/schemas/OfficeRole not found in the OpenAPI spec\"\n },\n {\n \"value\": \"reference #/components/schemas/OfficeRole not found in the OpenAPI spec\"\n }\n]" + "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", @@ -18924,11 +19377,12 @@ } ], "url": { - "raw": "{{baseUrl}}super-admin/office-roles", + "raw": "{{baseUrl}}/super-admin/office-roles", "host": [ - "{{baseUrl}}super-admin" + "{{baseUrl}}" ], "path": [ + "super-admin", "office-roles" ] } @@ -18968,7 +19422,7 @@ ], "body": { "mode": "raw", - "raw": "{\n \"value\": \"reference #/components/schemas/OfficeRole not found in the OpenAPI spec\"\n}", + "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", @@ -18977,11 +19431,12 @@ } }, "url": { - "raw": "{{baseUrl}}super-admin/office-roles", + "raw": "{{baseUrl}}/super-admin/office-roles", "host": [ - "{{baseUrl}}super-admin" + "{{baseUrl}}" ], "path": [ + "super-admin", "office-roles" ] } @@ -19008,7 +19463,7 @@ ], "body": { "mode": "raw", - "raw": "{\n \"value\": \"reference #/components/schemas/OfficeRole not found in the OpenAPI spec\"\n}", + "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", @@ -19017,11 +19472,12 @@ } }, "url": { - "raw": "{{baseUrl}}super-admin/office-roles", + "raw": "{{baseUrl}}/super-admin/office-roles", "host": [ - "{{baseUrl}}super-admin" + "{{baseUrl}}" ], "path": [ + "super-admin", "office-roles" ] } @@ -19036,7 +19492,7 @@ } ], "cookie": [], - "body": "[\n {\n \"value\": \"reference #/components/schemas/OfficeRole not found in the OpenAPI spec\"\n },\n {\n \"value\": \"reference #/components/schemas/OfficeRole not found in the OpenAPI spec\"\n }\n]" + "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", @@ -19055,7 +19511,7 @@ ], "body": { "mode": "raw", - "raw": "{\n \"value\": \"reference #/components/schemas/OfficeRole not found in the OpenAPI spec\"\n}", + "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", @@ -19064,11 +19520,12 @@ } }, "url": { - "raw": "{{baseUrl}}super-admin/office-roles", + "raw": "{{baseUrl}}/super-admin/office-roles", "host": [ - "{{baseUrl}}super-admin" + "{{baseUrl}}" ], "path": [ + "super-admin", "office-roles" ] } @@ -19111,11 +19568,12 @@ } ], "url": { - "raw": "{{baseUrl}}super-admin/offices/:uid?uid=", + "raw": "{{baseUrl}}/super-admin/offices/:uid?uid=", "host": [ - "{{baseUrl}}super-admin" + "{{baseUrl}}" ], "path": [ + "super-admin", "offices", ":uid" ], @@ -19151,11 +19609,12 @@ } ], "url": { - "raw": "{{baseUrl}}super-admin/offices/:uid?uid=", + "raw": "{{baseUrl}}/super-admin/offices/:uid?uid=", "host": [ - "{{baseUrl}}super-admin" + "{{baseUrl}}" ], "path": [ + "super-admin", "offices", ":uid" ], @@ -19183,7 +19642,7 @@ } ], "cookie": [], - "body": "[\n {\n \"value\": \"reference #/components/schemas/Office not found in the OpenAPI spec\"\n },\n {\n \"value\": \"reference #/components/schemas/Office not found in the OpenAPI spec\"\n }\n]" + "body": "[\n {\n \"uid\": \"\",\n \"name\": \"\"\n },\n {\n \"uid\": \"\",\n \"name\": \"\"\n }\n]" }, { "name": "Invalid status value", @@ -19197,11 +19656,12 @@ } ], "url": { - "raw": "{{baseUrl}}super-admin/offices/:uid?uid=", + "raw": "{{baseUrl}}/super-admin/offices/:uid?uid=", "host": [ - "{{baseUrl}}super-admin" + "{{baseUrl}}" ], "path": [ + "super-admin", "offices", ":uid" ], @@ -19254,7 +19714,7 @@ ], "body": { "mode": "raw", - "raw": "{\n \"value\": \"reference #/components/schemas/Office not found in the OpenAPI spec\"\n}", + "raw": "{\n \"uid\": \"\",\n \"name\": \"\"\n}", "options": { "raw": { "headerFamily": "json", @@ -19263,11 +19723,12 @@ } }, "url": { - "raw": "{{baseUrl}}super-admin/offices/:uid?uid=", + "raw": "{{baseUrl}}/super-admin/offices/:uid?uid=", "host": [ - "{{baseUrl}}super-admin" + "{{baseUrl}}" ], "path": [ + "super-admin", "offices", ":uid" ], @@ -19308,7 +19769,7 @@ ], "body": { "mode": "raw", - "raw": "{\n \"value\": \"reference #/components/schemas/Office not found in the OpenAPI spec\"\n}", + "raw": "{\n \"uid\": \"\",\n \"name\": \"\"\n}", "options": { "raw": { "headerFamily": "json", @@ -19317,11 +19778,12 @@ } }, "url": { - "raw": "{{baseUrl}}super-admin/offices/:uid?uid=", + "raw": "{{baseUrl}}/super-admin/offices/:uid?uid=", "host": [ - "{{baseUrl}}super-admin" + "{{baseUrl}}" ], "path": [ + "super-admin", "offices", ":uid" ], @@ -19349,7 +19811,7 @@ } ], "cookie": [], - "body": "[\n {\n \"value\": \"reference #/components/schemas/Office not found in the OpenAPI spec\"\n },\n {\n \"value\": \"reference #/components/schemas/Office not found in the OpenAPI spec\"\n }\n]" + "body": "[\n {\n \"uid\": \"\",\n \"name\": \"\"\n },\n {\n \"uid\": \"\",\n \"name\": \"\"\n }\n]" }, { "name": "Invalid status value", @@ -19368,7 +19830,7 @@ ], "body": { "mode": "raw", - "raw": "{\n \"value\": \"reference #/components/schemas/Office not found in the OpenAPI spec\"\n}", + "raw": "{\n \"uid\": \"\",\n \"name\": \"\"\n}", "options": { "raw": { "headerFamily": "json", @@ -19377,11 +19839,12 @@ } }, "url": { - "raw": "{{baseUrl}}super-admin/offices/:uid?uid=", + "raw": "{{baseUrl}}/super-admin/offices/:uid?uid=", "host": [ - "{{baseUrl}}super-admin" + "{{baseUrl}}" ], "path": [ + "super-admin", "offices", ":uid" ], @@ -19431,11 +19894,12 @@ } ], "url": { - "raw": "{{baseUrl}}super-admin/offices", + "raw": "{{baseUrl}}/super-admin/offices", "host": [ - "{{baseUrl}}super-admin" + "{{baseUrl}}" ], "path": [ + "super-admin", "offices" ] } @@ -19457,11 +19921,12 @@ } ], "url": { - "raw": "{{baseUrl}}super-admin/offices", + "raw": "{{baseUrl}}/super-admin/offices", "host": [ - "{{baseUrl}}super-admin" + "{{baseUrl}}" ], "path": [ + "super-admin", "offices" ] } @@ -19476,7 +19941,7 @@ } ], "cookie": [], - "body": "[\n {\n \"value\": \"reference #/components/schemas/Office not found in the OpenAPI spec\"\n },\n {\n \"value\": \"reference #/components/schemas/Office not found in the OpenAPI spec\"\n }\n]" + "body": "[\n {\n \"uid\": \"\",\n \"name\": \"\"\n },\n {\n \"uid\": \"\",\n \"name\": \"\"\n }\n]" }, { "name": "Invalid status value", @@ -19490,11 +19955,12 @@ } ], "url": { - "raw": "{{baseUrl}}super-admin/offices", + "raw": "{{baseUrl}}/super-admin/offices", "host": [ - "{{baseUrl}}super-admin" + "{{baseUrl}}" ], "path": [ + "super-admin", "offices" ] } @@ -19534,7 +20000,7 @@ ], "body": { "mode": "raw", - "raw": "{\n \"value\": \"reference #/components/schemas/Office not found in the OpenAPI spec\"\n}", + "raw": "{\n \"uid\": \"\",\n \"name\": \"\"\n}", "options": { "raw": { "headerFamily": "json", @@ -19543,11 +20009,12 @@ } }, "url": { - "raw": "{{baseUrl}}super-admin/offices", + "raw": "{{baseUrl}}/super-admin/offices", "host": [ - "{{baseUrl}}super-admin" + "{{baseUrl}}" ], "path": [ + "super-admin", "offices" ] } @@ -19574,7 +20041,7 @@ ], "body": { "mode": "raw", - "raw": "{\n \"value\": \"reference #/components/schemas/Office not found in the OpenAPI spec\"\n}", + "raw": "{\n \"uid\": \"\",\n \"name\": \"\"\n}", "options": { "raw": { "headerFamily": "json", @@ -19583,11 +20050,12 @@ } }, "url": { - "raw": "{{baseUrl}}super-admin/offices", + "raw": "{{baseUrl}}/super-admin/offices", "host": [ - "{{baseUrl}}super-admin" + "{{baseUrl}}" ], "path": [ + "super-admin", "offices" ] } @@ -19602,7 +20070,7 @@ } ], "cookie": [], - "body": "[\n {\n \"value\": \"reference #/components/schemas/Office not found in the OpenAPI spec\"\n },\n {\n \"value\": \"reference #/components/schemas/Office not found in the OpenAPI spec\"\n }\n]" + "body": "[\n {\n \"uid\": \"\",\n \"name\": \"\"\n },\n {\n \"uid\": \"\",\n \"name\": \"\"\n }\n]" }, { "name": "Invalid status value", @@ -19621,7 +20089,7 @@ ], "body": { "mode": "raw", - "raw": "{\n \"value\": \"reference #/components/schemas/Office not found in the OpenAPI spec\"\n}", + "raw": "{\n \"uid\": \"\",\n \"name\": \"\"\n}", "options": { "raw": { "headerFamily": "json", @@ -19630,11 +20098,12 @@ } }, "url": { - "raw": "{{baseUrl}}super-admin/offices", + "raw": "{{baseUrl}}/super-admin/offices", "host": [ - "{{baseUrl}}super-admin" + "{{baseUrl}}" ], "path": [ + "super-admin", "offices" ] } @@ -19677,11 +20146,12 @@ } ], "url": { - "raw": "{{baseUrl}}super-admin/roles/:uid?uid=", + "raw": "{{baseUrl}}/super-admin/roles/:uid?uid=", "host": [ - "{{baseUrl}}super-admin" + "{{baseUrl}}" ], "path": [ + "super-admin", "roles", ":uid" ], @@ -19717,11 +20187,12 @@ } ], "url": { - "raw": "{{baseUrl}}super-admin/roles/:uid?uid=", + "raw": "{{baseUrl}}/super-admin/roles/:uid?uid=", "host": [ - "{{baseUrl}}super-admin" + "{{baseUrl}}" ], "path": [ + "super-admin", "roles", ":uid" ], @@ -19749,7 +20220,7 @@ } ], "cookie": [], - "body": "[\n {\n \"value\": \"reference #/components/schemas/Role not found in the OpenAPI spec\"\n },\n {\n \"value\": \"reference #/components/schemas/Role not found in the OpenAPI spec\"\n }\n]" + "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", @@ -19763,11 +20234,12 @@ } ], "url": { - "raw": "{{baseUrl}}super-admin/roles/:uid?uid=", + "raw": "{{baseUrl}}/super-admin/roles/:uid?uid=", "host": [ - "{{baseUrl}}super-admin" + "{{baseUrl}}" ], "path": [ + "super-admin", "roles", ":uid" ], @@ -19820,7 +20292,7 @@ ], "body": { "mode": "raw", - "raw": "{\n \"value\": \"reference #/components/schemas/Role not found in the OpenAPI spec\"\n}", + "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", @@ -19829,11 +20301,12 @@ } }, "url": { - "raw": "{{baseUrl}}super-admin/roles/:uid?uid=", + "raw": "{{baseUrl}}/super-admin/roles/:uid?uid=", "host": [ - "{{baseUrl}}super-admin" + "{{baseUrl}}" ], "path": [ + "super-admin", "roles", ":uid" ], @@ -19874,7 +20347,7 @@ ], "body": { "mode": "raw", - "raw": "{\n \"value\": \"reference #/components/schemas/Role not found in the OpenAPI spec\"\n}", + "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", @@ -19883,11 +20356,12 @@ } }, "url": { - "raw": "{{baseUrl}}super-admin/roles/:uid?uid=", + "raw": "{{baseUrl}}/super-admin/roles/:uid?uid=", "host": [ - "{{baseUrl}}super-admin" + "{{baseUrl}}" ], "path": [ + "super-admin", "roles", ":uid" ], @@ -19915,7 +20389,7 @@ } ], "cookie": [], - "body": "{\n \"value\": \"reference #/components/schemas/Role not found in the OpenAPI spec\"\n}" + "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", @@ -19934,7 +20408,7 @@ ], "body": { "mode": "raw", - "raw": "{\n \"value\": \"reference #/components/schemas/Role not found in the OpenAPI spec\"\n}", + "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", @@ -19943,11 +20417,12 @@ } }, "url": { - "raw": "{{baseUrl}}super-admin/roles/:uid?uid=", + "raw": "{{baseUrl}}/super-admin/roles/:uid?uid=", "host": [ - "{{baseUrl}}super-admin" + "{{baseUrl}}" ], "path": [ + "super-admin", "roles", ":uid" ], @@ -19997,11 +20472,12 @@ } ], "url": { - "raw": "{{baseUrl}}super-admin/roles", + "raw": "{{baseUrl}}/super-admin/roles", "host": [ - "{{baseUrl}}super-admin" + "{{baseUrl}}" ], "path": [ + "super-admin", "roles" ] } @@ -20023,11 +20499,12 @@ } ], "url": { - "raw": "{{baseUrl}}super-admin/roles", + "raw": "{{baseUrl}}/super-admin/roles", "host": [ - "{{baseUrl}}super-admin" + "{{baseUrl}}" ], "path": [ + "super-admin", "roles" ] } @@ -20042,7 +20519,7 @@ } ], "cookie": [], - "body": "[\n {\n \"value\": \"reference #/components/schemas/Role not found in the OpenAPI spec\"\n },\n {\n \"value\": \"reference #/components/schemas/Role not found in the OpenAPI spec\"\n }\n]" + "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", @@ -20056,11 +20533,12 @@ } ], "url": { - "raw": "{{baseUrl}}super-admin/roles", + "raw": "{{baseUrl}}/super-admin/roles", "host": [ - "{{baseUrl}}super-admin" + "{{baseUrl}}" ], "path": [ + "super-admin", "roles" ] } @@ -20100,7 +20578,7 @@ ], "body": { "mode": "raw", - "raw": "{\n \"value\": \"reference #/components/schemas/Role not found in the OpenAPI spec\"\n}", + "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", @@ -20109,11 +20587,12 @@ } }, "url": { - "raw": "{{baseUrl}}super-admin/roles", + "raw": "{{baseUrl}}/super-admin/roles", "host": [ - "{{baseUrl}}super-admin" + "{{baseUrl}}" ], "path": [ + "super-admin", "roles" ] } @@ -20140,7 +20619,7 @@ ], "body": { "mode": "raw", - "raw": "{\n \"value\": \"reference #/components/schemas/Role not found in the OpenAPI spec\"\n}", + "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", @@ -20149,11 +20628,12 @@ } }, "url": { - "raw": "{{baseUrl}}super-admin/roles", + "raw": "{{baseUrl}}/super-admin/roles", "host": [ - "{{baseUrl}}super-admin" + "{{baseUrl}}" ], "path": [ + "super-admin", "roles" ] } @@ -20168,7 +20648,7 @@ } ], "cookie": [], - "body": "{\n \"value\": \"reference #/components/schemas/Role not found in the OpenAPI spec\"\n}" + "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", @@ -20187,7 +20667,7 @@ ], "body": { "mode": "raw", - "raw": "{\n \"value\": \"reference #/components/schemas/Role not found in the OpenAPI spec\"\n}", + "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", @@ -20196,11 +20676,12 @@ } }, "url": { - "raw": "{{baseUrl}}super-admin/roles", + "raw": "{{baseUrl}}/super-admin/roles", "host": [ - "{{baseUrl}}super-admin" + "{{baseUrl}}" ], "path": [ + "super-admin", "roles" ] } @@ -20253,11 +20734,12 @@ } }, "url": { - "raw": "{{baseUrl}}super-admin/notifications/:uid", + "raw": "{{baseUrl}}/super-admin/notifications/:uid", "host": [ - "{{baseUrl}}super-admin" + "{{baseUrl}}" ], "path": [ + "super-admin", "notifications", ":uid" ], @@ -20298,11 +20780,12 @@ } }, "url": { - "raw": "{{baseUrl}}super-admin/notifications/:uid", + "raw": "{{baseUrl}}/super-admin/notifications/:uid", "host": [ - "{{baseUrl}}super-admin" + "{{baseUrl}}" ], "path": [ + "super-admin", "notifications", ":uid" ], @@ -20346,11 +20829,12 @@ } }, "url": { - "raw": "{{baseUrl}}super-admin/notifications/:uid", + "raw": "{{baseUrl}}/super-admin/notifications/:uid", "host": [ - "{{baseUrl}}super-admin" + "{{baseUrl}}" ], "path": [ + "super-admin", "notifications", ":uid" ], @@ -20391,11 +20875,12 @@ } ], "url": { - "raw": "{{baseUrl}}super-admin/notifications/:uid?uid=", + "raw": "{{baseUrl}}/super-admin/notifications/:uid?uid=", "host": [ - "{{baseUrl}}super-admin" + "{{baseUrl}}" ], "path": [ + "super-admin", "notifications", ":uid" ], @@ -20431,11 +20916,12 @@ } ], "url": { - "raw": "{{baseUrl}}super-admin/notifications/:uid?uid=", + "raw": "{{baseUrl}}/super-admin/notifications/:uid?uid=", "host": [ - "{{baseUrl}}super-admin" + "{{baseUrl}}" ], "path": [ + "super-admin", "notifications", ":uid" ], @@ -20477,11 +20963,12 @@ } ], "url": { - "raw": "{{baseUrl}}super-admin/notifications/:uid?uid=", + "raw": "{{baseUrl}}/super-admin/notifications/:uid?uid=", "host": [ - "{{baseUrl}}super-admin" + "{{baseUrl}}" ], "path": [ + "super-admin", "notifications", ":uid" ], @@ -20531,11 +21018,12 @@ } ], "url": { - "raw": "{{baseUrl}}super-admin/notifications", + "raw": "{{baseUrl}}/super-admin/notifications", "host": [ - "{{baseUrl}}super-admin" + "{{baseUrl}}" ], "path": [ + "super-admin", "notifications" ] } @@ -20557,11 +21045,12 @@ } ], "url": { - "raw": "{{baseUrl}}super-admin/notifications", + "raw": "{{baseUrl}}/super-admin/notifications", "host": [ - "{{baseUrl}}super-admin" + "{{baseUrl}}" ], "path": [ + "super-admin", "notifications" ] } @@ -20590,11 +21079,12 @@ } ], "url": { - "raw": "{{baseUrl}}super-admin/notifications", + "raw": "{{baseUrl}}/super-admin/notifications", "host": [ - "{{baseUrl}}super-admin" + "{{baseUrl}}" ], "path": [ + "super-admin", "notifications" ] } @@ -20637,11 +21127,12 @@ } ], "url": { - "raw": "{{baseUrl}}super-admin/users/:uid?uid=", + "raw": "{{baseUrl}}/super-admin/users/:uid?uid=", "host": [ - "{{baseUrl}}super-admin" + "{{baseUrl}}" ], "path": [ + "super-admin", "users", ":uid" ], @@ -20676,11 +21167,12 @@ } ], "url": { - "raw": "{{baseUrl}}super-admin/users/:uid?uid=", + "raw": "{{baseUrl}}/super-admin/users/:uid?uid=", "host": [ - "{{baseUrl}}super-admin" + "{{baseUrl}}" ], "path": [ + "super-admin", "users", ":uid" ], @@ -20708,7 +21200,7 @@ } ], "cookie": [], - "body": "[\n {\n \"value\": \"reference #/components/schemas/User not found in the OpenAPI spec\"\n },\n {\n \"value\": \"reference #/components/schemas/User not found in the OpenAPI spec\"\n }\n]" + "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", @@ -20722,11 +21214,12 @@ } ], "url": { - "raw": "{{baseUrl}}super-admin/users/:uid?uid=", + "raw": "{{baseUrl}}/super-admin/users/:uid?uid=", "host": [ - "{{baseUrl}}super-admin" + "{{baseUrl}}" ], "path": [ + "super-admin", "users", ":uid" ], @@ -20775,7 +21268,7 @@ ], "body": { "mode": "raw", - "raw": "{\n \"value\": \"reference #/components/schemas/User not found in the OpenAPI spec\"\n}", + "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", @@ -20784,11 +21277,12 @@ } }, "url": { - "raw": "{{baseUrl}}super-admin/users/:uid?uid=", + "raw": "{{baseUrl}}/super-admin/users/:uid?uid=", "host": [ - "{{baseUrl}}super-admin" + "{{baseUrl}}" ], "path": [ + "super-admin", "users", ":uid" ], @@ -20824,7 +21318,7 @@ ], "body": { "mode": "raw", - "raw": "{\n \"value\": \"reference #/components/schemas/User not found in the OpenAPI spec\"\n}", + "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", @@ -20833,11 +21327,12 @@ } }, "url": { - "raw": "{{baseUrl}}super-admin/users/:uid?uid=", + "raw": "{{baseUrl}}/super-admin/users/:uid?uid=", "host": [ - "{{baseUrl}}super-admin" + "{{baseUrl}}" ], "path": [ + "super-admin", "users", ":uid" ], @@ -20879,7 +21374,7 @@ ], "body": { "mode": "raw", - "raw": "{\n \"value\": \"reference #/components/schemas/User not found in the OpenAPI spec\"\n}", + "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", @@ -20888,11 +21383,12 @@ } }, "url": { - "raw": "{{baseUrl}}super-admin/users/:uid?uid=", + "raw": "{{baseUrl}}/super-admin/users/:uid?uid=", "host": [ - "{{baseUrl}}super-admin" + "{{baseUrl}}" ], "path": [ + "super-admin", "users", ":uid" ], @@ -20942,11 +21438,12 @@ } ], "url": { - "raw": "{{baseUrl}}super-admin/users", + "raw": "{{baseUrl}}/super-admin/users", "host": [ - "{{baseUrl}}super-admin" + "{{baseUrl}}" ], "path": [ + "super-admin", "users" ] } @@ -20968,11 +21465,12 @@ } ], "url": { - "raw": "{{baseUrl}}super-admin/users", + "raw": "{{baseUrl}}/super-admin/users", "host": [ - "{{baseUrl}}super-admin" + "{{baseUrl}}" ], "path": [ + "super-admin", "users" ] } @@ -20987,7 +21485,7 @@ } ], "cookie": [], - "body": "[\n {\n \"value\": \"reference #/components/schemas/User not found in the OpenAPI spec\"\n },\n {\n \"value\": \"reference #/components/schemas/User not found in the OpenAPI spec\"\n }\n]" + "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", @@ -21001,11 +21499,12 @@ } ], "url": { - "raw": "{{baseUrl}}super-admin/users", + "raw": "{{baseUrl}}/super-admin/users", "host": [ - "{{baseUrl}}super-admin" + "{{baseUrl}}" ], "path": [ + "super-admin", "users" ] } @@ -21043,11 +21542,12 @@ "method": "DELETE", "header": [], "url": { - "raw": "{{baseUrl}}super-admin/live-votes/:uid", + "raw": "{{baseUrl}}/super-admin/live-votes/:uid", "host": [ - "{{baseUrl}}super-admin" + "{{baseUrl}}" ], "path": [ + "super-admin", "live-votes", ":uid" ], @@ -21074,11 +21574,12 @@ } ], "url": { - "raw": "{{baseUrl}}super-admin/live-votes/:uid", + "raw": "{{baseUrl}}/super-admin/live-votes/:uid", "host": [ - "{{baseUrl}}super-admin" + "{{baseUrl}}" ], "path": [ + "super-admin", "live-votes", ":uid" ], @@ -21108,11 +21609,12 @@ } ], "url": { - "raw": "{{baseUrl}}super-admin/live-votes/:uid", + "raw": "{{baseUrl}}/super-admin/live-votes/:uid", "host": [ - "{{baseUrl}}super-admin" + "{{baseUrl}}" ], "path": [ + "super-admin", "live-votes", ":uid" ], @@ -21156,7 +21658,7 @@ ], "body": { "mode": "raw", - "raw": "{\n \"value\": \"reference #/components/schemas/Vote not found in the OpenAPI spec\"\n}", + "raw": "{\n \"value\": \"reference #/components/schemas/LiveVote not found in the OpenAPI spec\"\n}", "options": { "raw": { "headerFamily": "json", @@ -21165,11 +21667,12 @@ } }, "url": { - "raw": "{{baseUrl}}super-admin/live-votes", + "raw": "{{baseUrl}}/super-admin/live-votes", "host": [ - "{{baseUrl}}super-admin" + "{{baseUrl}}" ], "path": [ + "super-admin", "live-votes" ] } @@ -21192,7 +21695,7 @@ ], "body": { "mode": "raw", - "raw": "{\n \"value\": \"reference #/components/schemas/Vote not found in the OpenAPI spec\"\n}", + "raw": "{\n \"value\": \"reference #/components/schemas/LiveVote not found in the OpenAPI spec\"\n}", "options": { "raw": { "headerFamily": "json", @@ -21201,11 +21704,12 @@ } }, "url": { - "raw": "{{baseUrl}}super-admin/live-votes", + "raw": "{{baseUrl}}/super-admin/live-votes", "host": [ - "{{baseUrl}}super-admin" + "{{baseUrl}}" ], "path": [ + "super-admin", "live-votes" ] } @@ -21234,7 +21738,7 @@ ], "body": { "mode": "raw", - "raw": "{\n \"value\": \"reference #/components/schemas/Vote not found in the OpenAPI spec\"\n}", + "raw": "{\n \"value\": \"reference #/components/schemas/LiveVote not found in the OpenAPI spec\"\n}", "options": { "raw": { "headerFamily": "json", @@ -21243,11 +21747,12 @@ } }, "url": { - "raw": "{{baseUrl}}super-admin/live-votes", + "raw": "{{baseUrl}}/super-admin/live-votes", "host": [ - "{{baseUrl}}super-admin" + "{{baseUrl}}" ], "path": [ + "super-admin", "live-votes" ] } @@ -21269,7 +21774,7 @@ "variable": [ { "key": "baseUrl", - "value": "http://localhost:3000/api/v1" + "value": "https://api.stg.lecoffre.smart-chain.fr" } ] } \ No newline at end of file diff --git a/doc/swagger.json b/doc/swagger.json index 7c9bddfc..4a816344 100644 --- a/doc/swagger.json +++ b/doc/swagger.json @@ -1,12 +1,15 @@ { - "swagger": "2.0", + "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" }, - "host": "localhost:3000", - "basePath": "/api/v1", + "servers": [ + { + "url": "https://api.stg.lecoffre.smart-chain.fr" + } + ], "tags": [ { "name": "customer" @@ -21,20 +24,23 @@ "name": "super-admin" } ], - "schemes": ["http", "https"], "paths": { - "notary/customers": { + "/notary/customers": { "get": { "tags": ["notary"], "summary": "Get all customers", "description": "", "operationId": "getCustomers", - "produces": ["application/json"], + "responses": { "200": { "description": "successful operation", - "schema": { - "$ref": "#/definitions/Customer" + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Customer" + } + } } }, "400": { @@ -52,23 +58,27 @@ "summary": "Add a new customer", "description": "", "operationId": "addCustomer", - "produces": ["application/json"], - "parameters": [ - { - "in": "body", - "name": "body", - "description": "Customer object that needs to be added to the store", - "required": true, - "schema": { - "$ref": "#/definitions/Customer" + + "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", - "schema": { - "$ref": "#/definitions/Customer" + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Customer" + } + } } }, "400": { @@ -82,27 +92,31 @@ ] } }, - "notary/customers/{uid}": { + "/notary/customers/{uid}": { "get": { "tags": ["notary"], "summary": "Find customer by ID", "description": "Returns a single customer", "operationId": "getCustomerById", - "produces": ["application/json"], + "parameters": [ { "name": "uid", "in": "path", "description": "ID of customer to return", "required": true, - "type": "string" + "schema": { "type": "string" } } ], "responses": { "200": { "description": "successful operation", - "schema": { - "$ref": "#/definitions/Customer" + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Customer" + } + } } }, "400": { @@ -120,30 +134,36 @@ "summary": "Update an existing customer", "description": "Returns a single customer updated", "operationId": "updateCustomer", - "produces": ["application/json"], + "parameters": [ { "name": "uid", "in": "path", "description": "ID of customer to return", "required": true, - "type": "string" - }, - { - "in": "body", - "name": "body", - "description": "Customer object that needs to be added to the store", - "required": true, - "schema": { - "$ref": "#/definitions/Customer" - } + "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", - "schema": { - "$ref": "#/definitions/Customer" + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Customer" + } + } } }, "400": { @@ -161,21 +181,25 @@ "summary": "Delete an existing customer", "description": "Returns a single customer deleted", "operationId": "deleteCustomer", - "produces": ["application/json"], + "parameters": [ { "name": "uid", "in": "path", "description": "ID of customer to return", "required": true, - "type": "string" + "schema": { "type": "string" } } ], "responses": { "200": { "description": "successful operation", - "schema": { - "$ref": "#/definitions/Customer" + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Customer" + } + } } }, "400": { @@ -189,18 +213,22 @@ ] } }, - "notary/deeds": { + "/notary/deeds": { "get": { "tags": ["notary"], "summary": "Get all deeds", "description": "", "operationId": "getDeeds", - "produces": ["application/json"], + "responses": { "200": { "description": "successful operation", - "schema": { - "$ref": "#/definitions/Deed" + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Deed" + } + } } }, "400": { @@ -218,23 +246,27 @@ "summary": "Add a new deed", "description": "", "operationId": "addDeed", - "produces": ["application/json"], - "parameters": [ - { - "in": "body", - "name": "body", - "description": "Deed object that needs to be added to the store", - "required": true, - "schema": { - "$ref": "#/definitions/Deed" + + "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", - "schema": { - "$ref": "#/definitions/Deed" + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Deed" + } + } } }, "400": { @@ -248,27 +280,31 @@ ] } }, - "notary/deeds/{uid}": { + "/notary/deeds/{uid}": { "get": { "tags": ["notary"], "summary": "Find deed by ID", "description": "Returns a single deed", "operationId": "getDeedById", - "produces": ["application/json"], + "parameters": [ { "name": "uid", "in": "path", "description": "ID of deed to return", "required": true, - "type": "string" + "schema": { "type": "string" } } ], "responses": { "200": { "description": "successful operation", - "schema": { - "$ref": "#/definitions/Deed" + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Deed" + } + } } }, "400": { @@ -286,30 +322,36 @@ "summary": "Update an existing deed", "description": "Returns a single deed updated", "operationId": "updateDeed", - "produces": ["application/json"], + "parameters": [ { "name": "uid", "in": "path", "description": "ID of deed to return", "required": true, - "type": "string" - }, - { - "in": "body", - "name": "body", - "description": "Deed object that needs to be added to the store", - "required": true, - "schema": { - "$ref": "#/definitions/Deed" - } + "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", - "schema": { - "$ref": "#/definitions/Deed" + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Deed" + } + } } }, "400": { @@ -327,30 +369,36 @@ "summary": "Delete an existing deed", "description": "Returns a single deed deleted", "operationId": "deleteDeed", - "produces": ["application/json"], + "parameters": [ { "name": "uid", "in": "path", "description": "ID of deed to return", "required": true, - "type": "string" - }, - { - "in": "body", - "name": "body", - "description": "Deed object that needs to be added to the store", - "required": true, - "schema": { - "$ref": "#/definitions/Deed" - } + "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", - "schema": { - "$ref": "#/definitions/Deed" + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Deed" + } + } } }, "400": { @@ -364,18 +412,22 @@ ] } }, - "notary/deed-types": { + "/notary/deed-types": { "get": { "tags": ["notary"], "summary": "Get all deed types", "description": "", "operationId": "getDeedTypes", - "produces": ["application/json"], + "responses": { "200": { "description": "successful operation", - "schema": { - "$ref": "#/definitions/DeedType" + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/DeedType" + } + } } }, "400": { @@ -393,23 +445,27 @@ "summary": "Add a new deed type", "description": "", "operationId": "addDeedType", - "produces": ["application/json"], - "parameters": [ - { - "in": "body", - "name": "body", - "description": "DeedType object that needs to be added to the store", - "required": true, - "schema": { - "$ref": "#/definitions/DeedType" + + "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", - "schema": { - "$ref": "#/definitions/DeedType" + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/DeedType" + } + } } }, "400": { @@ -423,27 +479,31 @@ ] } }, - "notary/deed-types/{uid}": { + "/notary/deed-types/{uid}": { "get": { "tags": ["notary"], "summary": "Find deed type by ID", "description": "Returns a single deed type", "operationId": "getDeedTypeById", - "produces": ["application/json"], + "parameters": [ { "name": "uid", "in": "path", "description": "ID of deed type to return", "required": true, - "type": "string" + "schema": { "type": "string" } } ], "responses": { "200": { "description": "successful operation", - "schema": { - "$ref": "#/definitions/DeedType" + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/DeedType" + } + } } }, "400": { @@ -461,30 +521,36 @@ "summary": "Update an existing deed type", "description": "Returns a single deed type updated", "operationId": "updateDeedType", - "produces": ["application/json"], + "parameters": [ { "name": "uid", "in": "path", "description": "ID of deed type to return", "required": true, - "type": "string" - }, - { - "in": "body", - "name": "body", - "description": "DeedType object that needs to be added to the store", - "required": true, - "schema": { - "$ref": "#/definitions/DeedType" - } + "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", - "schema": { - "$ref": "#/definitions/DeedType" + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/DeedType" + } + } } }, "400": { @@ -498,18 +564,22 @@ ] } }, - "notary/documents": { + "/notary/documents": { "get": { "tags": ["notary"], "summary": "Get all documents", "description": "", "operationId": "getDocuments", - "produces": ["application/json"], + "responses": { "200": { "description": "successful operation", - "schema": { - "$ref": "#/definitions/Document" + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Document" + } + } } }, "400": { @@ -527,23 +597,27 @@ "summary": "Add a new document", "description": "", "operationId": "addDocument", - "produces": ["application/json"], - "parameters": [ - { - "in": "body", - "name": "body", - "description": "Document object that needs to be added to the store", - "required": true, - "schema": { - "$ref": "#/definitions/Document" + + "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", - "schema": { - "$ref": "#/definitions/Document" + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Document" + } + } } }, "400": { @@ -557,27 +631,31 @@ ] } }, - "notary/documents/{uid}": { + "/notary/documents/{uid}": { "get": { "tags": ["notary"], "summary": "Find document by ID", "description": "Returns a single document", "operationId": "getDocumentById", - "produces": ["application/json"], + "parameters": [ { "name": "uid", "in": "path", "description": "ID of document to return", "required": true, - "type": "string" + "schema": { "type": "string" } } ], "responses": { "200": { "description": "successful operation", - "schema": { - "$ref": "#/definitions/Document" + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Document" + } + } } }, "400": { @@ -595,30 +673,36 @@ "summary": "Update an existing document", "description": "Returns a single document updated", "operationId": "updateDocument", - "produces": ["application/json"], + "parameters": [ { "name": "uid", "in": "path", "description": "ID of document to return", "required": true, - "type": "string" - }, - { - "in": "body", - "name": "body", - "description": "Document object that needs to be added to the store", - "required": true, - "schema": { - "$ref": "#/definitions/Document" - } + "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", - "schema": { - "$ref": "#/definitions/Document" + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Document" + } + } } }, "400": { @@ -636,30 +720,36 @@ "summary": "Delete an existing document", "description": "Returns a single document deleted", "operationId": "deleteDocument", - "produces": ["application/json"], + "parameters": [ { "name": "uid", "in": "path", "description": "ID of document to return", "required": true, - "type": "string" - }, - { - "in": "body", - "name": "body", - "description": "Document object that needs to be added to the store", - "required": true, - "schema": { - "$ref": "#/definitions/Document" - } + "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", - "schema": { - "$ref": "#/definitions/Document" + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Document" + } + } } }, "400": { @@ -673,18 +763,21 @@ ] } }, - "notary/document-types": { + "/notary/document-types": { "get": { "tags": ["notary"], "summary": "Get all document types", "description": "", "operationId": "getDocumentTypes", - "produces": ["application/json"], "responses": { "200": { "description": "successful operation", - "schema": { - "$ref": "#/definitions/DocumentType" + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/DocumentType" + } + } } }, "400": { @@ -702,23 +795,27 @@ "summary": "Add a new document type", "description": "", "operationId": "addDocumentType", - "produces": ["application/json"], - "parameters": [ - { - "in": "body", - "name": "body", - "description": "DocumentType object that needs to be added to the store", - "required": true, - "schema": { - "$ref": "#/definitions/DocumentType" + + "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", - "schema": { - "$ref": "#/definitions/DocumentType" + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/DocumentType" + } + } } }, "400": { @@ -732,27 +829,31 @@ ] } }, - "notary/document-types/{uid}": { + "/notary/document-types/{uid}": { "get": { "tags": ["notary"], "summary": "Find document type by ID", "description": "Returns a single document type", "operationId": "getDocumentTypeById", - "produces": ["application/json"], + "parameters": [ { "name": "uid", "in": "path", "description": "ID of document type to return", "required": true, - "type": "string" + "schema": { "type": "string" } } ], "responses": { "200": { "description": "successful operation", - "schema": { - "$ref": "#/definitions/DocumentType" + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/DocumentType" + } + } } }, "400": { @@ -770,30 +871,36 @@ "summary": "Update an existing document type", "description": "Returns a single document type updated", "operationId": "updateDocumentType", - "produces": ["application/json"], + "parameters": [ { "name": "uid", "in": "path", "description": "ID of document type to return", "required": true, - "type": "string" - }, - { - "in": "body", - "name": "body", - "description": "DocumentType object that needs to be added to the store", - "required": true, - "schema": { - "$ref": "#/definitions/DocumentType" - } + "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", - "schema": { - "$ref": "#/definitions/DocumentType" + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/DocumentType" + } + } } }, "400": { @@ -811,21 +918,25 @@ "summary": "Delete an existing document type", "description": "Returns a single document type deleted", "operationId": "deleteDocumentType", - "produces": ["application/json"], + "parameters": [ { "name": "uid", "in": "path", "description": "ID of document type to return", "required": true, - "type": "string" + "schema": { "type": "string" } } ], "responses": { "200": { "description": "successful operation", - "schema": { - "$ref": "#/definitions/DocumentType" + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/DocumentType" + } + } } }, "400": { @@ -839,13 +950,13 @@ ] } }, - "notary/files": { + "/notary/files": { "get": { "tags": ["notary"], "summary": "Get all files", "description": "", "operationId": "getFiles", - "produces": ["application/json"], + "responses": { "200": { "description": "successful operation" @@ -861,20 +972,20 @@ ] } }, - "notary/files/{uid}": { + "/notary/files/{uid}": { "get": { "tags": ["notary"], "summary": "Find file by ID", "description": "Returns a single file", "operationId": "getFileById", - "produces": ["application/json"], + "parameters": [ { "name": "uid", "in": "path", "description": "ID of file to return", "required": true, - "type": "string" + "schema": { "type": "string" } } ], "responses": { @@ -896,14 +1007,14 @@ "summary": "Delete an existing file", "description": "Returns a single file deleted", "operationId": "deleteFile", - "produces": ["application/json"], + "parameters": [ { "name": "uid", "in": "path", "description": "ID of file to return", "required": true, - "type": "string" + "schema": { "type": "string" } } ], "responses": { @@ -921,20 +1032,20 @@ ] } }, - "notary/files/download/{uid}": { + "/notary/files/download/{uid}": { "get": { "tags": ["notary"], "summary": "Download file by ID", "description": "Returns a single file", "operationId": "downloadFileById", - "produces": ["application/json"], + "parameters": [ { "name": "uid", "in": "path", "description": "ID of file to return", "required": true, - "type": "string" + "schema": { "type": "string" } } ], "responses": { @@ -952,13 +1063,13 @@ ] } }, - "notary/anchors": { + "/notary/anchors": { "get": { "tags": ["notary"], "summary": "Get all anchors", "description": "", "operationId": "getAnchors", - "produces": ["application/json"], + "responses": { "200": { "description": "successful operation" @@ -974,20 +1085,20 @@ ] } }, - "notary/anchors/{uid}": { + "/notary/anchors/{uid}": { "get": { "tags": ["notary"], "summary": "Find anchor by ID", "description": "Returns a single anchor", "operationId": "getAnchorById", - "produces": ["application/json"], + "parameters": [ { "name": "uid", "in": "path", "description": "ID of anchor to return", "required": true, - "type": "string" + "schema": { "type": "string" } } ], "responses": { @@ -1009,25 +1120,27 @@ "summary": "Add a new anchor", "description": "", "operationId": "addAnchor", - "produces": ["application/json"], + "parameters": [ { "name": "uid", "in": "path", "description": "ID of anchor to return", "required": true, - "type": "string" - }, - { - "in": "body", - "name": "body", - "description": "Anchor object that needs to be added to the store", - "required": true, - "schema": { - "$ref": "#/definitions/Anchor" - } + "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" @@ -1043,20 +1156,20 @@ ] } }, - "notary/anchors/download/{uid}": { + "/notary/anchors/download/{uid}": { "get": { "tags": ["notary"], "summary": "Download anchor by ID", "description": "Returns a single anchor", "operationId": "downloadAnchorById", - "produces": ["application/json"], + "parameters": [ { "name": "uid", "in": "path", "description": "ID of anchor to return", "required": true, - "type": "string" + "schema": { "type": "string" } } ], "responses": { @@ -1074,13 +1187,13 @@ ] } }, - "notary/folders": { + "/notary/folders": { "get": { "tags": ["notary"], "summary": "Get all folders", "description": "", "operationId": "getFolders", - "produces": ["application/json"], + "responses": { "200": { "description": "successful operation" @@ -1100,18 +1213,18 @@ "summary": "Add a new folder", "description": "", "operationId": "addFolder", - "produces": ["application/json"], - "parameters": [ - { - "in": "body", - "name": "body", - "description": "Folder object that needs to be added to the store", - "required": true, - "schema": { - "$ref": "#/definitions/Folder" + + "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" @@ -1127,31 +1240,33 @@ ] } }, - "notary/folders/{uid}": { + "/notary/folders/{uid}": { "put": { "tags": ["notary"], "summary": "Update an existing folder", "description": "Returns a single folder updated", "operationId": "updateFolder", - "produces": ["application/json"], + "parameters": [ { "name": "uid", "in": "path", "description": "ID of folder to return", "required": true, - "type": "string" - }, - { - "in": "body", - "name": "body", - "description": "Folder object that needs to be added to the store", - "required": true, - "schema": { - "$ref": "#/definitions/Folder" - } + "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" @@ -1171,14 +1286,14 @@ "summary": "Delete an existing folder", "description": "Returns a single folder deleted", "operationId": "deleteFolder", - "produces": ["application/json"], + "parameters": [ { "name": "uid", "in": "path", "description": "ID of folder to return", "required": true, - "type": "string" + "schema": { "type": "string" } } ], "responses": { @@ -1200,23 +1315,27 @@ "summary": "Find folder by ID", "description": "Returns a single folder", "operationId": "getFolderById", - "produces": ["application/json"], + "parameters": [ { "name": "uid", "in": "query", "description": "ID of folder to return", "required": true, - "type": "string" + "schema": { "type": "string" } } ], "responses": { "200": { "description": "successful operation", - "schema": { - "type": "array", - "items": { - "$ref": "#/definitions/Folder" + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { + "$ref": "#/components/schemas/Folder" + } + } } } }, @@ -1231,20 +1350,24 @@ ] } }, - "notary/office-roles": { + "/notary/office-roles": { "get": { "tags": ["notary"], "summary": "Get all office roles", "description": "", "operationId": "getOfficeRoles", - "produces": ["application/json"], + "responses": { "200": { "description": "successful operation", - "schema": { - "type": "array", - "items": { - "$ref": "#/definitions/OfficeRole" + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { + "$ref": "#/components/schemas/OfficeRole" + } + } } } }, @@ -1259,62 +1382,33 @@ ] } }, - "notary/office-roles/{uid}": { + "/notary/office-roles/{uid}": { "get": { "tags": ["notary"], "summary": "Find office role by ID", "description": "Returns a single office role", "operationId": "getOfficeRoleById", - "produces": ["application/json"], + "parameters": [ { "name": "uid", "in": "query", "description": "ID of office role to return", "required": true, - "type": "string" + "schema": { "type": "string" } } ], "responses": { "200": { "description": "successful operation", - "schema": { - "type": "array", - "items": { - "$ref": "#/definitions/OfficeRole" - } - } - }, - "400": { - "description": "Invalid status value" - } - }, - "security": [ - { - "bearerAuth": [] - } - ] - }, - "security": [ - { - "bearerAuth": [] - } - ] - }, - "notary/offices": { - "get": { - "tags": ["notary"], - "summary": "Get all offices", - "description": "", - "operationId": "getOffices", - "produces": ["application/json"], - "responses": { - "200": { - "description": "successful operation", - "schema": { - "type": "array", - "items": { - "$ref": "#/definitions/Office" + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { + "$ref": "#/components/schemas/OfficeRole" + } + } } } }, @@ -1329,29 +1423,65 @@ ] } }, - "notary/offices/{uid}": { + "/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", - "produces": ["application/json"], + "parameters": [ { "name": "uid", "in": "query", "description": "ID of office to return", "required": true, - "type": "string" + "schema": { "type": "string" } } ], "responses": { "200": { "description": "successful operation", - "schema": { - "type": "array", - "items": { - "$ref": "#/definitions/Office" + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { + "$ref": "#/components/schemas/Office" + } + } } } }, @@ -1366,20 +1496,24 @@ ] } }, - "notary/roles": { + "/notary/roles": { "get": { "tags": ["notary"], "summary": "Get all roles", "description": "", "operationId": "getRoles", - "produces": ["application/json"], + "responses": { "200": { "description": "successful operation", - "schema": { - "type": "array", - "items": { - "$ref": "#/definitions/Role" + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { + "$ref": "#/components/schemas/Role" + } + } } } }, @@ -1394,29 +1528,33 @@ ] } }, - "notary/roles/{uid}": { + "/notary/roles/{uid}": { "get": { "tags": ["notary"], "summary": "Find role by ID", "description": "Returns a single role", "operationId": "getRoleById", - "produces": ["application/json"], + "parameters": [ { "name": "uid", "in": "query", "description": "ID of role to return", "required": true, - "type": "string" + "schema": { "type": "string" } } ], "responses": { "200": { "description": "successful operation", - "schema": { - "type": "array", - "items": { - "$ref": "#/definitions/Role" + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { + "$ref": "#/components/schemas/Role" + } + } } } }, @@ -1431,20 +1569,24 @@ ] } }, - "notary/notifications": { + "/notary/notifications": { "get": { "tags": ["notary"], "summary": "Get all notifications", "description": "", "operationId": "getNotifications", - "produces": ["application/json"], + "responses": { "200": { "description": "successful operation", - "schema": { - "type": "array", - "items": { - "$ref": "#/definitions/Notification" + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { + "$ref": "#/components/schemas/Notification" + } + } } } }, @@ -1459,31 +1601,33 @@ ] } }, - "notary/notifications/{uid}": { + "/notary/notifications/{uid}": { "put": { "tags": ["notary"], "summary": "Update an existing notification", "description": "Returns a single notification updated", "operationId": "updateNotification", - "produces": ["application/json"], + "parameters": [ { "name": "uid", "in": "path", "description": "ID of notification to return", "required": true, - "type": "string" - }, - { - "in": "body", - "name": "body", - "description": "Notification object that needs to be added to the store", - "required": true, - "schema": { - "$ref": "#/definitions/Notification" - } + "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" @@ -1503,23 +1647,27 @@ "summary": "Find notification by ID", "description": "Returns a single notification", "operationId": "getNotificationById", - "produces": ["application/json"], + "parameters": [ { "name": "uid", "in": "query", "description": "ID of notification to return", "required": true, - "type": "string" + "schema": { "type": "string" } } ], "responses": { "200": { "description": "successful operation", - "schema": { - "type": "array", - "items": { - "$ref": "#/definitions/Notification" + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { + "$ref": "#/components/schemas/Notification" + } + } } } }, @@ -1534,20 +1682,24 @@ ] } }, - "notary/users": { + "/notary/users": { "get": { "tags": ["notary"], "summary": "Get all users", "description": "", "operationId": "getUsers", - "produces": ["application/json"], + "responses": { "200": { "description": "successful operation", - "schema": { - "type": "array", - "items": { - "$ref": "#/definitions/User" + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { + "$ref": "#/components/schemas/User" + } + } } } }, @@ -1562,29 +1714,33 @@ ] } }, - "notary/users/{uid}": { + "/notary/users/{uid}": { "get": { "tags": ["notary"], "summary": "Find user by ID", "description": "", "operationId": "getUserById", - "produces": ["application/json"], + "parameters": [ { "name": "uid", "in": "query", "description": "ID of user to return", "required": true, - "type": "string" + "schema": { "type": "string" } } ], "responses": { "200": { "description": "successful operation", - "schema": { - "type": "array", - "items": { - "$ref": "#/definitions/User" + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { + "$ref": "#/components/schemas/User" + } + } } } }, @@ -1599,20 +1755,24 @@ ] } }, - "customers/documents": { + "/customer/documents": { "get": { "tags": ["customer"], "summary": "Get all documents", "description": "", "operationId": "getDocuments", - "produces": ["application/json"], + "responses": { "200": { "description": "successful operation", - "schema": { - "type": "array", - "items": { - "$ref": "#/definitions/Document" + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { + "$ref": "#/components/schemas/Document" + } + } } } }, @@ -1631,23 +1791,27 @@ "summary": "Add a new document", "description": "", "operationId": "addDocument", - "produces": ["application/json"], - "parameters": [ - { - "in": "body", - "name": "body", - "description": "Document object that needs to be added to the store", - "required": true, - "schema": { - "$ref": "#/definitions/Document" + + "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", - "schema": { - "$ref": "#/definitions/Document" + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Document" + } + } } }, "400": { @@ -1661,27 +1825,31 @@ ] } }, - "customers/documents/{uid}": { + "/customer/documents/{uid}": { "get": { "tags": ["customer"], "summary": "Find document by ID", "description": "Returns a single document", "operationId": "getDocumentById", - "produces": ["application/json"], + "parameters": [ { "name": "uid", "in": "path", "description": "ID of document to return", "required": true, - "type": "string" + "schema": { "type": "string" } } ], "responses": { "200": { "description": "successful operation", - "schema": { - "$ref": "#/definitions/Document" + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Document" + } + } } }, "400": { @@ -1695,13 +1863,13 @@ ] } }, - "customers/files": { + "/customer/files": { "get": { "tags": ["customer"], "summary": "Get all files", "description": "", "operationId": "getFiles", - "produces": ["application/json"], + "responses": { "200": { "description": "successful operation" @@ -1721,18 +1889,45 @@ "summary": "Add a new file", "description": "", "operationId": "addFile", - "produces": ["application/json"], "parameters": [ { - "in": "body", - "name": "body", - "description": "File object that needs to be added to the store", + "name": "q", + "in": "path", + "description": "requested document object", "required": true, "schema": { - "$ref": "#/definitions/File" + "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" @@ -1748,20 +1943,20 @@ ] } }, - "customers/files/{uid}": { + "/customer/files/{uid}": { "get": { "tags": ["customer"], "summary": "Find file by ID", "description": "Returns a single file", "operationId": "getFileById", - "produces": ["application/json"], + "parameters": [ { "name": "uid", "in": "path", "description": "ID of file to return", "required": true, - "type": "string" + "schema": { "type": "string" } } ], "responses": { @@ -1783,25 +1978,27 @@ "summary": "Update an existing file", "description": "Returns a single file updated", "operationId": "updateFile", - "produces": ["application/json"], + "parameters": [ { "name": "uid", "in": "path", "description": "ID of file to return", "required": true, - "type": "string" - }, - { - "in": "body", - "name": "body", - "description": "File object that needs to be added to the store", - "required": true, - "schema": { - "$ref": "#/definitions/File" - } + "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" @@ -1821,14 +2018,14 @@ "summary": "Delete an existing file", "description": "Returns a single file deleted", "operationId": "deleteFile", - "produces": ["application/json"], + "parameters": [ { "name": "uid", "in": "path", "description": "ID of file to return", "required": true, - "type": "string" + "schema": { "type": "string" } } ], "responses": { @@ -1846,20 +2043,24 @@ ] } }, - "customers/folders": { + "/customer/folders": { "get": { "tags": ["customer"], "summary": "Get all folders", "description": "", "operationId": "getFolders", - "produces": ["application/json"], + "responses": { "200": { "description": "successful operation", - "schema": { - "type": "array", - "items": { - "$ref": "#/definitions/Folder" + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { + "$ref": "#/components/schemas/Folder" + } + } } } }, @@ -1874,20 +2075,20 @@ ] } }, - "customers/folders/{uid}": { + "/customer/folders/{uid}": { "get": { "tags": ["customer"], "summary": "Find folder by ID", "description": "Returns a single folder", "operationId": "getFolderById", - "produces": ["application/json"], + "parameters": [ { "name": "uid", "in": "path", "description": "ID of folder to return", "required": true, - "type": "string" + "schema": { "type": "string" } } ], "responses": { @@ -1905,18 +2106,22 @@ ] } }, - "admin/customers": { + "/admin/customers": { "get": { "tags": ["admin"], "summary": "Get all customers", "description": "", "operationId": "getCustomers", - "produces": ["application/json"], + "responses": { "200": { "description": "successful operation", - "schema": { - "$ref": "#/definitions/Customer" + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Customer" + } + } } }, "400": { @@ -1934,23 +2139,27 @@ "summary": "Add a new customer", "description": "", "operationId": "addCustomer", - "produces": ["application/json"], - "parameters": [ - { - "in": "body", - "name": "body", - "description": "Customer object that needs to be added to the store", - "required": true, - "schema": { - "$ref": "#/definitions/Customer" + + "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", - "schema": { - "$ref": "#/definitions/Customer" + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Customer" + } + } } }, "400": { @@ -1964,27 +2173,31 @@ ] } }, - "admin/customers/{uid}": { + "/admin/customers/{uid}": { "get": { "tags": ["admin"], "summary": "Find customer by ID", "description": "Returns a single customer", "operationId": "getCustomerById", - "produces": ["application/json"], + "parameters": [ { "name": "uid", "in": "path", "description": "ID of customer to return", "required": true, - "type": "string" + "schema": { "type": "string" } } ], "responses": { "200": { "description": "successful operation", - "schema": { - "$ref": "#/definitions/Customer" + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Customer" + } + } } }, "400": { @@ -2002,30 +2215,36 @@ "summary": "Update an existing customer", "description": "Returns a single customer updated", "operationId": "updateCustomer", - "produces": ["application/json"], + "parameters": [ { "name": "uid", "in": "path", "description": "ID of customer to return", "required": true, - "type": "string" - }, - { - "in": "body", - "name": "body", - "description": "Customer object that needs to be added to the store", - "required": true, - "schema": { - "$ref": "#/definitions/Customer" - } + "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", - "schema": { - "$ref": "#/definitions/Customer" + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Customer" + } + } } }, "400": { @@ -2043,21 +2262,25 @@ "summary": "Delete an existing customer", "description": "Returns a single customer deleted", "operationId": "deleteCustomer", - "produces": ["application/json"], + "parameters": [ { "name": "uid", "in": "path", "description": "ID of customer to return", "required": true, - "type": "string" + "schema": { "type": "string" } } ], "responses": { "200": { "description": "successful operation", - "schema": { - "$ref": "#/definitions/Customer" + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Customer" + } + } } }, "400": { @@ -2071,18 +2294,22 @@ ] } }, - "admin/deeds": { + "/admin/deeds": { "get": { "tags": ["admin"], "summary": "Get all deeds", "description": "", "operationId": "getDeeds", - "produces": ["application/json"], + "responses": { "200": { "description": "successful operation", - "schema": { - "$ref": "#/definitions/Deed" + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Deed" + } + } } }, "400": { @@ -2100,23 +2327,27 @@ "summary": "Add a new deed", "description": "", "operationId": "addDeed", - "produces": ["application/json"], - "parameters": [ - { - "in": "body", - "name": "body", - "description": "Deed object that needs to be added to the store", - "required": true, - "schema": { - "$ref": "#/definitions/Deed" + + "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", - "schema": { - "$ref": "#/definitions/Deed" + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Deed" + } + } } }, "400": { @@ -2130,27 +2361,31 @@ ] } }, - "admin/deeds/{uid}": { + "/admin/deeds/{uid}": { "get": { "tags": ["admin"], "summary": "Find deed by ID", "description": "Returns a single deed", "operationId": "getDeedById", - "produces": ["application/json"], + "parameters": [ { "name": "uid", "in": "path", "description": "ID of deed to return", "required": true, - "type": "string" + "schema": { "type": "string" } } ], "responses": { "200": { "description": "successful operation", - "schema": { - "$ref": "#/definitions/Deed" + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Deed" + } + } } }, "400": { @@ -2168,30 +2403,36 @@ "summary": "Update an existing deed", "description": "Returns a single deed updated", "operationId": "updateDeed", - "produces": ["application/json"], + "parameters": [ { "name": "uid", "in": "path", "description": "ID of deed to return", "required": true, - "type": "string" - }, - { - "in": "body", - "name": "body", - "description": "Deed object that needs to be added to the store", - "required": true, - "schema": { - "$ref": "#/definitions/Deed" - } + "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", - "schema": { - "$ref": "#/definitions/Deed" + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Deed" + } + } } }, "400": { @@ -2209,30 +2450,36 @@ "summary": "Delete an existing deed", "description": "Returns a single deed deleted", "operationId": "deleteDeed", - "produces": ["application/json"], + "parameters": [ { "name": "uid", "in": "path", "description": "ID of deed to return", "required": true, - "type": "string" - }, - { - "in": "body", - "name": "body", - "description": "Deed object that needs to be added to the store", - "required": true, - "schema": { - "$ref": "#/definitions/Deed" - } + "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", - "schema": { - "$ref": "#/definitions/Deed" + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Deed" + } + } } }, "400": { @@ -2246,18 +2493,22 @@ ] } }, - "admin/deed-types": { + "/admin/deed-types": { "get": { "tags": ["admin"], "summary": "Get all deed types", "description": "", "operationId": "getDeedTypes", - "produces": ["application/json"], + "responses": { "200": { "description": "successful operation", - "schema": { - "$ref": "#/definitions/DeedType" + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/DeedType" + } + } } }, "400": { @@ -2275,23 +2526,27 @@ "summary": "Add a new deed type", "description": "", "operationId": "addDeedType", - "produces": ["application/json"], - "parameters": [ - { - "in": "body", - "name": "body", - "description": "DeedType object that needs to be added to the store", - "required": true, - "schema": { - "$ref": "#/definitions/DeedType" + + "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", - "schema": { - "$ref": "#/definitions/DeedType" + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/DeedType" + } + } } }, "400": { @@ -2305,27 +2560,31 @@ ] } }, - "admin/deed-types/{uid}": { + "/admin/deed-types/{uid}": { "get": { "tags": ["admin"], "summary": "Find deed type by ID", "description": "Returns a single deed type", "operationId": "getDeedTypeById", - "produces": ["application/json"], + "parameters": [ { "name": "uid", "in": "path", "description": "ID of deed type to return", "required": true, - "type": "string" + "schema": { "type": "string" } } ], "responses": { "200": { "description": "successful operation", - "schema": { - "$ref": "#/definitions/DeedType" + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/DeedType" + } + } } }, "400": { @@ -2343,30 +2602,36 @@ "summary": "Update an existing deed type", "description": "Returns a single deed type updated", "operationId": "updateDeedType", - "produces": ["application/json"], + "parameters": [ { "name": "uid", "in": "path", "description": "ID of deed type to return", "required": true, - "type": "string" - }, - { - "in": "body", - "name": "body", - "description": "DeedType object that needs to be added to the store", - "required": true, - "schema": { - "$ref": "#/definitions/DeedType" - } + "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", - "schema": { - "$ref": "#/definitions/DeedType" + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/DeedType" + } + } } }, "400": { @@ -2380,18 +2645,22 @@ ] } }, - "admin/documents": { + "/admin/documents": { "get": { "tags": ["admin"], "summary": "Get all documents", "description": "", "operationId": "getDocuments", - "produces": ["application/json"], + "responses": { "200": { "description": "successful operation", - "schema": { - "$ref": "#/definitions/Document" + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Document" + } + } } }, "400": { @@ -2409,23 +2678,27 @@ "summary": "Add a new document", "description": "", "operationId": "addDocument", - "produces": ["application/json"], - "parameters": [ - { - "in": "body", - "name": "body", - "description": "Document object that needs to be added to the store", - "required": true, - "schema": { - "$ref": "#/definitions/Document" + + "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", - "schema": { - "$ref": "#/definitions/Document" + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Document" + } + } } }, "400": { @@ -2439,27 +2712,31 @@ ] } }, - "admin/documents/{uid}": { + "/admin/documents/{uid}": { "get": { "tags": ["admin"], "summary": "Find document by ID", "description": "Returns a single document", "operationId": "getDocumentById", - "produces": ["application/json"], + "parameters": [ { "name": "uid", "in": "path", "description": "ID of document to return", "required": true, - "type": "string" + "schema": { "type": "string" } } ], "responses": { "200": { "description": "successful operation", - "schema": { - "$ref": "#/definitions/Document" + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Document" + } + } } }, "400": { @@ -2477,30 +2754,36 @@ "summary": "Update an existing document", "description": "Returns a single document updated", "operationId": "updateDocument", - "produces": ["application/json"], + "parameters": [ { "name": "uid", "in": "path", "description": "ID of document to return", "required": true, - "type": "string" - }, - { - "in": "body", - "name": "body", - "description": "Document object that needs to be added to the store", - "required": true, - "schema": { - "$ref": "#/definitions/Document" - } + "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", - "schema": { - "$ref": "#/definitions/Document" + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Document" + } + } } }, "400": { @@ -2518,30 +2801,36 @@ "summary": "Delete an existing document", "description": "Returns a single document deleted", "operationId": "deleteDocument", - "produces": ["application/json"], + "parameters": [ { "name": "uid", "in": "path", "description": "ID of document to return", "required": true, - "type": "string" - }, - { - "in": "body", - "name": "body", - "description": "Document object that needs to be added to the store", - "required": true, - "schema": { - "$ref": "#/definitions/Document" - } + "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", - "schema": { - "$ref": "#/definitions/Document" + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Document" + } + } } }, "400": { @@ -2555,18 +2844,22 @@ ] } }, - "admin/document-types": { + "/admin/document-types": { "get": { "tags": ["admin"], "summary": "Get all document types", "description": "", "operationId": "getDocumentTypes", - "produces": ["application/json"], + "responses": { "200": { "description": "successful operation", - "schema": { - "$ref": "#/definitions/DocumentType" + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/DocumentType" + } + } } }, "400": { @@ -2584,23 +2877,27 @@ "summary": "Add a new document type", "description": "", "operationId": "addDocumentType", - "produces": ["application/json"], - "parameters": [ - { - "in": "body", - "name": "body", - "description": "DocumentType object that needs to be added to the store", - "required": true, - "schema": { - "$ref": "#/definitions/DocumentType" + + "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", - "schema": { - "$ref": "#/definitions/DocumentType" + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/DocumentType" + } + } } }, "400": { @@ -2614,27 +2911,31 @@ ] } }, - "admin/document-types/{uid}": { + "/admin/document-types/{uid}": { "get": { "tags": ["admin"], "summary": "Find document type by ID", "description": "Returns a single document type", "operationId": "getDocumentTypeById", - "produces": ["application/json"], + "parameters": [ { "name": "uid", "in": "path", "description": "ID of document type to return", "required": true, - "type": "string" + "schema": { "type": "string" } } ], "responses": { "200": { "description": "successful operation", - "schema": { - "$ref": "#/definitions/DocumentType" + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/DocumentType" + } + } } }, "400": { @@ -2652,30 +2953,36 @@ "summary": "Update an existing document type", "description": "Returns a single document type updated", "operationId": "updateDocumentType", - "produces": ["application/json"], + "parameters": [ { "name": "uid", "in": "path", "description": "ID of document type to return", "required": true, - "type": "string" - }, - { - "in": "body", - "name": "body", - "description": "DocumentType object that needs to be added to the store", - "required": true, - "schema": { - "$ref": "#/definitions/DocumentType" - } + "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", - "schema": { - "$ref": "#/definitions/DocumentType" + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/DocumentType" + } + } } }, "400": { @@ -2693,21 +3000,25 @@ "summary": "Delete an existing document type", "description": "Returns a single document type deleted", "operationId": "deleteDocumentType", - "produces": ["application/json"], + "parameters": [ { "name": "uid", "in": "path", "description": "ID of document type to return", "required": true, - "type": "string" + "schema": { "type": "string" } } ], "responses": { "200": { "description": "successful operation", - "schema": { - "$ref": "#/definitions/DocumentType" + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/DocumentType" + } + } } }, "400": { @@ -2721,13 +3032,13 @@ ] } }, - "admin/files": { + "/admin/files": { "get": { "tags": ["admin"], "summary": "Get all files", "description": "", "operationId": "getFiles", - "produces": ["application/json"], + "responses": { "200": { "description": "successful operation" @@ -2743,20 +3054,20 @@ ] } }, - "admin/files/{uid}": { + "/admin/files/{uid}": { "get": { "tags": ["admin"], "summary": "Find file by ID", "description": "Returns a single file", "operationId": "getFileById", - "produces": ["application/json"], + "parameters": [ { "name": "uid", "in": "path", "description": "ID of file to return", "required": true, - "type": "string" + "schema": { "type": "string" } } ], "responses": { @@ -2778,14 +3089,14 @@ "summary": "Delete an existing file", "description": "Returns a single file deleted", "operationId": "deleteFile", - "produces": ["application/json"], + "parameters": [ { "name": "uid", "in": "path", "description": "ID of file to return", "required": true, - "type": "string" + "schema": { "type": "string" } } ], "responses": { @@ -2803,20 +3114,20 @@ ] } }, - "admin/files/download/{uid}": { + "/admin/files/download/{uid}": { "get": { "tags": ["admin"], "summary": "Download file by ID", "description": "Returns a single file", "operationId": "downloadFileById", - "produces": ["application/json"], + "parameters": [ { "name": "uid", "in": "path", "description": "ID of file to return", "required": true, - "type": "string" + "schema": { "type": "string" } } ], "responses": { @@ -2834,13 +3145,13 @@ ] } }, - "admin/anchors": { + "/admin/anchors": { "get": { "tags": ["admin"], "summary": "Get all anchors", "description": "", "operationId": "getAnchors", - "produces": ["application/json"], + "responses": { "200": { "description": "successful operation" @@ -2856,20 +3167,20 @@ ] } }, - "admin/anchors/{uid}": { + "/admin/anchors/{uid}": { "get": { "tags": ["admin"], "summary": "Find anchor by ID", "description": "Returns a single anchor", "operationId": "getAnchorById", - "produces": ["application/json"], + "parameters": [ { "name": "uid", "in": "path", "description": "ID of anchor to return", "required": true, - "type": "string" + "schema": { "type": "string" } } ], "responses": { @@ -2891,25 +3202,27 @@ "summary": "Add a new anchor", "description": "", "operationId": "addAnchor", - "produces": ["application/json"], + "parameters": [ { "name": "uid", "in": "path", "description": "ID of anchor to return", "required": true, - "type": "string" - }, - { - "in": "body", - "name": "body", - "description": "Anchor object that needs to be added to the store", - "required": true, - "schema": { - "$ref": "#/definitions/Anchor" - } + "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" @@ -2925,20 +3238,20 @@ ] } }, - "admin/anchors/download/{uid}": { + "/admin/anchors/download/{uid}": { "get": { "tags": ["admin"], "summary": "Download anchor by ID", "description": "Returns a single anchor", "operationId": "downloadAnchorById", - "produces": ["application/json"], + "parameters": [ { "name": "uid", "in": "path", "description": "ID of anchor to return", "required": true, - "type": "string" + "schema": { "type": "string" } } ], "responses": { @@ -2956,13 +3269,13 @@ ] } }, - "admin/folders": { + "/admin/folders": { "get": { "tags": ["admin"], "summary": "Get all folders", "description": "", "operationId": "getFolders", - "produces": ["application/json"], + "responses": { "200": { "description": "successful operation" @@ -2982,18 +3295,18 @@ "summary": "Add a new folder", "description": "", "operationId": "addFolder", - "produces": ["application/json"], - "parameters": [ - { - "in": "body", - "name": "body", - "description": "Folder object that needs to be added to the store", - "required": true, - "schema": { - "$ref": "#/definitions/Folder" + + "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" @@ -3009,31 +3322,33 @@ ] } }, - "admin/folders/{uid}": { + "/admin/folders/{uid}": { "put": { "tags": ["admin"], "summary": "Update an existing folder", "description": "Returns a single folder updated", "operationId": "updateFolder", - "produces": ["application/json"], + "parameters": [ { "name": "uid", "in": "path", "description": "ID of folder to return", "required": true, - "type": "string" - }, - { - "in": "body", - "name": "body", - "description": "Folder object that needs to be added to the store", - "required": true, - "schema": { - "$ref": "#/definitions/Folder" - } + "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" @@ -3053,14 +3368,14 @@ "summary": "Delete an existing folder", "description": "Returns a single folder deleted", "operationId": "deleteFolder", - "produces": ["application/json"], + "parameters": [ { "name": "uid", "in": "path", "description": "ID of folder to return", "required": true, - "type": "string" + "schema": { "type": "string" } } ], "responses": { @@ -3082,23 +3397,27 @@ "summary": "Find folder by ID", "description": "Returns a single folder", "operationId": "getFolderById", - "produces": ["application/json"], + "parameters": [ { "name": "uid", "in": "query", "description": "ID of folder to return", "required": true, - "type": "string" + "schema": { "type": "string" } } ], "responses": { "200": { "description": "successful operation", - "schema": { - "type": "array", - "items": { - "$ref": "#/definitions/Folder" + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { + "$ref": "#/components/schemas/Folder" + } + } } } }, @@ -3113,20 +3432,24 @@ ] } }, - "admin/office-roles": { + "/admin/office-roles": { "get": { "tags": ["admin"], "summary": "Get all office roles", "description": "", "operationId": "getOfficeRoles", - "produces": ["application/json"], + "responses": { "200": { "description": "successful operation", - "schema": { - "type": "array", - "items": { - "$ref": "#/definitions/OfficeRole" + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { + "$ref": "#/components/schemas/OfficeRole" + } + } } } }, @@ -3145,25 +3468,29 @@ "summary": "Add a new office role", "description": "", "operationId": "addOfficeRole", - "produces": ["application/json"], - "parameters": [ - { - "in": "body", - "name": "body", - "description": "OfficeRole object that needs to be added to the store", - "required": true, - "schema": { - "$ref": "#/definitions/OfficeRole" + + "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", - "schema": { - "type": "array", - "items": { - "$ref": "#/definitions/OfficeRole" + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { + "$ref": "#/components/schemas/OfficeRole" + } + } } } }, @@ -3178,29 +3505,33 @@ ] } }, - "admin/office-roles/{uid}": { + "/admin/office-roles/{uid}": { "get": { "tags": ["admin"], "summary": "Find office role by ID", "description": "Returns a single office role", "operationId": "getOfficeRoleById", - "produces": ["application/json"], + "parameters": [ { "name": "uid", "in": "query", "description": "ID of office role to return", "required": true, - "type": "string" + "schema": { "type": "string" } } ], "responses": { "200": { "description": "successful operation", - "schema": { - "type": "array", - "items": { - "$ref": "#/definitions/OfficeRole" + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { + "$ref": "#/components/schemas/OfficeRole" + } + } } } }, @@ -3219,32 +3550,37 @@ "summary": "Update an existing office role", "description": "Returns a single office role updated", "operationId": "updateOfficeRole", - "produces": ["application/json"], "parameters": [ { "name": "uid", "in": "query", "description": "ID of office role to return", "required": true, - "type": "string" - }, - { - "in": "body", - "name": "body", - "description": "OfficeRole object that needs to be added to the store", - "required": true, - "schema": { - "$ref": "#/definitions/OfficeRole" - } + "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", - "schema": { - "type": "array", - "items": { - "$ref": "#/definitions/OfficeRole" + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { + "$ref": "#/components/schemas/OfficeRole" + } + } } } }, @@ -3259,20 +3595,24 @@ ] } }, - "admin/offices": { + "/admin/offices": { "get": { "tags": ["admin"], "summary": "Get all offices", "description": "", "operationId": "getOffices", - "produces": ["application/json"], + "responses": { "200": { "description": "successful operation", - "schema": { - "type": "array", - "items": { - "$ref": "#/definitions/Office" + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { + "$ref": "#/components/schemas/Office" + } + } } } }, @@ -3287,29 +3627,33 @@ ] } }, - "admin/offices/{uid}": { + "/admin/offices/{uid}": { "get": { "tags": ["admin"], "summary": "Find office by ID", "description": "Returns a single office", "operationId": "getOfficeById", - "produces": ["application/json"], + "parameters": [ { "name": "uid", "in": "query", "description": "ID of office to return", "required": true, - "type": "string" + "schema": { "type": "string" } } ], "responses": { "200": { "description": "successful operation", - "schema": { - "type": "array", - "items": { - "$ref": "#/definitions/Office" + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { + "$ref": "#/components/schemas/Office" + } + } } } }, @@ -3324,20 +3668,24 @@ ] } }, - "admin/roles": { + "/admin/roles": { "get": { "tags": ["admin"], "summary": "Get all roles", "description": "", "operationId": "getRoles", - "produces": ["application/json"], + "responses": { "200": { "description": "successful operation", - "schema": { - "type": "array", - "items": { - "$ref": "#/definitions/Role" + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { + "$ref": "#/components/schemas/Role" + } + } } } }, @@ -3352,29 +3700,33 @@ ] } }, - "admin/roles/{uid}": { + "/admin/roles/{uid}": { "get": { "tags": ["admin"], "summary": "Find role by ID", "description": "Returns a single role", "operationId": "getRoleById", - "produces": ["application/json"], + "parameters": [ { "name": "uid", "in": "query", "description": "ID of role to return", "required": true, - "type": "string" + "schema": { "type": "string" } } ], "responses": { "200": { "description": "successful operation", - "schema": { - "type": "array", - "items": { - "$ref": "#/definitions/Role" + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { + "$ref": "#/components/schemas/Role" + } + } } } }, @@ -3389,20 +3741,24 @@ ] } }, - "admin/notifications": { + "/admin/notifications": { "get": { "tags": ["admin"], "summary": "Get all notifications", "description": "", "operationId": "getNotifications", - "produces": ["application/json"], + "responses": { "200": { "description": "successful operation", - "schema": { - "type": "array", - "items": { - "$ref": "#/definitions/Notification" + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { + "$ref": "#/components/schemas/Notification" + } + } } } }, @@ -3417,31 +3773,33 @@ ] } }, - "admin/notifications/{uid}": { + "/admin/notifications/{uid}": { "put": { "tags": ["admin"], "summary": "Update an existing notification", "description": "Returns a single notification updated", "operationId": "updateNotification", - "produces": ["application/json"], + "parameters": [ { "name": "uid", "in": "path", "description": "ID of notification to return", "required": true, - "type": "string" - }, - { - "in": "body", - "name": "body", - "description": "Notification object that needs to be added to the store", - "required": true, - "schema": { - "$ref": "#/definitions/Notification" - } + "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" @@ -3461,23 +3819,27 @@ "summary": "Find notification by ID", "description": "Returns a single notification", "operationId": "getNotificationById", - "produces": ["application/json"], + "parameters": [ { "name": "uid", "in": "query", "description": "ID of notification to return", "required": true, - "type": "string" + "schema": { "type": "string" } } ], "responses": { "200": { "description": "successful operation", - "schema": { - "type": "array", - "items": { - "$ref": "#/definitions/Notification" + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { + "$ref": "#/components/schemas/Notification" + } + } } } }, @@ -3492,20 +3854,24 @@ ] } }, - "admin/users": { + "/admin/users": { "get": { "tags": ["admin"], "summary": "Get all users", "description": "", "operationId": "getUsers", - "produces": ["application/json"], + "responses": { "200": { "description": "successful operation", - "schema": { - "type": "array", - "items": { - "$ref": "#/definitions/User" + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { + "$ref": "#/components/schemas/User" + } + } } } }, @@ -3520,29 +3886,33 @@ ] } }, - "admin/users/{uid}": { + "/admin/users/{uid}": { "get": { "tags": ["admin"], "summary": "Find user by ID", "description": "", "operationId": "getUserById", - "produces": ["application/json"], + "parameters": [ { "name": "uid", "in": "query", "description": "ID of user to return", "required": true, - "type": "string" + "schema": { "type": "string" } } ], "responses": { "200": { "description": "successful operation", - "schema": { - "type": "array", - "items": { - "$ref": "#/definitions/User" + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { + "$ref": "#/components/schemas/User" + } + } } } }, @@ -3561,25 +3931,27 @@ "summary": "Update an existing user", "description": "", "operationId": "updateUser", - "produces": ["application/json"], + "parameters": [ { "name": "uid", "in": "query", "description": "ID of user to return", "required": true, - "type": "string" - }, - { - "in": "body", - "name": "body", - "description": "User object that needs to be added to the store", - "required": true, - "schema": { - "$ref": "#/definitions/User" - } + "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" @@ -3595,18 +3967,22 @@ ] } }, - "super-admin/customers": { + "/super-admin/customers": { "get": { "tags": ["super-admin"], "summary": "Get all customers", "description": "", "operationId": "getCustomers", - "produces": ["application/json"], + "responses": { "200": { "description": "successful operation", - "schema": { - "$ref": "#/definitions/Customer" + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Customer" + } + } } }, "400": { @@ -3624,23 +4000,27 @@ "summary": "Add a new customer", "description": "", "operationId": "addCustomer", - "produces": ["application/json"], - "parameters": [ - { - "in": "body", - "name": "body", - "description": "Customer object that needs to be added to the store", - "required": true, - "schema": { - "$ref": "#/definitions/Customer" + + "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", - "schema": { - "$ref": "#/definitions/Customer" + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Customer" + } + } } }, "400": { @@ -3654,27 +4034,31 @@ ] } }, - "super-admin/customers/{uid}": { + "/super-admin/customers/{uid}": { "get": { "tags": ["super-admin"], "summary": "Find customer by ID", "description": "Returns a single customer", "operationId": "getCustomerById", - "produces": ["application/json"], + "parameters": [ { "name": "uid", "in": "path", "description": "ID of customer to return", "required": true, - "type": "string" + "schema": { "type": "string" } } ], "responses": { "200": { "description": "successful operation", - "schema": { - "$ref": "#/definitions/Customer" + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Customer" + } + } } }, "400": { @@ -3692,30 +4076,36 @@ "summary": "Update an existing customer", "description": "Returns a single customer updated", "operationId": "updateCustomer", - "produces": ["application/json"], + "parameters": [ { "name": "uid", "in": "path", "description": "ID of customer to return", "required": true, - "type": "string" - }, - { - "in": "body", - "name": "body", - "description": "Customer object that needs to be added to the store", - "required": true, - "schema": { - "$ref": "#/definitions/Customer" - } + "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", - "schema": { - "$ref": "#/definitions/Customer" + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Customer" + } + } } }, "400": { @@ -3733,21 +4123,25 @@ "summary": "Delete an existing customer", "description": "Returns a single customer deleted", "operationId": "deleteCustomer", - "produces": ["application/json"], + "parameters": [ { "name": "uid", "in": "path", "description": "ID of customer to return", "required": true, - "type": "string" + "schema": { "type": "string" } } ], "responses": { "200": { "description": "successful operation", - "schema": { - "$ref": "#/definitions/Customer" + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Customer" + } + } } }, "400": { @@ -3761,18 +4155,22 @@ ] } }, - "super-admin/deeds": { + "/super-admin/deeds": { "get": { "tags": ["super-admin"], "summary": "Get all deeds", "description": "", "operationId": "getDeeds", - "produces": ["application/json"], + "responses": { "200": { "description": "successful operation", - "schema": { - "$ref": "#/definitions/Deed" + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Deed" + } + } } }, "400": { @@ -3790,23 +4188,27 @@ "summary": "Add a new deed", "description": "", "operationId": "addDeed", - "produces": ["application/json"], - "parameters": [ - { - "in": "body", - "name": "body", - "description": "Deed object that needs to be added to the store", - "required": true, - "schema": { - "$ref": "#/definitions/Deed" + + "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", - "schema": { - "$ref": "#/definitions/Deed" + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Deed" + } + } } }, "400": { @@ -3820,27 +4222,31 @@ ] } }, - "super-admin/deeds/{uid}": { + "/super-admin/deeds/{uid}": { "get": { "tags": ["super-admin"], "summary": "Find deed by ID", "description": "Returns a single deed", "operationId": "getDeedById", - "produces": ["application/json"], + "parameters": [ { "name": "uid", "in": "path", "description": "ID of deed to return", "required": true, - "type": "string" + "schema": { "type": "string" } } ], "responses": { "200": { "description": "successful operation", - "schema": { - "$ref": "#/definitions/Deed" + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Deed" + } + } } }, "400": { @@ -3858,30 +4264,36 @@ "summary": "Update an existing deed", "description": "Returns a single deed updated", "operationId": "updateDeed", - "produces": ["application/json"], + "parameters": [ { "name": "uid", "in": "path", "description": "ID of deed to return", "required": true, - "type": "string" - }, - { - "in": "body", - "name": "body", - "description": "Deed object that needs to be added to the store", - "required": true, - "schema": { - "$ref": "#/definitions/Deed" - } + "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", - "schema": { - "$ref": "#/definitions/Deed" + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Deed" + } + } } }, "400": { @@ -3899,30 +4311,36 @@ "summary": "Delete an existing deed", "description": "Returns a single deed deleted", "operationId": "deleteDeed", - "produces": ["application/json"], + "parameters": [ { "name": "uid", "in": "path", "description": "ID of deed to return", "required": true, - "type": "string" - }, - { - "in": "body", - "name": "body", - "description": "Deed object that needs to be added to the store", - "required": true, - "schema": { - "$ref": "#/definitions/Deed" - } + "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", - "schema": { - "$ref": "#/definitions/Deed" + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Deed" + } + } } }, "400": { @@ -3936,18 +4354,22 @@ ] } }, - "super-admin/deed-types": { + "/super-admin/deed-types": { "get": { "tags": ["super-admin"], "summary": "Get all deed types", "description": "", "operationId": "getDeedTypes", - "produces": ["application/json"], + "responses": { "200": { "description": "successful operation", - "schema": { - "$ref": "#/definitions/DeedType" + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/DeedType" + } + } } }, "400": { @@ -3965,23 +4387,27 @@ "summary": "Add a new deed type", "description": "", "operationId": "addDeedType", - "produces": ["application/json"], - "parameters": [ - { - "in": "body", - "name": "body", - "description": "DeedType object that needs to be added to the store", - "required": true, - "schema": { - "$ref": "#/definitions/DeedType" + + "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", - "schema": { - "$ref": "#/definitions/DeedType" + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/DeedType" + } + } } }, "400": { @@ -3995,27 +4421,31 @@ ] } }, - "super-admin/deed-types/{uid}": { + "/super-admin/deed-types/{uid}": { "get": { "tags": ["super-admin"], "summary": "Find deed type by ID", "description": "Returns a single deed type", "operationId": "getDeedTypeById", - "produces": ["application/json"], + "parameters": [ { "name": "uid", "in": "path", "description": "ID of deed type to return", "required": true, - "type": "string" + "schema": { "type": "string" } } ], "responses": { "200": { "description": "successful operation", - "schema": { - "$ref": "#/definitions/DeedType" + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/DeedType" + } + } } }, "400": { @@ -4033,30 +4463,36 @@ "summary": "Update an existing deed type", "description": "Returns a single deed type updated", "operationId": "updateDeedType", - "produces": ["application/json"], + "parameters": [ { "name": "uid", "in": "path", "description": "ID of deed type to return", "required": true, - "type": "string" - }, - { - "in": "body", - "name": "body", - "description": "DeedType object that needs to be added to the store", - "required": true, - "schema": { - "$ref": "#/definitions/DeedType" - } + "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", - "schema": { - "$ref": "#/definitions/DeedType" + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/DeedType" + } + } } }, "400": { @@ -4070,18 +4506,22 @@ ] } }, - "super-admin/documents": { + "/super-admin/documents": { "get": { "tags": ["super-admin"], "summary": "Get all documents", "description": "", "operationId": "getDocuments", - "produces": ["application/json"], + "responses": { "200": { "description": "successful operation", - "schema": { - "$ref": "#/definitions/Document" + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Document" + } + } } }, "400": { @@ -4099,23 +4539,27 @@ "summary": "Add a new document", "description": "", "operationId": "addDocument", - "produces": ["application/json"], - "parameters": [ - { - "in": "body", - "name": "body", - "description": "Document object that needs to be added to the store", - "required": true, - "schema": { - "$ref": "#/definitions/Document" + + "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", - "schema": { - "$ref": "#/definitions/Document" + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Document" + } + } } }, "400": { @@ -4129,27 +4573,31 @@ ] } }, - "super-admin/documents/{uid}": { + "/super-admin/documents/{uid}": { "get": { "tags": ["super-admin"], "summary": "Find document by ID", "description": "Returns a single document", "operationId": "getDocumentById", - "produces": ["application/json"], + "parameters": [ { "name": "uid", "in": "path", "description": "ID of document to return", "required": true, - "type": "string" + "schema": { "type": "string" } } ], "responses": { "200": { "description": "successful operation", - "schema": { - "$ref": "#/definitions/Document" + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Document" + } + } } }, "400": { @@ -4167,30 +4615,36 @@ "summary": "Update an existing document", "description": "Returns a single document updated", "operationId": "updateDocument", - "produces": ["application/json"], + "parameters": [ { "name": "uid", "in": "path", "description": "ID of document to return", "required": true, - "type": "string" - }, - { - "in": "body", - "name": "body", - "description": "Document object that needs to be added to the store", - "required": true, - "schema": { - "$ref": "#/definitions/Document" - } + "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", - "schema": { - "$ref": "#/definitions/Document" + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Document" + } + } } }, "400": { @@ -4208,30 +4662,36 @@ "summary": "Delete an existing document", "description": "Returns a single document deleted", "operationId": "deleteDocument", - "produces": ["application/json"], + "parameters": [ { "name": "uid", "in": "path", "description": "ID of document to return", "required": true, - "type": "string" - }, - { - "in": "body", - "name": "body", - "description": "Document object that needs to be added to the store", - "required": true, - "schema": { - "$ref": "#/definitions/Document" - } + "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", - "schema": { - "$ref": "#/definitions/Document" + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Document" + } + } } }, "400": { @@ -4245,18 +4705,22 @@ ] } }, - "super-admin/document-types": { + "/super-admin/document-types": { "get": { "tags": ["super-admin"], "summary": "Get all document types", "description": "", "operationId": "getDocumentTypes", - "produces": ["application/json"], + "responses": { "200": { "description": "successful operation", - "schema": { - "$ref": "#/definitions/DocumentType" + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/DocumentType" + } + } } }, "400": { @@ -4274,23 +4738,27 @@ "summary": "Add a new document type", "description": "", "operationId": "addDocumentType", - "produces": ["application/json"], - "parameters": [ - { - "in": "body", - "name": "body", - "description": "DocumentType object that needs to be added to the store", - "required": true, - "schema": { - "$ref": "#/definitions/DocumentType" + + "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", - "schema": { - "$ref": "#/definitions/DocumentType" + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/DocumentType" + } + } } }, "400": { @@ -4304,27 +4772,31 @@ ] } }, - "super-admin/document-types/{uid}": { + "/super-admin/document-types/{uid}": { "get": { "tags": ["super-admin"], "summary": "Find document type by ID", "description": "Returns a single document type", "operationId": "getDocumentTypeById", - "produces": ["application/json"], + "parameters": [ { "name": "uid", "in": "path", "description": "ID of document type to return", "required": true, - "type": "string" + "schema": { "type": "string" } } ], "responses": { "200": { "description": "successful operation", - "schema": { - "$ref": "#/definitions/DocumentType" + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/DocumentType" + } + } } }, "400": { @@ -4342,30 +4814,36 @@ "summary": "Update an existing document type", "description": "Returns a single document type updated", "operationId": "updateDocumentType", - "produces": ["application/json"], + "parameters": [ { "name": "uid", "in": "path", "description": "ID of document type to return", "required": true, - "type": "string" - }, - { - "in": "body", - "name": "body", - "description": "DocumentType object that needs to be added to the store", - "required": true, - "schema": { - "$ref": "#/definitions/DocumentType" - } + "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", - "schema": { - "$ref": "#/definitions/DocumentType" + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/DocumentType" + } + } } }, "400": { @@ -4383,21 +4861,25 @@ "summary": "Delete an existing document type", "description": "Returns a single document type deleted", "operationId": "deleteDocumentType", - "produces": ["application/json"], + "parameters": [ { "name": "uid", "in": "path", "description": "ID of document type to return", "required": true, - "type": "string" + "schema": { "type": "string" } } ], "responses": { "200": { "description": "successful operation", - "schema": { - "$ref": "#/definitions/DocumentType" + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/DocumentType" + } + } } }, "400": { @@ -4411,13 +4893,13 @@ ] } }, - "super-admin/files": { + "/super-admin/files": { "get": { "tags": ["super-admin"], "summary": "Get all files", "description": "", "operationId": "getFiles", - "produces": ["application/json"], + "responses": { "200": { "description": "successful operation" @@ -4433,20 +4915,20 @@ ] } }, - "super-admin/files/{uid}": { + "/super-admin/files/{uid}": { "get": { "tags": ["super-admin"], "summary": "Find file by ID", "description": "Returns a single file", "operationId": "getFileById", - "produces": ["application/json"], + "parameters": [ { "name": "uid", "in": "path", "description": "ID of file to return", "required": true, - "type": "string" + "schema": { "type": "string" } } ], "responses": { @@ -4468,14 +4950,14 @@ "summary": "Delete an existing file", "description": "Returns a single file deleted", "operationId": "deleteFile", - "produces": ["application/json"], + "parameters": [ { "name": "uid", "in": "path", "description": "ID of file to return", "required": true, - "type": "string" + "schema": { "type": "string" } } ], "responses": { @@ -4493,20 +4975,20 @@ ] } }, - "super-admin/files/download/{uid}": { + "/super-admin/files/download/{uid}": { "get": { "tags": ["super-admin"], "summary": "Download file by ID", "description": "Returns a single file", "operationId": "downloadFileById", - "produces": ["application/json"], + "parameters": [ { "name": "uid", "in": "path", "description": "ID of file to return", "required": true, - "type": "string" + "schema": { "type": "string" } } ], "responses": { @@ -4524,13 +5006,13 @@ ] } }, - "super-admin/anchors": { + "/super-admin/anchors": { "get": { "tags": ["super-admin"], "summary": "Get all anchors", "description": "", "operationId": "getAnchors", - "produces": ["application/json"], + "responses": { "200": { "description": "successful operation" @@ -4546,20 +5028,20 @@ ] } }, - "super-admin/anchors/{uid}": { + "/super-admin/anchors/{uid}": { "get": { "tags": ["super-admin"], "summary": "Find anchor by ID", "description": "Returns a single anchor", "operationId": "getAnchorById", - "produces": ["application/json"], + "parameters": [ { "name": "uid", "in": "path", "description": "ID of anchor to return", "required": true, - "type": "string" + "schema": { "type": "string" } } ], "responses": { @@ -4581,25 +5063,27 @@ "summary": "Add a new anchor", "description": "", "operationId": "addAnchor", - "produces": ["application/json"], + "parameters": [ { "name": "uid", "in": "path", "description": "ID of anchor to return", "required": true, - "type": "string" - }, - { - "in": "body", - "name": "body", - "description": "Anchor object that needs to be added to the store", - "required": true, - "schema": { - "$ref": "#/definitions/Anchor" - } + "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" @@ -4615,20 +5099,20 @@ ] } }, - "super-admin/anchors/download/{uid}": { + "/super-admin/anchors/download/{uid}": { "get": { "tags": ["super-admin"], "summary": "Download anchor by ID", "description": "Returns a single anchor", "operationId": "downloadAnchorById", - "produces": ["application/json"], + "parameters": [ { "name": "uid", "in": "path", "description": "ID of anchor to return", "required": true, - "type": "string" + "schema": { "type": "string" } } ], "responses": { @@ -4646,13 +5130,13 @@ ] } }, - "super-admin/folders": { + "/super-admin/folders": { "get": { "tags": ["super-admin"], "summary": "Get all folders", "description": "", "operationId": "getFolders", - "produces": ["application/json"], + "responses": { "200": { "description": "successful operation" @@ -4672,18 +5156,18 @@ "summary": "Add a new folder", "description": "", "operationId": "addFolder", - "produces": ["application/json"], - "parameters": [ - { - "in": "body", - "name": "body", - "description": "Folder object that needs to be added to the store", - "required": true, - "schema": { - "$ref": "#/definitions/Folder" + + "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" @@ -4699,31 +5183,33 @@ ] } }, - "super-admin/folders/{uid}": { + "/super-admin/folders/{uid}": { "put": { "tags": ["super-admin"], "summary": "Update an existing folder", "description": "Returns a single folder updated", "operationId": "updateFolder", - "produces": ["application/json"], + "parameters": [ { "name": "uid", "in": "path", "description": "ID of folder to return", "required": true, - "type": "string" - }, - { - "in": "body", - "name": "body", - "description": "Folder object that needs to be added to the store", - "required": true, - "schema": { - "$ref": "#/definitions/Folder" - } + "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" @@ -4743,14 +5229,14 @@ "summary": "Delete an existing folder", "description": "Returns a single folder deleted", "operationId": "deleteFolder", - "produces": ["application/json"], + "parameters": [ { "name": "uid", "in": "path", "description": "ID of folder to return", "required": true, - "type": "string" + "schema": { "type": "string" } } ], "responses": { @@ -4772,23 +5258,27 @@ "summary": "Find folder by ID", "description": "Returns a single folder", "operationId": "getFolderById", - "produces": ["application/json"], + "parameters": [ { "name": "uid", "in": "query", "description": "ID of folder to return", "required": true, - "type": "string" + "schema": { "type": "string" } } ], "responses": { "200": { "description": "successful operation", - "schema": { - "type": "array", - "items": { - "$ref": "#/definitions/Folder" + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { + "$ref": "#/components/schemas/Folder" + } + } } } }, @@ -4803,20 +5293,24 @@ ] } }, - "super-admin/office-roles": { + "/super-admin/office-roles": { "get": { "tags": ["super-admin"], "summary": "Get all office roles", "description": "", "operationId": "getOfficeRoles", - "produces": ["application/json"], + "responses": { "200": { "description": "successful operation", - "schema": { - "type": "array", - "items": { - "$ref": "#/definitions/OfficeRole" + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { + "$ref": "#/components/schemas/OfficeRole" + } + } } } }, @@ -4835,25 +5329,29 @@ "summary": "Add a new office role", "description": "", "operationId": "addOfficeRole", - "produces": ["application/json"], - "parameters": [ - { - "in": "body", - "name": "body", - "description": "OfficeRole object that needs to be added to the store", - "required": true, - "schema": { - "$ref": "#/definitions/OfficeRole" + + "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", - "schema": { - "type": "array", - "items": { - "$ref": "#/definitions/OfficeRole" + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { + "$ref": "#/components/schemas/OfficeRole" + } + } } } }, @@ -4868,29 +5366,33 @@ ] } }, - "super-admin/office-roles/{uid}": { + "/super-admin/office-roles/{uid}": { "get": { "tags": ["super-admin"], "summary": "Find office role by ID", "description": "Returns a single office role", "operationId": "getOfficeRoleById", - "produces": ["application/json"], + "parameters": [ { "name": "uid", "in": "query", "description": "ID of office role to return", "required": true, - "type": "string" + "schema": { "type": "string" } } ], "responses": { "200": { "description": "successful operation", - "schema": { - "type": "array", - "items": { - "$ref": "#/definitions/OfficeRole" + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { + "$ref": "#/components/schemas/OfficeRole" + } + } } } }, @@ -4909,32 +5411,38 @@ "summary": "Update an existing office role", "description": "Returns a single office role updated", "operationId": "updateOfficeRole", - "produces": ["application/json"], + "parameters": [ { "name": "uid", "in": "query", "description": "ID of office role to return", "required": true, - "type": "string" - }, - { - "in": "body", - "name": "body", - "description": "OfficeRole object that needs to be added to the store", - "required": true, - "schema": { - "$ref": "#/definitions/OfficeRole" - } + "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", - "schema": { - "type": "array", - "items": { - "$ref": "#/definitions/OfficeRole" + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { + "$ref": "#/components/schemas/OfficeRole" + } + } } } }, @@ -4949,20 +5457,24 @@ ] } }, - "super-admin/offices": { + "/super-admin/offices": { "get": { "tags": ["super-admin"], "summary": "Get all offices", "description": "", "operationId": "getOffices", - "produces": ["application/json"], + "responses": { "200": { "description": "successful operation", - "schema": { - "type": "array", - "items": { - "$ref": "#/definitions/Office" + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { + "$ref": "#/components/schemas/Office" + } + } } } }, @@ -4981,25 +5493,29 @@ "summary": "Add a new office", "description": "", "operationId": "addOffice", - "produces": ["application/json"], - "parameters": [ - { - "in": "body", - "name": "body", - "description": "Office object that needs to be added to the store", - "required": true, - "schema": { - "$ref": "#/definitions/Office" + + "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", - "schema": { - "type": "array", - "items": { - "$ref": "#/definitions/Office" + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { + "$ref": "#/components/schemas/Office" + } + } } } }, @@ -5014,29 +5530,33 @@ ] } }, - "super-admin/offices/{uid}": { + "/super-admin/offices/{uid}": { "get": { "tags": ["super-admin"], "summary": "Find office by ID", "description": "Returns a single office", "operationId": "getOfficeById", - "produces": ["application/json"], + "parameters": [ { "name": "uid", "in": "query", "description": "ID of office to return", "required": true, - "type": "string" + "schema": { "type": "string" } } ], "responses": { "200": { "description": "successful operation", - "schema": { - "type": "array", - "items": { - "$ref": "#/definitions/Office" + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { + "$ref": "#/components/schemas/Office" + } + } } } }, @@ -5055,32 +5575,38 @@ "summary": "Update an existing office", "description": "Returns a single office updated", "operationId": "updateOffice", - "produces": ["application/json"], + "parameters": [ { "name": "uid", "in": "query", "description": "ID of office to return", "required": true, - "type": "string" - }, - { - "in": "body", - "name": "body", - "description": "Office object that needs to be added to the store", - "required": true, - "schema": { - "$ref": "#/definitions/Office" - } + "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", - "schema": { - "type": "array", - "items": { - "$ref": "#/definitions/Office" + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { + "$ref": "#/components/schemas/Office" + } + } } } }, @@ -5095,20 +5621,24 @@ ] } }, - "super-admin/roles": { + "/super-admin/roles": { "get": { "tags": ["super-admin"], "summary": "Get all roles", "description": "", "operationId": "getRoles", - "produces": ["application/json"], + "responses": { "200": { "description": "successful operation", - "schema": { - "type": "array", - "items": { - "$ref": "#/definitions/Role" + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { + "$ref": "#/components/schemas/Role" + } + } } } }, @@ -5127,23 +5657,27 @@ "summary": "Add a new role", "description": "", "operationId": "addRole", - "produces": ["application/json"], - "parameters": [ - { - "in": "body", - "name": "body", - "description": "Role object that needs to be added to the store", - "required": true, - "schema": { - "$ref": "#/definitions/Role" + + "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", - "schema": { - "$ref": "#/definitions/Role" + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Role" + } + } } }, "400": { @@ -5157,29 +5691,33 @@ ] } }, - "super-admin/roles/{uid}": { + "/super-admin/roles/{uid}": { "get": { "tags": ["super-admin"], "summary": "Find role by ID", "description": "Returns a single role", "operationId": "getRoleById", - "produces": ["application/json"], + "parameters": [ { "name": "uid", "in": "query", "description": "ID of role to return", "required": true, - "type": "string" + "schema": { "type": "string" } } ], "responses": { "200": { "description": "successful operation", - "schema": { - "type": "array", - "items": { - "$ref": "#/definitions/Role" + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { + "$ref": "#/components/schemas/Role" + } + } } } }, @@ -5198,57 +5736,35 @@ "summary": "Update an existing role", "description": "Returns a single role updated", "operationId": "updateRole", - "produces": ["application/json"], + "parameters": [ { "name": "uid", "in": "query", "description": "ID of role to return", "required": true, - "type": "string" - }, - { - "in": "body", - "name": "body", - "description": "Role object that needs to be added to the store", - "required": true, - "schema": { - "$ref": "#/definitions/Role" - } + "schema": { "type": "string" } } ], - "responses": { - "200": { - "description": "successful operation", - "schema": { - "$ref": "#/definitions/Role" + "requestBody": { + "description": "Role object that needs to be added to the store", + "required": true, + "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", - "produces": ["application/json"], "responses": { "200": { "description": "successful operation", - "schema": { - "type": "array", - "items": { - "$ref": "#/definitions/Notification" + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Role" + } } } }, @@ -5263,31 +5779,65 @@ ] } }, - "super-admin/notifications/{uid}": { + "/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", - "produces": ["application/json"], + "parameters": [ { "name": "uid", "in": "path", "description": "ID of notification to return", "required": true, - "type": "string" - }, - { - "in": "body", - "name": "body", - "description": "Notification object that needs to be added to the store", - "required": true, - "schema": { - "$ref": "#/definitions/Notification" - } + "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" @@ -5307,23 +5857,27 @@ "summary": "Find notification by ID", "description": "Returns a single notification", "operationId": "getNotificationById", - "produces": ["application/json"], + "parameters": [ { "name": "uid", "in": "query", "description": "ID of notification to return", "required": true, - "type": "string" + "schema": { "type": "string" } } ], "responses": { "200": { "description": "successful operation", - "schema": { - "type": "array", - "items": { - "$ref": "#/definitions/Notification" + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { + "$ref": "#/components/schemas/Notification" + } + } } } }, @@ -5338,20 +5892,24 @@ ] } }, - "super-admin/users": { + "/super-admin/users": { "get": { "tags": ["super-admin"], "summary": "Get all users", "description": "", "operationId": "getUsers", - "produces": ["application/json"], + "responses": { "200": { "description": "successful operation", - "schema": { - "type": "array", - "items": { - "$ref": "#/definitions/User" + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { + "$ref": "#/components/schemas/User" + } + } } } }, @@ -5366,29 +5924,33 @@ ] } }, - "super-admin/users/{uid}": { + "/super-admin/users/{uid}": { "get": { "tags": ["super-admin"], "summary": "Find user by ID", "description": "", "operationId": "getUserById", - "produces": ["application/json"], + "parameters": [ { "name": "uid", "in": "query", "description": "ID of user to return", "required": true, - "type": "string" + "schema": { "type": "string" } } ], "responses": { "200": { "description": "successful operation", - "schema": { - "type": "array", - "items": { - "$ref": "#/definitions/User" + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { + "$ref": "#/components/schemas/User" + } + } } } }, @@ -5407,25 +5969,27 @@ "summary": "Update an existing user", "description": "", "operationId": "updateUser", - "produces": ["application/json"], + "parameters": [ { "name": "uid", "in": "query", "description": "ID of user to return", "required": true, - "type": "string" - }, - { - "in": "body", - "name": "body", - "description": "User object that needs to be added to the store", - "required": true, - "schema": { - "$ref": "#/definitions/User" - } + "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" @@ -5441,24 +6005,24 @@ ] } }, - "super-admin/live-votes": { + "/super-admin/live-votes": { "post": { "tags": ["super-admin"], "summary": "Add a new live vote", "description": "", "operationId": "addLiveVote", - "produces": ["application/json"], - "parameters": [ - { - "in": "body", - "name": "body", - "description": "LiveVote object that needs to be added to the store", - "required": true, - "schema": { - "$ref": "#/definitions/Vote" + + "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" @@ -5474,20 +6038,20 @@ ] } }, - "super-admin/live-votes/{uid}": { + "/super-admin/live-votes/{uid}": { "delete": { "tags": ["super-admin"], "summary": "Delete an existing live vote", "description": "Returns a single live vote deleted", "operationId": "deleteLiveVote", - "produces": ["application/json"], + "parameters": [ { "name": "uid", "in": "path", "description": "ID of live vote to return", "required": true, - "type": "string" + "schema": { "type": "string" } } ], "responses": { @@ -5506,288 +6070,125 @@ } } }, - "securityDefinitions": { - "bearerAuth": { - "type": "http", - "scheme": "bearer", - "bearerFormat": "JWT" - } - }, - "responses": { - "UnauthorizedError": { - "description": "Authentication information is missing or invalid", - "headers": { - "WWW_Authenticate": { - "type": "string" - } + "components": { + "securitySchemes": { + "bearerAuth": { + "type": "http", + "scheme": "bearer", + "bearerFormat": "JWT" } - } - }, - "definitions": { - "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": { + }, + "schemas": { + "Customer": { + "type": "object", + "properties": { + "uid": { + "type": "string" + }, + "status": { + "type": "string" + }, + "contact": { "type": "object", "properties": { - "uid": { + "civility": { "type": "string" }, - "name": { + "first_name": { "type": "string" }, - "office": { - "type": "object", - "properties": { - "uid": { - "type": "string" - }, - "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" + }, + "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" + }, + "file": { + "type": "object", + "properties": { + "uid": { + "type": "string" + }, + "name": { + "type": "string" + } } - } - }, - "folder": { - "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" } - }, - "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" - } - } - }, - "createdAt": { - "type": "string" - }, - "updatedAt": { - "type": "string" } }, - "folder": { + "Document": { "type": "object", "properties": { "uid": { @@ -5795,33 +6196,49 @@ }, "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" } } }, - "createdAt": { - "type": "string" - }, - "updatedAt": { - "type": "string" - } - } - }, - "DeedType": { - "type": "object", - "properties": { - "uid": { - "type": "string" - }, - "name": { - "type": "string" - }, - "description": { - "type": "string" - }, - "archived_at": { - "type": "string" - }, - "office": { + "DocumentType": { "type": "object", "properties": { "uid": { @@ -5829,50 +6246,27 @@ }, "name": { "type": "string" + }, + "office": { + "type": "object", + "properties": { + "uid": { + "type": "string" + }, + "name": { + "type": "string" + } + } + }, + "createdAt": { + "type": "string" + }, + "updatedAt": { + "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": { + "Deed": { "type": "object", "properties": { "uid": { @@ -5900,56 +6294,37 @@ "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" + "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_folders": { - "type": "array", - "items": { + }, + "office": { "type": "object", "properties": { "uid": { @@ -5957,6 +6332,242 @@ }, "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", @@ -5971,56 +6582,56 @@ } } } - }, - "role": { - "type": "object", - "properties": { - "uid": { - "type": "string" - }, - "name": { - "type": "string" - }, - "rules": { - "types": "array", - "items": { - "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_role": { - "type": "object", - "properties": { - "uid": { - "type": "string" - }, - "name": { - "type": "string" - }, - "rules": { - "types": "array", - "items": { - "type": "object", - "properties": { - "uid": { - "type": "string" - }, - "name": { - "type": "string" - } - } + }, + "office": { + "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": { @@ -6033,153 +6644,92 @@ } } } - } - }, - "OfficeRole": { - "type": "object", - "properties": { - "uid": { - "type": "string" - }, - "name": { - "type": "string" - }, - "rules": { - "types": "array", - "items": { + }, + "Office": { + "type": "object", + "properties": { + "uid": { + "type": "string" + }, + "name": { + "type": "string" + } + } + }, + "Vote": { + "type": "object", + "properties": { + "uid": { + "type": "string" + }, + "appointment": { "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": { - "types": "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": { + "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" + } + } + } } } } From 78c7364a815f6258df2b647520c031e4b3c8d105 Mon Sep 17 00:00:00 2001 From: OxSaitama Date: Mon, 23 Oct 2023 17:55:50 +0200 Subject: [PATCH 23/26] fix document & file middleware for customers --- src/app/api/customer/FilesController.ts | 11 ++++++++--- .../middlewares/CustomerHandler/DocumentHandler.ts | 6 +++--- 2 files changed, 11 insertions(+), 6 deletions(-) diff --git a/src/app/api/customer/FilesController.ts b/src/app/api/customer/FilesController.ts index d5db8206..1cbe6b52 100644 --- a/src/app/api/customer/FilesController.ts +++ b/src/app/api/customer/FilesController.ts @@ -31,10 +31,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); 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; From e72d4e920376acf641e9b2827c63f2a805d066dd Mon Sep 17 00:00:00 2001 From: OxSaitama Date: Mon, 23 Oct 2023 19:30:11 +0200 Subject: [PATCH 24/26] fix customer put queries --- src/app/api/customer/FilesController.ts | 50 ++++------------------- src/app/api/notary/CustomersController.ts | 38 +++++++++-------- 2 files changed, 29 insertions(+), 59 deletions(-) diff --git a/src/app/api/customer/FilesController.ts b/src/app/api/customer/FilesController.ts index 1cbe6b52..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(); } @@ -37,7 +41,7 @@ export default class FilesController extends ApiController { return; } if (query.where?.document?.depositor) delete query.where.document.depositor; - const customerWhereInput: Prisma.FilesWhereInput = { ...query.where, document: {depositor: { contact: { email: email } } }}; + const customerWhereInput: Prisma.FilesWhereInput = { ...query.where, document: { depositor: { contact: { email: email } } } }; query.where = customerWhereInput; if (query.include?.document) delete query.include.document; @@ -120,7 +124,6 @@ export default class FilesController extends ApiController { strategy: "excludeAll", }); - //success this.httpCreated(response, fileEntityHydrated); } catch (error) { @@ -129,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 */ @@ -217,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; + } } } From 6ceb96ea4c86292faa3066c98c1a15a54ca61246 Mon Sep 17 00:00:00 2001 From: OxSaitama Date: Tue, 24 Oct 2023 10:24:03 +0200 Subject: [PATCH 25/26] add notification middlewares --- src/app/api/customer/DocumentsController.ts | 2 ++ src/app/api/notary/UserNotificationController.ts | 7 ++++--- src/app/middlewares/RolesHandler.ts | 5 +++++ 3 files changed, 11 insertions(+), 3 deletions(-) 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/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/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; From 99985590bceabc17a4c9aa5a783934d167050e07 Mon Sep 17 00:00:00 2001 From: OxSaitama Date: Tue, 24 Oct 2023 21:50:49 +0200 Subject: [PATCH 26/26] fix erros & access --- src/app/api/admin/CustomersController.ts | 48 ++++++++-------- src/app/api/admin/DeedTypesController.ts | 4 ++ src/app/api/admin/DeedsController.ts | 4 ++ src/app/api/admin/DocumentTypesController.ts | 4 ++ src/app/api/admin/DocumentsController.ts | 4 ++ src/app/api/admin/FilesController.ts | 44 ++------------- src/app/api/admin/OfficeFoldersController.ts | 4 ++ src/app/api/admin/OfficeRolesController.ts | 4 ++ src/app/api/admin/OfficesController.ts | 8 ++- src/app/api/admin/RolesController.ts | 7 ++- src/app/api/admin/RulesController.ts | 7 ++- src/app/api/admin/UsersController.ts | 4 ++ src/app/api/customer/DocumentsController.ts | 6 +- src/app/api/customer/FilesController.ts | 17 ++++-- .../api/customer/OfficeFoldersController.ts | 13 +++-- src/app/api/notary/CustomersController.ts | 4 ++ src/app/api/notary/DeedTypesController.ts | 4 ++ src/app/api/notary/DeedsController.ts | 8 ++- src/app/api/notary/DocumentTypesController.ts | 4 ++ src/app/api/notary/DocumentsController.ts | 9 +++ src/app/api/notary/FilesController.ts | 44 ++------------- .../notary/OfficeFolderAnchorsController.ts | 4 ++ src/app/api/notary/OfficeFoldersController.ts | 8 ++- src/app/api/notary/OfficeRolesController.ts | 4 ++ src/app/api/notary/OfficesController.ts | 8 ++- src/app/api/notary/RolesController.ts | 7 ++- src/app/api/notary/RulesController.ts | 7 ++- .../api/notary/UserNotificationController.ts | 8 ++- src/app/api/notary/UsersController.ts | 4 ++ .../api/super-admin/CustomersController.ts | 55 ++++++++++--------- .../api/super-admin/DeedTypesController.ts | 4 ++ src/app/api/super-admin/DeedsController.ts | 4 ++ .../super-admin/DocumentTypesController.ts | 4 ++ .../api/super-admin/DocumentsController.ts | 4 ++ src/app/api/super-admin/FilesController.ts | 44 ++------------- .../super-admin/OfficeFoldersController.ts | 4 ++ .../api/super-admin/OfficeRolesController.ts | 4 ++ src/app/api/super-admin/OfficesController.ts | 8 ++- src/app/api/super-admin/RolesController.ts | 7 ++- src/app/api/super-admin/RulesController.ts | 7 ++- src/app/api/super-admin/UsersController.ts | 7 ++- .../repositories/OfficeFoldersRepository.ts | 14 ++++- .../DocumentsService/DocumentsService.ts | 8 +++ .../OfficeFoldersService.ts | 10 +++- 44 files changed, 287 insertions(+), 198 deletions(-) diff --git a/src/app/api/admin/CustomersController.ts b/src/app/api/admin/CustomersController.ts index c0aa1c49..90e05691 100644 --- a/src/app/api/admin/CustomersController.ts +++ b/src/app/api/admin/CustomersController.ts @@ -25,14 +25,17 @@ export default class CustomersController extends ApiController { protected async get(req: Request, response: Response) { try { //get query - let query; + let query: Prisma.CustomersFindManyArgs = {}; if (req.query["q"]) { query = JSON.parse(req.query["q"] as string); + if (query.where?.uid) { + this.httpBadRequest(response, "You can't filter by uid"); + return; + } } const officeId: string = req.body.user.office_Id; - if (query.where?.office_folders?.some?.office_uid) delete query.where.office_folders.some.office_uid; - if (query.where?.office_folders?.some?.office?.uid) delete query.where?.office_folders?.some?.office?.uid; + if (query.where?.office_folders) delete query.where.office_folders; const customerWhereInput: Prisma.CustomersWhereInput = { ...query.where, office_folders: { some: { office_uid: officeId } } }; query.where = customerWhereInput; @@ -50,7 +53,6 @@ export default class CustomersController extends ApiController { } } - /** * @description Create a new customer */ @@ -128,27 +130,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/admin/DeedTypesController.ts b/src/app/api/admin/DeedTypesController.ts index 3963128e..9bacb358 100644 --- a/src/app/api/admin/DeedTypesController.ts +++ b/src/app/api/admin/DeedTypesController.ts @@ -29,6 +29,10 @@ export default class DeedTypesController extends ApiController { let query: Prisma.DeedTypesFindManyArgs = {}; if (req.query["q"]) { query = JSON.parse(req.query["q"] as string); + if(query.where?.uid) { + this.httpBadRequest(response, "You can't filter by uid"); + return; + } } if (req.query["search"] && typeof req.query["search"] === "string") { diff --git a/src/app/api/admin/DeedsController.ts b/src/app/api/admin/DeedsController.ts index 00a2fa20..7f027366 100644 --- a/src/app/api/admin/DeedsController.ts +++ b/src/app/api/admin/DeedsController.ts @@ -29,6 +29,10 @@ export default class DeedsController extends ApiController { let query: Prisma.DeedsFindManyArgs = {}; if (req.query["q"]) { query = JSON.parse(req.query["q"] as string); + if(query.where?.uid) { + this.httpBadRequest(response, "You can't filter by uid"); + return; + } } const officeId: string = req.body.user.office_Id; const officeWhereInput: Prisma.OfficesWhereInput = { uid: officeId } ; diff --git a/src/app/api/admin/DocumentTypesController.ts b/src/app/api/admin/DocumentTypesController.ts index 582cd2f2..2cb864ce 100644 --- a/src/app/api/admin/DocumentTypesController.ts +++ b/src/app/api/admin/DocumentTypesController.ts @@ -29,6 +29,10 @@ export default class DocumentTypesController extends ApiController { let query: Prisma.DocumentTypesFindManyArgs = {}; if (req.query["q"]) { query = JSON.parse(req.query["q"] as string); + if(query.where?.uid) { + this.httpBadRequest(response, "You can't filter by uid"); + return; + } } const officeId: string = req.body.user.office_Id; const officeWhereInput: Prisma.OfficesWhereInput = { uid: officeId } ; diff --git a/src/app/api/admin/DocumentsController.ts b/src/app/api/admin/DocumentsController.ts index 8911c769..32310c0b 100644 --- a/src/app/api/admin/DocumentsController.ts +++ b/src/app/api/admin/DocumentsController.ts @@ -30,6 +30,10 @@ export default class DocumentsController extends ApiController { let query: Prisma.DocumentsFindManyArgs = {}; if (req.query["q"]) { query = JSON.parse(req.query["q"] as string); + if(query.where?.uid) { + this.httpBadRequest(response, "You can't filter by uid"); + return; + } } const officeId: string = req.body.user.office_Id; const officeWhereInput: Prisma.OfficesWhereInput = { uid: officeId }; diff --git a/src/app/api/admin/FilesController.ts b/src/app/api/admin/FilesController.ts index 583d3ddc..c2964d26 100644 --- a/src/app/api/admin/FilesController.ts +++ b/src/app/api/admin/FilesController.ts @@ -1,5 +1,5 @@ import { Response, Request } from "express"; -import { Controller, Delete, Get } from "@ControllerPattern/index"; +import { Controller, Get } from "@ControllerPattern/index"; import ApiController from "@Common/system/controller-pattern/ApiController"; import { Service } from "typedi"; import FilesService from "@Services/common/FilesService/FilesService"; @@ -28,6 +28,10 @@ export default class FilesController extends ApiController { let query: Prisma.FilesFindManyArgs = {}; if (req.query["q"]) { query = JSON.parse(req.query["q"] as string); + if(query.where?.uid) { + this.httpBadRequest(response, "You can't filter by uid"); + return; + } } const officeId: string = req.body.user.office_Id; const officeWhereInput: Prisma.OfficesWhereInput = { uid: officeId } ; @@ -75,44 +79,6 @@ export default class FilesController extends ApiController { } } - /** - * @description Delete a specific File - */ - @Delete("/api/v1/admin/files/:uid", [authHandler, roleHandler, ruleHandler, fileHandler]) - protected async delete(req: Request, response: Response) { - try { - const uid = req.params["uid"]; - if (!uid) { - this.httpBadRequest(response, "No uid provided"); - return; - } - - const fileFound = await this.filesService.getByUid(uid); - - if (!fileFound) { - this.httpNotFoundRequest(response, "file not found"); - return; - } - - //call service to get prisma entity - const fileEntity = await this.filesService.deleteKeyAndArchive(uid); - - if (!fileEntity) { - this.httpNotFoundRequest(response, "file not found"); - return; - } - - //Hydrate ressource with prisma entity - const file = File.hydrate(fileEntity, { strategy: "excludeAll" }); - - //success - this.httpSuccess(response, file); - } catch (error) { - this.httpInternalError(response, error); - return; - } - } - /** * @description Get a specific File by uid */ diff --git a/src/app/api/admin/OfficeFoldersController.ts b/src/app/api/admin/OfficeFoldersController.ts index 2284ae19..612ad17f 100644 --- a/src/app/api/admin/OfficeFoldersController.ts +++ b/src/app/api/admin/OfficeFoldersController.ts @@ -28,6 +28,10 @@ export default class OfficeFoldersController extends ApiController { let query: Prisma.OfficeFoldersFindManyArgs = {}; if (req.query["q"]) { query = JSON.parse(req.query["q"] as string); + if(query.where?.uid) { + this.httpBadRequest(response, "You can't filter by uid"); + return; + } } if (req.query["search"] && typeof req.query["search"] === "string") { diff --git a/src/app/api/admin/OfficeRolesController.ts b/src/app/api/admin/OfficeRolesController.ts index bd989779..5226a859 100644 --- a/src/app/api/admin/OfficeRolesController.ts +++ b/src/app/api/admin/OfficeRolesController.ts @@ -29,6 +29,10 @@ export default class OfficeRolesController extends ApiController { let query: Prisma.OfficeRolesFindManyArgs = {}; if (req.query["q"]) { query = JSON.parse(req.query["q"] as string); + if(query.where?.uid) { + this.httpBadRequest(response, "You can't filter by uid"); + return; + } } if (req.query["search"] && typeof req.query["search"] === "string") { diff --git a/src/app/api/admin/OfficesController.ts b/src/app/api/admin/OfficesController.ts index 546d240f..ded83057 100644 --- a/src/app/api/admin/OfficesController.ts +++ b/src/app/api/admin/OfficesController.ts @@ -3,7 +3,7 @@ import { Controller, Get } from "@ControllerPattern/index"; import ApiController from "@Common/system/controller-pattern/ApiController"; import OfficesService from "@Services/admin/OfficesService/OfficesService"; import { Service } from "typedi"; -import { Offices } from "@prisma/client"; +import { Offices, Prisma } from "@prisma/client"; import { Office as OfficeResource } from "le-coffre-resources/dist/Admin"; import ruleHandler from "@App/middlewares/RulesHandler"; import authHandler from "@App/middlewares/AuthHandler"; @@ -22,9 +22,13 @@ export default class OfficesController extends ApiController { protected async get(req: Request, response: Response) { try { //get query - let query; + let query: Prisma.OfficesFindManyArgs = {}; if (req.query["q"]) { query = JSON.parse(req.query["q"] as string); + if (query.where?.uid) { + this.httpBadRequest(response, "You can't filter by uid"); + return; + } } //call service to get prisma entity const officesEntities: Offices[] = await this.officesService.get(query); diff --git a/src/app/api/admin/RolesController.ts b/src/app/api/admin/RolesController.ts index 634bd92e..a94b522c 100644 --- a/src/app/api/admin/RolesController.ts +++ b/src/app/api/admin/RolesController.ts @@ -7,6 +7,7 @@ import { Role } from "le-coffre-resources/dist/Admin"; import authHandler from "@App/middlewares/AuthHandler"; import ruleHandler from "@App/middlewares/RulesHandler"; import roleHandler from "@App/middlewares/RolesHandler"; +import { Prisma } from "@prisma/client"; @Controller() @Service() @@ -22,9 +23,13 @@ export default class RolesController extends ApiController { protected async get(req: Request, response: Response) { try { //get query - let query; + let query: Prisma.RolesFindManyArgs = {}; if (req.query["q"]) { query = JSON.parse(req.query["q"] as string); + if (query.where?.uid) { + this.httpBadRequest(response, "You can't filter by uid"); + return; + } } //call service to get prisma entity diff --git a/src/app/api/admin/RulesController.ts b/src/app/api/admin/RulesController.ts index 55526601..eb95ed94 100644 --- a/src/app/api/admin/RulesController.ts +++ b/src/app/api/admin/RulesController.ts @@ -7,6 +7,7 @@ import { Rule } from "le-coffre-resources/dist/Admin"; import authHandler from "@App/middlewares/AuthHandler"; import ruleHandler from "@App/middlewares/RulesHandler"; import roleHandler from "@App/middlewares/RolesHandler"; +import { Prisma } from "@prisma/client"; @Controller() @Service() @@ -22,9 +23,13 @@ export default class RulesController extends ApiController { protected async get(req: Request, response: Response) { try { //get query - let query; + let query: Prisma.RulesFindManyArgs = {}; if (req.query["q"]) { query = JSON.parse(req.query["q"] as string); + if (query.where?.uid) { + this.httpBadRequest(response, "You can't filter by uid"); + return; + } } //call service to get prisma entity diff --git a/src/app/api/admin/UsersController.ts b/src/app/api/admin/UsersController.ts index cc4cde87..bf839fe7 100644 --- a/src/app/api/admin/UsersController.ts +++ b/src/app/api/admin/UsersController.ts @@ -29,6 +29,10 @@ export default class UsersController extends ApiController { let query: Prisma.UsersFindManyArgs = {}; if (req.query["q"]) { query = JSON.parse(req.query["q"] as string); + if(query.where?.uid) { + this.httpBadRequest(response, "You can't filter by uid"); + return; + } } if (req.query["search"] && typeof req.query["search"] === "string") { diff --git a/src/app/api/customer/DocumentsController.ts b/src/app/api/customer/DocumentsController.ts index 5d6142fb..ac14ca79 100644 --- a/src/app/api/customer/DocumentsController.ts +++ b/src/app/api/customer/DocumentsController.ts @@ -28,6 +28,10 @@ export default class DocumentsController extends ApiController { let query: Prisma.DocumentsFindManyArgs = {}; if (req.query["q"]) { query = JSON.parse(req.query["q"] as string); + if(query.where?.uid) { + this.httpBadRequest(response, "You can't filter by uid"); + return; + } } const email: string = req.body.user.email; if (!email) { @@ -66,7 +70,7 @@ export default class DocumentsController extends ApiController { return; } //get query - let query: Prisma.DocumentsInclude = {}; + let query; if (req.query["q"]) { query = JSON.parse(req.query["q"] as string); if (query.folder) delete query.folder; diff --git a/src/app/api/customer/FilesController.ts b/src/app/api/customer/FilesController.ts index c2947a9c..a5795688 100644 --- a/src/app/api/customer/FilesController.ts +++ b/src/app/api/customer/FilesController.ts @@ -34,6 +34,10 @@ export default class FilesController extends ApiController { let query: Prisma.FilesFindManyArgs = {}; if (req.query["q"]) { query = JSON.parse(req.query["q"] as string); + if (query.where?.uid) { + this.httpBadRequest(response, "You can't filter by uid"); + return; + } } const email: string = req.body.user.email; if (!email) { @@ -144,19 +148,22 @@ export default class FilesController extends ApiController { return; } - const fileFound = await this.filesService.getByUid(uid); + const fileFound = await this.filesService.getByUid(uid, { document: { include: { files: true, document_type: true } } }); if (!fileFound) { this.httpNotFoundRequest(response, "file not found"); return; } + const fileFoundEntity = File.hydrate(fileFound, { strategy: "excludeAll" }); + //call service to get prisma entity const fileEntity = await this.filesService.deleteKeyAndArchive(uid); - - if (!fileEntity) { - this.httpNotFoundRequest(response, "file not found"); - return; + if ( + !(fileFoundEntity.document!.files?.find((file) => file.archived_at === null && file.uid !== uid)) && + fileFoundEntity.document!.document_type!.name === "Autres documents" + ) { + await this.documentService.delete(fileFoundEntity.document!.uid!); } //Hydrate ressource with prisma entity diff --git a/src/app/api/customer/OfficeFoldersController.ts b/src/app/api/customer/OfficeFoldersController.ts index 899e346a..a3bfd8fe 100644 --- a/src/app/api/customer/OfficeFoldersController.ts +++ b/src/app/api/customer/OfficeFoldersController.ts @@ -7,9 +7,6 @@ import { OfficeFolders, Prisma } from "@prisma/client"; import { OfficeFolder } from "le-coffre-resources/dist/Customer"; import officeFolderHandler from "@App/middlewares/CustomerHandler/FolderHandler"; import authHandler from "@App/middlewares/AuthHandler"; -// import authHandler from "@App/middlewares/AuthHandler"; -// import ruleHandler from "@App/middlewares/RulesHandler"; -// import folderHandler from "@App/middlewares/OfficeMembershipHandlers/FolderHandler"; @Controller() @Service() @@ -28,6 +25,10 @@ export default class OfficeFoldersController extends ApiController { let query: Prisma.OfficeFoldersFindManyArgs = {}; if (req.query["q"]) { query = JSON.parse(req.query["q"] as string); + if(query.where?.uid) { + this.httpBadRequest(response, "You can't filter by uid"); + return; + } } const email: string = req.body.user.email; @@ -79,7 +80,7 @@ export default class OfficeFoldersController extends ApiController { const email: string = req.body.user.email; - let query: Prisma.OfficeFoldersInclude = {}; + let query; if (req.query["q"]) { query = JSON.parse(req.query["q"] as string); if (query?.customers) delete query.customers; @@ -95,7 +96,9 @@ export default class OfficeFoldersController extends ApiController { //Hydrate ressource with prisma entity const officeFolder = OfficeFolder.hydrate(officeFolderEntity, { strategy: "excludeAll" }); - officeFolder.customers = officeFolder.customers!.filter((customer) => customer.contact?.email === email); + if(officeFolder.customers) { + officeFolder.customers = officeFolder.customers!.filter((customer) => customer.contact?.email === email); + } //success this.httpSuccess(response, officeFolder); diff --git a/src/app/api/notary/CustomersController.ts b/src/app/api/notary/CustomersController.ts index f5bc1789..0c63db1f 100644 --- a/src/app/api/notary/CustomersController.ts +++ b/src/app/api/notary/CustomersController.ts @@ -27,6 +27,10 @@ export default class CustomersController extends ApiController { let query: Prisma.CustomersFindManyArgs = {}; if (req.query["q"]) { query = JSON.parse(req.query["q"] as string); + if(query.where?.uid) { + this.httpBadRequest(response, "You can't filter by uid"); + return; + } } const officeId: string = req.body.user.office_Id; diff --git a/src/app/api/notary/DeedTypesController.ts b/src/app/api/notary/DeedTypesController.ts index a1f44f4a..cb5845bf 100644 --- a/src/app/api/notary/DeedTypesController.ts +++ b/src/app/api/notary/DeedTypesController.ts @@ -28,6 +28,10 @@ export default class DeedTypesController extends ApiController { let query: Prisma.DeedTypesFindManyArgs = {}; if (req.query["q"]) { query = JSON.parse(req.query["q"] as string); + if(query.where?.uid) { + this.httpBadRequest(response, "You can't filter by uid"); + return; + } } const officeId: string = req.body.user.office_Id; const officeWhereInput: Prisma.OfficesWhereInput = { uid: officeId } ; diff --git a/src/app/api/notary/DeedsController.ts b/src/app/api/notary/DeedsController.ts index 52c664da..c436f898 100644 --- a/src/app/api/notary/DeedsController.ts +++ b/src/app/api/notary/DeedsController.ts @@ -28,11 +28,15 @@ export default class DeedsController extends ApiController { let query: Prisma.DeedsFindManyArgs = {}; if (req.query["q"]) { query = JSON.parse(req.query["q"] as string); + if(query.where?.uid) { + this.httpBadRequest(response, "You can't filter by uid"); + return; + } } const officeId: string = req.body.user.office_Id; const officeWhereInput: Prisma.OfficesWhereInput = { uid: officeId } ; - if(!query.where) query.where = { deed_type : {office: officeWhereInput}}; - query.where.deed_type!.office = officeWhereInput; + if(query.where?.deed_type) delete query.where.deed_type; + query.where = {...query.where, deed_type : {office: officeWhereInput}}; //call service to get prisma entity const deedEntities: Deeds[] = await this.deedsService.get(query); diff --git a/src/app/api/notary/DocumentTypesController.ts b/src/app/api/notary/DocumentTypesController.ts index 8071a296..91e3bced 100644 --- a/src/app/api/notary/DocumentTypesController.ts +++ b/src/app/api/notary/DocumentTypesController.ts @@ -27,6 +27,10 @@ export default class DocumentTypesController extends ApiController { let query: Prisma.DocumentTypesFindManyArgs = {}; if (req.query["q"]) { query = JSON.parse(req.query["q"] as string); + if(query.where?.uid) { + this.httpBadRequest(response, "You can't filter by uid"); + return; + } } const officeId: string = req.body.user.office_Id; const officeWhereInput: Prisma.OfficesWhereInput = { uid: officeId } ; diff --git a/src/app/api/notary/DocumentsController.ts b/src/app/api/notary/DocumentsController.ts index f23a27f0..7e866c8e 100644 --- a/src/app/api/notary/DocumentsController.ts +++ b/src/app/api/notary/DocumentsController.ts @@ -35,6 +35,10 @@ export default class DocumentsController extends ApiController { let query: Prisma.DocumentsFindManyArgs = {}; if (req.query["q"]) { query = JSON.parse(req.query["q"] as string); + if(query.where?.uid) { + this.httpBadRequest(response, "You can't filter by uid"); + return; + } } const officeId: string = req.body.user.office_Id; const officeWhereInput: Prisma.OfficesWhereInput = { uid: officeId }; @@ -120,6 +124,11 @@ export default class DocumentsController extends ApiController { return; } + if(documentFound.document_status === EDocumentStatus.REFUSED || documentFound.document_status === EDocumentStatus.VALIDATED) { + this.httpForbidden(response, "You are not allowed to update a VALIDATED or REFUSED document"); + return; + } + //init Document resource with request body values const documentEntity = Document.hydrate(req.body); diff --git a/src/app/api/notary/FilesController.ts b/src/app/api/notary/FilesController.ts index 26334d08..46a4969b 100644 --- a/src/app/api/notary/FilesController.ts +++ b/src/app/api/notary/FilesController.ts @@ -1,5 +1,5 @@ import { Response, Request } from "express"; -import { Controller, Delete, Get } from "@ControllerPattern/index"; +import { Controller, Get } from "@ControllerPattern/index"; import ApiController from "@Common/system/controller-pattern/ApiController"; import { Service } from "typedi"; import FilesService from "@Services/common/FilesService/FilesService"; @@ -27,6 +27,10 @@ export default class FilesController extends ApiController { let query: Prisma.FilesFindManyArgs = {}; if (req.query["q"]) { query = JSON.parse(req.query["q"] as string); + if(query.where?.uid) { + this.httpBadRequest(response, "You can't filter by uid"); + return; + } } const officeId: string = req.body.user.office_Id; const officeWhereInput: Prisma.OfficesWhereInput = { uid: officeId } ; @@ -74,44 +78,6 @@ export default class FilesController extends ApiController { } } - /** - * @description Delete a specific File - */ - @Delete("/api/v1/notary/files/:uid", [authHandler, ruleHandler, fileHandler]) - protected async delete(req: Request, response: Response) { - try { - const uid = req.params["uid"]; - if (!uid) { - this.httpBadRequest(response, "No uid provided"); - return; - } - - const fileFound = await this.filesService.getByUid(uid); - - if (!fileFound) { - this.httpNotFoundRequest(response, "file not found"); - return; - } - - //call service to get prisma entity - const fileEntity = await this.filesService.deleteKeyAndArchive(uid); - - if (!fileEntity) { - this.httpNotFoundRequest(response, "file not found"); - return; - } - - //Hydrate ressource with prisma entity - const file = File.hydrate(fileEntity, { strategy: "excludeAll" }); - - //success - this.httpSuccess(response, file); - } catch (error) { - this.httpInternalError(response, error); - return; - } - } - /** * @description Get a specific File by uid */ diff --git a/src/app/api/notary/OfficeFolderAnchorsController.ts b/src/app/api/notary/OfficeFolderAnchorsController.ts index efb31606..cb16501b 100644 --- a/src/app/api/notary/OfficeFolderAnchorsController.ts +++ b/src/app/api/notary/OfficeFolderAnchorsController.ts @@ -275,6 +275,10 @@ export default class OfficeFoldersController extends ApiController { let query: Prisma.OfficeFolderAnchorsFindManyArgs = {}; if (req.query["q"]) { query = JSON.parse(req.query["q"] as string); + if(query.where?.uid) { + this.httpBadRequest(response, "You can't filter by uid"); + return; + } } query.where = { diff --git a/src/app/api/notary/OfficeFoldersController.ts b/src/app/api/notary/OfficeFoldersController.ts index f8dca5ad..d10af72a 100644 --- a/src/app/api/notary/OfficeFoldersController.ts +++ b/src/app/api/notary/OfficeFoldersController.ts @@ -27,6 +27,10 @@ export default class OfficeFoldersController extends ApiController { let query: Prisma.OfficeFoldersFindManyArgs = {}; if (req.query["q"]) { query = JSON.parse(req.query["q"] as string); + if(query.where?.uid) { + this.httpBadRequest(response, "You can't filter by uid"); + return; + } } if (req.query["search"] && typeof req.query["search"] === "string") { @@ -186,7 +190,7 @@ export default class OfficeFoldersController extends ApiController { } //call service to get prisma entity - const officeFolderEntityUpdated = await this.officeFoldersService.update(uid, officefolderToUpdate); + const officeFolderEntityUpdated = await this.officeFoldersService.updateStatus(uid, officefolderToUpdate); //Hydrate ressource with prisma entity const officeFolders = OfficeFolder.hydrate(officeFolderEntityUpdated, { @@ -232,7 +236,7 @@ export default class OfficeFoldersController extends ApiController { await validateOrReject(officefolderToUpdate, { groups: ["updateFolder"], forbidUnknownValues: false }); //call service to get prisma entity - const officeFolderEntityUpdated = await this.officeFoldersService.update(uid, officefolderToUpdate); + const officeFolderEntityUpdated = await this.officeFoldersService.updateStatus(uid, officefolderToUpdate); //Hydrate ressource with prisma entity const officeFolders = OfficeFolder.hydrate(officeFolderEntityUpdated, { diff --git a/src/app/api/notary/OfficeRolesController.ts b/src/app/api/notary/OfficeRolesController.ts index 55aea36a..fce3401c 100644 --- a/src/app/api/notary/OfficeRolesController.ts +++ b/src/app/api/notary/OfficeRolesController.ts @@ -26,6 +26,10 @@ export default class OfficeRolesController extends ApiController { let query: Prisma.OfficeRolesFindManyArgs = {}; if (req.query["q"]) { query = JSON.parse(req.query["q"] as string); + if(query.where?.uid) { + this.httpBadRequest(response, "You can't filter by uid"); + return; + } } const officeId: string = req.body.user.office_Id; const officeWhereInput: Prisma.OfficesWhereInput = { uid: officeId } ; diff --git a/src/app/api/notary/OfficesController.ts b/src/app/api/notary/OfficesController.ts index 52b8fede..f2ab1615 100644 --- a/src/app/api/notary/OfficesController.ts +++ b/src/app/api/notary/OfficesController.ts @@ -3,7 +3,7 @@ import { Controller, Get } from "@ControllerPattern/index"; import ApiController from "@Common/system/controller-pattern/ApiController"; import OfficesService from "@Services/notary/OfficesService/OfficesService"; import { Service } from "typedi"; -import { Offices } from "@prisma/client"; +import { Offices, Prisma } from "@prisma/client"; import { Office as OfficeResource } from "le-coffre-resources/dist/Notary"; import ruleHandler from "@App/middlewares/RulesHandler"; import authHandler from "@App/middlewares/AuthHandler"; @@ -21,9 +21,13 @@ export default class OfficesController extends ApiController { protected async get(req: Request, response: Response) { try { //get query - let query; + let query: Prisma.OfficesFindManyArgs = {}; if (req.query["q"]) { query = JSON.parse(req.query["q"] as string); + if (query.where?.uid) { + this.httpBadRequest(response, "You can't filter by uid"); + return; + } } //call service to get prisma entity const officesEntities: Offices[] = await this.officesService.get(query); diff --git a/src/app/api/notary/RolesController.ts b/src/app/api/notary/RolesController.ts index 29da8bbd..11508e89 100644 --- a/src/app/api/notary/RolesController.ts +++ b/src/app/api/notary/RolesController.ts @@ -6,6 +6,7 @@ import { Service } from "typedi"; import { Role } from "le-coffre-resources/dist/Notary"; import authHandler from "@App/middlewares/AuthHandler"; import ruleHandler from "@App/middlewares/RulesHandler"; +import { Prisma } from "@prisma/client"; @Controller() @Service() @@ -21,9 +22,13 @@ export default class RolesController extends ApiController { protected async get(req: Request, response: Response) { try { //get query - let query; + let query: Prisma.RolesFindManyArgs = {}; if (req.query["q"]) { query = JSON.parse(req.query["q"] as string); + if (query.where?.uid) { + this.httpBadRequest(response, "You can't filter by uid"); + return; + } } //call service to get prisma entity diff --git a/src/app/api/notary/RulesController.ts b/src/app/api/notary/RulesController.ts index 435a27c1..988c916e 100644 --- a/src/app/api/notary/RulesController.ts +++ b/src/app/api/notary/RulesController.ts @@ -6,6 +6,7 @@ import { Service } from "typedi"; import { Rule } from "le-coffre-resources/dist/Notary"; import authHandler from "@App/middlewares/AuthHandler"; import ruleHandler from "@App/middlewares/RulesHandler"; +import { Prisma } from "@prisma/client"; @Controller() @Service() @@ -21,9 +22,13 @@ export default class RulesController extends ApiController { protected async get(req: Request, response: Response) { try { //get query - let query; + let query: Prisma.RulesFindManyArgs = {}; if (req.query["q"]) { query = JSON.parse(req.query["q"] as string); + if (query.where?.uid) { + this.httpBadRequest(response, "You can't filter by uid"); + return; + } } query.where = { diff --git a/src/app/api/notary/UserNotificationController.ts b/src/app/api/notary/UserNotificationController.ts index 970a150b..6d5d3074 100644 --- a/src/app/api/notary/UserNotificationController.ts +++ b/src/app/api/notary/UserNotificationController.ts @@ -22,12 +22,14 @@ export default class UserNotificationController extends ApiController { protected async get(req: Request, response: Response) { try { //get query - let query: any = {}; + let query: Prisma.UserNotificationsFindManyArgs = {}; if (req.query["q"]) { query = JSON.parse(req.query["q"] as string); + if (query.where?.uid) { + this.httpBadRequest(response, "You can't filter by uid"); + return; + } } - - const userId: string = req.body.user.userId; if(query.where?.user_uid) delete query.where.user_uid; if(query.where?.user?.uid) delete query.where.user.uid; diff --git a/src/app/api/notary/UsersController.ts b/src/app/api/notary/UsersController.ts index edb6b071..b92955ee 100644 --- a/src/app/api/notary/UsersController.ts +++ b/src/app/api/notary/UsersController.ts @@ -26,6 +26,10 @@ export default class UsersController extends ApiController { let query: Prisma.UsersFindManyArgs = {}; if (req.query["q"]) { query = JSON.parse(req.query["q"] as string); + if(query.where?.uid) { + this.httpBadRequest(response, "You can't filter by uid"); + return; + } } const officeId: string = req.body.user.office_Id; const officeWhereInput: Prisma.OfficesWhereInput = { uid: officeId } ; diff --git a/src/app/api/super-admin/CustomersController.ts b/src/app/api/super-admin/CustomersController.ts index 05ef2c6a..fdb8ff01 100644 --- a/src/app/api/super-admin/CustomersController.ts +++ b/src/app/api/super-admin/CustomersController.ts @@ -25,17 +25,21 @@ export default class CustomersController extends ApiController { protected async get(req: Request, response: Response) { try { //get query - let query; + let query: Prisma.CustomersFindManyArgs = {}; if (req.query["q"]) { query = JSON.parse(req.query["q"] as string); + if (query.where?.uid) { + this.httpBadRequest(response, "You can't filter by uid"); + return; + } } const officeId: string = req.body.user.office_Id; - if(query.where?.office_folders?.some?.office_uid) delete query.where.office_folders.some.office_uid; - if(query.where?.office_folders?.some?.office?.uid) delete query.where?.office_folders?.some?.office?.uid; - const customerWhereInput: Prisma.CustomersWhereInput = { ...query.where, office_folders: { some: { office_uid: officeId } }}; + if (query.where?.office_folders?.some?.office_uid) delete query.where.office_folders.some.office_uid; + if (query.where?.office_folders?.some?.office?.uid) delete query.where?.office_folders?.some?.office?.uid; + const customerWhereInput: Prisma.CustomersWhereInput = { ...query.where, office_folders: { some: { office_uid: officeId } } }; query.where = customerWhereInput; - + //call service to get prisma entity const customersEntities = await this.customersService.get(query); @@ -50,7 +54,6 @@ export default class CustomersController extends ApiController { } } - /** * @description Create a new customer */ @@ -128,27 +131,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; + } } } @@ -189,7 +194,7 @@ export default class CustomersController extends ApiController { if (req.query["q"]) { query = JSON.parse(req.query["q"] as string); } - + const customerEntity = await this.customersService.getByUid(uid, query); if (!customerEntity) { diff --git a/src/app/api/super-admin/DeedTypesController.ts b/src/app/api/super-admin/DeedTypesController.ts index 5ab62ce1..840ad792 100644 --- a/src/app/api/super-admin/DeedTypesController.ts +++ b/src/app/api/super-admin/DeedTypesController.ts @@ -29,6 +29,10 @@ export default class DeedTypesController extends ApiController { let query: Prisma.DeedTypesFindManyArgs = {}; if (req.query["q"]) { query = JSON.parse(req.query["q"] as string); + if(query.where?.uid) { + this.httpBadRequest(response, "You can't filter by uid"); + return; + } } if (req.query["search"] && typeof req.query["search"] === "string") { diff --git a/src/app/api/super-admin/DeedsController.ts b/src/app/api/super-admin/DeedsController.ts index a06de5ad..899af01d 100644 --- a/src/app/api/super-admin/DeedsController.ts +++ b/src/app/api/super-admin/DeedsController.ts @@ -29,6 +29,10 @@ export default class DeedsController extends ApiController { let query: Prisma.DeedsFindManyArgs = {}; if (req.query["q"]) { query = JSON.parse(req.query["q"] as string); + if(query.where?.uid) { + this.httpBadRequest(response, "You can't filter by uid"); + return; + } } const officeId: string = req.body.user.office_Id; const officeWhereInput: Prisma.OfficesWhereInput = { uid: officeId } ; diff --git a/src/app/api/super-admin/DocumentTypesController.ts b/src/app/api/super-admin/DocumentTypesController.ts index 85dc6896..1880d8be 100644 --- a/src/app/api/super-admin/DocumentTypesController.ts +++ b/src/app/api/super-admin/DocumentTypesController.ts @@ -29,6 +29,10 @@ export default class DocumentTypesController extends ApiController { let query: Prisma.DocumentTypesFindManyArgs = {}; if (req.query["q"]) { query = JSON.parse(req.query["q"] as string); + if(query.where?.uid) { + this.httpBadRequest(response, "You can't filter by uid"); + return; + } } const officeId: string = req.body.user.office_Id; const officeWhereInput: Prisma.OfficesWhereInput = { uid: officeId } ; diff --git a/src/app/api/super-admin/DocumentsController.ts b/src/app/api/super-admin/DocumentsController.ts index 73750914..01ce4402 100644 --- a/src/app/api/super-admin/DocumentsController.ts +++ b/src/app/api/super-admin/DocumentsController.ts @@ -30,6 +30,10 @@ export default class DocumentsController extends ApiController { let query: Prisma.DocumentsFindManyArgs = {}; if (req.query["q"]) { query = JSON.parse(req.query["q"] as string); + if(query.where?.uid) { + this.httpBadRequest(response, "You can't filter by uid"); + return; + } } const officeId: string = req.body.user.office_Id; diff --git a/src/app/api/super-admin/FilesController.ts b/src/app/api/super-admin/FilesController.ts index cb1b7f8d..38e119d6 100644 --- a/src/app/api/super-admin/FilesController.ts +++ b/src/app/api/super-admin/FilesController.ts @@ -1,5 +1,5 @@ import { Response, Request } from "express"; -import { Controller, Delete, Get } from "@ControllerPattern/index"; +import { Controller, Get } from "@ControllerPattern/index"; import ApiController from "@Common/system/controller-pattern/ApiController"; import { Service } from "typedi"; import FilesService from "@Services/common/FilesService/FilesService"; @@ -28,6 +28,10 @@ export default class FilesController extends ApiController { let query: Prisma.FilesFindManyArgs = {}; if (req.query["q"]) { query = JSON.parse(req.query["q"] as string); + if(query.where?.uid) { + this.httpBadRequest(response, "You can't filter by uid"); + return; + } } const officeId: string = req.body.user.office_Id; const officeWhereInput: Prisma.OfficesWhereInput = { uid: officeId } ; @@ -76,44 +80,6 @@ export default class FilesController extends ApiController { } } - /** - * @description Delete a specific File - */ - @Delete("/api/v1/super-admin/files/:uid", [authHandler, roleHandler, ruleHandler, fileHandler]) - protected async delete(req: Request, response: Response) { - try { - const uid = req.params["uid"]; - if (!uid) { - this.httpBadRequest(response, "No uid provided"); - return; - } - - const fileFound = await this.filesService.getByUid(uid); - - if (!fileFound) { - this.httpNotFoundRequest(response, "file not found"); - return; - } - - //call service to get prisma entity - const fileEntity = await this.filesService.deleteKeyAndArchive(uid); - - if (!fileEntity) { - this.httpNotFoundRequest(response, "file not found"); - return; - } - - //Hydrate ressource with prisma entity - const file = File.hydrate(fileEntity, { strategy: "excludeAll" }); - - //success - this.httpSuccess(response, file); - } catch (error) { - this.httpInternalError(response, error); - return; - } - } - /** * @description Get a specific File by uid */ diff --git a/src/app/api/super-admin/OfficeFoldersController.ts b/src/app/api/super-admin/OfficeFoldersController.ts index 200dc117..988c55c4 100644 --- a/src/app/api/super-admin/OfficeFoldersController.ts +++ b/src/app/api/super-admin/OfficeFoldersController.ts @@ -28,6 +28,10 @@ export default class OfficeFoldersController extends ApiController { let query: Prisma.OfficeFoldersFindManyArgs = {}; if (req.query["q"]) { query = JSON.parse(req.query["q"] as string); + if(query.where?.uid) { + this.httpBadRequest(response, "You can't filter by uid"); + return; + } } if (req.query["search"] && typeof req.query["search"] === "string") { diff --git a/src/app/api/super-admin/OfficeRolesController.ts b/src/app/api/super-admin/OfficeRolesController.ts index 802c223e..dd30cca6 100644 --- a/src/app/api/super-admin/OfficeRolesController.ts +++ b/src/app/api/super-admin/OfficeRolesController.ts @@ -28,6 +28,10 @@ export default class OfficeRolesController extends ApiController { let query: Prisma.OfficeRolesFindManyArgs = {}; if (req.query["q"]) { query = JSON.parse(req.query["q"] as string); + if(query.where?.uid) { + this.httpBadRequest(response, "You can't filter by uid"); + return; + } } if(req.query["search"] && typeof req.query["search"] === "string") { diff --git a/src/app/api/super-admin/OfficesController.ts b/src/app/api/super-admin/OfficesController.ts index f4edab79..05c0bc15 100644 --- a/src/app/api/super-admin/OfficesController.ts +++ b/src/app/api/super-admin/OfficesController.ts @@ -3,7 +3,7 @@ import { Controller, Get, Post, Put } from "@ControllerPattern/index"; import ApiController from "@Common/system/controller-pattern/ApiController"; import OfficesService from "@Services/super-admin/OfficesService/OfficesService"; import { Service } from "typedi"; -import { Offices } from "@prisma/client"; +import { Offices, Prisma } from "@prisma/client"; import { Office as OfficeResource } from "le-coffre-resources/dist/SuperAdmin"; import { validateOrReject } from "class-validator"; import ruleHandler from "@App/middlewares/RulesHandler"; @@ -23,9 +23,13 @@ export default class OfficesController extends ApiController { protected async get(req: Request, response: Response) { try { //get query - let query; + let query: Prisma.OfficesFindManyArgs = {}; if (req.query["q"]) { query = JSON.parse(req.query["q"] as string); + if (query.where?.uid) { + this.httpBadRequest(response, "You can't filter by uid"); + return; + } } if(req.query["search"] && typeof req.query["search"] === "string") { diff --git a/src/app/api/super-admin/RolesController.ts b/src/app/api/super-admin/RolesController.ts index 372c02c5..f1a4428e 100644 --- a/src/app/api/super-admin/RolesController.ts +++ b/src/app/api/super-admin/RolesController.ts @@ -8,6 +8,7 @@ import { Role } from "le-coffre-resources/dist/SuperAdmin"; import authHandler from "@App/middlewares/AuthHandler"; import ruleHandler from "@App/middlewares/RulesHandler"; import roleHandler from "@App/middlewares/RolesHandler"; +import { Prisma } from "@prisma/client"; @Controller() @Service() @@ -23,9 +24,13 @@ export default class RolesController extends ApiController { protected async get(req: Request, response: Response) { try { //get query - let query; + let query: Prisma.RolesFindManyArgs = {}; if (req.query["q"]) { query = JSON.parse(req.query["q"] as string); + if (query.where?.uid) { + this.httpBadRequest(response, "You can't filter by uid"); + return; + } } //call service to get prisma entity diff --git a/src/app/api/super-admin/RulesController.ts b/src/app/api/super-admin/RulesController.ts index 6f2f21a4..248de337 100644 --- a/src/app/api/super-admin/RulesController.ts +++ b/src/app/api/super-admin/RulesController.ts @@ -8,6 +8,7 @@ import { Rule } from "le-coffre-resources/dist/SuperAdmin"; import authHandler from "@App/middlewares/AuthHandler"; import ruleHandler from "@App/middlewares/RulesHandler"; import roleHandler from "@App/middlewares/RolesHandler"; +import { Prisma } from "@prisma/client"; @Controller() @Service() @@ -23,9 +24,13 @@ export default class RulesController extends ApiController { protected async get(req: Request, response: Response) { try { //get query - let query; + let query: Prisma.RulesFindManyArgs = {}; if (req.query["q"]) { query = JSON.parse(req.query["q"] as string); + if (query.where?.uid) { + this.httpBadRequest(response, "You can't filter by uid"); + return; + } } //call service to get prisma entity diff --git a/src/app/api/super-admin/UsersController.ts b/src/app/api/super-admin/UsersController.ts index a4a63b51..c45aa8bc 100644 --- a/src/app/api/super-admin/UsersController.ts +++ b/src/app/api/super-admin/UsersController.ts @@ -10,6 +10,7 @@ import ruleHandler from "@App/middlewares/RulesHandler"; import roleHandler from "@App/middlewares/RolesHandler"; import RolesService from "@Services/super-admin/RolesService/RolesService"; import OfficeRolesService from "@Services/super-admin/OfficeRolesService/OfficeRolesService"; +import { Prisma } from "@prisma/client"; @Controller() @Service() @@ -25,9 +26,13 @@ export default class UsersController extends ApiController { protected async get(req: Request, response: Response) { try { //get query - let query; + let query: Prisma.UsersFindManyArgs = {}; if (req.query["q"]) { query = JSON.parse(req.query["q"] as string); + if (query.where?.uid) { + this.httpBadRequest(response, "You can't filter by uid"); + return; + } } if (req.query["search"] && typeof req.query["search"] === "string") { diff --git a/src/common/repositories/OfficeFoldersRepository.ts b/src/common/repositories/OfficeFoldersRepository.ts index 67d40456..5205dc18 100644 --- a/src/common/repositories/OfficeFoldersRepository.ts +++ b/src/common/repositories/OfficeFoldersRepository.ts @@ -55,6 +55,18 @@ export default class OfficeFoldersRepository extends BaseRepository { return this.model.create({ ...createArgs, include: { stakeholders: true } }); } + public async updateStatus(uid: string, status: EFolderStatus, archived_description: string | null) { + return this.model.update({ + where: { + uid: uid, + }, + data: { + status: status, + archived_description: archived_description, + }, + }); + } + /** * @description : Update data of an office folder */ @@ -67,8 +79,6 @@ export default class OfficeFoldersRepository extends BaseRepository { folder_number: officeFolder.folder_number, name: officeFolder.name, description: officeFolder.description, - status: EFolderStatus[officeFolder.status as keyof typeof EFolderStatus], - archived_description: officeFolder.archived_description, stakeholders: { set: officeFolder.stakeholders?.map((stakeholder) => ({ uid: stakeholder.uid!, diff --git a/src/services/customer/DocumentsService/DocumentsService.ts b/src/services/customer/DocumentsService/DocumentsService.ts index b162f5dc..e999dc46 100644 --- a/src/services/customer/DocumentsService/DocumentsService.ts +++ b/src/services/customer/DocumentsService/DocumentsService.ts @@ -34,6 +34,14 @@ export default class DocumentsService extends BaseService { return this.documentsRepository.create(document); } + /** + * @description : Delete a document + * @throws {Error} If document cannot be created + */ + public async delete(uid: string): Promise { + return this.documentsRepository.delete(uid); + } + /** * @description : Modify a document * @throws {Error} If document cannot be modified diff --git a/src/services/notary/OfficeFoldersService/OfficeFoldersService.ts b/src/services/notary/OfficeFoldersService/OfficeFoldersService.ts index 689b4bb3..a96d5467 100644 --- a/src/services/notary/OfficeFoldersService/OfficeFoldersService.ts +++ b/src/services/notary/OfficeFoldersService/OfficeFoldersService.ts @@ -3,7 +3,7 @@ import OfficeFoldersRepository from "@Repositories/OfficeFoldersRepository"; import BaseService from "@Services/BaseService"; import { OfficeFolder } from "le-coffre-resources/dist/Notary"; import { Service } from "typedi"; -import { Prisma } from "@prisma/client"; +import { EFolderStatus, Prisma } from "@prisma/client"; import DeedsService from "../DeedsService/DeedsService"; @Service() @@ -41,6 +41,14 @@ export default class OfficeFoldersService extends BaseService { return this.officeFoldersRepository.update(officeFolderuid, officeFolderEntity); } + /** + * @description : Modify a folder status + * @throws {Error} If folder cannot be modified + */ + public async updateStatus(uid: string, officeFolderEntity: OfficeFolder) { + return this.officeFoldersRepository.updateStatus(uid,officeFolderEntity.status as EFolderStatus, officeFolderEntity.archived_description); + } + /** * @description : Get a folder by uid * @throws {Error} If folder cannot be get by uid