Home

Série 1

Páginas filhas
  • Warehouse

Versões comparadas

Chave

  • Esta linha foi adicionada.
  • Esta linha foi removida.
  • A formatação mudou.

Esta entidade exibe informações sobre Armazém e suporta as seguintes operações: GETPOSTPUT 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):

/first/api/v1/warehouse

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):

/first/api/v1/warehouse

Body:

    {

      "id": "99",

      "description": "Novo armazém",

      "active": "1"

    }

Retorno:

{

  "url": "/first/api/v1/warehouse/99",

  "id": "99"

}

Alteração (PUT):

/first/api/v1/warehouse/99

Body:

    {

      "active": "2"

    }

Retorno

{

  "url": "/first/api/v1/warehouse/99",

  "id": "99"

}

 

Exclusão (DELETE):

/first/api/v1/warehouse/99

Retorno

{

  "url": "/first/api/v1/warehouse/99",

  "id": "99"

}