2310 lines
54 KiB
JSON
2310 lines
54 KiB
JSON
{
|
|
"info": {
|
|
"_postman_id": "b478b800-af91-45a7-8713-b199bcc41866",
|
|
"name": "APIFlask",
|
|
"description": "Webengineering 2 | Telegram Aktienbot",
|
|
"schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json"
|
|
},
|
|
"item": [
|
|
{
|
|
"name": "Keyword",
|
|
"item": [
|
|
{
|
|
"name": "Removes existing keyword",
|
|
"request": {
|
|
"auth": {
|
|
"type": "bearer",
|
|
"bearer": [
|
|
{
|
|
"key": "token",
|
|
"value": "<Bearer Token>",
|
|
"type": "string"
|
|
}
|
|
]
|
|
},
|
|
"method": "DELETE",
|
|
"header": [
|
|
{
|
|
"key": "Content-Type",
|
|
"value": "application/json"
|
|
},
|
|
{
|
|
"key": "Accept",
|
|
"value": "application/json"
|
|
}
|
|
],
|
|
"body": {
|
|
"mode": "raw",
|
|
"raw": "{\n \"keyword\": \"elit Lorem\"\n}",
|
|
"options": {
|
|
"raw": {
|
|
"language": "json"
|
|
}
|
|
}
|
|
},
|
|
"url": {
|
|
"raw": "{{baseUrl}}/api/keyword",
|
|
"host": [
|
|
"{{baseUrl}}"
|
|
],
|
|
"path": [
|
|
"api",
|
|
"keyword"
|
|
]
|
|
},
|
|
"description": "Removes existing keyword for current user"
|
|
},
|
|
"response": [
|
|
{
|
|
"name": "Successful response",
|
|
"originalRequest": {
|
|
"method": "DELETE",
|
|
"header": [
|
|
{
|
|
"description": "Added as a part of security scheme: bearer",
|
|
"key": "Authorization",
|
|
"value": "Bearer <token>"
|
|
}
|
|
],
|
|
"body": {
|
|
"mode": "raw",
|
|
"raw": "{\n \"keyword\": \"elit Lorem\"\n}",
|
|
"options": {
|
|
"raw": {
|
|
"language": "json"
|
|
}
|
|
}
|
|
},
|
|
"url": {
|
|
"raw": "{{baseUrl}}/api/keyword",
|
|
"host": [
|
|
"{{baseUrl}}"
|
|
],
|
|
"path": [
|
|
"api",
|
|
"keyword"
|
|
]
|
|
}
|
|
},
|
|
"status": "OK",
|
|
"code": 200,
|
|
"_postman_previewlanguage": "json",
|
|
"header": [
|
|
{
|
|
"key": "Content-Type",
|
|
"value": "application/json"
|
|
}
|
|
],
|
|
"cookie": [],
|
|
"body": "{\n \"data\": {},\n \"status\": 261201,\n \"text\": \"aliqua amet consectetur elit\"\n}"
|
|
},
|
|
{
|
|
"name": "Validation error",
|
|
"originalRequest": {
|
|
"method": "DELETE",
|
|
"header": [
|
|
{
|
|
"description": "Added as a part of security scheme: bearer",
|
|
"key": "Authorization",
|
|
"value": "Bearer <token>"
|
|
}
|
|
],
|
|
"body": {
|
|
"mode": "raw",
|
|
"raw": "{\n \"keyword\": \"elit Lorem\"\n}",
|
|
"options": {
|
|
"raw": {
|
|
"language": "json"
|
|
}
|
|
}
|
|
},
|
|
"url": {
|
|
"raw": "{{baseUrl}}/api/keyword",
|
|
"host": [
|
|
"{{baseUrl}}"
|
|
],
|
|
"path": [
|
|
"api",
|
|
"keyword"
|
|
]
|
|
}
|
|
},
|
|
"status": "Bad Request",
|
|
"code": 400,
|
|
"_postman_previewlanguage": "json",
|
|
"header": [
|
|
{
|
|
"key": "Content-Type",
|
|
"value": "application/json"
|
|
}
|
|
],
|
|
"cookie": [],
|
|
"body": "{\n \"detail\": {\n \"<location>\": {\n \"<field_name>\": [\n \"labore\",\n \"\"\n ]\n }\n },\n \"message\": \"pariatur cillum qui aute\"\n}"
|
|
},
|
|
{
|
|
"name": "Authentication error",
|
|
"originalRequest": {
|
|
"method": "DELETE",
|
|
"header": [
|
|
{
|
|
"description": "Added as a part of security scheme: bearer",
|
|
"key": "Authorization",
|
|
"value": "Bearer <token>"
|
|
}
|
|
],
|
|
"body": {
|
|
"mode": "raw",
|
|
"raw": "{\n \"keyword\": \"elit Lorem\"\n}",
|
|
"options": {
|
|
"raw": {
|
|
"language": "json"
|
|
}
|
|
}
|
|
},
|
|
"url": {
|
|
"raw": "{{baseUrl}}/api/keyword",
|
|
"host": [
|
|
"{{baseUrl}}"
|
|
],
|
|
"path": [
|
|
"api",
|
|
"keyword"
|
|
]
|
|
}
|
|
},
|
|
"status": "Unauthorized",
|
|
"code": 401,
|
|
"_postman_previewlanguage": "json",
|
|
"header": [
|
|
{
|
|
"key": "Content-Type",
|
|
"value": "application/json"
|
|
}
|
|
],
|
|
"cookie": [],
|
|
"body": "{\n \"detail\": {},\n \"message\": \"eiusmod enim ipsum\"\n}"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"name": "Add new keyword",
|
|
"request": {
|
|
"auth": {
|
|
"type": "bearer",
|
|
"bearer": [
|
|
{
|
|
"key": "token",
|
|
"value": "<Bearer Token>",
|
|
"type": "string"
|
|
}
|
|
]
|
|
},
|
|
"method": "POST",
|
|
"header": [
|
|
{
|
|
"key": "Content-Type",
|
|
"value": "application/json"
|
|
},
|
|
{
|
|
"key": "Accept",
|
|
"value": "application/json"
|
|
}
|
|
],
|
|
"body": {
|
|
"mode": "raw",
|
|
"raw": "{\n \"keyword\": \"elit Lorem\"\n}",
|
|
"options": {
|
|
"raw": {
|
|
"language": "json"
|
|
}
|
|
}
|
|
},
|
|
"url": {
|
|
"raw": "{{baseUrl}}/api/keyword",
|
|
"host": [
|
|
"{{baseUrl}}"
|
|
],
|
|
"path": [
|
|
"api",
|
|
"keyword"
|
|
]
|
|
},
|
|
"description": "Adds new keyword for current user"
|
|
},
|
|
"response": [
|
|
{
|
|
"name": "Successful response",
|
|
"originalRequest": {
|
|
"method": "POST",
|
|
"header": [
|
|
{
|
|
"description": "Added as a part of security scheme: bearer",
|
|
"key": "Authorization",
|
|
"value": "Bearer <token>"
|
|
}
|
|
],
|
|
"body": {
|
|
"mode": "raw",
|
|
"raw": "{\n \"keyword\": \"elit Lorem\"\n}",
|
|
"options": {
|
|
"raw": {
|
|
"language": "json"
|
|
}
|
|
}
|
|
},
|
|
"url": {
|
|
"raw": "{{baseUrl}}/api/keyword",
|
|
"host": [
|
|
"{{baseUrl}}"
|
|
],
|
|
"path": [
|
|
"api",
|
|
"keyword"
|
|
]
|
|
}
|
|
},
|
|
"status": "OK",
|
|
"code": 200,
|
|
"_postman_previewlanguage": "json",
|
|
"header": [
|
|
{
|
|
"key": "Content-Type",
|
|
"value": "application/json"
|
|
}
|
|
],
|
|
"cookie": [],
|
|
"body": "{\n \"data\": [\n {\n \"keyword\": \"tempor dolor commodo ipsum non\",\n \"s_id\": -64068772,\n \"user_id\": 82510382\n },\n {\n \"keyword\": \"in aute ex\",\n \"s_id\": 60028598,\n \"user_id\": -36905324\n }\n ],\n \"status\": 63124172,\n \"text\": \"amet\"\n}"
|
|
},
|
|
{
|
|
"name": "Validation error",
|
|
"originalRequest": {
|
|
"method": "POST",
|
|
"header": [
|
|
{
|
|
"description": "Added as a part of security scheme: bearer",
|
|
"key": "Authorization",
|
|
"value": "Bearer <token>"
|
|
}
|
|
],
|
|
"body": {
|
|
"mode": "raw",
|
|
"raw": "{\n \"keyword\": \"elit Lorem\"\n}",
|
|
"options": {
|
|
"raw": {
|
|
"language": "json"
|
|
}
|
|
}
|
|
},
|
|
"url": {
|
|
"raw": "{{baseUrl}}/api/keyword",
|
|
"host": [
|
|
"{{baseUrl}}"
|
|
],
|
|
"path": [
|
|
"api",
|
|
"keyword"
|
|
]
|
|
}
|
|
},
|
|
"status": "Bad Request",
|
|
"code": 400,
|
|
"_postman_previewlanguage": "json",
|
|
"header": [
|
|
{
|
|
"key": "Content-Type",
|
|
"value": "application/json"
|
|
}
|
|
],
|
|
"cookie": [],
|
|
"body": "{\n \"detail\": {\n \"<location>\": {\n \"<field_name>\": [\n \"labore\",\n \"\"\n ]\n }\n },\n \"message\": \"pariatur cillum qui aute\"\n}"
|
|
},
|
|
{
|
|
"name": "Authentication error",
|
|
"originalRequest": {
|
|
"method": "POST",
|
|
"header": [
|
|
{
|
|
"description": "Added as a part of security scheme: bearer",
|
|
"key": "Authorization",
|
|
"value": "Bearer <token>"
|
|
}
|
|
],
|
|
"body": {
|
|
"mode": "raw",
|
|
"raw": "{\n \"keyword\": \"elit Lorem\"\n}",
|
|
"options": {
|
|
"raw": {
|
|
"language": "json"
|
|
}
|
|
}
|
|
},
|
|
"url": {
|
|
"raw": "{{baseUrl}}/api/keyword",
|
|
"host": [
|
|
"{{baseUrl}}"
|
|
],
|
|
"path": [
|
|
"api",
|
|
"keyword"
|
|
]
|
|
}
|
|
},
|
|
"status": "Unauthorized",
|
|
"code": 401,
|
|
"_postman_previewlanguage": "json",
|
|
"header": [
|
|
{
|
|
"key": "Content-Type",
|
|
"value": "application/json"
|
|
}
|
|
],
|
|
"cookie": [],
|
|
"body": "{\n \"detail\": {},\n \"message\": \"eiusmod enim ipsum\"\n}"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"name": "Returns all keywords",
|
|
"request": {
|
|
"auth": {
|
|
"type": "bearer",
|
|
"bearer": [
|
|
{
|
|
"key": "token",
|
|
"value": "<Bearer Token>",
|
|
"type": "string"
|
|
}
|
|
]
|
|
},
|
|
"method": "GET",
|
|
"header": [
|
|
{
|
|
"key": "Accept",
|
|
"value": "application/json"
|
|
}
|
|
],
|
|
"url": {
|
|
"raw": "{{baseUrl}}/api/keywords",
|
|
"host": [
|
|
"{{baseUrl}}"
|
|
],
|
|
"path": [
|
|
"api",
|
|
"keywords"
|
|
]
|
|
},
|
|
"description": "Returns all keywords for current user"
|
|
},
|
|
"response": [
|
|
{
|
|
"name": "Successful response",
|
|
"originalRequest": {
|
|
"method": "GET",
|
|
"header": [
|
|
{
|
|
"description": "Added as a part of security scheme: bearer",
|
|
"key": "Authorization",
|
|
"value": "Bearer <token>"
|
|
}
|
|
],
|
|
"url": {
|
|
"raw": "{{baseUrl}}/api/keywords",
|
|
"host": [
|
|
"{{baseUrl}}"
|
|
],
|
|
"path": [
|
|
"api",
|
|
"keywords"
|
|
]
|
|
}
|
|
},
|
|
"status": "OK",
|
|
"code": 200,
|
|
"_postman_previewlanguage": "json",
|
|
"header": [
|
|
{
|
|
"key": "Content-Type",
|
|
"value": "application/json"
|
|
}
|
|
],
|
|
"cookie": [],
|
|
"body": "{\n \"data\": [\n {\n \"keyword\": \"tempor dolor commodo ipsum non\",\n \"s_id\": -64068772,\n \"user_id\": 82510382\n },\n {\n \"keyword\": \"in aute ex\",\n \"s_id\": 60028598,\n \"user_id\": -36905324\n }\n ],\n \"status\": 63124172,\n \"text\": \"amet\"\n}"
|
|
},
|
|
{
|
|
"name": "Authentication error",
|
|
"originalRequest": {
|
|
"method": "GET",
|
|
"header": [
|
|
{
|
|
"description": "Added as a part of security scheme: bearer",
|
|
"key": "Authorization",
|
|
"value": "Bearer <token>"
|
|
}
|
|
],
|
|
"url": {
|
|
"raw": "{{baseUrl}}/api/keywords",
|
|
"host": [
|
|
"{{baseUrl}}"
|
|
],
|
|
"path": [
|
|
"api",
|
|
"keywords"
|
|
]
|
|
}
|
|
},
|
|
"status": "Unauthorized",
|
|
"code": 401,
|
|
"_postman_previewlanguage": "json",
|
|
"header": [
|
|
{
|
|
"key": "Content-Type",
|
|
"value": "application/json"
|
|
}
|
|
],
|
|
"cookie": [],
|
|
"body": "{\n \"detail\": {},\n \"message\": \"eiusmod enim ipsum\"\n}"
|
|
}
|
|
]
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"name": "Share",
|
|
"item": [
|
|
{
|
|
"name": "Removes existing symbol",
|
|
"request": {
|
|
"auth": {
|
|
"type": "bearer",
|
|
"bearer": [
|
|
{
|
|
"key": "token",
|
|
"value": "<Bearer Token>",
|
|
"type": "string"
|
|
}
|
|
]
|
|
},
|
|
"method": "DELETE",
|
|
"header": [
|
|
{
|
|
"key": "Content-Type",
|
|
"value": "application/json"
|
|
},
|
|
{
|
|
"key": "Accept",
|
|
"value": "application/json"
|
|
}
|
|
],
|
|
"body": {
|
|
"mode": "raw",
|
|
"raw": "{\n \"symbol\": \"aliquip ullamco Ut\"\n}",
|
|
"options": {
|
|
"raw": {
|
|
"language": "json"
|
|
}
|
|
}
|
|
},
|
|
"url": {
|
|
"raw": "{{baseUrl}}/api/share",
|
|
"host": [
|
|
"{{baseUrl}}"
|
|
],
|
|
"path": [
|
|
"api",
|
|
"share"
|
|
]
|
|
},
|
|
"description": "Removes existing symbol for current user"
|
|
},
|
|
"response": [
|
|
{
|
|
"name": "Successful response",
|
|
"originalRequest": {
|
|
"method": "DELETE",
|
|
"header": [
|
|
{
|
|
"description": "Added as a part of security scheme: bearer",
|
|
"key": "Authorization",
|
|
"value": "Bearer <token>"
|
|
}
|
|
],
|
|
"body": {
|
|
"mode": "raw",
|
|
"raw": "{\n \"symbol\": \"aliquip ullamco Ut\"\n}",
|
|
"options": {
|
|
"raw": {
|
|
"language": "json"
|
|
}
|
|
}
|
|
},
|
|
"url": {
|
|
"raw": "{{baseUrl}}/api/share",
|
|
"host": [
|
|
"{{baseUrl}}"
|
|
],
|
|
"path": [
|
|
"api",
|
|
"share"
|
|
]
|
|
}
|
|
},
|
|
"status": "OK",
|
|
"code": 200,
|
|
"_postman_previewlanguage": "json",
|
|
"header": [
|
|
{
|
|
"key": "Content-Type",
|
|
"value": "application/json"
|
|
}
|
|
],
|
|
"cookie": [],
|
|
"body": "{\n \"data\": {},\n \"status\": 261201,\n \"text\": \"aliqua amet consectetur elit\"\n}"
|
|
},
|
|
{
|
|
"name": "Validation error",
|
|
"originalRequest": {
|
|
"method": "DELETE",
|
|
"header": [
|
|
{
|
|
"description": "Added as a part of security scheme: bearer",
|
|
"key": "Authorization",
|
|
"value": "Bearer <token>"
|
|
}
|
|
],
|
|
"body": {
|
|
"mode": "raw",
|
|
"raw": "{\n \"symbol\": \"aliquip ullamco Ut\"\n}",
|
|
"options": {
|
|
"raw": {
|
|
"language": "json"
|
|
}
|
|
}
|
|
},
|
|
"url": {
|
|
"raw": "{{baseUrl}}/api/share",
|
|
"host": [
|
|
"{{baseUrl}}"
|
|
],
|
|
"path": [
|
|
"api",
|
|
"share"
|
|
]
|
|
}
|
|
},
|
|
"status": "Bad Request",
|
|
"code": 400,
|
|
"_postman_previewlanguage": "json",
|
|
"header": [
|
|
{
|
|
"key": "Content-Type",
|
|
"value": "application/json"
|
|
}
|
|
],
|
|
"cookie": [],
|
|
"body": "{\n \"detail\": {\n \"<location>\": {\n \"<field_name>\": [\n \"labore\",\n \"\"\n ]\n }\n },\n \"message\": \"pariatur cillum qui aute\"\n}"
|
|
},
|
|
{
|
|
"name": "Authentication error",
|
|
"originalRequest": {
|
|
"method": "DELETE",
|
|
"header": [
|
|
{
|
|
"description": "Added as a part of security scheme: bearer",
|
|
"key": "Authorization",
|
|
"value": "Bearer <token>"
|
|
}
|
|
],
|
|
"body": {
|
|
"mode": "raw",
|
|
"raw": "{\n \"symbol\": \"aliquip ullamco Ut\"\n}",
|
|
"options": {
|
|
"raw": {
|
|
"language": "json"
|
|
}
|
|
}
|
|
},
|
|
"url": {
|
|
"raw": "{{baseUrl}}/api/share",
|
|
"host": [
|
|
"{{baseUrl}}"
|
|
],
|
|
"path": [
|
|
"api",
|
|
"share"
|
|
]
|
|
}
|
|
},
|
|
"status": "Unauthorized",
|
|
"code": 401,
|
|
"_postman_previewlanguage": "json",
|
|
"header": [
|
|
{
|
|
"key": "Content-Type",
|
|
"value": "application/json"
|
|
}
|
|
],
|
|
"cookie": [],
|
|
"body": "{\n \"detail\": {},\n \"message\": \"eiusmod enim ipsum\"\n}"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"name": "Add new symbol",
|
|
"request": {
|
|
"auth": {
|
|
"type": "bearer",
|
|
"bearer": [
|
|
{
|
|
"key": "token",
|
|
"value": "<Bearer Token>",
|
|
"type": "string"
|
|
}
|
|
]
|
|
},
|
|
"method": "POST",
|
|
"header": [
|
|
{
|
|
"key": "Content-Type",
|
|
"value": "application/json"
|
|
},
|
|
{
|
|
"key": "Accept",
|
|
"value": "application/json"
|
|
}
|
|
],
|
|
"body": {
|
|
"mode": "raw",
|
|
"raw": "{\n \"symbol\": \"aliquip ullamco Ut\"\n}",
|
|
"options": {
|
|
"raw": {
|
|
"language": "json"
|
|
}
|
|
}
|
|
},
|
|
"url": {
|
|
"raw": "{{baseUrl}}/api/share",
|
|
"host": [
|
|
"{{baseUrl}}"
|
|
],
|
|
"path": [
|
|
"api",
|
|
"share"
|
|
]
|
|
},
|
|
"description": "Adds new symbol for current user"
|
|
},
|
|
"response": [
|
|
{
|
|
"name": "Successful response",
|
|
"originalRequest": {
|
|
"method": "POST",
|
|
"header": [
|
|
{
|
|
"description": "Added as a part of security scheme: bearer",
|
|
"key": "Authorization",
|
|
"value": "Bearer <token>"
|
|
}
|
|
],
|
|
"body": {
|
|
"mode": "raw",
|
|
"raw": "{\n \"symbol\": \"aliquip ullamco Ut\"\n}",
|
|
"options": {
|
|
"raw": {
|
|
"language": "json"
|
|
}
|
|
}
|
|
},
|
|
"url": {
|
|
"raw": "{{baseUrl}}/api/share",
|
|
"host": [
|
|
"{{baseUrl}}"
|
|
],
|
|
"path": [
|
|
"api",
|
|
"share"
|
|
]
|
|
}
|
|
},
|
|
"status": "OK",
|
|
"code": 200,
|
|
"_postman_previewlanguage": "json",
|
|
"header": [
|
|
{
|
|
"key": "Content-Type",
|
|
"value": "application/json"
|
|
}
|
|
],
|
|
"cookie": [],
|
|
"body": "{\n \"data\": [\n {\n \"s_id\": -53227093,\n \"symbol\": \"veniam ea amet irure\",\n \"user_id\": 7468241\n },\n {\n \"s_id\": -37877246,\n \"symbol\": \"ut tempor labore non\",\n \"user_id\": -72644124\n }\n ],\n \"status\": 87653200,\n \"text\": \"aliquip reprehenderit dolore\"\n}"
|
|
},
|
|
{
|
|
"name": "Validation error",
|
|
"originalRequest": {
|
|
"method": "POST",
|
|
"header": [
|
|
{
|
|
"description": "Added as a part of security scheme: bearer",
|
|
"key": "Authorization",
|
|
"value": "Bearer <token>"
|
|
}
|
|
],
|
|
"body": {
|
|
"mode": "raw",
|
|
"raw": "{\n \"symbol\": \"aliquip ullamco Ut\"\n}",
|
|
"options": {
|
|
"raw": {
|
|
"language": "json"
|
|
}
|
|
}
|
|
},
|
|
"url": {
|
|
"raw": "{{baseUrl}}/api/share",
|
|
"host": [
|
|
"{{baseUrl}}"
|
|
],
|
|
"path": [
|
|
"api",
|
|
"share"
|
|
]
|
|
}
|
|
},
|
|
"status": "Bad Request",
|
|
"code": 400,
|
|
"_postman_previewlanguage": "json",
|
|
"header": [
|
|
{
|
|
"key": "Content-Type",
|
|
"value": "application/json"
|
|
}
|
|
],
|
|
"cookie": [],
|
|
"body": "{\n \"detail\": {\n \"<location>\": {\n \"<field_name>\": [\n \"labore\",\n \"\"\n ]\n }\n },\n \"message\": \"pariatur cillum qui aute\"\n}"
|
|
},
|
|
{
|
|
"name": "Authentication error",
|
|
"originalRequest": {
|
|
"method": "POST",
|
|
"header": [
|
|
{
|
|
"description": "Added as a part of security scheme: bearer",
|
|
"key": "Authorization",
|
|
"value": "Bearer <token>"
|
|
}
|
|
],
|
|
"body": {
|
|
"mode": "raw",
|
|
"raw": "{\n \"symbol\": \"aliquip ullamco Ut\"\n}",
|
|
"options": {
|
|
"raw": {
|
|
"language": "json"
|
|
}
|
|
}
|
|
},
|
|
"url": {
|
|
"raw": "{{baseUrl}}/api/share",
|
|
"host": [
|
|
"{{baseUrl}}"
|
|
],
|
|
"path": [
|
|
"api",
|
|
"share"
|
|
]
|
|
}
|
|
},
|
|
"status": "Unauthorized",
|
|
"code": 401,
|
|
"_postman_previewlanguage": "json",
|
|
"header": [
|
|
{
|
|
"key": "Content-Type",
|
|
"value": "application/json"
|
|
}
|
|
],
|
|
"cookie": [],
|
|
"body": "{\n \"detail\": {},\n \"message\": \"eiusmod enim ipsum\"\n}"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"name": "Returns all symbols",
|
|
"request": {
|
|
"auth": {
|
|
"type": "bearer",
|
|
"bearer": [
|
|
{
|
|
"key": "token",
|
|
"value": "<Bearer Token>",
|
|
"type": "string"
|
|
}
|
|
]
|
|
},
|
|
"method": "GET",
|
|
"header": [
|
|
{
|
|
"key": "Accept",
|
|
"value": "application/json"
|
|
}
|
|
],
|
|
"url": {
|
|
"raw": "{{baseUrl}}/api/shares",
|
|
"host": [
|
|
"{{baseUrl}}"
|
|
],
|
|
"path": [
|
|
"api",
|
|
"shares"
|
|
]
|
|
},
|
|
"description": "Returns all symbols for current user"
|
|
},
|
|
"response": [
|
|
{
|
|
"name": "Successful response",
|
|
"originalRequest": {
|
|
"method": "GET",
|
|
"header": [
|
|
{
|
|
"description": "Added as a part of security scheme: bearer",
|
|
"key": "Authorization",
|
|
"value": "Bearer <token>"
|
|
}
|
|
],
|
|
"url": {
|
|
"raw": "{{baseUrl}}/api/shares",
|
|
"host": [
|
|
"{{baseUrl}}"
|
|
],
|
|
"path": [
|
|
"api",
|
|
"shares"
|
|
]
|
|
}
|
|
},
|
|
"status": "OK",
|
|
"code": 200,
|
|
"_postman_previewlanguage": "json",
|
|
"header": [
|
|
{
|
|
"key": "Content-Type",
|
|
"value": "application/json"
|
|
}
|
|
],
|
|
"cookie": [],
|
|
"body": "{\n \"data\": [\n {\n \"s_id\": -53227093,\n \"symbol\": \"veniam ea amet irure\",\n \"user_id\": 7468241\n },\n {\n \"s_id\": -37877246,\n \"symbol\": \"ut tempor labore non\",\n \"user_id\": -72644124\n }\n ],\n \"status\": 87653200,\n \"text\": \"aliquip reprehenderit dolore\"\n}"
|
|
},
|
|
{
|
|
"name": "Authentication error",
|
|
"originalRequest": {
|
|
"method": "GET",
|
|
"header": [
|
|
{
|
|
"description": "Added as a part of security scheme: bearer",
|
|
"key": "Authorization",
|
|
"value": "Bearer <token>"
|
|
}
|
|
],
|
|
"url": {
|
|
"raw": "{{baseUrl}}/api/shares",
|
|
"host": [
|
|
"{{baseUrl}}"
|
|
],
|
|
"path": [
|
|
"api",
|
|
"shares"
|
|
]
|
|
}
|
|
},
|
|
"status": "Unauthorized",
|
|
"code": 401,
|
|
"_postman_previewlanguage": "json",
|
|
"header": [
|
|
{
|
|
"key": "Content-Type",
|
|
"value": "application/json"
|
|
}
|
|
],
|
|
"cookie": [],
|
|
"body": "{\n \"detail\": {},\n \"message\": \"eiusmod enim ipsum\"\n}"
|
|
}
|
|
]
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"name": "Transaction",
|
|
"item": [
|
|
{
|
|
"name": "Adds new transaction",
|
|
"request": {
|
|
"auth": {
|
|
"type": "bearer",
|
|
"bearer": [
|
|
{
|
|
"key": "token",
|
|
"value": "<Bearer Token>",
|
|
"type": "string"
|
|
}
|
|
]
|
|
},
|
|
"method": "POST",
|
|
"header": [
|
|
{
|
|
"key": "Content-Type",
|
|
"value": "application/json"
|
|
},
|
|
{
|
|
"key": "Accept",
|
|
"value": "application/json"
|
|
}
|
|
],
|
|
"body": {
|
|
"mode": "raw",
|
|
"raw": "{\n \"count\": 96634001,\n \"price\": -71028444.15053315,\n \"symbol\": \"deserunt officia dolore\",\n \"time\": \"magna occaecat est\",\n \"user_id\": -71272721\n}",
|
|
"options": {
|
|
"raw": {
|
|
"language": "json"
|
|
}
|
|
}
|
|
},
|
|
"url": {
|
|
"raw": "{{baseUrl}}/api/transaction",
|
|
"host": [
|
|
"{{baseUrl}}"
|
|
],
|
|
"path": [
|
|
"api",
|
|
"transaction"
|
|
]
|
|
},
|
|
"description": "Adds new transaction for current user"
|
|
},
|
|
"response": [
|
|
{
|
|
"name": "Successful response",
|
|
"originalRequest": {
|
|
"method": "POST",
|
|
"header": [
|
|
{
|
|
"description": "Added as a part of security scheme: bearer",
|
|
"key": "Authorization",
|
|
"value": "Bearer <token>"
|
|
}
|
|
],
|
|
"body": {
|
|
"mode": "raw",
|
|
"raw": "{\n \"count\": 96634001,\n \"price\": -71028444.15053315,\n \"symbol\": \"deserunt officia dolore\",\n \"time\": \"magna occaecat est\",\n \"user_id\": -71272721\n}",
|
|
"options": {
|
|
"raw": {
|
|
"language": "json"
|
|
}
|
|
}
|
|
},
|
|
"url": {
|
|
"raw": "{{baseUrl}}/api/transaction",
|
|
"host": [
|
|
"{{baseUrl}}"
|
|
],
|
|
"path": [
|
|
"api",
|
|
"transaction"
|
|
]
|
|
}
|
|
},
|
|
"status": "OK",
|
|
"code": 200,
|
|
"_postman_previewlanguage": "json",
|
|
"header": [
|
|
{
|
|
"key": "Content-Type",
|
|
"value": "application/json"
|
|
}
|
|
],
|
|
"cookie": [],
|
|
"body": "{\n \"data\": {\n \"value\": \"reference #/components/schemas/() not found in the OpenAPI spec\"\n },\n \"status\": 14310780,\n \"text\": \"in sint sit\"\n}"
|
|
},
|
|
{
|
|
"name": "Validation error",
|
|
"originalRequest": {
|
|
"method": "POST",
|
|
"header": [
|
|
{
|
|
"description": "Added as a part of security scheme: bearer",
|
|
"key": "Authorization",
|
|
"value": "Bearer <token>"
|
|
}
|
|
],
|
|
"body": {
|
|
"mode": "raw",
|
|
"raw": "{\n \"count\": 96634001,\n \"price\": -71028444.15053315,\n \"symbol\": \"deserunt officia dolore\",\n \"time\": \"magna occaecat est\",\n \"user_id\": -71272721\n}",
|
|
"options": {
|
|
"raw": {
|
|
"language": "json"
|
|
}
|
|
}
|
|
},
|
|
"url": {
|
|
"raw": "{{baseUrl}}/api/transaction",
|
|
"host": [
|
|
"{{baseUrl}}"
|
|
],
|
|
"path": [
|
|
"api",
|
|
"transaction"
|
|
]
|
|
}
|
|
},
|
|
"status": "Bad Request",
|
|
"code": 400,
|
|
"_postman_previewlanguage": "json",
|
|
"header": [
|
|
{
|
|
"key": "Content-Type",
|
|
"value": "application/json"
|
|
}
|
|
],
|
|
"cookie": [],
|
|
"body": "{\n \"detail\": {\n \"<location>\": {\n \"<field_name>\": [\n \"labore\",\n \"\"\n ]\n }\n },\n \"message\": \"pariatur cillum qui aute\"\n}"
|
|
},
|
|
{
|
|
"name": "Authentication error",
|
|
"originalRequest": {
|
|
"method": "POST",
|
|
"header": [
|
|
{
|
|
"description": "Added as a part of security scheme: bearer",
|
|
"key": "Authorization",
|
|
"value": "Bearer <token>"
|
|
}
|
|
],
|
|
"body": {
|
|
"mode": "raw",
|
|
"raw": "{\n \"count\": 96634001,\n \"price\": -71028444.15053315,\n \"symbol\": \"deserunt officia dolore\",\n \"time\": \"magna occaecat est\",\n \"user_id\": -71272721\n}",
|
|
"options": {
|
|
"raw": {
|
|
"language": "json"
|
|
}
|
|
}
|
|
},
|
|
"url": {
|
|
"raw": "{{baseUrl}}/api/transaction",
|
|
"host": [
|
|
"{{baseUrl}}"
|
|
],
|
|
"path": [
|
|
"api",
|
|
"transaction"
|
|
]
|
|
}
|
|
},
|
|
"status": "Unauthorized",
|
|
"code": 401,
|
|
"_postman_previewlanguage": "json",
|
|
"header": [
|
|
{
|
|
"key": "Content-Type",
|
|
"value": "application/json"
|
|
}
|
|
],
|
|
"cookie": [],
|
|
"body": "{\n \"detail\": {},\n \"message\": \"eiusmod enim ipsum\"\n}"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"name": "Returns all transactions",
|
|
"request": {
|
|
"auth": {
|
|
"type": "bearer",
|
|
"bearer": [
|
|
{
|
|
"key": "token",
|
|
"value": "<Bearer Token>",
|
|
"type": "string"
|
|
}
|
|
]
|
|
},
|
|
"method": "GET",
|
|
"header": [
|
|
{
|
|
"key": "Accept",
|
|
"value": "application/json"
|
|
}
|
|
],
|
|
"url": {
|
|
"raw": "{{baseUrl}}/api/transactions",
|
|
"host": [
|
|
"{{baseUrl}}"
|
|
],
|
|
"path": [
|
|
"api",
|
|
"transactions"
|
|
]
|
|
},
|
|
"description": "Returns all transactions for current user"
|
|
},
|
|
"response": [
|
|
{
|
|
"name": "Successful response",
|
|
"originalRequest": {
|
|
"method": "GET",
|
|
"header": [
|
|
{
|
|
"description": "Added as a part of security scheme: bearer",
|
|
"key": "Authorization",
|
|
"value": "Bearer <token>"
|
|
}
|
|
],
|
|
"url": {
|
|
"raw": "{{baseUrl}}/api/transactions",
|
|
"host": [
|
|
"{{baseUrl}}"
|
|
],
|
|
"path": [
|
|
"api",
|
|
"transactions"
|
|
]
|
|
}
|
|
},
|
|
"status": "OK",
|
|
"code": 200,
|
|
"_postman_previewlanguage": "json",
|
|
"header": [
|
|
{
|
|
"key": "Content-Type",
|
|
"value": "application/json"
|
|
}
|
|
],
|
|
"cookie": [],
|
|
"body": "{\n \"data\": {\n \"count\": -19053100,\n \"price\": 39909986.26075193,\n \"symbol\": \"sit nisi\",\n \"time\": \"pariatur eu proident\",\n \"user_id\": 54782742\n },\n \"status\": 87070947,\n \"text\": \"null\"\n}"
|
|
},
|
|
{
|
|
"name": "Authentication error",
|
|
"originalRequest": {
|
|
"method": "GET",
|
|
"header": [
|
|
{
|
|
"description": "Added as a part of security scheme: bearer",
|
|
"key": "Authorization",
|
|
"value": "Bearer <token>"
|
|
}
|
|
],
|
|
"url": {
|
|
"raw": "{{baseUrl}}/api/transactions",
|
|
"host": [
|
|
"{{baseUrl}}"
|
|
],
|
|
"path": [
|
|
"api",
|
|
"transactions"
|
|
]
|
|
}
|
|
},
|
|
"status": "Unauthorized",
|
|
"code": 401,
|
|
"_postman_previewlanguage": "json",
|
|
"header": [
|
|
{
|
|
"key": "Content-Type",
|
|
"value": "application/json"
|
|
}
|
|
],
|
|
"cookie": [],
|
|
"body": "{\n \"detail\": {},\n \"message\": \"eiusmod enim ipsum\"\n}"
|
|
}
|
|
]
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"name": "Portfolio",
|
|
"item": [
|
|
{
|
|
"name": "Returns portfolio",
|
|
"request": {
|
|
"auth": {
|
|
"type": "bearer",
|
|
"bearer": [
|
|
{
|
|
"key": "token",
|
|
"value": "<Bearer Token>",
|
|
"type": "string"
|
|
}
|
|
]
|
|
},
|
|
"method": "GET",
|
|
"header": [
|
|
{
|
|
"key": "Accept",
|
|
"value": "application/json"
|
|
}
|
|
],
|
|
"url": {
|
|
"raw": "{{baseUrl}}/api/portfolio",
|
|
"host": [
|
|
"{{baseUrl}}"
|
|
],
|
|
"path": [
|
|
"api",
|
|
"portfolio"
|
|
]
|
|
},
|
|
"description": "Returns all shares of current user"
|
|
},
|
|
"response": [
|
|
{
|
|
"name": "Successful response",
|
|
"originalRequest": {
|
|
"method": "GET",
|
|
"header": [
|
|
{
|
|
"description": "Added as a part of security scheme: bearer",
|
|
"key": "Authorization",
|
|
"value": "Bearer <token>"
|
|
}
|
|
],
|
|
"url": {
|
|
"raw": "{{baseUrl}}/api/portfolio",
|
|
"host": [
|
|
"{{baseUrl}}"
|
|
],
|
|
"path": [
|
|
"api",
|
|
"portfolio"
|
|
]
|
|
}
|
|
},
|
|
"status": "OK",
|
|
"code": 200,
|
|
"_postman_previewlanguage": "json",
|
|
"header": [
|
|
{
|
|
"key": "Content-Type",
|
|
"value": "application/json"
|
|
}
|
|
],
|
|
"cookie": [],
|
|
"body": "{\n \"data\": {\n \"value\": \"reference #/components/schemas/200 not found in the OpenAPI spec\"\n },\n \"status\": 14426134,\n \"text\": \"velit in ad dolore\"\n}"
|
|
},
|
|
{
|
|
"name": "Authentication error",
|
|
"originalRequest": {
|
|
"method": "GET",
|
|
"header": [
|
|
{
|
|
"description": "Added as a part of security scheme: bearer",
|
|
"key": "Authorization",
|
|
"value": "Bearer <token>"
|
|
}
|
|
],
|
|
"url": {
|
|
"raw": "{{baseUrl}}/api/portfolio",
|
|
"host": [
|
|
"{{baseUrl}}"
|
|
],
|
|
"path": [
|
|
"api",
|
|
"portfolio"
|
|
]
|
|
}
|
|
},
|
|
"status": "Unauthorized",
|
|
"code": 401,
|
|
"_postman_previewlanguage": "json",
|
|
"header": [
|
|
{
|
|
"key": "Content-Type",
|
|
"value": "application/json"
|
|
}
|
|
],
|
|
"cookie": [],
|
|
"body": "{\n \"detail\": {},\n \"message\": \"eiusmod enim ipsum\"\n}"
|
|
}
|
|
]
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"name": "Users",
|
|
"item": [
|
|
{
|
|
"name": "Delete user",
|
|
"request": {
|
|
"auth": {
|
|
"type": "bearer",
|
|
"bearer": [
|
|
{
|
|
"key": "token",
|
|
"value": "<Bearer Token>",
|
|
"type": "string"
|
|
}
|
|
]
|
|
},
|
|
"method": "DELETE",
|
|
"header": [
|
|
{
|
|
"key": "Content-Type",
|
|
"value": "application/json"
|
|
},
|
|
{
|
|
"key": "Accept",
|
|
"value": "application/json"
|
|
}
|
|
],
|
|
"body": {
|
|
"mode": "raw",
|
|
"raw": "{\n \"username\": \"aliqua dolor do\"\n}",
|
|
"options": {
|
|
"raw": {
|
|
"language": "json"
|
|
}
|
|
}
|
|
},
|
|
"url": {
|
|
"raw": "{{baseUrl}}/api/user",
|
|
"host": [
|
|
"{{baseUrl}}"
|
|
],
|
|
"path": [
|
|
"api",
|
|
"user"
|
|
]
|
|
},
|
|
"description": "Deletes user by username"
|
|
},
|
|
"response": [
|
|
{
|
|
"name": "Successful response",
|
|
"originalRequest": {
|
|
"method": "DELETE",
|
|
"header": [
|
|
{
|
|
"description": "Added as a part of security scheme: bearer",
|
|
"key": "Authorization",
|
|
"value": "Bearer <token>"
|
|
}
|
|
],
|
|
"body": {
|
|
"mode": "raw",
|
|
"raw": "{\n \"username\": \"aliqua dolor do\"\n}",
|
|
"options": {
|
|
"raw": {
|
|
"language": "json"
|
|
}
|
|
}
|
|
},
|
|
"url": {
|
|
"raw": "{{baseUrl}}/api/user",
|
|
"host": [
|
|
"{{baseUrl}}"
|
|
],
|
|
"path": [
|
|
"api",
|
|
"user"
|
|
]
|
|
}
|
|
},
|
|
"status": "No Content",
|
|
"code": 204,
|
|
"_postman_previewlanguage": "text",
|
|
"header": [
|
|
{
|
|
"key": "Content-Type",
|
|
"value": "text/plain"
|
|
}
|
|
],
|
|
"cookie": [],
|
|
"body": ""
|
|
},
|
|
{
|
|
"name": "Validation error",
|
|
"originalRequest": {
|
|
"method": "DELETE",
|
|
"header": [
|
|
{
|
|
"description": "Added as a part of security scheme: bearer",
|
|
"key": "Authorization",
|
|
"value": "Bearer <token>"
|
|
}
|
|
],
|
|
"body": {
|
|
"mode": "raw",
|
|
"raw": "{\n \"username\": \"aliqua dolor do\"\n}",
|
|
"options": {
|
|
"raw": {
|
|
"language": "json"
|
|
}
|
|
}
|
|
},
|
|
"url": {
|
|
"raw": "{{baseUrl}}/api/user",
|
|
"host": [
|
|
"{{baseUrl}}"
|
|
],
|
|
"path": [
|
|
"api",
|
|
"user"
|
|
]
|
|
}
|
|
},
|
|
"status": "Bad Request",
|
|
"code": 400,
|
|
"_postman_previewlanguage": "json",
|
|
"header": [
|
|
{
|
|
"key": "Content-Type",
|
|
"value": "application/json"
|
|
}
|
|
],
|
|
"cookie": [],
|
|
"body": "{\n \"detail\": {\n \"<location>\": {\n \"<field_name>\": [\n \"cupidatat mollit laborum aute\",\n \"aute in laboris dolor\"\n ]\n }\n },\n \"message\": \"in dolore exercitation eu elit\"\n}"
|
|
},
|
|
{
|
|
"name": "Authentication error",
|
|
"originalRequest": {
|
|
"method": "DELETE",
|
|
"header": [
|
|
{
|
|
"description": "Added as a part of security scheme: bearer",
|
|
"key": "Authorization",
|
|
"value": "Bearer <token>"
|
|
}
|
|
],
|
|
"body": {
|
|
"mode": "raw",
|
|
"raw": "{\n \"username\": \"aliqua dolor do\"\n}",
|
|
"options": {
|
|
"raw": {
|
|
"language": "json"
|
|
}
|
|
}
|
|
},
|
|
"url": {
|
|
"raw": "{{baseUrl}}/api/user",
|
|
"host": [
|
|
"{{baseUrl}}"
|
|
],
|
|
"path": [
|
|
"api",
|
|
"user"
|
|
]
|
|
}
|
|
},
|
|
"status": "Unauthorized",
|
|
"code": 401,
|
|
"_postman_previewlanguage": "json",
|
|
"header": [
|
|
{
|
|
"key": "Content-Type",
|
|
"value": "application/json"
|
|
}
|
|
],
|
|
"cookie": [],
|
|
"body": "{\n \"detail\": {},\n \"message\": \"eiusmod enim ipsum\"\n}"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"name": "Get current user",
|
|
"request": {
|
|
"auth": {
|
|
"type": "bearer",
|
|
"bearer": [
|
|
{
|
|
"key": "token",
|
|
"value": "<Bearer Token>",
|
|
"type": "string"
|
|
}
|
|
]
|
|
},
|
|
"method": "GET",
|
|
"header": [
|
|
{
|
|
"key": "Accept",
|
|
"value": "application/json"
|
|
}
|
|
],
|
|
"url": {
|
|
"raw": "{{baseUrl}}/api/user",
|
|
"host": [
|
|
"{{baseUrl}}"
|
|
],
|
|
"path": [
|
|
"api",
|
|
"user"
|
|
]
|
|
},
|
|
"description": "Returns current user"
|
|
},
|
|
"response": [
|
|
{
|
|
"name": "Successful response",
|
|
"originalRequest": {
|
|
"method": "GET",
|
|
"header": [
|
|
{
|
|
"description": "Added as a part of security scheme: bearer",
|
|
"key": "Authorization",
|
|
"value": "Bearer <token>"
|
|
}
|
|
],
|
|
"url": {
|
|
"raw": "{{baseUrl}}/api/user",
|
|
"host": [
|
|
"{{baseUrl}}"
|
|
],
|
|
"path": [
|
|
"api",
|
|
"user"
|
|
]
|
|
}
|
|
},
|
|
"status": "OK",
|
|
"code": 200,
|
|
"_postman_previewlanguage": "json",
|
|
"header": [
|
|
{
|
|
"key": "Content-Type",
|
|
"value": "application/json"
|
|
}
|
|
],
|
|
"cookie": [],
|
|
"body": "{\n \"data\": {\n \"admin\": false,\n \"password\": \"voluptate magna esse\",\n \"telegram_name\": \"id\",\n \"user_id\": -55336867,\n \"username\": \"do exercitation\"\n },\n \"status\": -11469710,\n \"text\": \"aute\"\n}"
|
|
},
|
|
{
|
|
"name": "Authentication error",
|
|
"originalRequest": {
|
|
"method": "GET",
|
|
"header": [
|
|
{
|
|
"description": "Added as a part of security scheme: bearer",
|
|
"key": "Authorization",
|
|
"value": "Bearer <token>"
|
|
}
|
|
],
|
|
"url": {
|
|
"raw": "{{baseUrl}}/api/user",
|
|
"host": [
|
|
"{{baseUrl}}"
|
|
],
|
|
"path": [
|
|
"api",
|
|
"user"
|
|
]
|
|
}
|
|
},
|
|
"status": "Unauthorized",
|
|
"code": 401,
|
|
"_postman_previewlanguage": "json",
|
|
"header": [
|
|
{
|
|
"key": "Content-Type",
|
|
"value": "application/json"
|
|
}
|
|
],
|
|
"cookie": [],
|
|
"body": "{\n \"detail\": {},\n \"message\": \"eiusmod enim ipsum\"\n}"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"name": "Update user",
|
|
"request": {
|
|
"auth": {
|
|
"type": "bearer",
|
|
"bearer": [
|
|
{
|
|
"key": "token",
|
|
"value": "<Bearer Token>",
|
|
"type": "string"
|
|
}
|
|
]
|
|
},
|
|
"method": "PUT",
|
|
"header": [
|
|
{
|
|
"key": "Content-Type",
|
|
"value": "application/json"
|
|
},
|
|
{
|
|
"key": "Accept",
|
|
"value": "application/json"
|
|
}
|
|
],
|
|
"body": {
|
|
"mode": "raw",
|
|
"raw": "{\n \"password\": \"ut minim\",\n \"username\": \"esse sit enim consectetur\"\n}",
|
|
"options": {
|
|
"raw": {
|
|
"language": "json"
|
|
}
|
|
}
|
|
},
|
|
"url": {
|
|
"raw": "{{baseUrl}}/api/user",
|
|
"host": [
|
|
"{{baseUrl}}"
|
|
],
|
|
"path": [
|
|
"api",
|
|
"user"
|
|
]
|
|
},
|
|
"description": "Changes password and/or username of current user"
|
|
},
|
|
"response": [
|
|
{
|
|
"name": "Successful response",
|
|
"originalRequest": {
|
|
"method": "PUT",
|
|
"header": [
|
|
{
|
|
"description": "Added as a part of security scheme: bearer",
|
|
"key": "Authorization",
|
|
"value": "Bearer <token>"
|
|
}
|
|
],
|
|
"body": {
|
|
"mode": "raw",
|
|
"raw": "{\n \"password\": \"ut minim\",\n \"username\": \"esse sit enim consectetur\"\n}",
|
|
"options": {
|
|
"raw": {
|
|
"language": "json"
|
|
}
|
|
}
|
|
},
|
|
"url": {
|
|
"raw": "{{baseUrl}}/api/user",
|
|
"host": [
|
|
"{{baseUrl}}"
|
|
],
|
|
"path": [
|
|
"api",
|
|
"user"
|
|
]
|
|
}
|
|
},
|
|
"status": "No Content",
|
|
"code": 204,
|
|
"_postman_previewlanguage": "text",
|
|
"header": [
|
|
{
|
|
"key": "Content-Type",
|
|
"value": "text/plain"
|
|
}
|
|
],
|
|
"cookie": [],
|
|
"body": ""
|
|
},
|
|
{
|
|
"name": "Validation error",
|
|
"originalRequest": {
|
|
"method": "PUT",
|
|
"header": [
|
|
{
|
|
"description": "Added as a part of security scheme: bearer",
|
|
"key": "Authorization",
|
|
"value": "Bearer <token>"
|
|
}
|
|
],
|
|
"body": {
|
|
"mode": "raw",
|
|
"raw": "{\n \"password\": \"ut minim\",\n \"username\": \"esse sit enim consectetur\"\n}",
|
|
"options": {
|
|
"raw": {
|
|
"language": "json"
|
|
}
|
|
}
|
|
},
|
|
"url": {
|
|
"raw": "{{baseUrl}}/api/user",
|
|
"host": [
|
|
"{{baseUrl}}"
|
|
],
|
|
"path": [
|
|
"api",
|
|
"user"
|
|
]
|
|
}
|
|
},
|
|
"status": "Bad Request",
|
|
"code": 400,
|
|
"_postman_previewlanguage": "json",
|
|
"header": [
|
|
{
|
|
"key": "Content-Type",
|
|
"value": "application/json"
|
|
}
|
|
],
|
|
"cookie": [],
|
|
"body": "{\n \"detail\": {\n \"<location>\": {\n \"<field_name>\": [\n \"labore\",\n \"\"\n ]\n }\n },\n \"message\": \"pariatur cillum qui aute\"\n}"
|
|
},
|
|
{
|
|
"name": "Authentication error",
|
|
"originalRequest": {
|
|
"method": "PUT",
|
|
"header": [
|
|
{
|
|
"description": "Added as a part of security scheme: bearer",
|
|
"key": "Authorization",
|
|
"value": "Bearer <token>"
|
|
}
|
|
],
|
|
"body": {
|
|
"mode": "raw",
|
|
"raw": "{\n \"password\": \"ut minim\",\n \"username\": \"esse sit enim consectetur\"\n}",
|
|
"options": {
|
|
"raw": {
|
|
"language": "json"
|
|
}
|
|
}
|
|
},
|
|
"url": {
|
|
"raw": "{{baseUrl}}/api/user",
|
|
"host": [
|
|
"{{baseUrl}}"
|
|
],
|
|
"path": [
|
|
"api",
|
|
"user"
|
|
]
|
|
}
|
|
},
|
|
"status": "Unauthorized",
|
|
"code": 401,
|
|
"_postman_previewlanguage": "json",
|
|
"header": [
|
|
{
|
|
"key": "Content-Type",
|
|
"value": "application/json"
|
|
}
|
|
],
|
|
"cookie": [],
|
|
"body": "{\n \"detail\": {},\n \"message\": \"eiusmod enim ipsum\"\n}"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"name": "Login",
|
|
"request": {
|
|
"method": "POST",
|
|
"header": [
|
|
{
|
|
"key": "Content-Type",
|
|
"value": "application/json"
|
|
},
|
|
{
|
|
"key": "Accept",
|
|
"value": "application/json"
|
|
}
|
|
],
|
|
"body": {
|
|
"mode": "raw",
|
|
"raw": "{\n \"password\": \"ut minim\",\n \"username\": \"esse sit enim consectetur\"\n}",
|
|
"options": {
|
|
"raw": {
|
|
"language": "json"
|
|
}
|
|
}
|
|
},
|
|
"url": {
|
|
"raw": "{{baseUrl}}/api/user/login",
|
|
"host": [
|
|
"{{baseUrl}}"
|
|
],
|
|
"path": [
|
|
"api",
|
|
"user",
|
|
"login"
|
|
]
|
|
},
|
|
"description": "Returns jwt token if username and password match, otherwise returns error"
|
|
},
|
|
"response": [
|
|
{
|
|
"name": "Successful response",
|
|
"originalRequest": {
|
|
"method": "POST",
|
|
"header": [],
|
|
"body": {
|
|
"mode": "raw",
|
|
"raw": "{\n \"password\": \"ut minim\",\n \"username\": \"esse sit enim consectetur\"\n}",
|
|
"options": {
|
|
"raw": {
|
|
"language": "json"
|
|
}
|
|
}
|
|
},
|
|
"url": {
|
|
"raw": "{{baseUrl}}/api/user/login",
|
|
"host": [
|
|
"{{baseUrl}}"
|
|
],
|
|
"path": [
|
|
"api",
|
|
"user",
|
|
"login"
|
|
]
|
|
}
|
|
},
|
|
"status": "OK",
|
|
"code": 200,
|
|
"_postman_previewlanguage": "json",
|
|
"header": [
|
|
{
|
|
"key": "Content-Type",
|
|
"value": "application/json"
|
|
}
|
|
],
|
|
"cookie": [],
|
|
"body": "{\n \"data\": {\n \"token\": \"minim\"\n },\n \"status\": 86563099,\n \"text\": \"non tempor quis ullamco est\"\n}"
|
|
},
|
|
{
|
|
"name": "Validation error",
|
|
"originalRequest": {
|
|
"method": "POST",
|
|
"header": [],
|
|
"body": {
|
|
"mode": "raw",
|
|
"raw": "{\n \"password\": \"ut minim\",\n \"username\": \"esse sit enim consectetur\"\n}",
|
|
"options": {
|
|
"raw": {
|
|
"language": "json"
|
|
}
|
|
}
|
|
},
|
|
"url": {
|
|
"raw": "{{baseUrl}}/api/user/login",
|
|
"host": [
|
|
"{{baseUrl}}"
|
|
],
|
|
"path": [
|
|
"api",
|
|
"user",
|
|
"login"
|
|
]
|
|
}
|
|
},
|
|
"status": "Bad Request",
|
|
"code": 400,
|
|
"_postman_previewlanguage": "json",
|
|
"header": [
|
|
{
|
|
"key": "Content-Type",
|
|
"value": "application/json"
|
|
}
|
|
],
|
|
"cookie": [],
|
|
"body": "{\n \"detail\": {\n \"<location>\": {\n \"<field_name>\": [\n \"labore\",\n \"\"\n ]\n }\n },\n \"message\": \"pariatur cillum qui aute\"\n}"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"name": "Register",
|
|
"request": {
|
|
"method": "POST",
|
|
"header": [
|
|
{
|
|
"key": "Content-Type",
|
|
"value": "application/json"
|
|
},
|
|
{
|
|
"key": "Accept",
|
|
"value": "application/json"
|
|
}
|
|
],
|
|
"body": {
|
|
"mode": "raw",
|
|
"raw": "{\n \"password\": \"ut minim\",\n \"username\": \"esse sit enim consectetur\"\n}",
|
|
"options": {
|
|
"raw": {
|
|
"language": "json"
|
|
}
|
|
}
|
|
},
|
|
"url": {
|
|
"raw": "{{baseUrl}}/api/user/register",
|
|
"host": [
|
|
"{{baseUrl}}"
|
|
],
|
|
"path": [
|
|
"api",
|
|
"user",
|
|
"register"
|
|
]
|
|
},
|
|
"description": "Registers user"
|
|
},
|
|
"response": [
|
|
{
|
|
"name": "Successful response",
|
|
"originalRequest": {
|
|
"method": "POST",
|
|
"header": [],
|
|
"body": {
|
|
"mode": "raw",
|
|
"raw": "{\n \"password\": \"ut minim\",\n \"username\": \"esse sit enim consectetur\"\n}",
|
|
"options": {
|
|
"raw": {
|
|
"language": "json"
|
|
}
|
|
}
|
|
},
|
|
"url": {
|
|
"raw": "{{baseUrl}}/api/user/register",
|
|
"host": [
|
|
"{{baseUrl}}"
|
|
],
|
|
"path": [
|
|
"api",
|
|
"user",
|
|
"register"
|
|
]
|
|
}
|
|
},
|
|
"status": "OK",
|
|
"code": 200,
|
|
"_postman_previewlanguage": "json",
|
|
"header": [
|
|
{
|
|
"key": "Content-Type",
|
|
"value": "application/json"
|
|
}
|
|
],
|
|
"cookie": [],
|
|
"body": "{\n \"data\": {\n \"admin\": false,\n \"password\": \"voluptate magna esse\",\n \"telegram_name\": \"id\",\n \"user_id\": -55336867,\n \"username\": \"do exercitation\"\n },\n \"status\": -11469710,\n \"text\": \"aute\"\n}"
|
|
},
|
|
{
|
|
"name": "Validation error",
|
|
"originalRequest": {
|
|
"method": "POST",
|
|
"header": [],
|
|
"body": {
|
|
"mode": "raw",
|
|
"raw": "{\n \"password\": \"ut minim\",\n \"username\": \"esse sit enim consectetur\"\n}",
|
|
"options": {
|
|
"raw": {
|
|
"language": "json"
|
|
}
|
|
}
|
|
},
|
|
"url": {
|
|
"raw": "{{baseUrl}}/api/user/register",
|
|
"host": [
|
|
"{{baseUrl}}"
|
|
],
|
|
"path": [
|
|
"api",
|
|
"user",
|
|
"register"
|
|
]
|
|
}
|
|
},
|
|
"status": "Bad Request",
|
|
"code": 400,
|
|
"_postman_previewlanguage": "json",
|
|
"header": [
|
|
{
|
|
"key": "Content-Type",
|
|
"value": "application/json"
|
|
}
|
|
],
|
|
"cookie": [],
|
|
"body": "{\n \"detail\": {\n \"<location>\": {\n \"<field_name>\": [\n \"labore\",\n \"\"\n ]\n }\n },\n \"message\": \"pariatur cillum qui aute\"\n}"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"name": "Set user admin state",
|
|
"request": {
|
|
"auth": {
|
|
"type": "bearer",
|
|
"bearer": [
|
|
{
|
|
"key": "token",
|
|
"value": "<Bearer Token>",
|
|
"type": "string"
|
|
}
|
|
]
|
|
},
|
|
"method": "PUT",
|
|
"header": [
|
|
{
|
|
"key": "Content-Type",
|
|
"value": "application/json"
|
|
},
|
|
{
|
|
"key": "Accept",
|
|
"value": "application/json"
|
|
}
|
|
],
|
|
"body": {
|
|
"mode": "raw",
|
|
"raw": "{\n \"admin\": true,\n \"username\": \"sunt\"\n}",
|
|
"options": {
|
|
"raw": {
|
|
"language": "json"
|
|
}
|
|
}
|
|
},
|
|
"url": {
|
|
"raw": "{{baseUrl}}/api/user/setAdmin",
|
|
"host": [
|
|
"{{baseUrl}}"
|
|
],
|
|
"path": [
|
|
"api",
|
|
"user",
|
|
"setAdmin"
|
|
]
|
|
},
|
|
"description": "Set admin state of specified user"
|
|
},
|
|
"response": [
|
|
{
|
|
"name": "Successful response",
|
|
"originalRequest": {
|
|
"method": "PUT",
|
|
"header": [
|
|
{
|
|
"description": "Added as a part of security scheme: bearer",
|
|
"key": "Authorization",
|
|
"value": "Bearer <token>"
|
|
}
|
|
],
|
|
"body": {
|
|
"mode": "raw",
|
|
"raw": "{\n \"admin\": true,\n \"username\": \"sunt\"\n}",
|
|
"options": {
|
|
"raw": {
|
|
"language": "json"
|
|
}
|
|
}
|
|
},
|
|
"url": {
|
|
"raw": "{{baseUrl}}/api/user/setAdmin",
|
|
"host": [
|
|
"{{baseUrl}}"
|
|
],
|
|
"path": [
|
|
"api",
|
|
"user",
|
|
"setAdmin"
|
|
]
|
|
}
|
|
},
|
|
"status": "No Content",
|
|
"code": 204,
|
|
"_postman_previewlanguage": "text",
|
|
"header": [
|
|
{
|
|
"key": "Content-Type",
|
|
"value": "text/plain"
|
|
}
|
|
],
|
|
"cookie": [],
|
|
"body": ""
|
|
},
|
|
{
|
|
"name": "Validation error",
|
|
"originalRequest": {
|
|
"method": "PUT",
|
|
"header": [
|
|
{
|
|
"description": "Added as a part of security scheme: bearer",
|
|
"key": "Authorization",
|
|
"value": "Bearer <token>"
|
|
}
|
|
],
|
|
"body": {
|
|
"mode": "raw",
|
|
"raw": "{\n \"admin\": true,\n \"username\": \"sunt\"\n}",
|
|
"options": {
|
|
"raw": {
|
|
"language": "json"
|
|
}
|
|
}
|
|
},
|
|
"url": {
|
|
"raw": "{{baseUrl}}/api/user/setAdmin",
|
|
"host": [
|
|
"{{baseUrl}}"
|
|
],
|
|
"path": [
|
|
"api",
|
|
"user",
|
|
"setAdmin"
|
|
]
|
|
}
|
|
},
|
|
"status": "Bad Request",
|
|
"code": 400,
|
|
"_postman_previewlanguage": "json",
|
|
"header": [
|
|
{
|
|
"key": "Content-Type",
|
|
"value": "application/json"
|
|
}
|
|
],
|
|
"cookie": [],
|
|
"body": "{\n \"detail\": {\n \"<location>\": {\n \"<field_name>\": [\n \"labore\",\n \"\"\n ]\n }\n },\n \"message\": \"pariatur cillum qui aute\"\n}"
|
|
},
|
|
{
|
|
"name": "Authentication error",
|
|
"originalRequest": {
|
|
"method": "PUT",
|
|
"header": [
|
|
{
|
|
"description": "Added as a part of security scheme: bearer",
|
|
"key": "Authorization",
|
|
"value": "Bearer <token>"
|
|
}
|
|
],
|
|
"body": {
|
|
"mode": "raw",
|
|
"raw": "{\n \"admin\": true,\n \"username\": \"sunt\"\n}",
|
|
"options": {
|
|
"raw": {
|
|
"language": "json"
|
|
}
|
|
}
|
|
},
|
|
"url": {
|
|
"raw": "{{baseUrl}}/api/user/setAdmin",
|
|
"host": [
|
|
"{{baseUrl}}"
|
|
],
|
|
"path": [
|
|
"api",
|
|
"user",
|
|
"setAdmin"
|
|
]
|
|
}
|
|
},
|
|
"status": "Unauthorized",
|
|
"code": 401,
|
|
"_postman_previewlanguage": "json",
|
|
"header": [
|
|
{
|
|
"key": "Content-Type",
|
|
"value": "application/json"
|
|
}
|
|
],
|
|
"cookie": [],
|
|
"body": "{\n \"detail\": {},\n \"message\": \"eiusmod enim ipsum\"\n}"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"name": "Get all users",
|
|
"request": {
|
|
"auth": {
|
|
"type": "bearer",
|
|
"bearer": [
|
|
{
|
|
"key": "token",
|
|
"value": "<Bearer Token>",
|
|
"type": "string"
|
|
}
|
|
]
|
|
},
|
|
"method": "GET",
|
|
"header": [
|
|
{
|
|
"key": "Accept",
|
|
"value": "application/json"
|
|
}
|
|
],
|
|
"url": {
|
|
"raw": "{{baseUrl}}/api/users",
|
|
"host": [
|
|
"{{baseUrl}}"
|
|
],
|
|
"path": [
|
|
"api",
|
|
"users"
|
|
]
|
|
},
|
|
"description": "Returns all existing users as array"
|
|
},
|
|
"response": [
|
|
{
|
|
"name": "Successful response",
|
|
"originalRequest": {
|
|
"method": "GET",
|
|
"header": [
|
|
{
|
|
"description": "Added as a part of security scheme: bearer",
|
|
"key": "Authorization",
|
|
"value": "Bearer <token>"
|
|
}
|
|
],
|
|
"url": {
|
|
"raw": "{{baseUrl}}/api/users",
|
|
"host": [
|
|
"{{baseUrl}}"
|
|
],
|
|
"path": [
|
|
"api",
|
|
"users"
|
|
]
|
|
}
|
|
},
|
|
"status": "OK",
|
|
"code": 200,
|
|
"_postman_previewlanguage": "json",
|
|
"header": [
|
|
{
|
|
"key": "Content-Type",
|
|
"value": "application/json"
|
|
}
|
|
],
|
|
"cookie": [],
|
|
"body": "{\n \"data\": [\n {\n \"admin\": true,\n \"password\": \"incididunt id dolore\",\n \"telegram_name\": \"id sed\",\n \"user_id\": 15906508,\n \"username\": \"dolor consequat ullamco\"\n },\n {\n \"admin\": true,\n \"password\": \"voluptate non\",\n \"telegram_name\": \"dolor sunt fugiat exercitation\",\n \"user_id\": 95246024,\n \"username\": \"Duis qui culpa Ut labore\"\n }\n ],\n \"status\": 81180129,\n \"text\": \"in ullamco\"\n}"
|
|
},
|
|
{
|
|
"name": "Authentication error",
|
|
"originalRequest": {
|
|
"method": "GET",
|
|
"header": [
|
|
{
|
|
"description": "Added as a part of security scheme: bearer",
|
|
"key": "Authorization",
|
|
"value": "Bearer <token>"
|
|
}
|
|
],
|
|
"url": {
|
|
"raw": "{{baseUrl}}/api/users",
|
|
"host": [
|
|
"{{baseUrl}}"
|
|
],
|
|
"path": [
|
|
"api",
|
|
"users"
|
|
]
|
|
}
|
|
},
|
|
"status": "Unauthorized",
|
|
"code": 401,
|
|
"_postman_previewlanguage": "json",
|
|
"header": [
|
|
{
|
|
"key": "Content-Type",
|
|
"value": "application/json"
|
|
}
|
|
],
|
|
"cookie": [],
|
|
"body": "{\n \"detail\": {},\n \"message\": \"eiusmod enim ipsum\"\n}"
|
|
}
|
|
]
|
|
}
|
|
]
|
|
}
|
|
],
|
|
"variable": [
|
|
{
|
|
"key": "baseUrl",
|
|
"value": "https://aktienbot.flokaiser.com",
|
|
"type": "string"
|
|
}
|
|
]
|
|
} |