{"info":{"_postman_id":"f34377d8-6484-43c8-b2e9-895ead243a74","name":"bank","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[],"description":"<html><head></head><body></body></html>","owner":"359751","collectionId":"f34377d8-6484-43c8-b2e9-895ead243a74","publishedId":"TVRj793K","public":true,"customColor":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"EF5B25"},"publishDate":"2020-10-09T03:25:32.000Z"},"item":[{"name":"Creating an Account","id":"b7524462-3340-4932-89c1-ef9c4b6d486e","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","type":"text","value":"application/json"}],"body":{"mode":"raw","raw":"{\n    \"document_number\": \"08411504948\",\n    \"credit_limit\": 100.00\n}"},"url":"http://localhost:8080/accounts","description":"<p>This request creates an accounting for a user identified by its document</p>\n","urlObject":{"protocol":"http","port":"8080","path":["accounts"],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"bb6a0a7d-0cb8-4e38-8746-095f83f0af22","name":"create account","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"document_number\": \"24126141804\"\n}"},"url":"http://localhost:8080/accounts"},"_postman_previewlanguage":null,"header":null,"cookie":[],"responseTime":null,"body":null}],"_postman_id":"b7524462-3340-4932-89c1-ef9c4b6d486e"},{"name":"Creating a Transaction","id":"b52658a4-34e8-43a0-bbfb-34a4909eb929","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","type":"text","value":"application/json"}],"body":{"mode":"raw","raw":"{\n    \"account_id\": 3,\n    \"operation_type_id\": 1,\n    \"amount\": 123.45\n}"},"url":"http://localhost:8080/transactions","description":"<p>This request creates a transaction for a given account with an operation mode</p>\n<p>Operation mode can be:</p>\n<ul>\n<li>1 (Compra a vista)</li>\n<li>2 (Compra parcelada)</li>\n<li>3 (Saque)</li>\n<li>4 (Pagamento)</li>\n</ul>\n<p>All these operations should decrese the balance for the given account expcet for Operation 4 which increase its value to the current balance.</p>\n","urlObject":{"protocol":"http","port":"8080","path":["transactions"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"b52658a4-34e8-43a0-bbfb-34a4909eb929"},{"name":"Finding an Account","id":"eaef380d-65b3-4f62-ae72-01677a894ed4","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Content-Type","type":"text","value":"application/json"}],"body":{"mode":"raw","raw":""},"url":"http://localhost:8080/accounts/1","description":"<p>This request finds an account already registered</p>\n","urlObject":{"protocol":"http","port":"8080","path":["accounts","1"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"eaef380d-65b3-4f62-ae72-01677a894ed4"}]}