Histórico da Página
...
Leitura de registro (GET):
localhost:8085/first/api/v1/product |
Retorno: { "total": 2, "hasNext": false, "syncing": false, "lines": [ { "pk": "00001", "id": "00001", "description": "ESP EMB ECON GUARD PAPEL SEDA TV 14X14CM 1X1600", "auxDescription": "ESP EMB ECON GUARD PAPEL SEDA TV 14X14CM 1X1600", "type": "3", "groupId": "PA03", "active": "2", "measure": "FD", "measureFactor": 0, "measureType": "M", "defaultWarehouse": "0", "qualityControl": "2", "ncm": "48183000", "ncmException": "", "economicLot": 0, "minimalLot": 0, "icmsRate": 0, "mvaShopping": 0, "mvaSelling": 0, "ipiRate": 0, "issRate": 0, "hasPis": "2", "hasCofins": "2", "hasCsll": "2", "issCode": "", "municipalTributationCode": "", "estimatedStateRate": 0, "estimatedMunicipalRate": 0, "estimatedTaxesRate": 0, "origin": "0", "fciCode": "", "fciImportValue": 0, "fciCalculatedSaleValue": 0 }, { "pk": "00002", "id": "00002", "description": "ESP EMB ECON P TOALHA INTERFOLHA BCO 20X21CM 1X500", "auxDescription": "ESP EMB ECON P TOALHA INTERFOLHA BCO 20X21CM 1X500", "type": "3", "groupId": "PA01", "active": "2", "measure": "FD", "measureFactor": 0, "measureType": "M", "defaultWarehouse": "0", "qualityControl": "2", "ncm": "48182000", "ncmException": "", "economicLot": 0, "minimalLot": 0, "icmsRate": 0, "mvaShopping": 0, "mvaSelling": 0, "ipiRate": 0, "issRate": 0, "hasPis": "2", "hasCofins": "2", "hasCsll": "2", "issCode": "", "municipalTributationCode": "", "estimatedStateRate": 0, "estimatedMunicipalRate": 0, "estimatedTaxesRate": 0, "origin": "0", "fciCode": "", "fciImportValue": 0, "fciCalculatedSaleValue": 0 } ] } |
Inclusão de registro (POST):
localhost:8085/first/api/v1/product |
Body: { "id": "90001", "description": "Novo produto", "auxDescription": "Descrição longa", "type": "3", "groupId": "PA03", "active": "2", "measure": "FD", "measureFactor": 0, "measureType": "M", "defaultWarehouse": "01", "qualityControl": "2", "ncm": "48183000", "ncmException": "", "economicLot": 0, "minimalLot": 0, "icmsRate": 0, "mvaShopping": 0, "mvaSelling": 0, "ipiRate": 0, "issRate": 0, "hasPis": "2", "hasCofins": "2", "hasCsll": "2", "issCode": "", "municipalTributationCode": "", "estimatedStateRate": 0, "estimatedMunicipalRate": 0, "estimatedTaxesRate": 0, "origin": "0", "fciCode": "", "fciImportValue": 0, "fciCalculatedSaleValue": 0 } Retorno: { "url": "/first/api/v1/product/90001", "id": "90001" } |
...
No exemplo abaixo estamos deletando o atual item da tabela e colocando outro no lugar.
localhost:8085/first/api/v1/product/90001 |
Body: { "auxDescription": "ESP EMB ECON GUARD PAPEL SEDA TV 14X14CM 1X1600 teste" } Retorno: { "url": "/first/api/v1/product/90001", "id": "90001" } |
Exclusão de registro (DELETE):
localhost:8085/first/api/v1/product/90001 |
Retorno: { "url": "/first/api/v1/product/90001", "id": "90001" } |
...