... | ... | @@ -118,9 +118,55 @@ response: |
|
|
|
|
|
## FindById
|
|
|
|
|
|
GET http://localhost:3000/settings/1
|
|
|
GET http://localhost:3000/settings/9
|
|
|
response:
|
|
|
|
|
|
```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 |