Histórico da Página
...
Leitura de registro específico(GET):
localhost:8085/first/api/v1/salesman/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/salesman?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/salesman/000028 |
---|
...
Retorno: { "url": "/first/api/v1/salesman/000028", "id": "000028" } |
Inclusão (POST)
localhost:8085/first/api/v1/salesman |
Body:
...
Retorno: { "url": "/first/api/v1/salesman", "id": "000200” } |
Exclusão (DELETE)
localhost:8085/first/api/v1/salesman/000200 |
---|
...