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

backend_settings · Changes

Page history
docs: docs authored Oct 20, 2024 by Rodrigo Oliveira Rosa's avatar Rodrigo Oliveira Rosa
Hide whitespace changes
Inline Side-by-side
backend_settings.md
View page @ 78ae64bb
...@@ -118,9 +118,55 @@ response: ...@@ -118,9 +118,55 @@ response:
## FindById ## FindById
GET http://localhost:3000/settings/1 GET http://localhost:3000/settings/9
response: response:
```json ```json
{
"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:
[queryParams]("../resources/images/backend/settings.jpg")
response:
```json
{
"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:
```json
{
"message": "Product ID 3 inactivated successfully"
}
``` ```
## Activate
POST http://localhost:3000/settings/activate/3
response:
```Json
{
"message": "Product ID 3 activated successfully"
}
```
\ No newline at end of file
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