82 lines
2.3 KiB
YAML
82 lines
2.3 KiB
YAML
tags:
|
|
- Settings Gerais
|
|
summary: Busca os detalhes de uma configuração geral
|
|
description: >
|
|
Essa rota permite obter os dados de uma configuração geral específica a partir do seu ID.
|
|
parameters:
|
|
- in: path
|
|
name: settings_id
|
|
required: true
|
|
description: ID da configuração geral
|
|
type: integer
|
|
responses:
|
|
200:
|
|
description: Detalhes da configuração retornados com sucesso
|
|
content:
|
|
application/json:
|
|
schema:
|
|
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:
|
|
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"
|
|
404:
|
|
description: Configuração não encontrada
|
|
content:
|
|
application/json:
|
|
schema:
|
|
type: object
|
|
properties:
|
|
error:
|
|
type: string
|
|
examples:
|
|
application/json:
|
|
error: "Configuração não encontrada"
|