Advertisement
Guest User

Untitled

a guest
Aug 29th, 2016
58
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
JSON 2.34 KB | None | 0 0
  1.     create: {
  2.       type: 'object',
  3.       properties: {
  4.         company: {type: 'number'},
  5.         firstName: {type: 'string'},
  6.         lastName: {type: 'string'},
  7.         jobTitle: {type: 'string'},
  8.         displayName: {type: 'string'},
  9.         email: {type: 'string'},
  10.         phone1: {type: 'string'},
  11.         phone2: {type: 'string'},
  12.         password: {type: 'string'},
  13.         blocked: {type: 'boolean'},
  14.         address: {type: 'string'},
  15.         onBehalfOfBankAccountId: {type: 'number'},
  16.         system: {type: 'boolean'},
  17.         image: {type: 'string'},
  18.         status: {type: 'number'},
  19.         role: {type: 'number'},
  20.         speciality: {type: 'string'}
  21.       },
  22.       required: ['firstName', 'lastName', 'email', 'password', 'status'],
  23.       additionalProperties: false
  24.     },
  25.     update: {
  26.       type: 'object',
  27.       properties: {
  28.         company: {type: 'number'},
  29.         firstName: {type: 'string'},
  30.         lastName: {type: 'string'},
  31.         jobTitle: {type: 'string'},
  32.         displayName: {type: 'string'},
  33.         email: {type: 'string'},
  34.         phone1: {type: 'string'},
  35.         phone2: {type: 'string'},
  36.         blocked: {type: 'boolean'},
  37.         address: {type: 'string'},
  38.         onBehalfOfBankAccountId: {type: 'number'},
  39.         system: {type: 'boolean'},
  40.         image: {type: 'string'},
  41.         status: {type: 'number'},
  42.         role: {type: 'number'},
  43.         speciality: {type: 'string'}
  44.       },
  45.       minProperties: 1,
  46.       additionalProperties: false
  47.     },
  48.     filter: {
  49.       type: 'object',
  50.       properties: {
  51.         //filter params
  52.         id: {type: 'string'},
  53.         company: {type: 'string'},
  54.         firstName: {type: 'string'},
  55.         lastName: {type: 'string'},
  56.         jobTitle: {type: 'string'},
  57.         displayName: {type: 'string'},
  58.         email: {type: 'string'},
  59.         phone1: {type: 'string'},
  60.         phone2: {type: 'string'},
  61.         blocked: {type: 'boolean'},
  62.         address: {type: 'string'},
  63.         onBehalfOfBankAccountId: {type: 'string'},
  64.         system: {type: 'boolean'},
  65.         image: {type: 'string'},
  66.         status: {type: 'string'},
  67.         role: {type: 'string'},
  68.         speciality: {type: 'string'},
  69.         //pagination params
  70.         page: {type: 'string'},
  71.         limit: {type: 'string'}
  72.       },
  73.       additionalProperties: false
  74.     }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement