{ "info": { "_postman_id": "2a8d8607-fc89-45f0-92ba-7fabd8588568", "name": "Faturas", "schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json" }, "item": [ { "name": "Fatura pelo ID", "request": { "method": "GET", "header": [ { "key": "Authorization", "value": "{{token}}", "type": "text" } ], "url": { "raw": "{{url}}/invoices/2", "host": [ "{{url}}" ], "path": [ "invoices", "2" ] } }, "response": [] }, { "name": "Listar faturas", "request": { "method": "GET", "header": [ { "key": "Authorization", "value": "{{token}}", "type": "text" } ], "url": { "raw": "{{url}}/invoices?linesPerPage=2", "host": [ "{{url}}" ], "path": [ "invoices" ], "query": [ { "key": "linesPerPage", "value": "2" } ] } }, "response": [] }, { "name": "Cadastrar fatura", "request": { "method": "POST", "header": [ { "key": "Authorization", "value": "{{token}}", "type": "text" } ], "body": { "mode": "raw", "raw": "{\n\t\"price\": 300.0,\n \"qtyInstallments\": 5,\n \"dateOrder\": \"2020-07-12\",\n \"name\": \"Teste\",\n \"creditCard\": {\n \"id\": 2\n }\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{url}}/invoices", "host": [ "{{url}}" ], "path": [ "invoices" ] } }, "response": [] }, { "name": "Atualizar fatura", "request": { "method": "PUT", "header": [ { "key": "Authorization", "value": "{{token}}", "type": "text" } ], "body": { "mode": "raw", "raw": "{\n\t\"price\": 300.0,\n \"qtyInstallments\": 5,\n \"dateOrder\": \"2020-07-12\",\n \"name\": \"Teste\",\n \"creditCard\": {\n \"id\": 4\n }\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{url}}/invoices/1", "host": [ "{{url}}" ], "path": [ "invoices", "1" ] } }, "response": [] }, { "name": "Atualizar fatura", "request": { "method": "DELETE", "header": [ { "key": "Authorization", "value": "{{token}}", "type": "text" } ], "url": { "raw": "{{url}}/invoices/2", "host": [ "{{url}}" ], "path": [ "invoices", "2" ] } }, "response": [] } ], "protocolProfileBehavior": {} }