{"info":{"_postman_id":"b038f201-152a-4261-abc3-58cdd7f92c9c","name":"Investment Aplication","description":"<html><head></head><body><p># Apresentação</p>\n<p>Documentação para utilização do desafio Coderockr/backend-test</p>\n<p># Autenticação</p>\n<p>Não é preciso utilizar autenticação para fazer requisições a esta API.</p>\n<p># Error Codes</p>\n<p><strong>404 – Not Found</strong></p>\n<p>Dados não encontrados!</p>\n<p><strong>403 – Forbidden</strong></p>\n<p>Sem autorização suficiente para acessar o recurso desejado</p>\n</body></html>","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[],"owner":"24612120","collectionId":"b038f201-152a-4261-abc3-58cdd7f92c9c","publishedId":"2s8YsqVaS6","public":true,"customColor":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"EF5B25"},"publishDate":"2022-11-25T03:17:01.000Z"},"item":[{"name":"Person","item":[{"name":"List Person","id":"8a2f781e-5455-43fa-9a46-8126900fa528","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"http://localhost:8000/api/v1/persons","description":"<p>List all the person</p>\n","urlObject":{"protocol":"http","port":"8000","path":["api","v1","persons"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"8a2f781e-5455-43fa-9a46-8126900fa528"},{"name":"Show Person Info","id":"e387f36c-a212-46da-b2ec-af2fc6597ad4","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"http://localhost:8000/api/v1/person/1","description":"<p>Show the info about person</p>\n","urlObject":{"protocol":"http","port":"8000","path":["api","v1","person","1"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"e387f36c-a212-46da-b2ec-af2fc6597ad4"},{"name":"List Investments","id":"487ea89c-6907-43e4-97ee-313e19917712","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"http://localhost:8000/api/v1/person/1/investments","description":"<p>Returns a list of investments by person</p>\n","urlObject":{"protocol":"http","port":"8000","path":["api","v1","person","1","investments"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"487ea89c-6907-43e4-97ee-313e19917712"},{"name":"New Person","id":"c4ae31b4-1ccf-41df-ba64-d0c539e30e5b","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"formdata","formdata":[{"key":"first_name","value":"","type":"text"},{"key":"last_name","value":"","type":"text"},{"key":"username","value":"","type":"text"},{"key":"email","value":"","type":"text"}]},"url":"http://localhost:8000/api/v1/person","description":"<p>Create a new person</p>\n","urlObject":{"protocol":"http","port":"8000","path":["api","v1","person"],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"a77fcc2d-8bf3-4e68-aee4-6afa332d963f","name":"Insert a new person","originalRequest":{"method":"POST","header":[],"body":{"mode":"formdata","formdata":[{"key":"first_name","value":"Joe","type":"text"},{"key":"last_name","value":"Biden","type":"text"},{"key":"username","value":"jbiden","type":"text"},{"key":"email","value":"j@usa.com","type":"text"}]},"url":"http://localhost:8000/api/v1/person"},"status":"Created","code":201,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","description":"","type":"text"}],"cookie":[],"responseTime":null,"body":"{\n    \"data\": {\n        \"first_name\": \"Joe\",\n        \"last_name\": \"Biden\",\n        \"username\": \"jbiden\",\n        \"email\": \"jbiden@usa.com\"\n    }\n}"}],"_postman_id":"c4ae31b4-1ccf-41df-ba64-d0c539e30e5b"}],"id":"ef892dce-4866-475c-b9ae-3accc2ecf3a2","_postman_id":"ef892dce-4866-475c-b9ae-3accc2ecf3a2","description":""},{"name":"Investment","item":[{"name":"List Investments","id":"386c7259-cc32-43d0-aadd-caf300610afc","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"http://localhost:8000/api/v1/investments","urlObject":{"protocol":"http","port":"8000","path":["api","v1","investments"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"386c7259-cc32-43d0-aadd-caf300610afc"},{"name":"Show Investment Info","id":"90ba3c3d-8129-468a-a37c-a510b45775a6","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"http://localhost:8000/api/v1/investment/1","urlObject":{"protocol":"http","port":"8000","path":["api","v1","investment","1"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"90ba3c3d-8129-468a-a37c-a510b45775a6"},{"name":"New Investment","id":"a980f6a3-b8b5-413c-b320-21b684999974","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"formdata","formdata":[{"key":"person_id","value":"1","type":"text"},{"key":"initial_value","value":"2000","type":"text"},{"key":"date","value":"2020-05-01","type":"text"}]},"url":"http://localhost:8000/api/v1/investment","urlObject":{"protocol":"http","port":"8000","path":["api","v1","investment"],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"854941df-3dbb-4f61-9c44-150ecb79a4ba","name":"New Investment","originalRequest":{"method":"POST","header":[],"body":{"mode":"formdata","formdata":[{"key":"person_id","value":"1","type":"text"},{"key":"initial_value","value":"2000","type":"text"},{"key":"date","value":"2020-05-01","type":"text"}]},"url":"http://localhost:8000/api/v1/investment"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Host","value":"localhost:8000"},{"key":"Date","value":"Fri, 25 Nov 2022 03:02:25 GMT"},{"key":"Date","value":"Fri, 25 Nov 2022 03:02:25 GMT"},{"key":"Connection","value":"close"},{"key":"X-Powered-By","value":"PHP/8.1.12"},{"key":"Cache-Control","value":"no-cache, private"},{"key":"Content-Type","value":"application/json"},{"key":"X-RateLimit-Limit","value":"60"},{"key":"X-RateLimit-Remaining","value":"59"},{"key":"Access-Control-Allow-Origin","value":"*"}],"cookie":[],"responseTime":null,"body":"{\n    \"data\": {\n        \"initial_value\": \"2000.00\",\n        \"expected_balance\": \"2336.71\",\n        \"date\": \"2020-05-01\",\n        \"withdraw\": 0,\n        \"final_value\": null\n    }\n}"}],"_postman_id":"a980f6a3-b8b5-413c-b320-21b684999974"},{"name":"Withdraw an investment","id":"c4badf94-8750-4a76-bf1d-d47f59d5b509","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"formdata","formdata":[{"key":"date","value":"","type":"text"},{"key":"investment_id","value":"","type":"text"}]},"url":"http://localhost:8000/api/v1/investment/1/withdraw","urlObject":{"protocol":"http","port":"8000","path":["api","v1","investment","1","withdraw"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"c4badf94-8750-4a76-bf1d-d47f59d5b509"}],"id":"55b7e936-0c48-44bf-8a5d-194c937106df","_postman_id":"55b7e936-0c48-44bf-8a5d-194c937106df","description":""}]}