{"info":{"_postman_id":"c253442c-ebac-468e-badf-52a1c4957462","name":"Goflux API REST","description":"<html><head></head><body><p>Em GoFlux API é possivel cadastrar e obter informações de Embarcadores, Transportadores, Ofertas e Lances.</p>\n<p>OBS: Dados fictícios.</p>\n</body></html>","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[],"owner":"17745625","collectionId":"c253442c-ebac-468e-badf-52a1c4957462","publishedId":"UyrGCZqG","public":true,"customColor":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"EA0029"},"publishDate":"2022-05-02T02:14:43.000Z"},"item":[{"name":"Embarcador","item":[{"name":"Criar embarcador","id":"9cdd172a-ecc0-438f-a1df-6b6bfc98abea","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n  \"name\": \"rei do milho\",\n  \"doc\": \"61.429.484/0101-10\",\n  \"about\": \"rei do milho, qualidade aprovada.\",\n  \"active\": true,\n  \"site\": \"https://goflux.com.br/\"\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:3001/embarcador","urlObject":{"protocol":"http","port":"3001","path":["embarcador"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"9cdd172a-ecc0-438f-a1df-6b6bfc98abea"},{"name":"Embarcadores","id":"66e0d6ce-9977-4898-a3ca-bd4ba03d0751","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"http://localhost:3001/Embarcador","description":"<p>Retorna todos os embarcadores.</p>\n","urlObject":{"protocol":"http","port":"3001","path":["Embarcador"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"66e0d6ce-9977-4898-a3ca-bd4ba03d0751"},{"name":"Consultar um embarcador","id":"57f5705d-5502-4dd4-a5f1-4f8100d8581f","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"http://localhost:3001/embarcador/:idOrCnpj","description":"<p>Retorna apenas um embarcador pelo ID ou CNPJ, e suas ofertas.</p>\n","urlObject":{"protocol":"http","port":"3001","path":["embarcador",":idOrCnpj"],"host":["localhost"],"query":[],"variable":[{"type":"any","value":null,"key":"idOrCnpj"}]}},"response":[],"_postman_id":"57f5705d-5502-4dd4-a5f1-4f8100d8581f"},{"name":"Editar Embarcador","id":"eab20a8f-1cc6-41fc-9f01-d85436ce3865","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[],"body":{"mode":"raw","raw":"{\n  \"name\": \"goFlux Brasil\",\n  \"doc\": \"61.429.484/0001-12\",\n  \"about\": \"goFlux, uma empresa especializada em inovar na contratação de fretes\",\n  \"active\": true,\n  \"site\": \"goflux.com.br\"\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:3001/embarcador/:id","urlObject":{"protocol":"http","port":"3001","path":["embarcador",":id"],"host":["localhost"],"query":[],"variable":[{"type":"any","value":null,"key":"id"}]}},"response":[],"_postman_id":"eab20a8f-1cc6-41fc-9f01-d85436ce3865"},{"name":"Deletar embarcador","id":"4caabad0-bdeb-4b1e-96b9-e8c897d31c89","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[],"url":"http://localhost:3001/embarcador/:id","urlObject":{"protocol":"http","port":"3001","path":["embarcador",":id"],"host":["localhost"],"query":[],"variable":[{"type":"any","value":null,"key":"id"}]}},"response":[],"_postman_id":"4caabad0-bdeb-4b1e-96b9-e8c897d31c89"}],"id":"458c0807-0a3c-4a71-bf17-05cca42ec9f8","_postman_id":"458c0807-0a3c-4a71-bf17-05cca42ec9f8","description":""},{"name":"Transportador.","item":[{"name":"Criar transportador","id":"bd511246-a420-422c-94eb-11478f1a808b","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n  \"doc\": \"99.944.145/0001-12\",\n  \"about\": \"Transportadora Rodoclub, transportando sonhos\",\n  \"active\": true,\n  \"site\": \"https://goflux.com.br/\",\n    \"name\": \"Transportadora Rodoclub\"\n}\n","options":{"raw":{"language":"json"}}},"url":"http://localhost:3001/transportador","urlObject":{"protocol":"http","port":"3001","path":["transportador"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"bd511246-a420-422c-94eb-11478f1a808b"},{"name":"Transportadores","id":"4961e7e4-ea2a-4832-8d05-57ea53b1e599","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"http://localhost:3001/transportador","description":"<p>Retorna todos os transportadores do sistema.</p>\n","urlObject":{"protocol":"http","port":"3001","path":["transportador"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"4961e7e4-ea2a-4832-8d05-57ea53b1e599"},{"name":"Consultar um Transportador","id":"3553aafa-5578-4306-a8fd-73f2d6905f6f","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"http://localhost:3001/transportador/idOrCnpj","description":"<p>Retorna apenas um Transportador pelo ID ou CNPJ, e seus lances.</p>\n","urlObject":{"protocol":"http","port":"3001","path":["transportador","idOrCnpj"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"3553aafa-5578-4306-a8fd-73f2d6905f6f"},{"name":"Editar um transportador","id":"7e3e5a46-def1-4dfc-9649-6d063078548f","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[],"body":{"mode":"raw","raw":"{\n  \"name\": \"Transportadora Rodoclub\",\n  \"doc\": \"99.974.145/0001-11\",\n  \"about\": \"Transportadora Rodoclub, transportando muitos sonhos\",\n  \"active\": true,\n  \"site\": \"rodobluc.com\"\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:3001/transportador/:id","urlObject":{"protocol":"http","port":"3001","path":["transportador",":id"],"host":["localhost"],"query":[],"variable":[{"type":"any","value":null,"key":"id"}]}},"response":[],"_postman_id":"7e3e5a46-def1-4dfc-9649-6d063078548f"},{"name":"Deletar um transportador","id":"312a0856-2c92-4556-8fb2-7bcc0372d1d2","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[],"url":"http://localhost:3001/transportador/:id","urlObject":{"protocol":"http","port":"3001","path":["transportador",":id"],"host":["localhost"],"query":[],"variable":[{"type":"any","value":null,"key":"id"}]}},"response":[],"_postman_id":"312a0856-2c92-4556-8fb2-7bcc0372d1d2"}],"id":"a4a16aa4-fb06-4d66-ab4c-61c277801de6","_postman_id":"a4a16aa4-fb06-4d66-ab4c-61c277801de6","description":""},{"name":"Lances.","item":[{"name":"Criar lance","id":"ba3fa47f-6921-40a8-b3ad-fbf15c16dd7a","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n  \"id_provider\": 1,\n  \"id_offer\": 2,\n  \"value\": 200.00,\n  \"amount\": 230.00\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:3001/lance","description":"<p>Registrar um lance para uma oferta, caso ja tenha um lance de um mesmo transportador para uma mesma oferta o lance sera editado em vez de criar um novo.</p>\n","urlObject":{"protocol":"http","port":"3001","path":["lance"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"ba3fa47f-6921-40a8-b3ad-fbf15c16dd7a"},{"name":"Lances","id":"bf098ac3-55d1-4f45-830c-32edddc34306","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"http://localhost:3001/lance","description":"<p>Retorna todos os lances apenas dos tranportadores que estão ativo.</p>\n","urlObject":{"protocol":"http","port":"3001","path":["lance"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"bf098ac3-55d1-4f45-830c-32edddc34306"},{"name":"Consultar lances pelo id do transportador","id":"2e4dd38c-77bb-4861-a165-2442a9a3ffd1","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"http://localhost:3001/lance/:id","urlObject":{"protocol":"http","port":"3001","path":["lance",":id"],"host":["localhost"],"query":[],"variable":[{"type":"any","value":null,"key":"id"}]}},"response":[],"_postman_id":"2e4dd38c-77bb-4861-a165-2442a9a3ffd1"},{"name":"Editar um lance.","id":"10dfe74b-32e1-4e29-b698-0ab6c391d453","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[],"body":{"mode":"raw","raw":"{\n  \"id_provider\": 2,\n  \"id_offer\": 1,\n  \"value\": 350.00,\n  \"amount\": 230.00\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:3001/lance/:id","urlObject":{"protocol":"http","port":"3001","path":["lance",":id"],"host":["localhost"],"query":[],"variable":[{"type":"any","value":null,"key":"id"}]}},"response":[],"_postman_id":"10dfe74b-32e1-4e29-b698-0ab6c391d453"},{"name":"Deletar um lance.","id":"cff00bdb-a1e5-4001-95c3-e9a3ee4cddc5","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[],"url":"http://localhost:3001/lance/:id","urlObject":{"protocol":"http","port":"3001","path":["lance",":id"],"host":["localhost"],"query":[],"variable":[{"type":"any","value":null,"key":"id"}]}},"response":[],"_postman_id":"cff00bdb-a1e5-4001-95c3-e9a3ee4cddc5"}],"id":"ae4b5168-2c8d-40bc-ae47-2f80f3073978","_postman_id":"ae4b5168-2c8d-40bc-ae47-2f80f3073978","description":""},{"name":"Ofertas","item":[{"name":"Criar oferta.","id":"0bdbf5bc-720c-434f-9fe1-47e66df85487","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n  \"id_customer\": 2,\n  \"from\": \"Santos - RS\",\n  \"to\": \"São Paulo - SP\",\n  \"initial_value\": 350.00,\n  \"amount\": 300.00,\n  \"amount_type\": \"TON\"\n}\n","options":{"raw":{"language":"json"}}},"url":"http://localhost:3001/oferta","urlObject":{"protocol":"http","port":"3001","path":["oferta"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"0bdbf5bc-720c-434f-9fe1-47e66df85487"},{"name":"Ofertas.","id":"04271348-ee49-44c0-84e7-9d8f4198b573","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"http://localhost:3001/oferta/?from=sp&to=sc","description":"<p>Retorna todas as ofertas apenas dos embarcadores que estão ativo.</p>\n","urlObject":{"protocol":"http","port":"3001","path":["oferta",""],"host":["localhost"],"query":[{"key":"from","value":"sp"},{"key":"to","value":"sc"}],"variable":[]}},"response":[],"_postman_id":"04271348-ee49-44c0-84e7-9d8f4198b573"},{"name":"Consultar oferta.","id":"2e3a92ea-9e42-4f2b-bad3-fab9fc84b45b","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"http://localhost:3001/oferta/:id","description":"<p>Retorna apenas uma oferta, e seus lances.</p>\n","urlObject":{"protocol":"http","port":"3001","path":["oferta",":id"],"host":["localhost"],"query":[],"variable":[{"type":"any","value":null,"key":"id"}]}},"response":[],"_postman_id":"2e3a92ea-9e42-4f2b-bad3-fab9fc84b45b"},{"name":"Editar oferta.","id":"55610c28-b4b4-4ced-a3ed-226dd0e564f6","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[],"body":{"mode":"raw","raw":"{\n  \"id_customer\": 1,\n  \"from\": \"Porto Alegre - RS\",\n  \"to\": \"São aaaa - SP\",\n  \"initial_value\": 130.00,\n  \"amount\": 300.00,\n  \"amount_type\": \"TON\"\n}\n","options":{"raw":{"language":"json"}}},"url":"http://localhost:3001/oferta/:id","urlObject":{"protocol":"http","port":"3001","path":["oferta",":id"],"host":["localhost"],"query":[],"variable":[{"type":"any","value":null,"key":"id"}]}},"response":[],"_postman_id":"55610c28-b4b4-4ced-a3ed-226dd0e564f6"},{"name":"Deletar uma oferta.","id":"671b3728-16db-41f0-85d6-4b01df3912d5","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[],"url":"http://localhost:3001/oferta/:id","urlObject":{"protocol":"http","port":"3001","path":["oferta",":id"],"host":["localhost"],"query":[],"variable":[{"type":"any","value":null,"key":"id"}]}},"response":[],"_postman_id":"671b3728-16db-41f0-85d6-4b01df3912d5"}],"id":"8578bfc4-d35f-401c-a352-faed4bbf0699","_postman_id":"8578bfc4-d35f-401c-a352-faed4bbf0699","description":""}]}