Added postman collection

This commit is contained in:
Administrator 2022-03-14 08:06:23 +01:00
parent 76e9f9fee6
commit e785d9abee

150
docs/postman.json Normal file
View File

@ -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"
}
]
}