{ "info": { "name": "FeedSystem Account API", "_postman_id": "e5572218-8268-4a26-9ad8-77c13c908908", "description": "Account endpoints without automated scripts. Fill jwt_token manually after calling Login.", "schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json" }, "item": [ { "name": "Register Account", "request": { "method": "POST", "header": [ { "key": "Content-Type", "value": "application/json" } ], "body": { "mode": "raw", "raw": "{\n \"username\": \"{{username}}\",\n \"password\": \"{{password}}\"\n}" }, "url": { "raw": "{{host}}/account/register", "host": [ "{{host}}" ], "path": [ "account", "register" ] } } }, { "name": "Login", "request": { "method": "POST", "header": [ { "key": "Content-Type", "value": "application/json" } ], "body": { "mode": "raw", "raw": "{\n \"username\": \"{{username}}\",\n \"password\": \"{{password}}\"\n}" }, "url": { "raw": "{{host}}/account/login", "host": [ "{{host}}" ], "path": [ "account", "login" ] } } }, { "name": "Change Password", "request": { "method": "POST", "header": [ { "key": "Content-Type", "value": "application/json" }, { "key": "Authorization", "value": "Bearer {{jwt_token}}" } ], "body": { "mode": "raw", "raw": "{\n \"old_password\": \"{{password}}\",\n \"new_password\": \"{{newPassword}}\"\n}" }, "url": { "raw": "{{host}}/account/changePassword", "host": [ "{{host}}" ], "path": [ "account", "changePassword" ] } } }, { "name": "Find Account By ID", "request": { "method": "POST", "header": [ { "key": "Content-Type", "value": "application/json" }, { "key": "Authorization", "value": "Bearer {{jwt_token}}" } ], "body": { "mode": "raw", "raw": "{\n \"id\": {{accountId}}\n}" }, "url": { "raw": "{{host}}/account/findByID", "host": [ "{{host}}" ], "path": [ "account", "findByID" ] } } }, { "name": "Find Account By Username", "request": { "method": "POST", "header": [ { "key": "Content-Type", "value": "application/json" }, { "key": "Authorization", "value": "Bearer {{jwt_token}}" } ], "body": { "mode": "raw", "raw": "{\n \"username\": \"{{username}}\"\n}" }, "url": { "raw": "{{host}}/account/findByUsername", "host": [ "{{host}}" ], "path": [ "account", "findByUsername" ] } } }, { "name": "Rename Account (JWT protected)", "request": { "method": "POST", "header": [ { "key": "Content-Type", "value": "application/json" }, { "key": "Authorization", "value": "Bearer {{jwt_token}}" } ], "body": { "mode": "raw", "raw": "{\n \"new_username\": \"{{newUsername}}\"\n}" }, "url": { "raw": "{{host}}/account/rename", "host": [ "{{host}}" ], "path": [ "account", "rename" ] } } }, { "name": "Logout (JWT protected)", "request": { "method": "POST", "header": [ { "key": "Content-Type", "value": "application/json" }, { "key": "Authorization", "value": "Bearer {{jwt_token}}" } ], "body": { "mode": "raw", "raw": "{}" }, "url": { "raw": "{{host}}/account/logout", "host": [ "{{host}}" ], "path": [ "account", "logout" ] } } } ], "variable": [ { "key": "host", "value": "http://localhost:8080" }, { "key": "username", "value": "alice" }, { "key": "password", "value": "pass123" }, { "key": "newPassword", "value": "newpass456" }, { "key": "newUsername", "value": "alice_new" }, { "key": "accountId", "value": "1" }, { "key": "jwt_token", "value": "" } ] }