2022-03-14 07:06:23 +00:00
{
"info" : {
2022-03-17 21:58:17 +00:00
"_postman_id" : "b478b800-af91-45a7-8713-b199bcc41866" ,
"name" : "APIFlask" ,
"description" : "Webengineering 2 | Telegram Aktienbot" ,
2022-03-14 07:06:23 +00:00
"schema" : "https://schema.getpostman.com/json/collection/v2.1.0/collection.json"
} ,
"item" : [
{
2022-03-17 21:58:17 +00:00
"name" : "Keyword" ,
2022-03-14 16:10:00 +00:00
"item" : [
{
2022-03-17 21:58:17 +00:00
"name" : "Removes existing keyword" ,
2022-03-14 16:10:00 +00:00
"request" : {
2022-03-17 21:58:17 +00:00
"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"
}
] ,
2022-03-14 16:10:00 +00:00
"body" : {
"mode" : "raw" ,
2022-03-17 21:58:17 +00:00
"raw" : "{\n \"keyword\": \"elit Lorem\"\n}" ,
2022-03-14 16:10:00 +00:00
"options" : {
"raw" : {
"language" : "json"
}
}
} ,
"url" : {
2022-03-17 21:58:17 +00:00
"raw" : "{{baseUrl}}/api/keyword" ,
2022-03-14 16:10:00 +00:00
"host" : [
2022-03-17 21:58:17 +00:00
"{{baseUrl}}"
2022-03-14 16:10:00 +00:00
] ,
"path" : [
"api" ,
2022-03-17 21:58:17 +00:00
"keyword"
2022-03-14 16:10:00 +00:00
]
2022-03-17 21:58:17 +00:00
} ,
"description" : "Removes existing keyword for current user"
2022-03-14 16:10:00 +00:00
} ,
2022-03-17 21:58:17 +00:00
"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}"
}
]
2022-03-14 07:06:23 +00:00
} ,
2022-03-14 16:10:00 +00:00
{
2022-03-17 21:58:17 +00:00
"name" : "Add new keyword" ,
2022-03-14 16:10:00 +00:00
"request" : {
2022-03-17 21:58:17 +00:00
"auth" : {
"type" : "bearer" ,
"bearer" : [
{
"key" : "token" ,
"value" : "<Bearer Token>" ,
"type" : "string"
}
]
} ,
2022-03-14 16:10:00 +00:00
"method" : "POST" ,
2022-03-17 21:58:17 +00:00
"header" : [
{
"key" : "Content-Type" ,
"value" : "application/json"
} ,
{
"key" : "Accept" ,
"value" : "application/json"
}
] ,
2022-03-14 16:10:00 +00:00
"body" : {
"mode" : "raw" ,
2022-03-17 21:58:17 +00:00
"raw" : "{\n \"keyword\": \"elit Lorem\"\n}" ,
2022-03-14 16:10:00 +00:00
"options" : {
"raw" : {
"language" : "json"
}
}
} ,
"url" : {
2022-03-17 21:58:17 +00:00
"raw" : "{{baseUrl}}/api/keyword" ,
2022-03-14 16:10:00 +00:00
"host" : [
2022-03-17 21:58:17 +00:00
"{{baseUrl}}"
2022-03-14 16:10:00 +00:00
] ,
"path" : [
"api" ,
2022-03-17 21:58:17 +00:00
"keyword"
2022-03-14 16:10:00 +00:00
]
2022-03-17 21:58:17 +00:00
} ,
"description" : "Adds new keyword for current user"
2022-03-14 16:10:00 +00:00
} ,
2022-03-17 21:58:17 +00:00
"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}"
}
]
2022-03-14 07:06:23 +00:00
} ,
2022-03-14 16:10:00 +00:00
{
2022-03-17 21:58:17 +00:00
"name" : "Returns all keywords" ,
2022-03-14 16:10:00 +00:00
"request" : {
2022-03-17 21:58:17 +00:00
"auth" : {
"type" : "bearer" ,
"bearer" : [
{
"key" : "token" ,
"value" : "<Bearer Token>" ,
"type" : "string"
}
]
} ,
2022-03-14 16:10:00 +00:00
"method" : "GET" ,
2022-03-17 21:58:17 +00:00
"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"
}
] ,
2022-03-14 16:10:00 +00:00
"body" : {
"mode" : "raw" ,
2022-03-17 21:58:17 +00:00
"raw" : "{\n \"symbol\": \"aliquip ullamco Ut\"\n}" ,
2022-03-14 16:10:00 +00:00
"options" : {
"raw" : {
"language" : "json"
}
}
} ,
"url" : {
2022-03-17 21:58:17 +00:00
"raw" : "{{baseUrl}}/api/share" ,
2022-03-14 16:10:00 +00:00
"host" : [
2022-03-17 21:58:17 +00:00
"{{baseUrl}}"
2022-03-14 16:10:00 +00:00
] ,
"path" : [
"api" ,
2022-03-17 21:58:17 +00:00
"share"
2022-03-14 16:10:00 +00:00
]
2022-03-17 21:58:17 +00:00
} ,
"description" : "Removes existing symbol for current user"
2022-03-14 16:10:00 +00:00
} ,
2022-03-17 21:58:17 +00:00
"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}"
}
]
2022-03-14 16:10:00 +00:00
} ,
{
2022-03-17 21:58:17 +00:00
"name" : "Add new symbol" ,
2022-03-14 16:10:00 +00:00
"request" : {
2022-03-17 21:58:17 +00:00
"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"
}
] ,
2022-03-14 16:10:00 +00:00
"body" : {
"mode" : "raw" ,
2022-03-17 21:58:17 +00:00
"raw" : "{\n \"symbol\": \"aliquip ullamco Ut\"\n}" ,
2022-03-14 16:10:00 +00:00
"options" : {
"raw" : {
"language" : "json"
}
}
} ,
"url" : {
2022-03-17 21:58:17 +00:00
"raw" : "{{baseUrl}}/api/share" ,
2022-03-14 16:10:00 +00:00
"host" : [
2022-03-17 21:58:17 +00:00
"{{baseUrl}}"
2022-03-14 16:10:00 +00:00
] ,
"path" : [
"api" ,
2022-03-17 21:58:17 +00:00
"share"
2022-03-14 16:10:00 +00:00
]
2022-03-17 21:58:17 +00:00
} ,
"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}"
2022-03-14 16:10:00 +00:00
}
2022-03-17 21:58:17 +00:00
]
} ,
{
"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"
2022-03-14 16:10:00 +00:00
} ,
2022-03-17 21:58:17 +00:00
"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}"
}
]
2022-03-14 07:06:23 +00:00
}
2022-03-14 16:10:00 +00:00
]
2022-03-14 07:06:23 +00:00
} ,
{
2022-03-17 21:58:17 +00:00
"name" : "Transaction" ,
2022-03-14 16:10:00 +00:00
"item" : [
{
2022-03-17 21:58:17 +00:00
"name" : "Adds new transaction" ,
2022-03-14 16:10:00 +00:00
"request" : {
2022-03-17 21:58:17 +00:00
"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"
}
] ,
2022-03-14 16:10:00 +00:00
"body" : {
"mode" : "raw" ,
2022-03-17 21:58:17 +00:00
"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"
}
}
2022-03-14 16:10:00 +00:00
} ,
"url" : {
2022-03-17 21:58:17 +00:00
"raw" : "{{baseUrl}}/api/transaction" ,
2022-03-14 16:10:00 +00:00
"host" : [
2022-03-17 21:58:17 +00:00
"{{baseUrl}}"
2022-03-14 16:10:00 +00:00
] ,
"path" : [
"api" ,
2022-03-17 21:58:17 +00:00
"transaction"
2022-03-14 16:10:00 +00:00
]
2022-03-17 21:58:17 +00:00
} ,
"description" : "Adds new transaction for current user"
2022-03-14 16:10:00 +00:00
} ,
2022-03-17 21:58:17 +00:00
"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}"
}
]
2022-03-14 16:10:00 +00:00
} ,
{
2022-03-17 21:58:17 +00:00
"name" : "Returns all transactions" ,
2022-03-14 16:10:00 +00:00
"request" : {
2022-03-17 21:58:17 +00:00
"auth" : {
"type" : "bearer" ,
"bearer" : [
{
"key" : "token" ,
"value" : "<Bearer Token>" ,
"type" : "string"
2022-03-14 16:10:00 +00:00
}
2022-03-17 21:58:17 +00:00
]
2022-03-14 16:10:00 +00:00
} ,
2022-03-17 21:58:17 +00:00
"method" : "GET" ,
"header" : [
{
"key" : "Accept" ,
"value" : "application/json"
}
] ,
2022-03-14 16:10:00 +00:00
"url" : {
2022-03-17 21:58:17 +00:00
"raw" : "{{baseUrl}}/api/transactions" ,
2022-03-14 16:10:00 +00:00
"host" : [
2022-03-17 21:58:17 +00:00
"{{baseUrl}}"
2022-03-14 16:10:00 +00:00
] ,
"path" : [
"api" ,
2022-03-17 21:58:17 +00:00
"transactions"
2022-03-14 16:10:00 +00:00
]
2022-03-17 21:58:17 +00:00
} ,
"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}"
2022-03-14 07:06:23 +00:00
}
2022-03-17 21:58:17 +00:00
]
}
]
} ,
{
"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"
2022-03-14 16:10:00 +00:00
} ,
2022-03-17 21:58:17 +00:00
"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" : [
2022-03-14 16:10:00 +00:00
{
2022-03-17 21:58:17 +00:00
"name" : "Delete user" ,
2022-03-14 16:10:00 +00:00
"request" : {
2022-03-17 21:58:17 +00:00
"auth" : {
"type" : "bearer" ,
"bearer" : [
{
"key" : "token" ,
"value" : "<Bearer Token>" ,
"type" : "string"
}
]
} ,
2022-03-14 16:10:00 +00:00
"method" : "DELETE" ,
2022-03-17 21:58:17 +00:00
"header" : [
{
"key" : "Content-Type" ,
"value" : "application/json"
} ,
{
"key" : "Accept" ,
"value" : "application/json"
}
] ,
2022-03-14 16:10:00 +00:00
"body" : {
"mode" : "raw" ,
2022-03-17 21:58:17 +00:00
"raw" : "{\n \"username\": \"aliqua dolor do\"\n}" ,
2022-03-14 16:10:00 +00:00
"options" : {
"raw" : {
"language" : "json"
}
}
} ,
"url" : {
2022-03-17 21:58:17 +00:00
"raw" : "{{baseUrl}}/api/user" ,
2022-03-14 16:10:00 +00:00
"host" : [
2022-03-17 21:58:17 +00:00
"{{baseUrl}}"
2022-03-14 16:10:00 +00:00
] ,
"path" : [
"api" ,
2022-03-17 21:58:17 +00:00
"user"
2022-03-14 16:10:00 +00:00
]
2022-03-17 21:58:17 +00:00
} ,
"description" : "Deletes user by username"
2022-03-14 16:10:00 +00:00
} ,
2022-03-17 21:58:17 +00:00
"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}"
}
]
} ,
2022-03-14 16:10:00 +00:00
{
2022-03-17 21:58:17 +00:00
"name" : "Get current user" ,
2022-03-14 16:10:00 +00:00
"request" : {
2022-03-17 21:58:17 +00:00
"auth" : {
"type" : "bearer" ,
"bearer" : [
{
"key" : "token" ,
"value" : "<Bearer Token>" ,
"type" : "string"
}
]
} ,
2022-03-14 16:10:00 +00:00
"method" : "GET" ,
2022-03-17 21:58:17 +00:00
"header" : [
{
"key" : "Accept" ,
"value" : "application/json"
}
] ,
2022-03-14 16:10:00 +00:00
"url" : {
2022-03-17 21:58:17 +00:00
"raw" : "{{baseUrl}}/api/user" ,
2022-03-14 16:10:00 +00:00
"host" : [
2022-03-17 21:58:17 +00:00
"{{baseUrl}}"
2022-03-14 16:10:00 +00:00
] ,
"path" : [
"api" ,
2022-03-17 21:58:17 +00:00
"user"
2022-03-14 16:10:00 +00:00
]
2022-03-17 21:58:17 +00:00
} ,
"description" : "Returns current user"
2022-03-14 16:10:00 +00:00
} ,
2022-03-17 21:58:17 +00:00
"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}"
}
]
2022-03-14 16:10:00 +00:00
} ,
{
2022-03-17 21:58:17 +00:00
"name" : "Update user" ,
2022-03-14 16:10:00 +00:00
"request" : {
2022-03-17 21:58:17 +00:00
"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"
}
] ,
2022-03-14 16:10:00 +00:00
"body" : {
"mode" : "raw" ,
2022-03-17 21:58:17 +00:00
"raw" : "{\n \"password\": \"ut minim\",\n \"username\": \"esse sit enim consectetur\"\n}" ,
2022-03-14 16:10:00 +00:00
"options" : {
"raw" : {
"language" : "json"
}
}
} ,
"url" : {
2022-03-17 21:58:17 +00:00
"raw" : "{{baseUrl}}/api/user" ,
2022-03-14 16:10:00 +00:00
"host" : [
2022-03-17 21:58:17 +00:00
"{{baseUrl}}"
2022-03-14 16:10:00 +00:00
] ,
"path" : [
"api" ,
2022-03-17 21:58:17 +00:00
"user"
2022-03-14 16:10:00 +00:00
]
2022-03-17 21:58:17 +00:00
} ,
"description" : "Changes password and/or username of current user"
2022-03-14 16:10:00 +00:00
} ,
2022-03-17 21:58:17 +00:00
"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}"
}
]
2022-03-14 07:06:23 +00:00
} ,
2022-03-14 16:10:00 +00:00
{
2022-03-17 21:58:17 +00:00
"name" : "Login" ,
2022-03-14 16:10:00 +00:00
"request" : {
2022-03-17 21:58:17 +00:00
"method" : "POST" ,
"header" : [
{
"key" : "Content-Type" ,
"value" : "application/json"
} ,
{
"key" : "Accept" ,
"value" : "application/json"
}
] ,
2022-03-14 16:10:00 +00:00
"body" : {
"mode" : "raw" ,
2022-03-17 21:58:17 +00:00
"raw" : "{\n \"password\": \"ut minim\",\n \"username\": \"esse sit enim consectetur\"\n}" ,
2022-03-14 16:10:00 +00:00
"options" : {
"raw" : {
"language" : "json"
}
}
} ,
"url" : {
2022-03-17 21:58:17 +00:00
"raw" : "{{baseUrl}}/api/user/login" ,
2022-03-14 16:10:00 +00:00
"host" : [
2022-03-17 21:58:17 +00:00
"{{baseUrl}}"
2022-03-14 16:10:00 +00:00
] ,
"path" : [
"api" ,
2022-03-17 21:58:17 +00:00
"user" ,
"login"
2022-03-14 16:10:00 +00:00
]
2022-03-17 21:58:17 +00:00
} ,
"description" : "Returns jwt token if username and password match, otherwise returns error"
2022-03-14 16:10:00 +00:00
} ,
2022-03-17 21:58:17 +00:00
"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}"
}
]
} ,
2022-03-14 17:13:16 +00:00
{
2022-03-17 21:58:17 +00:00
"name" : "Register" ,
2022-03-14 17:13:16 +00:00
"request" : {
2022-03-17 21:58:17 +00:00
"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"
}
}
} ,
2022-03-14 17:13:16 +00:00
"url" : {
2022-03-17 21:58:17 +00:00
"raw" : "{{baseUrl}}/api/user/register" ,
2022-03-14 17:13:16 +00:00
"host" : [
2022-03-17 21:58:17 +00:00
"{{baseUrl}}"
2022-03-14 17:13:16 +00:00
] ,
"path" : [
"api" ,
2022-03-17 21:58:17 +00:00
"user" ,
"register"
2022-03-14 17:13:16 +00:00
]
2022-03-17 21:58:17 +00:00
} ,
"description" : "Registers user"
2022-03-14 17:13:16 +00:00
} ,
2022-03-17 21:58:17 +00:00
"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}"
}
]
2022-03-14 17:13:16 +00:00
} ,
{
2022-03-17 21:58:17 +00:00
"name" : "Set user admin state" ,
2022-03-14 17:13:16 +00:00
"request" : {
2022-03-17 21:58:17 +00:00
"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"
}
] ,
2022-03-14 17:13:16 +00:00
"body" : {
"mode" : "raw" ,
2022-03-17 21:58:17 +00:00
"raw" : "{\n \"admin\": true,\n \"username\": \"sunt\"\n}" ,
2022-03-14 17:13:16 +00:00
"options" : {
"raw" : {
"language" : "json"
}
}
} ,
"url" : {
2022-03-17 21:58:17 +00:00
"raw" : "{{baseUrl}}/api/user/setAdmin" ,
2022-03-14 17:13:16 +00:00
"host" : [
2022-03-17 21:58:17 +00:00
"{{baseUrl}}"
2022-03-14 17:13:16 +00:00
] ,
"path" : [
"api" ,
2022-03-17 21:58:17 +00:00
"user" ,
"setAdmin"
2022-03-14 17:13:16 +00:00
]
2022-03-17 21:58:17 +00:00
} ,
"description" : "Set admin state of specified user"
2022-03-14 17:13:16 +00:00
} ,
2022-03-17 21:58:17 +00:00
"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}"
}
]
} ,
2022-03-14 22:40:36 +00:00
{
2022-03-17 21:58:17 +00:00
"name" : "Get all users" ,
2022-03-14 22:40:36 +00:00
"request" : {
2022-03-17 21:58:17 +00:00
"auth" : {
"type" : "bearer" ,
"bearer" : [
{
"key" : "token" ,
"value" : "<Bearer Token>" ,
"type" : "string"
}
]
} ,
2022-03-14 22:40:36 +00:00
"method" : "GET" ,
2022-03-17 21:58:17 +00:00
"header" : [
{
"key" : "Accept" ,
"value" : "application/json"
}
] ,
2022-03-14 22:40:36 +00:00
"url" : {
2022-03-17 21:58:17 +00:00
"raw" : "{{baseUrl}}/api/users" ,
2022-03-14 22:40:36 +00:00
"host" : [
2022-03-17 21:58:17 +00:00
"{{baseUrl}}"
2022-03-14 22:40:36 +00:00
] ,
"path" : [
"api" ,
2022-03-17 21:58:17 +00:00
"users"
2022-03-14 22:40:36 +00:00
]
2022-03-17 21:58:17 +00:00
} ,
"description" : "Returns all existing users as array"
2022-03-14 22:40:36 +00:00
} ,
2022-03-17 21:58:17 +00:00
"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}"
}
]
2022-03-14 22:40:36 +00:00
}
]
2022-03-14 07:06:23 +00:00
}
] ,
"variable" : [
{
2022-03-17 21:58:17 +00:00
"key" : "baseUrl" ,
"value" : "https://aktienbot.flokaiser.com" ,
"type" : "string"
2022-03-14 07:06:23 +00:00
}
]
}