Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- create: {
- type: 'object',
- properties: {
- company: {type: 'number'},
- firstName: {type: 'string'},
- lastName: {type: 'string'},
- jobTitle: {type: 'string'},
- displayName: {type: 'string'},
- email: {type: 'string'},
- phone1: {type: 'string'},
- phone2: {type: 'string'},
- password: {type: 'string'},
- blocked: {type: 'boolean'},
- address: {type: 'string'},
- onBehalfOfBankAccountId: {type: 'number'},
- system: {type: 'boolean'},
- image: {type: 'string'},
- status: {type: 'number'},
- role: {type: 'number'},
- speciality: {type: 'string'}
- },
- required: ['firstName', 'lastName', 'email', 'password', 'status'],
- additionalProperties: false
- },
- update: {
- type: 'object',
- properties: {
- company: {type: 'number'},
- firstName: {type: 'string'},
- lastName: {type: 'string'},
- jobTitle: {type: 'string'},
- displayName: {type: 'string'},
- email: {type: 'string'},
- phone1: {type: 'string'},
- phone2: {type: 'string'},
- blocked: {type: 'boolean'},
- address: {type: 'string'},
- onBehalfOfBankAccountId: {type: 'number'},
- system: {type: 'boolean'},
- image: {type: 'string'},
- status: {type: 'number'},
- role: {type: 'number'},
- speciality: {type: 'string'}
- },
- minProperties: 1,
- additionalProperties: false
- },
- filter: {
- type: 'object',
- properties: {
- //filter params
- id: {type: 'string'},
- company: {type: 'string'},
- firstName: {type: 'string'},
- lastName: {type: 'string'},
- jobTitle: {type: 'string'},
- displayName: {type: 'string'},
- email: {type: 'string'},
- phone1: {type: 'string'},
- phone2: {type: 'string'},
- blocked: {type: 'boolean'},
- address: {type: 'string'},
- onBehalfOfBankAccountId: {type: 'string'},
- system: {type: 'boolean'},
- image: {type: 'string'},
- status: {type: 'string'},
- role: {type: 'string'},
- speciality: {type: 'string'},
- //pagination params
- page: {type: 'string'},
- limit: {type: 'string'}
- },
- additionalProperties: false
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement