Created
March 6, 2025 08:52
-
-
Save OlivierJM/60eabaa5f5557bbb52f82599782e6d6e to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"info": { | |
"name": "Flask Bank API", | |
"schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json" | |
}, | |
"item": [ | |
{ | |
"name": "Register", | |
"request": { | |
"method": "POST", | |
"header": [ | |
{ "key": "Content-Type", "value": "application/json" } | |
], | |
"url": { "raw": "{{base_url}}/register", "host": ["{{base_url}}"], "path": ["register"] }, | |
"body": { | |
"mode": "raw", | |
"raw": "{\"username\": \"testuser\", \"password\": \"testpass\"}" | |
} | |
} | |
}, | |
{ | |
"name": "Add Money", | |
"request": { | |
"method": "POST", | |
"header": [ | |
{ "key": "Content-Type", "value": "application/json" } | |
], | |
"url": { "raw": "{{base_url}}/add", "host": ["{{base_url}}"], "path": ["add"] }, | |
"body": { | |
"mode": "raw", | |
"raw": "{\"username\": \"testuser\", \"password\": \"testpass\", \"amount\": 100}" | |
} | |
} | |
}, | |
{ | |
"name": "Transfer Money", | |
"request": { | |
"method": "POST", | |
"header": [ | |
{ "key": "Content-Type", "value": "application/json" } | |
], | |
"url": { "raw": "{{base_url}}/transfer", "host": ["{{base_url}}"], "path": ["transfer"] }, | |
"body": { | |
"mode": "raw", | |
"raw": "{\"username\": \"testuser\", \"password\": \"testpass\", \"amount\": 50, \"to\": \"user2\"}" | |
} | |
} | |
}, | |
{ | |
"name": "Check Balance", | |
"request": { | |
"method": "POST", | |
"header": [ | |
{ "key": "Content-Type", "value": "application/json" } | |
], | |
"url": { "raw": "{{base_url}}/balance", "host": ["{{base_url}}"], "path": ["balance"] }, | |
"body": { | |
"mode": "raw", | |
"raw": "{\"username\": \"testuser\", \"password\": \"testpass\"}" | |
} | |
} | |
}, | |
{ | |
"name": "Take Loan", | |
"request": { | |
"method": "POST", | |
"header": [ | |
{ "key": "Content-Type", "value": "application/json" } | |
], | |
"url": { "raw": "{{base_url}}/takeloan", "host": ["{{base_url}}"], "path": ["takeloan"] }, | |
"body": { | |
"mode": "raw", | |
"raw": "{\"username\": \"testuser\", \"password\": \"testpass\", \"amount\": 200}" | |
} | |
} | |
}, | |
{ | |
"name": "Pay Loan", | |
"request": { | |
"method": "POST", | |
"header": [ | |
{ "key": "Content-Type", "value": "application/json" } | |
], | |
"url": { "raw": "{{base_url}}/payloan", "host": ["{{base_url}}"], "path": ["payloan"] }, | |
"body": { | |
"mode": "raw", | |
"raw": "{\"username\": \"testuser\", \"password\": \"testpass\", \"amount\": 50}" | |
} | |
} | |
}, | |
{ | |
"name": "Get Users", | |
"request": { | |
"method": "GET", | |
"header": [], | |
"url": { "raw": "{{base_url}}/users", "host": ["{{base_url}}"], "path": ["users"] } | |
} | |
} | |
], | |
"variable": [ | |
{ "key": "base_url", "value": "https://flask-app-wh6b.onrender.com" } | |
] | |
} |
Comments are disabled for this gist.