Histórico da Página
Esta entidade exibe informações sobre Armazém e suporta as seguintes operações: GET, POST, PUT e .DELETE.
Campos do retorno
Nome | Descrição | Tamanho do campo | Tipo | Mais detalhes |
id | Id do armazém | 2 | Caracter | |
description | Descrição | 30 | Caracter | . |
active | Ativo | 1 | Caracter | 1=Sim, 2=Não |
Leitura de registro (GET):
Retorno: { "total": 2, "hasNext": false, "syncing": false, "lines": [ { "pk": "01", "id": "01", "description": "PRODUTO ACABADO", "active": "1" }, { "pk": "02", "id": "02", "description": "MATERIA PRIMA", "active": "1" } ] } |
Inserção (POST):
Body: { "id": "99", "description": "Novo armazém", "active": "1" } Retorno: { "url": "/first/api/v1/warehouse/99", "id": "99" } |
Alteração (PUT):
Body: { "active": "2" } Retorno { "url": "/first/api/v1/warehouse/99", "id": "99" } |
Exclusão (DELETE):
Retorno { "url": "/first/api/v1/warehouse/99", "id": "99" } |