Home

Série 1

Páginas filhas
  • GroupProduct

Versões comparadas

Chave

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

...

Leitura de registro (GET):

http://localhost:8085/first/api/v1/groupproduct

Retorno:

{

  "total": 2,

  "hasNext": false,

  "syncing": false,

  "lines": [

    {

      "pk": "AR",

      "id": "AR",

      "description": "ARROBA",

      "fciAbbreviation": ""

    },

    {

      "pk": "CX",

      "id": "CX",

      "description": "CAIXA",

      "fciAbbreviation": ""

    }

  ]

}

 

Inserção (POST):

http://localhost:8085/first/api/v1/groupproduct

Body:

    {

      "id": "IJ02",

      "description": "Grupo teste"

    }

Retorno:

{

  "url": "/first/api/v1/groupproduct/IJ02",

  "id": "IJ02"

}

Alteração (PUT):

http://localhost:8085/first/api/v1/groupproduct/IJ02

Body:

    {

      "description": "Grupo teste alteração"

    }

Retorno

http://localhost:8085/first/api/v1/groupproduct/IJ02

Exclusão (DELETE):

http://localhost:8085/first/api/v1/groupproduct/IJ02

Retorno

{

  "url": "/first/api/v1/groupproduct/IJ02",

  "id": "IJ02"

}

...