Home

Série 1

Páginas filhas
  • Supplier

Versões comparadas

Chave

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

...

Leitura de registro específico(GET):

localhost:8085/first/api/v1/supplier/000007

{

  "pk": "000007",

  "id": "000007",

  "name": "BRASPRESS TRANSPORTES URGENTES LTDA",

  "documentType": "J",

  "document": "48.740.351/0001-65",

  "personType": "7",

  "zipCode": "02068050",

  "address": "RUA CEL MARQUES RIBEIRO, 225",

  "neighborhood": "SAO PAULO",

  "region": "",

  "city": "SAO PAULO",

  "state": "SP",

  "ibgeCityCode": "50308",

  "country": "1058",

  "stateInscription": "116945108113",

  "municipalInscription": "116945108113",

  "phone": "",

  "cellPhone": "",

  "email": "",

  "homePage": "",

  "active": "1",

  "defaultSalesman1": "000001"

}

...

Leitura de registro com filtro (GET)

localhost:8085/first/api/v1/supplier?Country=1058

{

  "pk": "000007",

  "id": "000007",

  "name": "BRASPRESS TRANSPORTES URGENTES LTDA",

  "documentType": "J",

  "document": "48.740.351/0001-65",

  "personType": "7",

  "zipCode": "02068050",

  "address": "RUA CEL MARQUES RIBEIRO, 225",

  "neighborhood": "SAO PAULO",

  "region": "",

  "city": "SAO PAULO",

  "state": "SP",

  "ibgeCityCode": "50308",

  "country": "1058",

  "stateInscription": "116945108113",

  "municipalInscription": "116945108113",

  "phone": "",

  "cellPhone": "",

  "email": "",

  "homePage": "",

  "active": "1",

  "defaultSalesman1": "000001"

}

...

Atualização de Registro (PUT)

 

localhost:8085/first/api/v1/supplier/000028

...

Retorno:

{

  "url": "/first/api/v1/ supplier/000028",

  "id": "000028"

}

 

Inclusão (POST)

localhost:8085/first/api/v1/supplier

 

Body:

...

Retorno:

{

  "url": "/first/api/v1/supplier",

  "id": "000200”

}

 

Exclusão (DELETE)

localhost:8085/first/api/v1/supplier/000200

...