arp (Armazenamento de registro de ponto)

2.0info: 1.10.3 general description: ARP General Backend x-senior-domain: Armazenamento de registro de ponto x-senior-domain-path: arp x-senior-service-path: general contact: name: Senior X Platform url: https://dev.senior.com.br email: seniorx-dev@senior.com.brhost: api.senior.com.br /arp/generalsecurityDefinitions: bearerAuth: type: apiKey in: header name: Authorization – application/json – application/jsonparameters: clientId: name: client_id type: string in: header required: true description: Identificação da aplicação cadastrada no portal do desenvolvedor (api.xplatform.com.br)paths: /employerFacadeCreated: post: description: Event of employer FacadeCreated x-senior-event: true deprecated: false tags: – Events security: – bearerAuth: [] parameters: – #/parameters/clientId – name: input in: body required: true schema: #/definitions/employerFacade responses: 200: description: Ok default: description: Error response schema: #/definitions/genericError /apis/employer: post: description: The create request primitive for the employer facade. deprecated: false tags: – Apis security: – bearerAuth: [] parameters: – #/parameters/clientId – name: input in: body required: true schema: #/definitions/employerFacade responses: 200: description: Ok schema: #/definitions/employerFacade default: description: Error response schema: #/definitions/genericError get: description: The list request primitive for the employer facade. deprecated: false tags: – Apis security: – bearerAuth: [] parameters: – #/parameters/clientId – name: offset in: query type: number – name: size in: query type: number responses: 200: description: Ok schema: type: object required: – contents properties: contents: #/definitions/employerFacade default: description: Error response schema: #/definitions/genericError /apis/employer/{id}: put: description: The update request primitive for the employer facade. deprecated: false tags: – Apis security: – bearerAuth: [] parameters: – #/parameters/clientId – name: id in: path required: true type: string – name: input in: body required: true schema: #/definitions/employerFacade responses: 200: description: Ok schema: #/definitions/employerFacade default: description: Error response schema: #/definitions/genericError get: description: The retrieve request primitive for the employer facade. deprecated: false tags: – Apis security: – bearerAuth: [] parameters: – #/parameters/clientId – name: id in: path required: true type: string responses: 200: description: Ok schema: #/definitions/employerFacade default: description: Error response schema: #/definitions/genericError /apis/employee: post: description: The create request primitive for the employee facade. deprecated: false tags: – Apis security: – bearerAuth: [] parameters: – #/parameters/clientId – name: input in: body required: true schema: #/definitions/employeeFacade responses: 200: description: Ok schema: #/definitions/employeeFacade default: description: Error response schema: #/definitions/genericError get: description: The list request primitive for the employee facade. deprecated: false tags: – Apis security: – bearerAuth: [] parameters: – #/parameters/clientId – name: offset in: query type: number – name: size in: query type: number responses: 200: description: Ok schema: type: object required: – contents properties: contents: #/definitions/employeeFacade default: description: Error response schema: #/definitions/genericError /apis/employee/{id}: put: description: The update request primitive for the employee facade. deprecated: false tags: – Apis security: – bearerAuth: [] parameters: – #/parameters/clientId – name: id in: path required: true type: string – name: input in: body required: true schema: #/definitions/employeeFacade responses: 200: description: Ok schema: #/definitions/employeeFacade default: description: Error response schema: #/definitions/genericError get: description: The retrieve request primitive for the employee facade. deprecated: false tags: – Apis security: – bearerAuth: [] parameters: – #/parameters/clientId – name: id in: path required: true type: string responses: 200: description: Ok schema: #/definitions/employeeFacade default: description: Error response schema: #/definitions/genericError delete: description: The delete request primitive for the employee facade. deprecated: false tags: – Apis security: – bearerAuth: [] parameters: – #/parameters/clientId – name: id in: path required: true type: string responses: 200: description: Ok default: description: Error response schema: #/definitions/genericErrordefinitions: employerType: type: string enum: – CNPJ – CPF employerFacade: type: object required: – externalId – identifier – employerType – name – registerNumberINPI – address – cpfResponsible properties: id: type: string description: format: uuid externalId: type: string description: format: uuid identifier: type: integer description: Identificador (CPF ou CNPJ) employerType: #/definitions/employerType nationalRegister: type: integer description: Registro nacional name: type: string description: Nome registerNumberINPI: type: string description: Número de registro no INPI address: type: string description: Endereço cpfResponsible: type: integer description: CPF do responsável cnoNumber: type: integer description: Número de Cadastro Nacional de Obras caepf: type: integer description: CAEPF employeeFacade: type: object required: – externalId – employer – cpf – name – secondaryIdentification – cpfResponsible properties: id: type: string description: format: uuid externalId: type: string description: format: uuid employer: type: string description: format: uuid cpf: type: integer description: CPF name: type: string description: Nome secondaryIdentification: type: string description: Identificador secundário cpfResponsible: type: integer description: CPF do responsável 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