Skip to content

GitLab

  • Menu
Projects Groups Snippets
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
  • Wiki Wiki
  • Project information
    • Project information
    • Activity
    • Labels
    • Planning hierarchy
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 52
    • Issues 52
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 0
    • Merge requests 0
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Monitor
    • Monitor
    • Incidents
  • Packages & Registries
    • Packages & Registries
    • Package Registry
    • Infrastructure Registry
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • CP - Planta
  • WikiWiki
  • Wiki
  • backend_settings

Last edited by ESKieroff Oct 20, 2024
Page history

backend_settings

Home Escopo Processo Design/Mockups Gerência Estudos Arquitetura Contratos BD Qualidade Configuração Instalação Instruções Utilização Analytics Infraestrutura Dicas

Settings - configurações

fields:

endpoints:

FindAll

GET http://localhost:3000/settings/ response:

[
  {
    "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/9 response:

{
  "id": 9,
  "key": "lastLoteNumber",
  "value": "100027",
  "active": true,
  "description": "Serve para guardar o último número de lote criado para incrementar a partir dele",
  "updated_at": "20-10-2024 16:54:50",
  "updated_by": "root"
}

Update (set)

POST http://localhost:3000/settings/3

request: request

response:

{
  "id": 3,
  "key": "enableNegativeStock",
  "value": "true",
  "active": true,
  "description": "Serve para habilitar ou desabilitar o controle de estoque negativo",
  "updated_at": "20-10-2024 16:55:49",
  "updated_by": "root"
}

Inactivate

DELETE http://localhost:3000/settings/3

response:

{
  "message": "Product ID 3 inactivated successfully"
}

Activate

POST http://localhost:3000/settings/activate/3

response:

{
	"message": "Product ID 3 activated successfully"
}
Clone repository
  • Infraestrutura
  • Utilizando a wiki
    • adicionando imagens
    • escrevendo em markdown
    • wiki no editor de texto
  • analytics
  • arquitetura
  • backend_categories
  • backend_inicio
  • backend_persons
  • backend_production_order
  • backend_products
  • backend_qualidade
  • backend_settings
  • backend_stock
  • backend_stock_locations
View All Pages