TelegramAktienBot/docs/postman.json

376 lines
6.5 KiB
JSON

{
"info": {
"_postman_id": "67da7d20-d7df-4ad3-9289-a6e40b6cd2ec",
"name": "AktienBot",
"schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json"
},
"item": [
{
"name": "User",
"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": []
}
]
},
{
"name": "Share",
"item": [
{
"name": "/api/shares",
"protocolProfileBehavior": {
"disableBodyPruning": true
},
"request": {
"method": "GET",
"header": [],
"body": {
"mode": "raw",
"raw": ""
},
"url": {
"raw": "{{BASE_URL}}/api/shares",
"host": [
"{{BASE_URL}}"
],
"path": [
"api",
"shares"
]
}
},
"response": []
},
{
"name": "/api/share",
"request": {
"method": "POST",
"header": [],
"body": {
"mode": "raw",
"raw": "{\n \"symbol\": \"DTEGY\"\n}",
"options": {
"raw": {
"language": "json"
}
}
},
"url": {
"raw": "{{BASE_URL}}/api/share",
"host": [
"{{BASE_URL}}"
],
"path": [
"api",
"share"
]
}
},
"response": []
},
{
"name": "/api/share",
"request": {
"method": "DELETE",
"header": [],
"body": {
"mode": "raw",
"raw": "{\n \"symbol\": \"DTEGY\"\n}",
"options": {
"raw": {
"language": "json"
}
}
},
"url": {
"raw": "{{BASE_URL}}/api/share",
"host": [
"{{BASE_URL}}"
],
"path": [
"api",
"share"
]
}
},
"response": []
}
]
},
{
"name": "Keyword",
"item": [
{
"name": "/api/keywords",
"request": {
"method": "GET",
"header": [],
"url": {
"raw": "{{BASE_URL}}/api/keywords",
"host": [
"{{BASE_URL}}"
],
"path": [
"api",
"keywords"
]
}
},
"response": []
},
{
"name": "/api/keyword",
"request": {
"method": "POST",
"header": [],
"body": {
"mode": "raw",
"raw": "{\n \"keyword\": \"Elon\"\n}",
"options": {
"raw": {
"language": "json"
}
}
},
"url": {
"raw": "{{BASE_URL}}/api/keyword",
"host": [
"{{BASE_URL}}"
],
"path": [
"api",
"keyword"
]
}
},
"response": []
},
{
"name": "/api/keyword",
"request": {
"method": "DELETE",
"header": [],
"body": {
"mode": "raw",
"raw": "{\n \"keyword\": \"Elon\"\n}",
"options": {
"raw": {
"language": "json"
}
}
},
"url": {
"raw": "{{BASE_URL}}/api/keyword",
"host": [
"{{BASE_URL}}"
],
"path": [
"api",
"keyword"
]
}
},
"response": []
}
]
},
{
"name": "Transactions",
"item": [
{
"name": "/api/transactions",
"request": {
"method": "GET",
"header": [],
"url": {
"raw": "{{BASE_URL}}/api/transactions",
"host": [
"{{BASE_URL}}"
],
"path": [
"api",
"transactions"
]
}
},
"response": []
},
{
"name": "/api/transaction",
"request": {
"method": "POST",
"header": [],
"body": {
"mode": "raw",
"raw": "{\n \"symbol\": \"DTEGY\",\n \"time\": \"2021-03-14T18:08:44.625Z\",\n \"count\": 1,\n \"price\": 10.0\n}",
"options": {
"raw": {
"language": "json"
}
}
},
"url": {
"raw": "{{BASE_URL}}/api/transaction",
"host": [
"{{BASE_URL}}"
],
"path": [
"api",
"transaction"
]
}
},
"response": []
}
]
}
],
"auth": {
"type": "bearer",
"bearer": [
{
"key": "token",
"value": "access_token",
"type": "string"
}
]
},
"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"
}
]
}