|
|
| [Home](home) | [**Escopo**](escopo) | [Processo](processo) | [Design/Mockups](design_mockups) | [Gerência](gerencia) | [Estudos](estudos) | [Arquitetura](arquitetura) | [Contratos](contratos) | [BD](banco_dados) | [Qualidade](qualidade) | [Configuração](configuracao) | [Instalação](instalacao) | [Instruções](instrucoes) | [Utilização](utilizacao) | [Analytics](Analytics) | [Infraestrutura](infraestrutura) | [Dicas](dicas) |
|
|
|
| :-------: | :---------------------: | :---------------: | :---------------------------: | :----------------: | :-------------: | :---------------------: | :-----------------: | :------------: | :-----------------: | :-------------------------: | :---------------------: | :---------------------: | :---------------------: | :-----------------: | :---------------------------: | :---------: |
|
|
|
|
|
|
# Settings - configurações
|
|
|
|
|
|
fields:
|
|
|
|
|
|
endpoints:
|
|
|
|
|
|
## FindAll
|
|
|
|
|
|
GET http://localhost:3000/settings/
|
|
|
response:
|
|
|
|
|
|
```json
|
|
|
[
|
|
|
{
|
|
|
"id": 3,
|
|
|
"key": "enableNegativeStock",
|
|
|
"value": "true",
|
|
|
"description": "Serve para habilitar ou desabilitar o controle de estoque negativo",
|
|
|
"active": true,
|
|
|
"created_at": "2024-10-18T03:11:19.116Z",
|
|
|
"created_by": "root",
|
|
|
"updated_at": "2024-10-18T03:11:19.116Z",
|
|
|
"updated_by": "root"
|
|
|
},
|
|
|
{
|
|
|
"id": 4,
|
|
|
"key": "defaultStockLocation",
|
|
|
"value": "1",
|
|
|
"description": "Serve para definir o local de estoque padrão",
|
|
|
"active": true,
|
|
|
"created_at": "2024-10-18T03:11:19.116Z",
|
|
|
"created_by": "root",
|
|
|
"updated_at": "2024-10-18T03:11:19.116Z",
|
|
|
"updated_by": "root"
|
|
|
},
|
|
|
{
|
|
|
"id": 5,
|
|
|
"key": "defaultRoleForNewUser",
|
|
|
"value": "DEFAULT",
|
|
|
"description": "Serve para definir o papel padrão para novos usuários",
|
|
|
"active": true,
|
|
|
"created_at": "2024-10-18T03:11:19.116Z",
|
|
|
"created_by": "root",
|
|
|
"updated_at": "2024-10-18T03:11:19.116Z",
|
|
|
"updated_by": "root"
|
|
|
},
|
|
|
{
|
|
|
"id": 6,
|
|
|
"key": "defaultLoteInputMask",
|
|
|
"value": "P",
|
|
|
"description": "Define o padrão de máscara para lote de entrada",
|
|
|
"active": true,
|
|
|
"created_at": "2024-10-18T03:11:19.116Z",
|
|
|
"created_by": "root",
|
|
|
"updated_at": "2024-10-18T03:11:19.116Z",
|
|
|
"updated_by": "root"
|
|
|
},
|
|
|
{
|
|
|
"id": 7,
|
|
|
"key": "defaultLoteOutputMask",
|
|
|
"value": "PD",
|
|
|
"description": "Define o padrão de máscara para lote de saída",
|
|
|
"active": true,
|
|
|
"created_at": "2024-10-18T03:11:19.116Z",
|
|
|
"created_by": "root",
|
|
|
"updated_at": "2024-10-18T03:11:19.116Z",
|
|
|
"updated_by": "root"
|
|
|
},
|
|
|
{
|
|
|
"id": 8,
|
|
|
"key": "lastDocumentNumber",
|
|
|
"value": "3000",
|
|
|
"description": "Serve para guardar o último número de documento criado para incrementar a partir dele",
|
|
|
"active": true,
|
|
|
"created_at": "2024-10-18T03:11:19.116Z",
|
|
|
"created_by": "root",
|
|
|
"updated_at": "2024-10-18T03:11:19.116Z",
|
|
|
"updated_by": "root"
|
|
|
},
|
|
|
{
|
|
|
"id": 9,
|
|
|
"key": "lastLoteNumber",
|
|
|
"value": "100025",
|
|
|
"description": "Serve para guardar o último número de lote criado para incrementar a partir dele",
|
|
|
"active": true,
|
|
|
"created_at": "2024-10-18T03:11:19.116Z",
|
|
|
"created_by": "root",
|
|
|
"updated_at": "2024-10-19T06:31:45.184Z",
|
|
|
"updated_by": "root"
|
|
|
},
|
|
|
{
|
|
|
"id": 10,
|
|
|
"key": "loteNumberLength",
|
|
|
"value": "5",
|
|
|
"description": "Define o tamanho do número do lote para preenchimento com zeros à esquerda (ex: 00001)",
|
|
|
"active": true,
|
|
|
"created_at": "2024-10-18T03:11:19.116Z",
|
|
|
"created_by": "root",
|
|
|
"updated_at": "2024-10-18T03:11:19.116Z",
|
|
|
"updated_by": "root"
|
|
|
},
|
|
|
{
|
|
|
"id": 11,
|
|
|
"key": "daysOfExpiration",
|
|
|
"value": "90",
|
|
|
"description": "Serve para definir por padrão a validade do lote",
|
|
|
"active": true,
|
|
|
"created_at": "2024-10-18T13:14:27.633Z",
|
|
|
"created_by": "root",
|
|
|
"updated_at": "2024-10-18T13:14:27.633Z",
|
|
|
"updated_by": "root"
|
|
|
}
|
|
|
]
|
|
|
```
|
|
|
|
|
|
## FindById
|
|
|
|
|
|
GET http://localhost:3000/settings/1
|
|
|
response:
|
|
|
|
|
|
```json
|
|
|
|
|
|
``` |