Histórico da Página
...
Leitura de registro específico(GET):
localhost:8085/first/api/v1/Person/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/Person?Country=1058 |
{ "pk": "000003", "id": "000003", "name": "SONIA VIRGINIA SALES FEITOSA", "isClient": "N", "isSupplier": "S", "isSalesman": "S", "documentType": "F", "document": "350.723.773-34", "personType": "7", "zipCode": "60016084", "address": "CONJ D JOSE FREIRE FALCAO, BL 3096, APTO 302", "neighborhood": "MACAUBA", "region": "PI1", "city": "TERESINA", "state": "PI", "ibgeCityCode": "11001", "country": "1058", "stateInscription": "", "municipalInscription": "", "phone": "", "cellPhone": "8699882494", "email": "", "homePage": "[email protected]", "active": "1", "defaultSalesman1": "000002" }, |
...
Atualização de Registro (PUT)
localhost:8085/first/api/v1/Person/000028 |
...
Retorno: { "url": "/first/api/v1/person/000028", "id": "000028" } |
Inclusão (POST)
localhost:8085/first/api/v1/person |
Body:
...
Retorno: { "url": "/first/api/v1/person", "id": "000200” } |
Exclusão (DELETE)
localhost:8085/first/api/v1/person/000200 |
...