77 lines
2.5 KiB
YAML
77 lines
2.5 KiB
YAML
tags:
|
|
- Settings Gerais
|
|
summary: Lista todas as configurações gerais
|
|
description: >
|
|
Essa rota permite listar todas as configurações gerais cadastradas.
|
|
Pode-se filtrar por uma instância de serviço específica.
|
|
parameters:
|
|
- in: query
|
|
name: service_instance_id
|
|
required: false
|
|
description: ID da instância de serviço para filtrar as configurações
|
|
type: integer
|
|
responses:
|
|
200:
|
|
description: Lista de configurações retornada com sucesso
|
|
content:
|
|
application/json:
|
|
schema:
|
|
type: object
|
|
properties:
|
|
settings_gerais_list:
|
|
type: array
|
|
items:
|
|
type: object
|
|
properties:
|
|
id:
|
|
type: integer
|
|
tolerancia_entrada:
|
|
type: integer
|
|
tolerancia_saida:
|
|
type: integer
|
|
limite_diario_he:
|
|
type: integer
|
|
limite_mensal_he:
|
|
type: integer
|
|
limite_banco_horas_positivo:
|
|
type: integer
|
|
limite_banco_horas_negativo:
|
|
type: integer
|
|
validacao_reconhecimento_facial:
|
|
type: string
|
|
registro_remoto:
|
|
type: string
|
|
ajuste_colaborador:
|
|
type: string
|
|
dias_aprovacao_automatica:
|
|
type: integer
|
|
service_instance_id:
|
|
type: integer
|
|
examples:
|
|
application/json:
|
|
settings_gerais_list:
|
|
- id: 1
|
|
tolerancia_entrada: 10
|
|
tolerancia_saida: 5
|
|
limite_diario_he: 120
|
|
limite_mensal_he: 2400
|
|
limite_banco_horas_positivo: 800
|
|
limite_banco_horas_negativo: -400
|
|
validacao_reconhecimento_facial: "True"
|
|
registro_remoto: "True"
|
|
ajuste_colaborador: "False"
|
|
dias_aprovacao_automatica: 3
|
|
service_instance_id: 4
|
|
401:
|
|
description: Token inválido ou ausente
|
|
content:
|
|
application/json:
|
|
schema:
|
|
type: object
|
|
properties:
|
|
error:
|
|
type: string
|
|
examples:
|
|
application/json:
|
|
error: "Token inválido ou ausente"
|