Gestão de Pessoas (hcm)

2.0info: 3.3.0 Gestão de férias description: Gestão de férias x-senior-domain: hcm x-senior-domain-path: hcm x-senior-service-path: vacationmanagement contact: name: Senior X Platform url: https://dev.senior.com.br email: seniorx-dev@senior.com.brhost: api.senior.com.br /hcm/vacationmanagement/securityDefinitions: bearerAuth: type: apiKey in: header name: Authorization – application/json – application/jsonpaths: /entities/vacationperiod: post: description: This entity is customizable. tags: – Entities parameters: – name: entity in: body required: true schema: #/definitions/vacationperiod responses: 200: description: The created resource schema: #/definitions/vacationperiod default: description: Error response schema: #/definitions/genericError patch: description: This entity is customizable. tags: – Entities parameters: – name: entity in: body required: true schema: #/definitions/vacationperiod responses: 200: description: The created resource schema: #/definitions/vacationperiod default: description: Error response schema: #/definitions/genericError get: description: This entity is customizable. tags: – Entities parameters: – name: offset in: query type: number – name: size in: query type: number responses: 200: description: The created resource schema: type: array items: #/definitions/vacationperiod default: description: Error response schema: #/definitions/genericError /entities/vacationperiod/{id}: put: description: This entity is customizable. tags: – Entities parameters: – name: id in: path required: true type: string – name: entity in: body required: true schema: #/definitions/vacationperiod responses: 200: description: Ok schema: #/definitions/vacationperiod default: description: Error response schema: #/definitions/genericError patch: description: This entity is customizable. tags: – Entities parameters: – name: id in: path required: true type: string – name: entity in: body required: true schema: #/definitions/vacationperiod responses: 200: description: Ok schema: #/definitions/vacationperiod default: description: Error response schema: #/definitions/genericError get: description: This entity is customizable. tags: – Entities parameters: – name: id in: path required: true type: string responses: 200: description: Ok schema: #/definitions/vacationperiod default: description: Error response schema: #/definitions/genericError delete: description: This entity is customizable. tags: – Entities parameters: – name: id in: path required: true type: string responses: 200: description: Ok default: description: Error response schema: #/definitions/genericError /entities/vacationperiod/bulk: post: description: This entity is customizable. tags: – Entities parameters: – name: entities in: body required: true schema: type: array items: #/definitions/vacationperiod responses: 200: description: The bulk creation has created resources default: description: Error response schema: #/definitions/genericError /entities/vacationreceipt: post: description: This entity is customizable. tags: – Entities parameters: – name: entity in: body required: true schema: #/definitions/vacationreceipt responses: 200: description: The created resource schema: #/definitions/vacationreceipt default: description: Error response schema: #/definitions/genericError patch: description: This entity is customizable. tags: – Entities parameters: – name: entity in: body required: true schema: #/definitions/vacationreceipt responses: 200: description: The created resource schema: #/definitions/vacationreceipt default: description: Error response schema: #/definitions/genericError get: description: This entity is customizable. tags: – Entities parameters: – name: offset in: query type: number – name: size in: query type: number responses: 200: description: The created resource schema: type: array items: #/definitions/vacationreceipt default: description: Error response schema: #/definitions/genericError /entities/vacationreceipt/{id}: put: description: This entity is customizable. tags: – Entities parameters: – name: id in: path required: true type: string – name: entity in: body required: true schema: #/definitions/vacationreceipt responses: 200: description: Ok schema: #/definitions/vacationreceipt default: description: Error response schema: #/definitions/genericError patch: description: This entity is customizable. tags: – Entities parameters: – name: id in: path required: true type: string – name: entity in: body required: true schema: #/definitions/vacationreceipt responses: 200: description: Ok schema: #/definitions/vacationreceipt default: description: Error response schema: #/definitions/genericError get: description: This entity is customizable. tags: – Entities parameters: – name: id in: path required: true type: string responses: 200: description: Ok schema: #/definitions/vacationreceipt default: description: Error response schema: #/definitions/genericError delete: description: This entity is customizable. tags: – Entities parameters: – name: id in: path required: true type: string responses: 200: description: Ok default: description: Error response schema: #/definitions/genericError /entities/vacationreceipt/bulk: post: description: This entity is customizable. tags: – Entities parameters: – name: entities in: body required: true schema: type: array items: #/definitions/vacationreceipt responses: 200: description: The bulk creation has created resources default: description: Error response schema: #/definitions/genericError /entities/individualvacationschedule: post: description: This entity is customizable. tags: – Entities parameters: – name: entity in: body required: true schema: #/definitions/individualvacationschedule responses: 200: description: The created resource schema: #/definitions/individualvacationschedule default: description: Error response schema: #/definitions/genericError patch: description: This entity is customizable. tags: – Entities parameters: – name: entity in: body required: true schema: #/definitions/individualvacationschedule responses: 200: description: The created resource schema: #/definitions/individualvacationschedule default: description: Error response schema: #/definitions/genericError get: description: This entity is customizable. tags: – Entities parameters: – name: offset in: query type: number – name: size in: query type: number responses: 200: description: The created resource schema: type: array items: #/definitions/individualvacationschedule default: description: Error response schema: #/definitions/genericError /entities/individualvacationschedule/{id}: put: description: This entity is customizable. tags: – Entities parameters: – name: id in: path required: true type: string – name: entity in: body required: true schema: #/definitions/individualvacationschedule responses: 200: description: Ok schema: #/definitions/individualvacationschedule default: description: Error response schema: #/definitions/genericError patch: description: This entity is customizable. tags: – Entities parameters: – name: id in: path required: true type: string – name: entity in: body required: true schema: #/definitions/individualvacationschedule responses: 200: description: Ok schema: #/definitions/individualvacationschedule default: description: Error response schema: #/definitions/genericError get: description: This entity is customizable. tags: – Entities parameters: – name: id in: path required: true type: string responses: 200: description: Ok schema: #/definitions/individualvacationschedule default: description: Error response schema: #/definitions/genericError delete: description: This entity is customizable. tags: – Entities parameters: – name: id in: path required: true type: string responses: 200: description: Ok default: description: Error response schema: #/definitions/genericError /entities/individualvacationschedule/bulk: post: description: This entity is customizable. tags: – Entities parameters: – name: entities in: body required: true schema: type: array items: #/definitions/individualvacationschedule responses: 200: description: The bulk creation has created resources default: description: Error response schema: #/definitions/genericErrordefinitions: vacationPeriodSituation: type: string enum: – OPENED – PAID vacationperiod: type: object required: – employee – startdate – enddate – situation properties: id: type: string description: Id do período de férias employee: type: string description: Colaborador startdate: type: string description: Data inicial format: date enddate: type: string description: Data final format: date situation: #/definitions/vacationPeriodSituation limitdate: type: string description: Data limite format: date leavebalance: type: number description: Saldo de férias format: double individualvacationschedules: type: array items: #/definitions/individualvacationschedule description: Agendamentos de férias vacationrequestupdates: type: array items: #/definitions/vacationrequestupdate description: Solicitações de férias vacationreceipts: type: array items: #/definitions/vacationreceipt description: Recibos de férias individualvacationschedule: type: object required: – vacationperiod – vacationdays – vacationbonusdays – startdate – has13thsalaryadvance properties: id: type: string description: Id do agendamento de férias vacationperiod: #/definitions/vacationperiod vacationdays: type: number description: Dias de férias format: double vacationbonusdays: type: number description: Dias de abono format: double startdate: type: string description: Data de início das férias format: date has13thsalaryadvance: type: boolean description: Tem adiantamento do 13° salário ext: type: string description: Campos customizados vacationrequestupdate: type: object required: – vacationperiod – vacationdays – vacationbonusdays – personrequestupdate – has13thsalaryadvance – startdate properties: id: type: string description: Id do solicitação de férias vacationperiod: #/definitions/vacationperiod vacationdays: type: number description: Dias de férias format: double vacationbonusdays: type: number description: Dias de abono format: double personrequestupdate: type: string description: Detalhes da requisição has13thsalaryadvance: type: boolean description: Tem adiantamento do 13º salário startdate: type: string description: Data inicial das férias format: date vacationreceipt: type: object required: – employee – vacationperiod – vacationdays – vacationbonusdays – vacationstart – has13thsalaryadvance properties: id: type: string description: Id do recibo de férias employee: type: string description: Colaborador vacationperiod: #/definitions/vacationperiod vacationdays: type: number description: Dias de férias format: double vacationbonusdays: type: number description: Dias de abono format: double vacationstart: type: string description: Data de início das férias format: date has13thsalaryadvance: type: boolean description: Tem adiantamento do 13º salário genericError: properties: message: type: string description: Messaging describing the error. reason: type: string description: A symbolic code identifying the category of the reason of the error. enum: – BAD_REQUEST – UNAUTHORIZED – PAYMENT_REQUIRED – FORBIDDEN – OBJECT_NOT_FOUND – REQUEST_TIMEOUT – GONE – UNPROCESSABLE – INTERNAL_ERROR – NOT_IMPLEMENTED – SERVICE_UNAVAILABLE – INSUFFICIENT_STORAGE