{"info":{"_postman_id":"8dec1a79-5f11-4922-9807-cedfa8271a8d","name":"Logistics API","description":"<html><head></head><body><p><strong>Api for sales control</strong></p>\n</body></html>","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[],"owner":"13484294","collectionId":"8dec1a79-5f11-4922-9807-cedfa8271a8d","publishedId":"VUqptd7d","public":true,"customColor":{"top-bar":"ffffff","right-sidebar":"303030","highlight":"00C89B"},"publishDate":"2022-08-22T13:02:09.000Z"},"item":[{"name":"Item","item":[{"name":"Create Item","id":"f336a931-48b2-4127-851d-ceb57a05d469","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n\"description\": \"Agro Consultancy\",\r\n\"value\": 8000,\r\n\"type\": \"S\"\r\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:8080/api/items","description":"<ul>\n<li>Criar um item</li>\n</ul>\n<p><code>[url base]/api/items</code></p>\n<p><em>O tipo do item deve ser 'P' para produto e 'S' para serviço.</em></p>\n","urlObject":{"protocol":"http","port":"8080","path":["api","items"],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"bdd0d723-d808-43c3-92f7-df84d6211f79","name":"Create Item","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n\"description\": \"ERP Software\",\r\n\"value\": 50000,\r\n\"type\": \"P\"\r\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:8080/api/items"},"status":"Created","code":201,"_postman_previewlanguage":"json","header":[{"key":"Vary","value":"Origin"},{"key":"Vary","value":"Access-Control-Request-Method"},{"key":"Vary","value":"Access-Control-Request-Headers"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Date","value":"Mon, 22 Aug 2022 11:56:46 GMT"},{"key":"Keep-Alive","value":"timeout=60"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"{\n    \"id\": \"b465503a-5be2-41e4-a04a-d5146c2a9c06\",\n    \"description\": \"ERP Software\",\n    \"value\": 50000,\n    \"type\": \"P\"\n}"},{"id":"59abe687-03cb-483e-8034-93373d4ef221","name":"Error Type","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n\"description\": \"ERP Software\",\r\n\"value\": 50000,\r\n\"type\": \"R\"\r\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:8080/api/items"},"status":"Bad Request","code":400,"_postman_previewlanguage":"plain","header":[{"key":"Vary","value":"Origin"},{"key":"Vary","value":"Access-Control-Request-Method"},{"key":"Vary","value":"Access-Control-Request-Headers"},{"key":"Content-Type","value":"text/plain;charset=UTF-8"},{"key":"Content-Length","value":"55"},{"key":"Date","value":"Mon, 22 Aug 2022 11:58:06 GMT"},{"key":"Connection","value":"close"}],"cookie":[],"responseTime":null,"body":"Error: type must be 'P' for product or 'S' for service."}],"_postman_id":"f336a931-48b2-4127-851d-ceb57a05d469"},{"name":"Get Item","id":"b93e56a9-7691-4216-92a1-140b1094ca99","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"http://localhost:8080/api/items/b465503a-5be2-41e4-a04a-d5146c2a9c07","description":"<ul>\n<li>Listar um item</li>\n</ul>\n<p><code>[url base]/api/items/[id do item]</code></p>\n","urlObject":{"protocol":"http","port":"8080","path":["api","items","b465503a-5be2-41e4-a04a-d5146c2a9c07"],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"0d4d47b4-1ef6-4deb-97b6-b142939c2608","name":"Get Item","originalRequest":{"method":"GET","header":[],"url":"http://localhost:8080/api/items/b465503a-5be2-41e4-a04a-d5146c2a9c06"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Vary","value":"Origin"},{"key":"Vary","value":"Access-Control-Request-Method"},{"key":"Vary","value":"Access-Control-Request-Headers"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Date","value":"Mon, 22 Aug 2022 12:05:04 GMT"},{"key":"Keep-Alive","value":"timeout=60"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"{\n    \"id\": \"b465503a-5be2-41e4-a04a-d5146c2a9c06\",\n    \"description\": \"ERP Software\",\n    \"value\": 50000,\n    \"type\": \"P\"\n}"},{"id":"638fd9e0-9d4a-495e-bf74-61fed530a0be","name":"Item not found","originalRequest":{"method":"GET","header":[],"url":"http://localhost:8080/api/items/b465503a-5be2-41e4-a04a-d5146c2a9c08"},"status":"Not Found","code":404,"_postman_previewlanguage":"plain","header":[{"key":"Vary","value":"Origin"},{"key":"Vary","value":"Access-Control-Request-Method"},{"key":"Vary","value":"Access-Control-Request-Headers"},{"key":"Content-Type","value":"text/plain;charset=UTF-8"},{"key":"Content-Length","value":"15"},{"key":"Date","value":"Mon, 22 Aug 2022 12:05:27 GMT"},{"key":"Keep-Alive","value":"timeout=60"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"Item not found."}],"_postman_id":"b93e56a9-7691-4216-92a1-140b1094ca99"},{"name":"Update Item","id":"53423d7f-5c79-4a97-8daf-4f22ed58c2c7","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[],"body":{"mode":"raw","raw":"{\r\n \"description\": \"ERP Software\",\r\n \"value\": 6000,\r\n \"type\": \"P\"\r\n}\r\n","options":{"raw":{"language":"json"}}},"url":"http://localhost:8080/api/items/b465503a-5be2-41e4-a04a-d5146c2a9c06","description":"<ul>\n<li>Editar um item</li>\n</ul>\n<p><code>[url base]/api/items/[id do item]</code></p>\n","urlObject":{"protocol":"http","port":"8080","path":["api","items","b465503a-5be2-41e4-a04a-d5146c2a9c06"],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"0c670983-8b56-4c0b-bd06-80264178d48c","name":"Update Item","originalRequest":{"method":"PUT","header":[],"body":{"mode":"raw","raw":"{\r\n \"description\": \"ERP Software\",\r\n \"value\": 40000,\r\n \"type\": \"P\"\r\n}\r\n","options":{"raw":{"language":"json"}}},"url":"http://localhost:8080/api/items/b465503a-5be2-41e4-a04a-d5146c2a9c06"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Vary","value":"Origin"},{"key":"Vary","value":"Access-Control-Request-Method"},{"key":"Vary","value":"Access-Control-Request-Headers"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Date","value":"Mon, 22 Aug 2022 12:09:41 GMT"},{"key":"Keep-Alive","value":"timeout=60"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"{\n    \"id\": \"b465503a-5be2-41e4-a04a-d5146c2a9c06\",\n    \"description\": \"ERP Software\",\n    \"value\": 40000,\n    \"type\": \"P\"\n}"},{"id":"f71f9b63-2784-40ee-bc13-c7cbe8653296","name":"Item not found","originalRequest":{"method":"PUT","header":[],"body":{"mode":"raw","raw":"{\r\n \"description\": \"ERP Software\",\r\n \"value\": 40000,\r\n \"type\": \"P\"\r\n}\r\n","options":{"raw":{"language":"json"}}},"url":"http://localhost:8080/api/items/b465503a-5be2-41e4-a04a-d5146c2a9c07"},"status":"Not Found","code":404,"_postman_previewlanguage":"plain","header":[{"key":"Vary","value":"Origin"},{"key":"Vary","value":"Access-Control-Request-Method"},{"key":"Vary","value":"Access-Control-Request-Headers"},{"key":"Content-Type","value":"text/plain;charset=UTF-8"},{"key":"Content-Length","value":"15"},{"key":"Date","value":"Mon, 22 Aug 2022 12:10:17 GMT"},{"key":"Keep-Alive","value":"timeout=60"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"Item not found."}],"_postman_id":"53423d7f-5c79-4a97-8daf-4f22ed58c2c7"},{"name":"Delete Item","id":"33231ae6-bf75-4259-8400-5c75bfc9fbab","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[],"url":"http://localhost:8080/api/items/3747a102-6c7c-46fa-933c-27e2bb35a736","description":"<ul>\n<li>Excluir um item</li>\n</ul>\n<p><code>[url base]/api/items/[id do item]</code></p>\n","urlObject":{"protocol":"http","port":"8080","path":["api","items","3747a102-6c7c-46fa-933c-27e2bb35a736"],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"9bd27dbf-0c33-454a-a644-550c006f91f4","name":"Delete Item","originalRequest":{"method":"DELETE","header":[],"url":"http://localhost:8080/api/items/3747a102-6c7c-46fa-933c-27e2bb35a736"},"status":"OK","code":200,"_postman_previewlanguage":"plain","header":[{"key":"Vary","value":"Origin"},{"key":"Vary","value":"Access-Control-Request-Method"},{"key":"Vary","value":"Access-Control-Request-Headers"},{"key":"Content-Type","value":"text/plain;charset=UTF-8"},{"key":"Content-Length","value":"26"},{"key":"Date","value":"Mon, 22 Aug 2022 12:54:13 GMT"},{"key":"Keep-Alive","value":"timeout=60"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"Item successfully deleted."},{"id":"68f6e824-e93a-4e2e-b6a7-930f593b22c9","name":"Item not found","originalRequest":{"method":"DELETE","header":[],"url":"http://localhost:8080/api/items/3747a102-6c7c-46fa-933c-27e2bb35a736"},"status":"Not Found","code":404,"_postman_previewlanguage":"plain","header":[{"key":"Vary","value":"Origin"},{"key":"Vary","value":"Access-Control-Request-Method"},{"key":"Vary","value":"Access-Control-Request-Headers"},{"key":"Content-Type","value":"text/plain;charset=UTF-8"},{"key":"Content-Length","value":"15"},{"key":"Date","value":"Mon, 22 Aug 2022 12:54:22 GMT"},{"key":"Keep-Alive","value":"timeout=60"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"Item not found."}],"_postman_id":"33231ae6-bf75-4259-8400-5c75bfc9fbab"},{"name":"List Item","id":"ad641916-9eb7-4569-863f-2cc9caacc7e5","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"http://localhost:8080/api/items/","description":"<ul>\n<li>Listar todos os itens</li>\n</ul>\n<p><code>[url base]/api/items/</code></p>\n","urlObject":{"protocol":"http","port":"8080","path":["api","items",""],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"5591dcc4-4b74-448e-81c9-0f08280b626d","name":"List Item","originalRequest":{"method":"GET","header":[],"url":"http://localhost:8080/api/items/"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Vary","value":"Origin"},{"key":"Vary","value":"Access-Control-Request-Method"},{"key":"Vary","value":"Access-Control-Request-Headers"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Date","value":"Mon, 22 Aug 2022 12:24:55 GMT"},{"key":"Keep-Alive","value":"timeout=60"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"[\n    {\n        \"id\": \"b465503a-5be2-41e4-a04a-d5146c2a9c06\",\n        \"description\": \"ERP Software\",\n        \"value\": 40000,\n        \"type\": \"P\"\n    },\n    {\n        \"id\": \"3747a102-6c7c-46fa-933c-27e2bb35a736\",\n        \"description\": \"Agro Consultancy\",\n        \"value\": 8000,\n        \"type\": \"S\"\n    }\n]"}],"_postman_id":"ad641916-9eb7-4569-863f-2cc9caacc7e5"}],"id":"dbc5706f-ca65-46ca-bfa6-d2bedc1d295e","description":"<p><strong>Sessão de itens de venda</strong></p>\n","_postman_id":"dbc5706f-ca65-46ca-bfa6-d2bedc1d295e"},{"name":"Order","item":[{"name":"Create Order","id":"be309639-b59b-4c57-be2e-6e5a893fa99f","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"number\": 4467,\r\n    \"date\": \"2022-08-20T14:30:55.768-03:00\",\r\n    \"percentualDiscount\": 10\r\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:8080/api/orders","description":"<ul>\n<li>Criar um pedido</li>\n</ul>\n<p><code>[url base]/api/orders</code></p>\n","urlObject":{"protocol":"http","port":"8080","path":["api","orders"],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"45c173e5-dec0-4640-87b4-c7954864ee6f","name":"Create Order","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"number\": 4467,\r\n    \"date\": \"2022-08-20T14:30:55.768-03:00\",\r\n    \"percentualDiscount\": 10\r\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:8080/api/orders"},"status":"Created","code":201,"_postman_previewlanguage":"json","header":[{"key":"Vary","value":"Origin"},{"key":"Vary","value":"Access-Control-Request-Method"},{"key":"Vary","value":"Access-Control-Request-Headers"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Date","value":"Mon, 22 Aug 2022 12:11:08 GMT"},{"key":"Keep-Alive","value":"timeout=60"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"{\n    \"id\": \"0dd4f414-6d64-4b7c-ad21-8a03637b27c4\",\n    \"number\": 4467,\n    \"date\": \"2022-08-20T17:30:55.768+00:00\",\n    \"percentualDiscount\": 10,\n    \"totalValue\": null,\n    \"Items\": null\n}"},{"id":"2fc83748-52b2-483c-aaed-885f5e5faac3","name":"Error date","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"number\": 4467,\r\n    \"date\": \"2022-08-22T14:30:55.768-03:00\",\r\n    \"percentualDiscount\": 10\r\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:8080/api/orders"},"status":"Bad Request","code":400,"_postman_previewlanguage":"plain","header":[{"key":"Vary","value":"Origin"},{"key":"Vary","value":"Access-Control-Request-Method"},{"key":"Vary","value":"Access-Control-Request-Headers"},{"key":"Content-Type","value":"text/plain;charset=UTF-8"},{"key":"Content-Length","value":"47"},{"key":"Date","value":"Mon, 22 Aug 2022 12:12:08 GMT"},{"key":"Connection","value":"close"}],"cookie":[],"responseTime":null,"body":"Error: date must be less than the current date."}],"_postman_id":"be309639-b59b-4c57-be2e-6e5a893fa99f"},{"name":"Get Order","id":"d2fe4698-d45a-4e83-9886-762e1a29b871","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"http://localhost:8080/api/orders/0dd4f414-6d64-4b7c-ad21-8a03637b27c4","description":"<ul>\n<li>Listar um pedido</li>\n</ul>\n<p><code>[url base]/api/orders/[id do pedido]</code></p>\n","urlObject":{"protocol":"http","port":"8080","path":["api","orders","0dd4f414-6d64-4b7c-ad21-8a03637b27c4"],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"bd5426e9-69ec-43d7-9bdc-2a0f0a12468d","name":"Get Order","originalRequest":{"method":"GET","header":[],"url":"http://localhost:8080/api/orders/0dd4f414-6d64-4b7c-ad21-8a03637b27c4"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Vary","value":"Origin"},{"key":"Vary","value":"Access-Control-Request-Method"},{"key":"Vary","value":"Access-Control-Request-Headers"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Date","value":"Mon, 22 Aug 2022 12:13:34 GMT"},{"key":"Keep-Alive","value":"timeout=60"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"{\n    \"id\": \"0dd4f414-6d64-4b7c-ad21-8a03637b27c4\",\n    \"number\": 4467,\n    \"date\": \"2022-08-20T17:30:55.768+00:00\",\n    \"percentualDiscount\": 10,\n    \"totalValue\": null,\n    \"Items\": []\n}"},{"id":"40b3c124-ed4e-4f4f-b9d5-780e70ae4aaf","name":"Order not found","originalRequest":{"method":"GET","header":[],"url":"http://localhost:8080/api/orders/0dd4f414-6d64-4b7c-ad21-8a03637b27c5"},"status":"Not Found","code":404,"_postman_previewlanguage":"plain","header":[{"key":"Vary","value":"Origin"},{"key":"Vary","value":"Access-Control-Request-Method"},{"key":"Vary","value":"Access-Control-Request-Headers"},{"key":"Content-Type","value":"text/plain;charset=UTF-8"},{"key":"Content-Length","value":"16"},{"key":"Date","value":"Mon, 22 Aug 2022 12:13:52 GMT"},{"key":"Keep-Alive","value":"timeout=60"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"Order not found."}],"_postman_id":"d2fe4698-d45a-4e83-9886-762e1a29b871"},{"name":"Update Order","id":"16232e10-b4e6-4d57-8759-abaadbd220de","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[],"body":{"mode":"raw","raw":"{\r\n    \"number\": 4467,\r\n    \"date\": \"2022-08-20T14:40:55.768-03:00\",\r\n    \"percentualDiscount\": 10,\r\n    \"totalValue\": 20000\r\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:8080/api/orders/1def2dbc-6f37-487f-9a31-e3cb452c1f29","description":"<ul>\n<li>Editar um pedido</li>\n</ul>\n<p><code>[url base]/api/orders/[id do pedido]</code></p>\n","urlObject":{"protocol":"http","port":"8080","path":["api","orders","1def2dbc-6f37-487f-9a31-e3cb452c1f29"],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"13120869-ee80-48a6-aa08-b66813489379","name":"Update Order","originalRequest":{"method":"PUT","header":[],"body":{"mode":"raw","raw":"{\r\n    \"number\": 4467,\r\n    \"date\": \"2022-08-20T14:40:55.768-03:00\",\r\n    \"percentualDiscount\": 10,\r\n    \"totalValue\": 20000\r\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:8080/api/orders/0dd4f414-6d64-4b7c-ad21-8a03637b27c4"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Vary","value":"Origin"},{"key":"Vary","value":"Access-Control-Request-Method"},{"key":"Vary","value":"Access-Control-Request-Headers"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Date","value":"Mon, 22 Aug 2022 12:14:43 GMT"},{"key":"Keep-Alive","value":"timeout=60"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"{\n    \"id\": \"0dd4f414-6d64-4b7c-ad21-8a03637b27c4\",\n    \"number\": 4467,\n    \"date\": \"2022-08-20T17:40:55.768+00:00\",\n    \"percentualDiscount\": 10,\n    \"totalValue\": 20000,\n    \"Items\": null\n}"},{"id":"9b95370d-00f8-4fc2-8e2f-a269107a2a12","name":"Order not found","originalRequest":{"method":"PUT","header":[],"body":{"mode":"raw","raw":"{\r\n    \"number\": 4467,\r\n    \"date\": \"2022-08-20T14:40:55.768-03:00\",\r\n    \"percentualDiscount\": 10,\r\n    \"totalValue\": 20000\r\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:8080/api/orders/0dd4f414-6d64-4b7c-ad21-8a03637b27c5"},"status":"Not Found","code":404,"_postman_previewlanguage":"plain","header":[{"key":"Vary","value":"Origin"},{"key":"Vary","value":"Access-Control-Request-Method"},{"key":"Vary","value":"Access-Control-Request-Headers"},{"key":"Content-Type","value":"text/plain;charset=UTF-8"},{"key":"Content-Length","value":"16"},{"key":"Date","value":"Mon, 22 Aug 2022 12:15:18 GMT"},{"key":"Keep-Alive","value":"timeout=60"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"Order not found."}],"_postman_id":"16232e10-b4e6-4d57-8759-abaadbd220de"},{"name":"Delete Order","id":"ffde1c8b-a913-43fc-aa07-78aa62344df3","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[],"url":"http://localhost:8080/api/orders/0dd4f414-6d64-4b7c-ad21-8a03637b27c4","description":"<ul>\n<li>Excluir um pedido</li>\n</ul>\n<p><code>[url base]/api/orders/[id do pedido]</code></p>\n","urlObject":{"protocol":"http","port":"8080","path":["api","orders","0dd4f414-6d64-4b7c-ad21-8a03637b27c4"],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"66c25da9-fa7f-4ce3-a976-969492bfb18d","name":"Delete Order","originalRequest":{"method":"DELETE","header":[],"url":"http://localhost:8080/api/orders/0dd4f414-6d64-4b7c-ad21-8a03637b27c4"},"status":"OK","code":200,"_postman_previewlanguage":"plain","header":[{"key":"Vary","value":"Origin"},{"key":"Vary","value":"Access-Control-Request-Method"},{"key":"Vary","value":"Access-Control-Request-Headers"},{"key":"Content-Type","value":"text/plain;charset=UTF-8"},{"key":"Content-Length","value":"27"},{"key":"Date","value":"Mon, 22 Aug 2022 12:53:13 GMT"},{"key":"Keep-Alive","value":"timeout=60"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"Order successfully deleted."},{"id":"0225def9-544b-42e2-a3df-e6599f26547c","name":"Order not found","originalRequest":{"method":"DELETE","header":[],"url":"http://localhost:8080/api/orders/0dd4f414-6d64-4b7c-ad21-8a03637b27c4"},"status":"Not Found","code":404,"_postman_previewlanguage":"plain","header":[{"key":"Vary","value":"Origin"},{"key":"Vary","value":"Access-Control-Request-Method"},{"key":"Vary","value":"Access-Control-Request-Headers"},{"key":"Content-Type","value":"text/plain;charset=UTF-8"},{"key":"Content-Length","value":"16"},{"key":"Date","value":"Mon, 22 Aug 2022 12:53:26 GMT"},{"key":"Keep-Alive","value":"timeout=60"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"Order not found."}],"_postman_id":"ffde1c8b-a913-43fc-aa07-78aa62344df3"},{"name":"List Order","id":"24db4471-8431-4a1f-9f1f-f2fd16043018","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"http://localhost:8080/api/orders/","description":"<ul>\n<li>Listar todos os pedidos</li>\n</ul>\n<p><code>[url base]/api/orders/</code></p>\n","urlObject":{"protocol":"http","port":"8080","path":["api","orders",""],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"8071ae3c-d276-4a17-b178-5730556ed3b7","name":"List Order","originalRequest":{"method":"GET","header":[],"url":"http://localhost:8080/api/orders/"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Vary","value":"Origin"},{"key":"Vary","value":"Access-Control-Request-Method"},{"key":"Vary","value":"Access-Control-Request-Headers"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Date","value":"Mon, 22 Aug 2022 12:25:19 GMT"},{"key":"Keep-Alive","value":"timeout=60"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"[\n    {\n        \"id\": \"0dd4f414-6d64-4b7c-ad21-8a03637b27c4\",\n        \"number\": 4467,\n        \"date\": \"2022-08-20T17:40:55.768+00:00\",\n        \"percentualDiscount\": 10,\n        \"totalValue\": 20000,\n        \"Items\": [\n            {\n                \"id\": \"5b985789-5592-44af-be89-178f72c2ffe4\",\n                \"itemId\": \"b465503a-5be2-41e4-a04a-d5146c2a9c06\",\n                \"quantity\": 2,\n                \"totalValue\": 80000\n            },\n            {\n                \"id\": \"77281d8b-c22c-4f5a-a0a2-7dd29d19f13f\",\n                \"itemId\": \"3747a102-6c7c-46fa-933c-27e2bb35a736\",\n                \"quantity\": 1,\n                \"totalValue\": 8000\n            }\n        ]\n    }\n]"}],"_postman_id":"24db4471-8431-4a1f-9f1f-f2fd16043018"},{"name":"Close Order","id":"60bccaf7-2d61-4153-bd2c-4e308ea4fce2","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[],"body":{"mode":"raw","raw":"{\r\n    \"order\": \"1def2dbc-6f37-487f-9a31-e3cb452c1f29\",\r\n    \"percentualDiscount\": 5\r\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:8080/api/orders/1def2dbc-6f37-487f-9a31-e3cb452c1f29/close","description":"<ul>\n<li>Fechar um pedido</li>\n</ul>\n<p><code>[url base]/api/orders/[id do pedido]/close</code></p>\n<p><em>O desconto do pedido só é aplicado a itens do tipo produto, os itens do tipo serviço não recebem desconto.</em></p>\n","urlObject":{"protocol":"http","port":"8080","path":["api","orders","1def2dbc-6f37-487f-9a31-e3cb452c1f29","close"],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"026a5e7a-054f-49aa-8bac-3699d10fee5b","name":"Close Order","originalRequest":{"method":"PUT","header":[],"body":{"mode":"raw","raw":"{\r\n    \"order\": \"0dd4f414-6d64-4b7c-ad21-8a03637b27c4\",\r\n    \"percentualDiscount\": 10\r\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:8080/api/orders/0dd4f414-6d64-4b7c-ad21-8a03637b27c4/close"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Vary","value":"Origin"},{"key":"Vary","value":"Access-Control-Request-Method"},{"key":"Vary","value":"Access-Control-Request-Headers"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Date","value":"Mon, 22 Aug 2022 12:48:21 GMT"},{"key":"Keep-Alive","value":"timeout=60"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"{\n    \"id\": \"0dd4f414-6d64-4b7c-ad21-8a03637b27c4\",\n    \"number\": 4467,\n    \"date\": \"2022-08-20T17:40:55.768+00:00\",\n    \"percentualDiscount\": 10,\n    \"totalValue\": 98000,\n    \"Items\": [\n        {\n            \"id\": \"77281d8b-c22c-4f5a-a0a2-7dd29d19f13f\",\n            \"itemId\": \"3747a102-6c7c-46fa-933c-27e2bb35a736\",\n            \"quantity\": 1,\n            \"totalValue\": 8000\n        },\n        {\n            \"id\": \"94c47c3b-c5fe-467a-8ac1-8500f10ffeb5\",\n            \"itemId\": \"b465503a-5be2-41e4-a04a-d5146c2a9c06\",\n            \"quantity\": 2,\n            \"totalValue\": 100000\n        }\n    ]\n}"},{"id":"3612f26d-8281-47c5-b611-15c37013573a","name":"Order not found","originalRequest":{"method":"PUT","header":[],"body":{"mode":"raw","raw":"{\r\n    \"order\": \"0dd4f414-6d64-4b7c-ad21-8a03637b27c5\",\r\n    \"percentualDiscount\": 10\r\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:8080/api/orders/0dd4f414-6d64-4b7c-ad21-8a03637b27c4/close"},"status":"Bad Request","code":400,"_postman_previewlanguage":"plain","header":[{"key":"Vary","value":"Origin"},{"key":"Vary","value":"Access-Control-Request-Method"},{"key":"Vary","value":"Access-Control-Request-Headers"},{"key":"Content-Type","value":"text/plain;charset=UTF-8"},{"key":"Content-Length","value":"23"},{"key":"Date","value":"Mon, 22 Aug 2022 12:49:43 GMT"},{"key":"Connection","value":"close"}],"cookie":[],"responseTime":null,"body":"Error: order not found."}],"_postman_id":"60bccaf7-2d61-4153-bd2c-4e308ea4fce2"}],"id":"a3d7a871-bc30-4c5c-b19a-0236588cc866","description":"<p><strong>Sessão de pedidos</strong></p>\n","_postman_id":"a3d7a871-bc30-4c5c-b19a-0236588cc866"},{"name":"Order Items","item":[{"name":"Create Order Items","id":"3755a873-0561-4fa1-8a8a-f52cf758cce7","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"itemId\": \"b465503a-5be2-41e4-a04a-d5146c2a9c06\",\r\n    \"quantity\": 2\r\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:8080/api/orders/1def2dbc-6f37-487f-9a31-e3cb452c1f29/items/","description":"<ul>\n<li>Criar um item</li>\n</ul>\n<p><code>[url base]/api/orders/[id do pedido]/items</code></p>\n","urlObject":{"protocol":"http","port":"8080","path":["api","orders","1def2dbc-6f37-487f-9a31-e3cb452c1f29","items",""],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"3755a873-0561-4fa1-8a8a-f52cf758cce7"},{"name":"Get Order Items","id":"5ca4e244-59ee-44c7-9846-34b1666f3c07","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"http://localhost:8080/api/orders/0dd4f414-6d64-4b7c-ad21-8a03637b27c4/items/94c47c3b-c5fe-467a-8ac1-8500f10ffeb5","description":"<ul>\n<li>Listar item/pedido</li>\n</ul>\n<p><code>[url base]/api/orders/[id do pedido]/items/[id do item do pedido]</code></p>\n","urlObject":{"protocol":"http","port":"8080","path":["api","orders","0dd4f414-6d64-4b7c-ad21-8a03637b27c4","items","94c47c3b-c5fe-467a-8ac1-8500f10ffeb5"],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"25b8e6b0-1880-450f-a545-5e0165d4f1a2","name":"Get Order Items","originalRequest":{"method":"GET","header":[],"url":"http://localhost:8080/api/orders/0dd4f414-6d64-4b7c-ad21-8a03637b27c4/items/94c47c3b-c5fe-467a-8ac1-8500f10ffeb5"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Vary","value":"Origin"},{"key":"Vary","value":"Access-Control-Request-Method"},{"key":"Vary","value":"Access-Control-Request-Headers"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Date","value":"Mon, 22 Aug 2022 12:43:06 GMT"},{"key":"Keep-Alive","value":"timeout=60"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"{\n    \"id\": \"94c47c3b-c5fe-467a-8ac1-8500f10ffeb5\",\n    \"itemId\": \"b465503a-5be2-41e4-a04a-d5146c2a9c06\",\n    \"quantity\": 1,\n    \"totalValue\": 50000\n}"},{"id":"bc1803ae-8092-4134-9ec2-21123277a911","name":"Order Items no found","originalRequest":{"method":"GET","header":[],"url":"http://localhost:8080/api/orders/0dd4f414-6d64-4b7c-ad21-8a03637b27c4/items/94c47c3b-c5fe-467a-8ac1-8500f10ffeb4"},"status":"Not Found","code":404,"_postman_previewlanguage":"plain","header":[{"key":"Vary","value":"Origin"},{"key":"Vary","value":"Access-Control-Request-Method"},{"key":"Vary","value":"Access-Control-Request-Headers"},{"key":"Content-Type","value":"text/plain;charset=UTF-8"},{"key":"Content-Length","value":"21"},{"key":"Date","value":"Mon, 22 Aug 2022 12:43:36 GMT"},{"key":"Keep-Alive","value":"timeout=60"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"Oder Items not found."}],"_postman_id":"5ca4e244-59ee-44c7-9846-34b1666f3c07"},{"name":"Update Order Items","id":"39a48df0-1beb-4a04-8be2-591b0da9ca48","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[],"body":{"mode":"raw","raw":"{\r\n    \"itemId\": \"b465503a-5be2-41e4-a04a-d5146c2a9c06\",\r\n    \"quantity\": 2\r\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:8080/api/orders/0dd4f414-6d64-4b7c-ad21-8a03637b27c4/items/94c47c3b-c5fe-467a-8ac1-8500f10ffeb5","description":"<ul>\n<li>Editar item/pedido</li>\n</ul>\n<p><code>[url base]/api/orders/[id do pedido]/items/[id do item do pedido]</code></p>\n","urlObject":{"protocol":"http","port":"8080","path":["api","orders","0dd4f414-6d64-4b7c-ad21-8a03637b27c4","items","94c47c3b-c5fe-467a-8ac1-8500f10ffeb5"],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"b917c583-c7d3-42c9-ada2-64def29c8665","name":"Update Order Items","originalRequest":{"method":"PUT","header":[],"body":{"mode":"raw","raw":"{\r\n    \"itemId\": \"b465503a-5be2-41e4-a04a-d5146c2a9c06\",\r\n    \"quantity\": 2\r\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:8080/api/orders/0dd4f414-6d64-4b7c-ad21-8a03637b27c4/items/94c47c3b-c5fe-467a-8ac1-8500f10ffeb5"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Vary","value":"Origin"},{"key":"Vary","value":"Access-Control-Request-Method"},{"key":"Vary","value":"Access-Control-Request-Headers"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Date","value":"Mon, 22 Aug 2022 12:45:22 GMT"},{"key":"Keep-Alive","value":"timeout=60"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"{\n    \"id\": \"94c47c3b-c5fe-467a-8ac1-8500f10ffeb5\",\n    \"itemId\": \"b465503a-5be2-41e4-a04a-d5146c2a9c06\",\n    \"quantity\": 2,\n    \"totalValue\": 100000\n}"},{"id":"100056f3-9908-4a53-8125-59e112f43b5e","name":"Item not found","originalRequest":{"method":"PUT","header":[],"body":{"mode":"raw","raw":"{\r\n    \"itemId\": \"b465503a-5be2-41e4-a04a-d5146c2a9c07\",\r\n    \"quantity\": 2\r\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:8080/api/orders/0dd4f414-6d64-4b7c-ad21-8a03637b27c4/items/94c47c3b-c5fe-467a-8ac1-8500f10ffeb5"},"status":"Not Found","code":404,"_postman_previewlanguage":"plain","header":[{"key":"Vary","value":"Origin"},{"key":"Vary","value":"Access-Control-Request-Method"},{"key":"Vary","value":"Access-Control-Request-Headers"},{"key":"Content-Type","value":"text/plain;charset=UTF-8"},{"key":"Content-Length","value":"15"},{"key":"Date","value":"Mon, 22 Aug 2022 12:45:39 GMT"},{"key":"Keep-Alive","value":"timeout=60"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"Item not found."}],"_postman_id":"39a48df0-1beb-4a04-8be2-591b0da9ca48"},{"name":"Delete Order Items","id":"f1e105f4-f9dd-4534-b383-eb9483027ef4","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[],"url":"http://localhost:8080/api/orders/0dd4f414-6d64-4b7c-ad21-8a03637b27c4/items/77281d8b-c22c-4f5a-a0a2-7dd29d19f13f","description":"<ul>\n<li>Excluir item/pedido</li>\n</ul>\n<p><code>[url base]/api/orders/[id do pedido]/items/[id do item do pedido]</code></p>\n","urlObject":{"protocol":"http","port":"8080","path":["api","orders","0dd4f414-6d64-4b7c-ad21-8a03637b27c4","items","77281d8b-c22c-4f5a-a0a2-7dd29d19f13f"],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"514d80bf-f5c3-47b2-9f0a-4a942c31377d","name":"Delete Order Items","originalRequest":{"method":"DELETE","header":[],"url":"http://localhost:8080/api/orders/0dd4f414-6d64-4b7c-ad21-8a03637b27c4/items/94c47c3b-c5fe-467a-8ac1-8500f10ffeb5"},"status":"OK","code":200,"_postman_previewlanguage":"plain","header":[{"key":"Vary","value":"Origin"},{"key":"Vary","value":"Access-Control-Request-Method"},{"key":"Vary","value":"Access-Control-Request-Headers"},{"key":"Content-Type","value":"text/plain;charset=UTF-8"},{"key":"Content-Length","value":"33"},{"key":"Date","value":"Mon, 22 Aug 2022 12:51:24 GMT"},{"key":"Keep-Alive","value":"timeout=60"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"Order Items successfully deleted."},{"id":"7dc0d32e-212d-4d74-a5f8-589c0d2c2cd2","name":"Order Items not found","originalRequest":{"method":"DELETE","header":[],"url":"http://localhost:8080/api/orders/0dd4f414-6d64-4b7c-ad21-8a03637b27c4/items/94c47c3b-c5fe-467a-8ac1-8500f10ffeb5"},"status":"Not Found","code":404,"_postman_previewlanguage":"plain","header":[{"key":"Vary","value":"Origin"},{"key":"Vary","value":"Access-Control-Request-Method"},{"key":"Vary","value":"Access-Control-Request-Headers"},{"key":"Content-Type","value":"text/plain;charset=UTF-8"},{"key":"Content-Length","value":"22"},{"key":"Date","value":"Mon, 22 Aug 2022 12:51:40 GMT"},{"key":"Keep-Alive","value":"timeout=60"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"Order Items not found."}],"_postman_id":"f1e105f4-f9dd-4534-b383-eb9483027ef4"},{"name":"List Order Items","id":"95b41db6-e561-46c2-bce7-8b396871348e","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"http://localhost:8080/api/orders/1def2dbc-6f37-487f-9a31-e3cb452c1f29/items","description":"<ul>\n<li>Listar todos os item/pedidos</li>\n</ul>\n<p><code>[url base]/api/orders/[id do pedido]/items</code></p>\n","urlObject":{"protocol":"http","port":"8080","path":["api","orders","1def2dbc-6f37-487f-9a31-e3cb452c1f29","items"],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"4cf1109e-9adf-4e16-bfda-86d13113e342","name":"List Order Items","originalRequest":{"method":"GET","header":[],"url":"http://localhost:8080/api/orders/0dd4f414-6d64-4b7c-ad21-8a03637b27c4/items"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Vary","value":"Origin"},{"key":"Vary","value":"Access-Control-Request-Method"},{"key":"Vary","value":"Access-Control-Request-Headers"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Date","value":"Mon, 22 Aug 2022 12:46:47 GMT"},{"key":"Keep-Alive","value":"timeout=60"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"[\n    {\n        \"id\": \"77281d8b-c22c-4f5a-a0a2-7dd29d19f13f\",\n        \"itemId\": \"3747a102-6c7c-46fa-933c-27e2bb35a736\",\n        \"quantity\": 1,\n        \"totalValue\": 8000\n    },\n    {\n        \"id\": \"94c47c3b-c5fe-467a-8ac1-8500f10ffeb5\",\n        \"itemId\": \"b465503a-5be2-41e4-a04a-d5146c2a9c06\",\n        \"quantity\": 2,\n        \"totalValue\": 100000\n    }\n]"},{"id":"5e6710ac-77d4-4598-acb1-04fc6079e915","name":"Order not found","originalRequest":{"method":"GET","header":[],"url":"http://localhost:8080/api/orders/0dd4f414-6d64-4b7c-ad21-8a03637b27c5/items"},"status":"Not Found","code":404,"_postman_previewlanguage":"plain","header":[{"key":"Vary","value":"Origin"},{"key":"Vary","value":"Access-Control-Request-Method"},{"key":"Vary","value":"Access-Control-Request-Headers"},{"key":"Content-Type","value":"text/plain;charset=UTF-8"},{"key":"Content-Length","value":"15"},{"key":"Date","value":"Mon, 22 Aug 2022 12:47:02 GMT"},{"key":"Keep-Alive","value":"timeout=60"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"Order not found"}],"_postman_id":"95b41db6-e561-46c2-bce7-8b396871348e"}],"id":"369c6511-f0fb-412a-a9ab-5034cf60bd7c","description":"<p><strong>Sessão de itens de pedido</strong></p>\n","_postman_id":"369c6511-f0fb-412a-a9ab-5034cf60bd7c"}]}