diff --git a/docs/postman.json b/docs/postman.json new file mode 100644 index 0000000..f74c7a2 --- /dev/null +++ b/docs/postman.json @@ -0,0 +1,150 @@ +{ + "info": { + "_postman_id": "67da7d20-d7df-4ad3-9289-a6e40b6cd2ec", + "name": "AktienBot", + "schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json" + }, + "item": [ + { + "name": "/api/register", + "request": { + "method": "POST", + "header": [], + "body": { + "mode": "raw", + "raw": "{\n \"username\": \"Username\",\n \"password\": \"Password\"\n}", + "options": { + "raw": { + "language": "json" + } + } + }, + "url": { + "raw": "{{BASE_URL}}/api/register", + "host": [ + "{{BASE_URL}}" + ], + "path": [ + "api", + "register" + ] + } + }, + "response": [] + }, + { + "name": "/api/login", + "request": { + "method": "POST", + "header": [], + "body": { + "mode": "raw", + "raw": "{\n \"username\": \"Username\",\n \"password\": \"Password\"\n}", + "options": { + "raw": { + "language": "json" + } + } + }, + "url": { + "raw": "{{BASE_URL}}/api/login", + "host": [ + "{{BASE_URL}}" + ], + "path": [ + "api", + "login" + ] + } + }, + "response": [] + }, + { + "name": "/api/logout", + "protocolProfileBehavior": { + "disableBodyPruning": true + }, + "request": { + "method": "GET", + "header": [], + "body": { + "mode": "raw", + "raw": "{\n \"username\": \"Username\",\n \"password\": \"Password\"\n}", + "options": { + "raw": { + "language": "json" + } + } + }, + "url": { + "raw": "{{BASE_URL}}/api/logout", + "host": [ + "{{BASE_URL}}" + ], + "path": [ + "api", + "logout" + ] + } + }, + "response": [] + }, + { + "name": "/api/users", + "protocolProfileBehavior": { + "disableBodyPruning": true + }, + "request": { + "method": "GET", + "header": [], + "body": { + "mode": "raw", + "raw": "{\n \"username\": \"Username\",\n \"password\": \"Password\"\n}", + "options": { + "raw": { + "language": "json" + } + } + }, + "url": { + "raw": "{{BASE_URL}}/api/users", + "host": [ + "{{BASE_URL}}" + ], + "path": [ + "api", + "users" + ] + } + }, + "response": [] + } + ], + "event": [ + { + "listen": "prerequest", + "script": { + "type": "text/javascript", + "exec": [ + "" + ] + } + }, + { + "listen": "test", + "script": { + "type": "text/javascript", + "exec": [ + "" + ] + } + } + ], + "variable": [ + { + "key": "BASE_URL", + "value": "https://aktienbot.flokaiser.com/", + "type": "default" + } + ] +} \ No newline at end of file