2022-12-05 19:56:44 +02:00
|
|
|
{
|
|
|
|
"openapi": "3.0.0",
|
|
|
|
"paths": {
|
2023-01-18 16:40:15 +02:00
|
|
|
"/api-key": {
|
|
|
|
"post": {
|
|
|
|
"operationId": "createKey",
|
|
|
|
"description": "",
|
|
|
|
"parameters": [],
|
|
|
|
"requestBody": {
|
|
|
|
"required": true,
|
|
|
|
"content": {
|
|
|
|
"application/json": {
|
|
|
|
"schema": {
|
|
|
|
"$ref": "#/components/schemas/APIKeyCreateDto"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"responses": {
|
|
|
|
"201": {
|
|
|
|
"description": "",
|
|
|
|
"content": {
|
|
|
|
"application/json": {
|
|
|
|
"schema": {
|
|
|
|
"$ref": "#/components/schemas/APIKeyCreateResponseDto"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"tags": [
|
|
|
|
"API Key"
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"get": {
|
|
|
|
"operationId": "getKeys",
|
|
|
|
"description": "",
|
|
|
|
"parameters": [],
|
|
|
|
"responses": {
|
|
|
|
"200": {
|
|
|
|
"description": "",
|
|
|
|
"content": {
|
|
|
|
"application/json": {
|
|
|
|
"schema": {
|
|
|
|
"type": "array",
|
|
|
|
"items": {
|
|
|
|
"$ref": "#/components/schemas/APIKeyResponseDto"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"tags": [
|
|
|
|
"API Key"
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"/api-key/{id}": {
|
|
|
|
"get": {
|
|
|
|
"operationId": "getKey",
|
|
|
|
"description": "",
|
|
|
|
"parameters": [
|
|
|
|
{
|
|
|
|
"name": "id",
|
|
|
|
"required": true,
|
|
|
|
"in": "path",
|
|
|
|
"schema": {
|
2023-02-18 22:58:55 +02:00
|
|
|
"type": "string"
|
2023-01-18 16:40:15 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"responses": {
|
|
|
|
"200": {
|
|
|
|
"description": "",
|
|
|
|
"content": {
|
|
|
|
"application/json": {
|
|
|
|
"schema": {
|
|
|
|
"$ref": "#/components/schemas/APIKeyResponseDto"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"tags": [
|
|
|
|
"API Key"
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"put": {
|
|
|
|
"operationId": "updateKey",
|
|
|
|
"description": "",
|
|
|
|
"parameters": [
|
|
|
|
{
|
|
|
|
"name": "id",
|
|
|
|
"required": true,
|
|
|
|
"in": "path",
|
|
|
|
"schema": {
|
2023-02-18 22:58:55 +02:00
|
|
|
"type": "string"
|
2023-01-18 16:40:15 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"requestBody": {
|
|
|
|
"required": true,
|
|
|
|
"content": {
|
|
|
|
"application/json": {
|
|
|
|
"schema": {
|
|
|
|
"$ref": "#/components/schemas/APIKeyUpdateDto"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"responses": {
|
|
|
|
"200": {
|
|
|
|
"description": "",
|
|
|
|
"content": {
|
|
|
|
"application/json": {
|
|
|
|
"schema": {
|
|
|
|
"$ref": "#/components/schemas/APIKeyResponseDto"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"tags": [
|
|
|
|
"API Key"
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"delete": {
|
|
|
|
"operationId": "deleteKey",
|
|
|
|
"description": "",
|
|
|
|
"parameters": [
|
|
|
|
{
|
|
|
|
"name": "id",
|
|
|
|
"required": true,
|
|
|
|
"in": "path",
|
|
|
|
"schema": {
|
2023-02-18 22:58:55 +02:00
|
|
|
"type": "string"
|
2023-01-18 16:40:15 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"responses": {
|
|
|
|
"200": {
|
|
|
|
"description": ""
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"tags": [
|
|
|
|
"API Key"
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
2023-01-24 06:13:42 +02:00
|
|
|
"/auth/login": {
|
|
|
|
"post": {
|
|
|
|
"operationId": "login",
|
2023-01-21 18:11:55 +02:00
|
|
|
"description": "",
|
|
|
|
"parameters": [],
|
2023-01-24 06:13:42 +02:00
|
|
|
"requestBody": {
|
|
|
|
"required": true,
|
|
|
|
"content": {
|
|
|
|
"application/json": {
|
|
|
|
"schema": {
|
|
|
|
"$ref": "#/components/schemas/LoginCredentialDto"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
2023-01-21 18:11:55 +02:00
|
|
|
"responses": {
|
2023-01-24 06:13:42 +02:00
|
|
|
"201": {
|
2023-01-21 18:11:55 +02:00
|
|
|
"description": "",
|
|
|
|
"content": {
|
|
|
|
"application/json": {
|
|
|
|
"schema": {
|
2023-01-24 06:13:42 +02:00
|
|
|
"$ref": "#/components/schemas/LoginResponseDto"
|
2023-01-21 18:11:55 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"tags": [
|
2023-01-24 06:13:42 +02:00
|
|
|
"Authentication"
|
2023-01-21 18:11:55 +02:00
|
|
|
]
|
2023-01-24 06:13:42 +02:00
|
|
|
}
|
|
|
|
},
|
|
|
|
"/auth/admin-sign-up": {
|
|
|
|
"post": {
|
|
|
|
"operationId": "adminSignUp",
|
2023-01-21 18:11:55 +02:00
|
|
|
"description": "",
|
|
|
|
"parameters": [],
|
|
|
|
"requestBody": {
|
|
|
|
"required": true,
|
|
|
|
"content": {
|
|
|
|
"application/json": {
|
|
|
|
"schema": {
|
2023-01-24 06:13:42 +02:00
|
|
|
"$ref": "#/components/schemas/SignUpDto"
|
2023-01-21 18:11:55 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"responses": {
|
2023-01-24 06:13:42 +02:00
|
|
|
"201": {
|
2023-01-21 18:11:55 +02:00
|
|
|
"description": "",
|
|
|
|
"content": {
|
|
|
|
"application/json": {
|
|
|
|
"schema": {
|
2023-01-24 06:13:42 +02:00
|
|
|
"$ref": "#/components/schemas/AdminSignupResponseDto"
|
2023-01-21 18:11:55 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2023-01-24 06:13:42 +02:00
|
|
|
},
|
|
|
|
"400": {
|
|
|
|
"description": "The server already has an admin"
|
2023-01-21 18:11:55 +02:00
|
|
|
}
|
|
|
|
},
|
|
|
|
"tags": [
|
2023-01-24 06:13:42 +02:00
|
|
|
"Authentication"
|
2023-01-21 18:11:55 +02:00
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
2023-01-24 06:13:42 +02:00
|
|
|
"/auth/validateToken": {
|
|
|
|
"post": {
|
|
|
|
"operationId": "validateAccessToken",
|
2023-01-21 18:11:55 +02:00
|
|
|
"description": "",
|
|
|
|
"parameters": [],
|
|
|
|
"responses": {
|
2023-01-24 06:13:42 +02:00
|
|
|
"201": {
|
2023-01-21 18:11:55 +02:00
|
|
|
"description": "",
|
|
|
|
"content": {
|
|
|
|
"application/json": {
|
|
|
|
"schema": {
|
2023-01-24 06:13:42 +02:00
|
|
|
"$ref": "#/components/schemas/ValidateAccessTokenResponseDto"
|
2023-01-21 18:11:55 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"tags": [
|
2023-01-24 06:13:42 +02:00
|
|
|
"Authentication"
|
2023-01-21 18:11:55 +02:00
|
|
|
],
|
|
|
|
"security": [
|
|
|
|
{
|
|
|
|
"bearer": []
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
2023-01-24 06:13:42 +02:00
|
|
|
"/auth/change-password": {
|
|
|
|
"post": {
|
|
|
|
"operationId": "changePassword",
|
2023-01-21 18:11:55 +02:00
|
|
|
"description": "",
|
|
|
|
"parameters": [],
|
2023-01-24 06:13:42 +02:00
|
|
|
"requestBody": {
|
|
|
|
"required": true,
|
|
|
|
"content": {
|
|
|
|
"application/json": {
|
|
|
|
"schema": {
|
|
|
|
"$ref": "#/components/schemas/ChangePasswordDto"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
2023-01-21 18:11:55 +02:00
|
|
|
"responses": {
|
2023-01-24 06:13:42 +02:00
|
|
|
"201": {
|
2023-01-21 18:11:55 +02:00
|
|
|
"description": "",
|
|
|
|
"content": {
|
|
|
|
"application/json": {
|
|
|
|
"schema": {
|
2023-01-24 06:13:42 +02:00
|
|
|
"$ref": "#/components/schemas/UserResponseDto"
|
2023-01-21 18:11:55 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"tags": [
|
2023-01-24 06:13:42 +02:00
|
|
|
"Authentication"
|
2023-01-21 18:11:55 +02:00
|
|
|
],
|
|
|
|
"security": [
|
|
|
|
{
|
|
|
|
"bearer": []
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
2023-01-24 06:13:42 +02:00
|
|
|
"/auth/logout": {
|
|
|
|
"post": {
|
|
|
|
"operationId": "logout",
|
2023-01-13 00:07:27 +02:00
|
|
|
"description": "",
|
2023-01-24 06:13:42 +02:00
|
|
|
"parameters": [],
|
|
|
|
"responses": {
|
|
|
|
"201": {
|
|
|
|
"description": "",
|
|
|
|
"content": {
|
|
|
|
"application/json": {
|
|
|
|
"schema": {
|
|
|
|
"$ref": "#/components/schemas/LogoutResponseDto"
|
|
|
|
}
|
|
|
|
}
|
2022-12-05 19:56:44 +02:00
|
|
|
}
|
|
|
|
}
|
2023-01-24 06:13:42 +02:00
|
|
|
},
|
|
|
|
"tags": [
|
|
|
|
"Authentication"
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
2023-02-01 22:55:06 +02:00
|
|
|
"/device-info": {
|
|
|
|
"put": {
|
|
|
|
"operationId": "upsertDeviceInfo",
|
|
|
|
"description": "",
|
|
|
|
"parameters": [],
|
|
|
|
"requestBody": {
|
|
|
|
"required": true,
|
|
|
|
"content": {
|
|
|
|
"application/json": {
|
|
|
|
"schema": {
|
|
|
|
"$ref": "#/components/schemas/UpsertDeviceInfoDto"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"responses": {
|
|
|
|
"200": {
|
|
|
|
"description": "",
|
|
|
|
"content": {
|
|
|
|
"application/json": {
|
|
|
|
"schema": {
|
|
|
|
"$ref": "#/components/schemas/DeviceInfoResponseDto"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"tags": [
|
|
|
|
"Device Info"
|
|
|
|
],
|
|
|
|
"security": [
|
|
|
|
{
|
|
|
|
"bearer": []
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
2023-01-24 06:13:42 +02:00
|
|
|
"/oauth/mobile-redirect": {
|
|
|
|
"get": {
|
|
|
|
"operationId": "mobileRedirect",
|
|
|
|
"description": "",
|
|
|
|
"parameters": [],
|
2022-12-05 19:56:44 +02:00
|
|
|
"responses": {
|
|
|
|
"200": {
|
2023-01-24 06:13:42 +02:00
|
|
|
"description": ""
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"tags": [
|
|
|
|
"OAuth"
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"/oauth/config": {
|
|
|
|
"post": {
|
|
|
|
"operationId": "generateConfig",
|
|
|
|
"description": "",
|
|
|
|
"parameters": [],
|
|
|
|
"requestBody": {
|
|
|
|
"required": true,
|
|
|
|
"content": {
|
|
|
|
"application/json": {
|
|
|
|
"schema": {
|
|
|
|
"$ref": "#/components/schemas/OAuthConfigDto"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"responses": {
|
|
|
|
"201": {
|
2022-12-05 19:56:44 +02:00
|
|
|
"description": "",
|
|
|
|
"content": {
|
|
|
|
"application/json": {
|
|
|
|
"schema": {
|
2023-01-24 06:13:42 +02:00
|
|
|
"$ref": "#/components/schemas/OAuthConfigResponseDto"
|
2022-12-05 19:56:44 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"tags": [
|
2023-01-24 06:13:42 +02:00
|
|
|
"OAuth"
|
2022-12-05 19:56:44 +02:00
|
|
|
]
|
2023-01-24 06:13:42 +02:00
|
|
|
}
|
|
|
|
},
|
|
|
|
"/oauth/callback": {
|
2022-12-05 19:56:44 +02:00
|
|
|
"post": {
|
2023-01-24 06:13:42 +02:00
|
|
|
"operationId": "callback",
|
2023-01-13 00:07:27 +02:00
|
|
|
"description": "",
|
2022-12-05 19:56:44 +02:00
|
|
|
"parameters": [],
|
|
|
|
"requestBody": {
|
|
|
|
"required": true,
|
|
|
|
"content": {
|
|
|
|
"application/json": {
|
|
|
|
"schema": {
|
2023-01-24 06:13:42 +02:00
|
|
|
"$ref": "#/components/schemas/OAuthCallbackDto"
|
2022-12-05 19:56:44 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"responses": {
|
|
|
|
"201": {
|
|
|
|
"description": "",
|
|
|
|
"content": {
|
|
|
|
"application/json": {
|
|
|
|
"schema": {
|
2023-01-24 06:13:42 +02:00
|
|
|
"$ref": "#/components/schemas/LoginResponseDto"
|
2022-12-05 19:56:44 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"tags": [
|
2023-01-24 06:13:42 +02:00
|
|
|
"OAuth"
|
2022-12-05 19:56:44 +02:00
|
|
|
]
|
2023-01-24 06:13:42 +02:00
|
|
|
}
|
|
|
|
},
|
|
|
|
"/oauth/link": {
|
|
|
|
"post": {
|
|
|
|
"operationId": "link",
|
2023-01-13 00:07:27 +02:00
|
|
|
"description": "",
|
2022-12-05 19:56:44 +02:00
|
|
|
"parameters": [],
|
|
|
|
"requestBody": {
|
|
|
|
"required": true,
|
|
|
|
"content": {
|
|
|
|
"application/json": {
|
|
|
|
"schema": {
|
2023-01-24 06:13:42 +02:00
|
|
|
"$ref": "#/components/schemas/OAuthCallbackDto"
|
2022-12-05 19:56:44 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"responses": {
|
2023-01-24 06:13:42 +02:00
|
|
|
"201": {
|
2022-12-05 19:56:44 +02:00
|
|
|
"description": "",
|
|
|
|
"content": {
|
|
|
|
"application/json": {
|
|
|
|
"schema": {
|
|
|
|
"$ref": "#/components/schemas/UserResponseDto"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"tags": [
|
2023-01-24 06:13:42 +02:00
|
|
|
"OAuth"
|
2022-12-05 19:56:44 +02:00
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
2023-01-24 06:13:42 +02:00
|
|
|
"/oauth/unlink": {
|
|
|
|
"post": {
|
|
|
|
"operationId": "unlink",
|
2023-01-13 00:07:27 +02:00
|
|
|
"description": "",
|
2023-01-24 06:13:42 +02:00
|
|
|
"parameters": [],
|
2022-12-05 19:56:44 +02:00
|
|
|
"responses": {
|
2023-01-24 06:13:42 +02:00
|
|
|
"201": {
|
2022-12-05 19:56:44 +02:00
|
|
|
"description": "",
|
|
|
|
"content": {
|
|
|
|
"application/json": {
|
|
|
|
"schema": {
|
|
|
|
"$ref": "#/components/schemas/UserResponseDto"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"tags": [
|
2023-01-24 06:13:42 +02:00
|
|
|
"OAuth"
|
2022-12-05 19:56:44 +02:00
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
2023-01-25 18:35:28 +02:00
|
|
|
"/share": {
|
|
|
|
"get": {
|
|
|
|
"operationId": "getAllSharedLinks",
|
|
|
|
"description": "",
|
|
|
|
"parameters": [],
|
|
|
|
"responses": {
|
|
|
|
"200": {
|
|
|
|
"description": "",
|
|
|
|
"content": {
|
|
|
|
"application/json": {
|
|
|
|
"schema": {
|
|
|
|
"type": "array",
|
|
|
|
"items": {
|
|
|
|
"$ref": "#/components/schemas/SharedLinkResponseDto"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"tags": [
|
|
|
|
"share"
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"/share/me": {
|
|
|
|
"get": {
|
|
|
|
"operationId": "getMySharedLink",
|
|
|
|
"description": "",
|
|
|
|
"parameters": [],
|
|
|
|
"responses": {
|
|
|
|
"200": {
|
|
|
|
"description": "",
|
|
|
|
"content": {
|
|
|
|
"application/json": {
|
|
|
|
"schema": {
|
|
|
|
"$ref": "#/components/schemas/SharedLinkResponseDto"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"tags": [
|
|
|
|
"share"
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"/share/{id}": {
|
|
|
|
"get": {
|
|
|
|
"operationId": "getSharedLinkById",
|
|
|
|
"description": "",
|
|
|
|
"parameters": [
|
|
|
|
{
|
|
|
|
"name": "id",
|
|
|
|
"required": true,
|
|
|
|
"in": "path",
|
|
|
|
"schema": {
|
|
|
|
"type": "string"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"responses": {
|
|
|
|
"200": {
|
|
|
|
"description": "",
|
|
|
|
"content": {
|
|
|
|
"application/json": {
|
|
|
|
"schema": {
|
|
|
|
"$ref": "#/components/schemas/SharedLinkResponseDto"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"tags": [
|
|
|
|
"share"
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"delete": {
|
|
|
|
"operationId": "removeSharedLink",
|
|
|
|
"description": "",
|
|
|
|
"parameters": [
|
|
|
|
{
|
|
|
|
"name": "id",
|
|
|
|
"required": true,
|
|
|
|
"in": "path",
|
|
|
|
"schema": {
|
|
|
|
"type": "string"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"responses": {
|
|
|
|
"200": {
|
|
|
|
"description": ""
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"tags": [
|
|
|
|
"share"
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"patch": {
|
|
|
|
"operationId": "editSharedLink",
|
|
|
|
"description": "",
|
|
|
|
"parameters": [
|
|
|
|
{
|
|
|
|
"name": "id",
|
|
|
|
"required": true,
|
|
|
|
"in": "path",
|
|
|
|
"schema": {
|
|
|
|
"type": "string"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"requestBody": {
|
|
|
|
"required": true,
|
|
|
|
"content": {
|
|
|
|
"application/json": {
|
|
|
|
"schema": {
|
|
|
|
"$ref": "#/components/schemas/EditSharedLinkDto"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"responses": {
|
|
|
|
"200": {
|
|
|
|
"description": "",
|
|
|
|
"content": {
|
|
|
|
"application/json": {
|
|
|
|
"schema": {
|
|
|
|
"$ref": "#/components/schemas/SharedLinkResponseDto"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"tags": [
|
|
|
|
"share"
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
2023-01-24 06:13:42 +02:00
|
|
|
"/system-config": {
|
2022-12-05 19:56:44 +02:00
|
|
|
"get": {
|
2023-01-24 06:13:42 +02:00
|
|
|
"operationId": "getConfig",
|
2023-01-13 00:07:27 +02:00
|
|
|
"description": "",
|
2022-12-05 19:56:44 +02:00
|
|
|
"parameters": [],
|
|
|
|
"responses": {
|
|
|
|
"200": {
|
|
|
|
"description": "",
|
|
|
|
"content": {
|
|
|
|
"application/json": {
|
|
|
|
"schema": {
|
2023-01-24 06:13:42 +02:00
|
|
|
"$ref": "#/components/schemas/SystemConfigDto"
|
2022-12-05 19:56:44 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"tags": [
|
2023-01-24 06:13:42 +02:00
|
|
|
"System Config"
|
2022-12-05 19:56:44 +02:00
|
|
|
],
|
|
|
|
"security": [
|
|
|
|
{
|
|
|
|
"bearer": []
|
|
|
|
}
|
|
|
|
]
|
2023-01-24 06:13:42 +02:00
|
|
|
},
|
|
|
|
"put": {
|
|
|
|
"operationId": "updateConfig",
|
2023-01-13 00:07:27 +02:00
|
|
|
"description": "",
|
2023-01-24 06:13:42 +02:00
|
|
|
"parameters": [],
|
|
|
|
"requestBody": {
|
|
|
|
"required": true,
|
|
|
|
"content": {
|
|
|
|
"application/json": {
|
|
|
|
"schema": {
|
|
|
|
"$ref": "#/components/schemas/SystemConfigDto"
|
|
|
|
}
|
2022-12-09 22:53:11 +02:00
|
|
|
}
|
|
|
|
}
|
2023-01-24 06:13:42 +02:00
|
|
|
},
|
2022-12-05 19:56:44 +02:00
|
|
|
"responses": {
|
|
|
|
"200": {
|
|
|
|
"description": "",
|
|
|
|
"content": {
|
|
|
|
"application/json": {
|
|
|
|
"schema": {
|
2023-01-24 06:13:42 +02:00
|
|
|
"$ref": "#/components/schemas/SystemConfigDto"
|
2022-12-05 19:56:44 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"tags": [
|
2023-01-24 06:13:42 +02:00
|
|
|
"System Config"
|
|
|
|
],
|
|
|
|
"security": [
|
2022-12-05 19:56:44 +02:00
|
|
|
{
|
2023-01-24 06:13:42 +02:00
|
|
|
"bearer": []
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"/system-config/defaults": {
|
|
|
|
"get": {
|
|
|
|
"operationId": "getDefaults",
|
|
|
|
"description": "",
|
|
|
|
"parameters": [],
|
|
|
|
"responses": {
|
|
|
|
"200": {
|
|
|
|
"description": "",
|
|
|
|
"content": {
|
|
|
|
"application/json": {
|
|
|
|
"schema": {
|
|
|
|
"$ref": "#/components/schemas/SystemConfigDto"
|
|
|
|
}
|
|
|
|
}
|
2022-12-05 19:56:44 +02:00
|
|
|
}
|
|
|
|
}
|
2023-01-24 06:13:42 +02:00
|
|
|
},
|
|
|
|
"tags": [
|
|
|
|
"System Config"
|
2022-12-05 19:56:44 +02:00
|
|
|
],
|
2023-01-24 06:13:42 +02:00
|
|
|
"security": [
|
|
|
|
{
|
|
|
|
"bearer": []
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"/system-config/storage-template-options": {
|
|
|
|
"get": {
|
|
|
|
"operationId": "getStorageTemplateOptions",
|
|
|
|
"description": "",
|
|
|
|
"parameters": [],
|
2022-12-05 19:56:44 +02:00
|
|
|
"responses": {
|
|
|
|
"200": {
|
|
|
|
"description": "",
|
|
|
|
"content": {
|
|
|
|
"application/json": {
|
|
|
|
"schema": {
|
2023-01-24 06:13:42 +02:00
|
|
|
"$ref": "#/components/schemas/SystemConfigTemplateStorageOptionDto"
|
2022-12-05 19:56:44 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"tags": [
|
2023-01-24 06:13:42 +02:00
|
|
|
"System Config"
|
2022-12-05 19:56:44 +02:00
|
|
|
],
|
|
|
|
"security": [
|
|
|
|
{
|
|
|
|
"bearer": []
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
2023-01-24 06:13:42 +02:00
|
|
|
"/user": {
|
|
|
|
"get": {
|
|
|
|
"operationId": "getAllUsers",
|
2023-01-13 00:07:27 +02:00
|
|
|
"description": "",
|
2022-12-05 19:56:44 +02:00
|
|
|
"parameters": [
|
|
|
|
{
|
2023-01-24 06:13:42 +02:00
|
|
|
"name": "isAll",
|
2022-12-05 19:56:44 +02:00
|
|
|
"required": true,
|
2023-01-24 06:13:42 +02:00
|
|
|
"in": "query",
|
2022-12-05 19:56:44 +02:00
|
|
|
"schema": {
|
2023-01-24 06:13:42 +02:00
|
|
|
"type": "boolean"
|
2022-12-05 19:56:44 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"responses": {
|
2023-01-24 06:13:42 +02:00
|
|
|
"200": {
|
2022-12-05 19:56:44 +02:00
|
|
|
"description": "",
|
|
|
|
"content": {
|
|
|
|
"application/json": {
|
|
|
|
"schema": {
|
2023-01-24 06:13:42 +02:00
|
|
|
"type": "array",
|
|
|
|
"items": {
|
|
|
|
"$ref": "#/components/schemas/UserResponseDto"
|
|
|
|
}
|
2022-12-05 19:56:44 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"tags": [
|
|
|
|
"User"
|
|
|
|
],
|
|
|
|
"security": [
|
|
|
|
{
|
|
|
|
"bearer": []
|
|
|
|
}
|
|
|
|
]
|
2023-01-24 06:13:42 +02:00
|
|
|
},
|
2022-12-05 19:56:44 +02:00
|
|
|
"post": {
|
2023-01-24 06:13:42 +02:00
|
|
|
"operationId": "createUser",
|
2023-01-13 00:07:27 +02:00
|
|
|
"description": "",
|
2022-12-05 19:56:44 +02:00
|
|
|
"parameters": [],
|
|
|
|
"requestBody": {
|
|
|
|
"required": true,
|
|
|
|
"content": {
|
2023-01-24 06:13:42 +02:00
|
|
|
"application/json": {
|
2022-12-05 19:56:44 +02:00
|
|
|
"schema": {
|
2023-01-24 06:13:42 +02:00
|
|
|
"$ref": "#/components/schemas/CreateUserDto"
|
2022-12-05 19:56:44 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"responses": {
|
|
|
|
"201": {
|
|
|
|
"description": "",
|
|
|
|
"content": {
|
|
|
|
"application/json": {
|
|
|
|
"schema": {
|
2023-01-24 06:13:42 +02:00
|
|
|
"$ref": "#/components/schemas/UserResponseDto"
|
2022-12-05 19:56:44 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"tags": [
|
|
|
|
"User"
|
|
|
|
],
|
|
|
|
"security": [
|
|
|
|
{
|
|
|
|
"bearer": []
|
|
|
|
}
|
|
|
|
]
|
2023-01-24 06:13:42 +02:00
|
|
|
},
|
|
|
|
"put": {
|
|
|
|
"operationId": "updateUser",
|
2023-01-13 00:07:27 +02:00
|
|
|
"description": "",
|
2022-12-05 19:56:44 +02:00
|
|
|
"parameters": [],
|
|
|
|
"requestBody": {
|
|
|
|
"required": true,
|
|
|
|
"content": {
|
2023-01-24 06:13:42 +02:00
|
|
|
"application/json": {
|
2022-12-05 19:56:44 +02:00
|
|
|
"schema": {
|
2023-01-24 06:13:42 +02:00
|
|
|
"$ref": "#/components/schemas/UpdateUserDto"
|
2022-12-05 19:56:44 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"responses": {
|
2023-01-24 06:13:42 +02:00
|
|
|
"200": {
|
2022-12-05 19:56:44 +02:00
|
|
|
"description": "",
|
|
|
|
"content": {
|
|
|
|
"application/json": {
|
|
|
|
"schema": {
|
2023-01-24 06:13:42 +02:00
|
|
|
"$ref": "#/components/schemas/UserResponseDto"
|
2022-12-05 19:56:44 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"tags": [
|
2023-01-24 06:13:42 +02:00
|
|
|
"User"
|
2022-12-05 19:56:44 +02:00
|
|
|
],
|
|
|
|
"security": [
|
|
|
|
{
|
|
|
|
"bearer": []
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
2023-01-24 06:13:42 +02:00
|
|
|
"/user/info/{userId}": {
|
2022-12-05 19:56:44 +02:00
|
|
|
"get": {
|
2023-01-24 06:13:42 +02:00
|
|
|
"operationId": "getUserById",
|
2023-01-13 00:07:27 +02:00
|
|
|
"description": "",
|
2022-12-05 19:56:44 +02:00
|
|
|
"parameters": [
|
|
|
|
{
|
2023-01-24 06:13:42 +02:00
|
|
|
"name": "userId",
|
2022-12-05 19:56:44 +02:00
|
|
|
"required": true,
|
|
|
|
"in": "path",
|
|
|
|
"schema": {
|
|
|
|
"type": "string"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"responses": {
|
|
|
|
"200": {
|
|
|
|
"description": "",
|
|
|
|
"content": {
|
|
|
|
"application/json": {
|
|
|
|
"schema": {
|
2023-01-24 06:13:42 +02:00
|
|
|
"$ref": "#/components/schemas/UserResponseDto"
|
2022-12-05 19:56:44 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"tags": [
|
2023-01-24 06:13:42 +02:00
|
|
|
"User"
|
2022-12-05 19:56:44 +02:00
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
2023-01-24 06:13:42 +02:00
|
|
|
"/user/me": {
|
|
|
|
"get": {
|
|
|
|
"operationId": "getMyUserInfo",
|
2023-01-13 00:07:27 +02:00
|
|
|
"description": "",
|
2023-01-09 22:16:08 +02:00
|
|
|
"parameters": [],
|
|
|
|
"responses": {
|
2023-01-24 06:13:42 +02:00
|
|
|
"200": {
|
2023-01-09 22:16:08 +02:00
|
|
|
"description": "",
|
|
|
|
"content": {
|
|
|
|
"application/json": {
|
|
|
|
"schema": {
|
2023-01-24 06:13:42 +02:00
|
|
|
"$ref": "#/components/schemas/UserResponseDto"
|
2023-01-09 22:16:08 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"tags": [
|
2023-01-24 06:13:42 +02:00
|
|
|
"User"
|
2023-01-09 22:16:08 +02:00
|
|
|
],
|
|
|
|
"security": [
|
|
|
|
{
|
|
|
|
"bearer": []
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
2023-01-24 06:13:42 +02:00
|
|
|
"/user/count": {
|
2022-12-05 19:56:44 +02:00
|
|
|
"get": {
|
2023-01-24 06:13:42 +02:00
|
|
|
"operationId": "getUserCount",
|
|
|
|
"description": "",
|
2022-12-05 19:56:44 +02:00
|
|
|
"parameters": [
|
|
|
|
{
|
2023-01-24 06:13:42 +02:00
|
|
|
"name": "admin",
|
2022-12-05 19:56:44 +02:00
|
|
|
"required": false,
|
|
|
|
"in": "query",
|
|
|
|
"schema": {
|
2023-01-24 06:13:42 +02:00
|
|
|
"default": false,
|
|
|
|
"type": "boolean"
|
2022-12-05 19:56:44 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"responses": {
|
|
|
|
"200": {
|
|
|
|
"description": "",
|
|
|
|
"content": {
|
|
|
|
"application/json": {
|
|
|
|
"schema": {
|
2023-01-24 06:13:42 +02:00
|
|
|
"$ref": "#/components/schemas/UserCountResponseDto"
|
2022-12-05 19:56:44 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"tags": [
|
2023-01-24 06:13:42 +02:00
|
|
|
"User"
|
2022-12-05 19:56:44 +02:00
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
2023-01-24 06:13:42 +02:00
|
|
|
"/user/{userId}": {
|
|
|
|
"delete": {
|
|
|
|
"operationId": "deleteUser",
|
2023-01-13 00:07:27 +02:00
|
|
|
"description": "",
|
2022-12-05 19:56:44 +02:00
|
|
|
"parameters": [
|
|
|
|
{
|
2023-01-24 06:13:42 +02:00
|
|
|
"name": "userId",
|
2022-12-05 19:56:44 +02:00
|
|
|
"required": true,
|
|
|
|
"in": "path",
|
|
|
|
"schema": {
|
|
|
|
"type": "string"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"responses": {
|
|
|
|
"200": {
|
|
|
|
"description": "",
|
|
|
|
"content": {
|
|
|
|
"application/json": {
|
|
|
|
"schema": {
|
2023-01-24 06:13:42 +02:00
|
|
|
"$ref": "#/components/schemas/UserResponseDto"
|
2022-12-05 19:56:44 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"tags": [
|
2023-01-24 06:13:42 +02:00
|
|
|
"User"
|
2022-12-05 19:56:44 +02:00
|
|
|
],
|
|
|
|
"security": [
|
|
|
|
{
|
|
|
|
"bearer": []
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
2023-01-24 06:13:42 +02:00
|
|
|
"/user/{userId}/restore": {
|
|
|
|
"post": {
|
|
|
|
"operationId": "restoreUser",
|
2023-01-13 00:07:27 +02:00
|
|
|
"description": "",
|
2022-12-05 19:56:44 +02:00
|
|
|
"parameters": [
|
|
|
|
{
|
2023-01-24 06:13:42 +02:00
|
|
|
"name": "userId",
|
2022-12-05 19:56:44 +02:00
|
|
|
"required": true,
|
|
|
|
"in": "path",
|
|
|
|
"schema": {
|
|
|
|
"type": "string"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"responses": {
|
2023-01-24 06:13:42 +02:00
|
|
|
"201": {
|
2022-12-05 19:56:44 +02:00
|
|
|
"description": "",
|
|
|
|
"content": {
|
|
|
|
"application/json": {
|
|
|
|
"schema": {
|
2023-01-24 06:13:42 +02:00
|
|
|
"$ref": "#/components/schemas/UserResponseDto"
|
2022-12-05 19:56:44 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"tags": [
|
2023-01-24 06:13:42 +02:00
|
|
|
"User"
|
2022-12-05 19:56:44 +02:00
|
|
|
],
|
|
|
|
"security": [
|
|
|
|
{
|
|
|
|
"bearer": []
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
2023-01-24 06:13:42 +02:00
|
|
|
"/user/profile-image": {
|
|
|
|
"post": {
|
|
|
|
"operationId": "createProfileImage",
|
2023-01-13 00:07:27 +02:00
|
|
|
"description": "",
|
2022-12-05 19:56:44 +02:00
|
|
|
"parameters": [],
|
2023-01-24 06:13:42 +02:00
|
|
|
"requestBody": {
|
|
|
|
"required": true,
|
|
|
|
"description": "A new avatar for the user",
|
|
|
|
"content": {
|
|
|
|
"multipart/form-data": {
|
|
|
|
"schema": {
|
|
|
|
"$ref": "#/components/schemas/CreateProfileImageDto"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
2022-12-05 19:56:44 +02:00
|
|
|
"responses": {
|
2023-01-24 06:13:42 +02:00
|
|
|
"201": {
|
2022-12-05 19:56:44 +02:00
|
|
|
"description": "",
|
|
|
|
"content": {
|
|
|
|
"application/json": {
|
|
|
|
"schema": {
|
2023-01-24 06:13:42 +02:00
|
|
|
"$ref": "#/components/schemas/CreateProfileImageResponseDto"
|
2022-12-05 19:56:44 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"tags": [
|
2023-01-24 06:13:42 +02:00
|
|
|
"User"
|
2022-12-05 19:56:44 +02:00
|
|
|
],
|
|
|
|
"security": [
|
|
|
|
{
|
|
|
|
"bearer": []
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
2023-01-24 06:13:42 +02:00
|
|
|
"/user/profile-image/{userId}": {
|
2022-12-05 19:56:44 +02:00
|
|
|
"get": {
|
2023-01-24 06:13:42 +02:00
|
|
|
"operationId": "getProfileImage",
|
2023-01-13 00:07:27 +02:00
|
|
|
"description": "",
|
2023-01-24 06:13:42 +02:00
|
|
|
"parameters": [
|
|
|
|
{
|
|
|
|
"name": "userId",
|
|
|
|
"required": true,
|
|
|
|
"in": "path",
|
|
|
|
"schema": {
|
|
|
|
"type": "string"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
],
|
2022-12-05 19:56:44 +02:00
|
|
|
"responses": {
|
|
|
|
"200": {
|
|
|
|
"description": "",
|
|
|
|
"content": {
|
|
|
|
"application/json": {
|
|
|
|
"schema": {
|
2023-01-24 06:13:42 +02:00
|
|
|
"type": "object"
|
2022-12-05 19:56:44 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"tags": [
|
2023-01-24 06:13:42 +02:00
|
|
|
"User"
|
2022-12-05 19:56:44 +02:00
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
2023-01-24 06:13:42 +02:00
|
|
|
"/asset/upload": {
|
|
|
|
"post": {
|
|
|
|
"operationId": "uploadFile",
|
2023-01-13 00:07:27 +02:00
|
|
|
"description": "",
|
2022-12-05 19:56:44 +02:00
|
|
|
"parameters": [],
|
2023-01-24 06:13:42 +02:00
|
|
|
"requestBody": {
|
|
|
|
"required": true,
|
|
|
|
"description": "Asset Upload Information",
|
|
|
|
"content": {
|
|
|
|
"multipart/form-data": {
|
|
|
|
"schema": {
|
2023-02-12 07:54:07 +02:00
|
|
|
"$ref": "#/components/schemas/CreateAssetDto"
|
2023-01-24 06:13:42 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
2022-12-05 19:56:44 +02:00
|
|
|
"responses": {
|
2023-01-24 06:13:42 +02:00
|
|
|
"201": {
|
2022-12-05 19:56:44 +02:00
|
|
|
"description": "",
|
|
|
|
"content": {
|
|
|
|
"application/json": {
|
|
|
|
"schema": {
|
2023-01-24 06:13:42 +02:00
|
|
|
"$ref": "#/components/schemas/AssetFileUploadResponseDto"
|
2022-12-05 19:56:44 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"tags": [
|
|
|
|
"Asset"
|
|
|
|
],
|
|
|
|
"security": [
|
|
|
|
{
|
|
|
|
"bearer": []
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
2023-01-24 06:13:42 +02:00
|
|
|
"/asset/download/{assetId}": {
|
|
|
|
"get": {
|
|
|
|
"operationId": "downloadFile",
|
2023-01-13 00:07:27 +02:00
|
|
|
"description": "",
|
2023-01-24 06:13:42 +02:00
|
|
|
"parameters": [
|
|
|
|
{
|
|
|
|
"name": "assetId",
|
|
|
|
"required": true,
|
|
|
|
"in": "path",
|
|
|
|
"schema": {
|
|
|
|
"type": "string"
|
2022-12-05 19:56:44 +02:00
|
|
|
}
|
|
|
|
}
|
2023-01-24 06:13:42 +02:00
|
|
|
],
|
2022-12-05 19:56:44 +02:00
|
|
|
"responses": {
|
2023-01-24 06:13:42 +02:00
|
|
|
"200": {
|
2022-12-05 19:56:44 +02:00
|
|
|
"description": "",
|
|
|
|
"content": {
|
|
|
|
"application/json": {
|
|
|
|
"schema": {
|
2023-01-24 06:13:42 +02:00
|
|
|
"type": "object"
|
2022-12-05 19:56:44 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"tags": [
|
|
|
|
"Asset"
|
|
|
|
],
|
|
|
|
"security": [
|
|
|
|
{
|
|
|
|
"bearer": []
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
2023-01-24 06:13:42 +02:00
|
|
|
"/asset/download-files": {
|
2022-12-05 19:56:44 +02:00
|
|
|
"post": {
|
2023-01-24 06:13:42 +02:00
|
|
|
"operationId": "downloadFiles",
|
2023-01-13 00:07:27 +02:00
|
|
|
"description": "",
|
2022-12-05 19:56:44 +02:00
|
|
|
"parameters": [],
|
|
|
|
"requestBody": {
|
|
|
|
"required": true,
|
|
|
|
"content": {
|
|
|
|
"application/json": {
|
|
|
|
"schema": {
|
2023-01-24 06:13:42 +02:00
|
|
|
"$ref": "#/components/schemas/DownloadFilesDto"
|
2022-12-05 19:56:44 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"responses": {
|
|
|
|
"201": {
|
|
|
|
"description": "",
|
|
|
|
"content": {
|
|
|
|
"application/json": {
|
|
|
|
"schema": {
|
2023-01-24 06:13:42 +02:00
|
|
|
"type": "object"
|
2022-12-05 19:56:44 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"tags": [
|
|
|
|
"Asset"
|
|
|
|
],
|
|
|
|
"security": [
|
|
|
|
{
|
|
|
|
"bearer": []
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
2023-01-24 06:13:42 +02:00
|
|
|
"/asset/download-library": {
|
2022-12-05 19:56:44 +02:00
|
|
|
"get": {
|
2023-01-24 06:13:42 +02:00
|
|
|
"operationId": "downloadLibrary",
|
|
|
|
"description": "Current this is not used in any UI element",
|
|
|
|
"parameters": [
|
|
|
|
{
|
|
|
|
"name": "skip",
|
|
|
|
"required": false,
|
|
|
|
"in": "query",
|
|
|
|
"schema": {
|
|
|
|
"type": "number"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
],
|
2022-12-05 19:56:44 +02:00
|
|
|
"responses": {
|
|
|
|
"200": {
|
|
|
|
"description": "",
|
|
|
|
"content": {
|
|
|
|
"application/json": {
|
|
|
|
"schema": {
|
2023-01-24 06:13:42 +02:00
|
|
|
"type": "object"
|
2022-12-05 19:56:44 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"tags": [
|
|
|
|
"Asset"
|
|
|
|
],
|
|
|
|
"security": [
|
|
|
|
{
|
|
|
|
"bearer": []
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
2023-01-24 06:13:42 +02:00
|
|
|
"/asset/file/{assetId}": {
|
2022-12-05 19:56:44 +02:00
|
|
|
"get": {
|
2023-01-24 06:13:42 +02:00
|
|
|
"operationId": "serveFile",
|
|
|
|
"description": "",
|
2022-12-05 19:56:44 +02:00
|
|
|
"parameters": [
|
|
|
|
{
|
2023-01-24 06:13:42 +02:00
|
|
|
"name": "isThumb",
|
|
|
|
"required": false,
|
|
|
|
"in": "query",
|
|
|
|
"schema": {
|
|
|
|
"title": "Is serve thumbnail (resize) file",
|
|
|
|
"type": "boolean"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"name": "isWeb",
|
2022-12-05 19:56:44 +02:00
|
|
|
"required": false,
|
2023-01-24 06:13:42 +02:00
|
|
|
"in": "query",
|
|
|
|
"schema": {
|
|
|
|
"title": "Is request made from web",
|
|
|
|
"type": "boolean"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"name": "assetId",
|
|
|
|
"required": true,
|
|
|
|
"in": "path",
|
2022-12-05 19:56:44 +02:00
|
|
|
"schema": {
|
|
|
|
"type": "string"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"responses": {
|
|
|
|
"200": {
|
|
|
|
"description": "",
|
|
|
|
"content": {
|
|
|
|
"application/json": {
|
|
|
|
"schema": {
|
2023-01-24 06:13:42 +02:00
|
|
|
"type": "object"
|
2022-12-05 19:56:44 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"tags": [
|
|
|
|
"Asset"
|
|
|
|
],
|
|
|
|
"security": [
|
|
|
|
{
|
|
|
|
"bearer": []
|
|
|
|
}
|
|
|
|
]
|
2023-01-24 06:13:42 +02:00
|
|
|
}
|
|
|
|
},
|
|
|
|
"/asset/thumbnail/{assetId}": {
|
|
|
|
"get": {
|
|
|
|
"operationId": "getAssetThumbnail",
|
2023-01-13 00:07:27 +02:00
|
|
|
"description": "",
|
2023-01-24 06:13:42 +02:00
|
|
|
"parameters": [
|
|
|
|
{
|
|
|
|
"name": "assetId",
|
|
|
|
"required": true,
|
|
|
|
"in": "path",
|
|
|
|
"schema": {
|
|
|
|
"type": "string"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"name": "format",
|
|
|
|
"required": false,
|
|
|
|
"in": "query",
|
|
|
|
"schema": {
|
|
|
|
"$ref": "#/components/schemas/ThumbnailFormat"
|
2022-12-05 19:56:44 +02:00
|
|
|
}
|
|
|
|
}
|
2023-01-24 06:13:42 +02:00
|
|
|
],
|
2022-12-05 19:56:44 +02:00
|
|
|
"responses": {
|
|
|
|
"200": {
|
|
|
|
"description": "",
|
|
|
|
"content": {
|
|
|
|
"application/json": {
|
|
|
|
"schema": {
|
2023-01-24 06:13:42 +02:00
|
|
|
"type": "object"
|
2022-12-05 19:56:44 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"tags": [
|
|
|
|
"Asset"
|
|
|
|
],
|
|
|
|
"security": [
|
|
|
|
{
|
|
|
|
"bearer": []
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
2023-01-24 06:13:42 +02:00
|
|
|
"/asset/curated-objects": {
|
|
|
|
"get": {
|
|
|
|
"operationId": "getCuratedObjects",
|
2023-01-13 00:07:27 +02:00
|
|
|
"description": "",
|
2022-12-05 19:56:44 +02:00
|
|
|
"parameters": [],
|
|
|
|
"responses": {
|
2023-01-24 06:13:42 +02:00
|
|
|
"200": {
|
2022-12-05 19:56:44 +02:00
|
|
|
"description": "",
|
|
|
|
"content": {
|
|
|
|
"application/json": {
|
|
|
|
"schema": {
|
|
|
|
"type": "array",
|
|
|
|
"items": {
|
2023-01-24 06:13:42 +02:00
|
|
|
"$ref": "#/components/schemas/CuratedObjectsResponseDto"
|
2022-12-05 19:56:44 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"tags": [
|
|
|
|
"Asset"
|
|
|
|
],
|
|
|
|
"security": [
|
|
|
|
{
|
|
|
|
"bearer": []
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
2023-01-24 06:13:42 +02:00
|
|
|
"/asset/curated-locations": {
|
2022-12-05 19:56:44 +02:00
|
|
|
"get": {
|
2023-01-24 06:13:42 +02:00
|
|
|
"operationId": "getCuratedLocations",
|
|
|
|
"description": "",
|
|
|
|
"parameters": [],
|
2022-12-05 19:56:44 +02:00
|
|
|
"responses": {
|
|
|
|
"200": {
|
|
|
|
"description": "",
|
|
|
|
"content": {
|
|
|
|
"application/json": {
|
|
|
|
"schema": {
|
|
|
|
"type": "array",
|
|
|
|
"items": {
|
2023-01-24 06:13:42 +02:00
|
|
|
"$ref": "#/components/schemas/CuratedLocationsResponseDto"
|
2022-12-05 19:56:44 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"tags": [
|
|
|
|
"Asset"
|
|
|
|
],
|
|
|
|
"security": [
|
|
|
|
{
|
|
|
|
"bearer": []
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
2023-01-24 06:13:42 +02:00
|
|
|
"/asset/search-terms": {
|
2022-12-05 19:56:44 +02:00
|
|
|
"get": {
|
2023-01-24 06:13:42 +02:00
|
|
|
"operationId": "getAssetSearchTerms",
|
|
|
|
"description": "",
|
|
|
|
"parameters": [],
|
2022-12-05 19:56:44 +02:00
|
|
|
"responses": {
|
|
|
|
"200": {
|
|
|
|
"description": "",
|
|
|
|
"content": {
|
|
|
|
"application/json": {
|
|
|
|
"schema": {
|
2023-01-24 06:13:42 +02:00
|
|
|
"type": "array",
|
|
|
|
"items": {
|
|
|
|
"type": "string"
|
|
|
|
}
|
2022-12-05 19:56:44 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"tags": [
|
|
|
|
"Asset"
|
|
|
|
],
|
|
|
|
"security": [
|
|
|
|
{
|
|
|
|
"bearer": []
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
2023-01-24 06:13:42 +02:00
|
|
|
"/asset/search": {
|
|
|
|
"post": {
|
|
|
|
"operationId": "searchAsset",
|
|
|
|
"description": "",
|
|
|
|
"parameters": [],
|
2022-12-05 19:56:44 +02:00
|
|
|
"requestBody": {
|
|
|
|
"required": true,
|
|
|
|
"content": {
|
|
|
|
"application/json": {
|
|
|
|
"schema": {
|
2023-01-24 06:13:42 +02:00
|
|
|
"$ref": "#/components/schemas/SearchAssetDto"
|
2022-12-05 19:56:44 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"responses": {
|
2023-01-24 06:13:42 +02:00
|
|
|
"201": {
|
2022-12-05 19:56:44 +02:00
|
|
|
"description": "",
|
|
|
|
"content": {
|
|
|
|
"application/json": {
|
|
|
|
"schema": {
|
2023-01-24 06:13:42 +02:00
|
|
|
"type": "array",
|
|
|
|
"items": {
|
|
|
|
"$ref": "#/components/schemas/AssetResponseDto"
|
|
|
|
}
|
2022-12-05 19:56:44 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"tags": [
|
|
|
|
"Asset"
|
|
|
|
],
|
|
|
|
"security": [
|
|
|
|
{
|
|
|
|
"bearer": []
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
2023-01-24 06:13:42 +02:00
|
|
|
"/asset/count-by-time-bucket": {
|
2022-12-05 19:56:44 +02:00
|
|
|
"post": {
|
2023-01-24 06:13:42 +02:00
|
|
|
"operationId": "getAssetCountByTimeBucket",
|
|
|
|
"description": "",
|
2022-12-05 19:56:44 +02:00
|
|
|
"parameters": [],
|
|
|
|
"requestBody": {
|
|
|
|
"required": true,
|
|
|
|
"content": {
|
|
|
|
"application/json": {
|
|
|
|
"schema": {
|
2023-01-24 06:13:42 +02:00
|
|
|
"$ref": "#/components/schemas/GetAssetCountByTimeBucketDto"
|
2022-12-05 19:56:44 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"responses": {
|
2023-01-24 06:13:42 +02:00
|
|
|
"201": {
|
2022-12-05 19:56:44 +02:00
|
|
|
"description": "",
|
|
|
|
"content": {
|
|
|
|
"application/json": {
|
|
|
|
"schema": {
|
2023-01-24 06:13:42 +02:00
|
|
|
"$ref": "#/components/schemas/AssetCountByTimeBucketResponseDto"
|
2022-12-05 19:56:44 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"tags": [
|
|
|
|
"Asset"
|
|
|
|
],
|
|
|
|
"security": [
|
|
|
|
{
|
|
|
|
"bearer": []
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
2023-01-24 06:13:42 +02:00
|
|
|
"/asset/count-by-user-id": {
|
|
|
|
"get": {
|
|
|
|
"operationId": "getAssetCountByUserId",
|
|
|
|
"description": "",
|
2022-12-05 19:56:44 +02:00
|
|
|
"parameters": [],
|
|
|
|
"responses": {
|
|
|
|
"200": {
|
|
|
|
"description": "",
|
|
|
|
"content": {
|
|
|
|
"application/json": {
|
|
|
|
"schema": {
|
2023-01-24 06:13:42 +02:00
|
|
|
"$ref": "#/components/schemas/AssetCountByUserIdResponseDto"
|
2022-12-05 19:56:44 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"tags": [
|
|
|
|
"Asset"
|
|
|
|
],
|
|
|
|
"security": [
|
|
|
|
{
|
|
|
|
"bearer": []
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
2023-01-24 06:13:42 +02:00
|
|
|
"/asset": {
|
|
|
|
"get": {
|
|
|
|
"operationId": "getAllAssets",
|
|
|
|
"description": "Get all AssetEntity belong to the user",
|
|
|
|
"parameters": [
|
2023-01-24 06:16:20 +02:00
|
|
|
{
|
|
|
|
"name": "isFavorite",
|
|
|
|
"required": false,
|
|
|
|
"in": "query",
|
|
|
|
"schema": {
|
|
|
|
"type": "boolean"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"name": "skip",
|
|
|
|
"required": false,
|
|
|
|
"in": "query",
|
|
|
|
"schema": {
|
|
|
|
"type": "number"
|
|
|
|
}
|
|
|
|
},
|
2023-01-24 06:13:42 +02:00
|
|
|
{
|
|
|
|
"name": "if-none-match",
|
|
|
|
"in": "header",
|
|
|
|
"description": "ETag of data already cached on the client",
|
|
|
|
"required": false,
|
|
|
|
"schema": {
|
|
|
|
"type": "string"
|
2023-01-15 07:49:47 +02:00
|
|
|
}
|
|
|
|
}
|
2023-01-24 06:13:42 +02:00
|
|
|
],
|
2023-01-15 07:49:47 +02:00
|
|
|
"responses": {
|
2023-01-24 06:13:42 +02:00
|
|
|
"200": {
|
2023-01-15 07:49:47 +02:00
|
|
|
"description": "",
|
|
|
|
"content": {
|
|
|
|
"application/json": {
|
|
|
|
"schema": {
|
2023-01-24 06:13:42 +02:00
|
|
|
"type": "array",
|
|
|
|
"items": {
|
|
|
|
"$ref": "#/components/schemas/AssetResponseDto"
|
|
|
|
}
|
2023-01-15 07:49:47 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"tags": [
|
|
|
|
"Asset"
|
|
|
|
],
|
|
|
|
"security": [
|
|
|
|
{
|
|
|
|
"bearer": []
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
2023-01-24 06:13:42 +02:00
|
|
|
"delete": {
|
|
|
|
"operationId": "deleteAsset",
|
2023-01-15 07:49:47 +02:00
|
|
|
"description": "",
|
|
|
|
"parameters": [],
|
|
|
|
"requestBody": {
|
|
|
|
"required": true,
|
|
|
|
"content": {
|
|
|
|
"application/json": {
|
|
|
|
"schema": {
|
2023-01-24 06:13:42 +02:00
|
|
|
"$ref": "#/components/schemas/DeleteAssetDto"
|
2023-01-15 07:49:47 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"responses": {
|
|
|
|
"200": {
|
|
|
|
"description": "",
|
|
|
|
"content": {
|
|
|
|
"application/json": {
|
|
|
|
"schema": {
|
2023-01-24 06:13:42 +02:00
|
|
|
"type": "array",
|
|
|
|
"items": {
|
|
|
|
"$ref": "#/components/schemas/DeleteAssetResponseDto"
|
|
|
|
}
|
2023-01-15 07:49:47 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"tags": [
|
|
|
|
"Asset"
|
|
|
|
],
|
|
|
|
"security": [
|
|
|
|
{
|
|
|
|
"bearer": []
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
2023-01-24 06:13:42 +02:00
|
|
|
"/asset/time-bucket": {
|
|
|
|
"post": {
|
|
|
|
"operationId": "getAssetByTimeBucket",
|
2023-01-13 00:07:27 +02:00
|
|
|
"description": "",
|
2022-12-05 19:56:44 +02:00
|
|
|
"parameters": [],
|
2023-01-24 06:13:42 +02:00
|
|
|
"requestBody": {
|
|
|
|
"required": true,
|
|
|
|
"content": {
|
|
|
|
"application/json": {
|
|
|
|
"schema": {
|
|
|
|
"$ref": "#/components/schemas/GetAssetByTimeBucketDto"
|
2022-12-05 19:56:44 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"responses": {
|
2023-01-24 06:13:42 +02:00
|
|
|
"201": {
|
2022-12-05 19:56:44 +02:00
|
|
|
"description": "",
|
|
|
|
"content": {
|
|
|
|
"application/json": {
|
|
|
|
"schema": {
|
2023-01-24 06:13:42 +02:00
|
|
|
"type": "array",
|
|
|
|
"items": {
|
|
|
|
"$ref": "#/components/schemas/AssetResponseDto"
|
|
|
|
}
|
2022-12-05 19:56:44 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"tags": [
|
2023-01-24 06:13:42 +02:00
|
|
|
"Asset"
|
|
|
|
],
|
|
|
|
"security": [
|
|
|
|
{
|
|
|
|
"bearer": []
|
|
|
|
}
|
2022-12-05 19:56:44 +02:00
|
|
|
]
|
2023-01-12 04:34:36 +02:00
|
|
|
}
|
|
|
|
},
|
2023-01-24 06:13:42 +02:00
|
|
|
"/asset/{deviceId}": {
|
2022-12-05 19:56:44 +02:00
|
|
|
"get": {
|
2023-01-24 06:13:42 +02:00
|
|
|
"operationId": "getUserAssetsByDeviceId",
|
|
|
|
"description": "Get all asset of a device that are in the database, ID only.",
|
2022-12-05 19:56:44 +02:00
|
|
|
"parameters": [
|
|
|
|
{
|
2023-01-24 06:13:42 +02:00
|
|
|
"name": "deviceId",
|
2023-01-12 04:34:36 +02:00
|
|
|
"required": true,
|
|
|
|
"in": "path",
|
2022-12-05 19:56:44 +02:00
|
|
|
"schema": {
|
|
|
|
"type": "string"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"responses": {
|
|
|
|
"200": {
|
|
|
|
"description": "",
|
|
|
|
"content": {
|
|
|
|
"application/json": {
|
|
|
|
"schema": {
|
2023-01-24 06:13:42 +02:00
|
|
|
"type": "array",
|
|
|
|
"items": {
|
|
|
|
"type": "string"
|
|
|
|
}
|
2022-12-05 19:56:44 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"tags": [
|
2023-01-24 06:13:42 +02:00
|
|
|
"Asset"
|
|
|
|
],
|
|
|
|
"security": [
|
|
|
|
{
|
|
|
|
"bearer": []
|
|
|
|
}
|
2022-12-05 19:56:44 +02:00
|
|
|
]
|
2023-01-24 06:13:42 +02:00
|
|
|
}
|
|
|
|
},
|
|
|
|
"/asset/assetById/{assetId}": {
|
|
|
|
"get": {
|
|
|
|
"operationId": "getAssetById",
|
|
|
|
"description": "Get a single asset's information",
|
2022-12-05 19:56:44 +02:00
|
|
|
"parameters": [
|
|
|
|
{
|
2023-01-24 06:13:42 +02:00
|
|
|
"name": "assetId",
|
2022-12-05 19:56:44 +02:00
|
|
|
"required": true,
|
|
|
|
"in": "path",
|
|
|
|
"schema": {
|
|
|
|
"type": "string"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"responses": {
|
|
|
|
"200": {
|
|
|
|
"description": "",
|
|
|
|
"content": {
|
|
|
|
"application/json": {
|
|
|
|
"schema": {
|
2023-01-24 06:13:42 +02:00
|
|
|
"$ref": "#/components/schemas/AssetResponseDto"
|
2022-12-05 19:56:44 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"tags": [
|
2023-01-24 06:13:42 +02:00
|
|
|
"Asset"
|
|
|
|
],
|
|
|
|
"security": [
|
|
|
|
{
|
|
|
|
"bearer": []
|
|
|
|
}
|
2022-12-05 19:56:44 +02:00
|
|
|
]
|
2023-01-24 06:13:42 +02:00
|
|
|
}
|
|
|
|
},
|
|
|
|
"/asset/{assetId}": {
|
|
|
|
"put": {
|
|
|
|
"operationId": "updateAsset",
|
|
|
|
"description": "Update an asset",
|
2022-12-05 19:56:44 +02:00
|
|
|
"parameters": [
|
|
|
|
{
|
2023-01-24 06:13:42 +02:00
|
|
|
"name": "assetId",
|
2023-01-12 04:34:36 +02:00
|
|
|
"required": true,
|
|
|
|
"in": "path",
|
|
|
|
"schema": {
|
|
|
|
"type": "string"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"requestBody": {
|
|
|
|
"required": true,
|
|
|
|
"content": {
|
|
|
|
"application/json": {
|
|
|
|
"schema": {
|
2023-01-24 06:13:42 +02:00
|
|
|
"$ref": "#/components/schemas/UpdateAssetDto"
|
2023-01-12 04:34:36 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"responses": {
|
|
|
|
"200": {
|
|
|
|
"description": "",
|
|
|
|
"content": {
|
|
|
|
"application/json": {
|
|
|
|
"schema": {
|
2023-01-24 06:13:42 +02:00
|
|
|
"$ref": "#/components/schemas/AssetResponseDto"
|
2023-01-12 04:34:36 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"tags": [
|
2023-01-24 06:13:42 +02:00
|
|
|
"Asset"
|
|
|
|
],
|
|
|
|
"security": [
|
|
|
|
{
|
|
|
|
"bearer": []
|
|
|
|
}
|
2023-01-12 04:34:36 +02:00
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
2023-01-24 06:13:42 +02:00
|
|
|
"/asset/check": {
|
2023-01-15 22:01:10 +02:00
|
|
|
"post": {
|
2023-01-24 06:13:42 +02:00
|
|
|
"operationId": "checkDuplicateAsset",
|
|
|
|
"description": "Check duplicated asset before uploading - for Web upload used",
|
2023-01-15 22:01:10 +02:00
|
|
|
"parameters": [],
|
|
|
|
"requestBody": {
|
|
|
|
"required": true,
|
|
|
|
"content": {
|
|
|
|
"application/json": {
|
|
|
|
"schema": {
|
2023-01-24 06:13:42 +02:00
|
|
|
"$ref": "#/components/schemas/CheckDuplicateAssetDto"
|
2023-01-15 22:01:10 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"responses": {
|
2023-01-24 06:13:42 +02:00
|
|
|
"200": {
|
|
|
|
"description": "",
|
|
|
|
"content": {
|
|
|
|
"application/json": {
|
|
|
|
"schema": {
|
|
|
|
"$ref": "#/components/schemas/CheckDuplicateAssetResponseDto"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"tags": [
|
|
|
|
"Asset"
|
|
|
|
],
|
|
|
|
"security": [
|
|
|
|
{
|
|
|
|
"bearer": []
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"/asset/exist": {
|
|
|
|
"post": {
|
|
|
|
"operationId": "checkExistingAssets",
|
|
|
|
"description": "Checks if multiple assets exist on the server and returns all existing - used by background backup",
|
|
|
|
"parameters": [],
|
|
|
|
"requestBody": {
|
|
|
|
"required": true,
|
|
|
|
"content": {
|
|
|
|
"application/json": {
|
|
|
|
"schema": {
|
|
|
|
"$ref": "#/components/schemas/CheckExistingAssetsDto"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"responses": {
|
|
|
|
"200": {
|
|
|
|
"description": "",
|
|
|
|
"content": {
|
|
|
|
"application/json": {
|
|
|
|
"schema": {
|
|
|
|
"$ref": "#/components/schemas/CheckExistingAssetsResponseDto"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"tags": [
|
|
|
|
"Asset"
|
|
|
|
],
|
|
|
|
"security": [
|
|
|
|
{
|
|
|
|
"bearer": []
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"/asset/shared-link": {
|
|
|
|
"post": {
|
|
|
|
"operationId": "createAssetsSharedLink",
|
|
|
|
"description": "",
|
|
|
|
"parameters": [],
|
|
|
|
"requestBody": {
|
|
|
|
"required": true,
|
|
|
|
"content": {
|
|
|
|
"application/json": {
|
|
|
|
"schema": {
|
|
|
|
"$ref": "#/components/schemas/CreateAssetsShareLinkDto"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"responses": {
|
|
|
|
"201": {
|
|
|
|
"description": "",
|
|
|
|
"content": {
|
|
|
|
"application/json": {
|
|
|
|
"schema": {
|
|
|
|
"$ref": "#/components/schemas/SharedLinkResponseDto"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"tags": [
|
|
|
|
"Asset"
|
|
|
|
],
|
|
|
|
"security": [
|
|
|
|
{
|
|
|
|
"bearer": []
|
|
|
|
}
|
|
|
|
]
|
2023-02-15 23:21:22 +02:00
|
|
|
}
|
|
|
|
},
|
|
|
|
"/asset/shared-link/add": {
|
2023-01-24 06:13:42 +02:00
|
|
|
"patch": {
|
2023-02-15 23:21:22 +02:00
|
|
|
"operationId": "addAssetsToSharedLink",
|
2023-01-24 06:13:42 +02:00
|
|
|
"description": "",
|
|
|
|
"parameters": [],
|
|
|
|
"requestBody": {
|
|
|
|
"required": true,
|
|
|
|
"content": {
|
|
|
|
"application/json": {
|
|
|
|
"schema": {
|
2023-02-15 23:21:22 +02:00
|
|
|
"$ref": "#/components/schemas/AddAssetsDto"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"responses": {
|
|
|
|
"200": {
|
|
|
|
"description": "",
|
|
|
|
"content": {
|
|
|
|
"application/json": {
|
|
|
|
"schema": {
|
|
|
|
"$ref": "#/components/schemas/SharedLinkResponseDto"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"tags": [
|
|
|
|
"Asset"
|
|
|
|
],
|
|
|
|
"security": [
|
|
|
|
{
|
|
|
|
"bearer": []
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"/asset/shared-link/remove": {
|
|
|
|
"patch": {
|
|
|
|
"operationId": "removeAssetsFromSharedLink",
|
|
|
|
"description": "",
|
|
|
|
"parameters": [],
|
|
|
|
"requestBody": {
|
|
|
|
"required": true,
|
|
|
|
"content": {
|
|
|
|
"application/json": {
|
|
|
|
"schema": {
|
|
|
|
"$ref": "#/components/schemas/RemoveAssetsDto"
|
2023-01-24 06:13:42 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"responses": {
|
|
|
|
"200": {
|
|
|
|
"description": "",
|
|
|
|
"content": {
|
|
|
|
"application/json": {
|
|
|
|
"schema": {
|
|
|
|
"$ref": "#/components/schemas/SharedLinkResponseDto"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"tags": [
|
|
|
|
"Asset"
|
|
|
|
],
|
|
|
|
"security": [
|
|
|
|
{
|
|
|
|
"bearer": []
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"/tag": {
|
|
|
|
"post": {
|
|
|
|
"operationId": "create",
|
|
|
|
"description": "",
|
|
|
|
"parameters": [],
|
|
|
|
"requestBody": {
|
|
|
|
"required": true,
|
|
|
|
"content": {
|
|
|
|
"application/json": {
|
|
|
|
"schema": {
|
|
|
|
"$ref": "#/components/schemas/CreateTagDto"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"responses": {
|
|
|
|
"201": {
|
2023-01-15 22:01:10 +02:00
|
|
|
"description": "",
|
|
|
|
"content": {
|
|
|
|
"application/json": {
|
|
|
|
"schema": {
|
|
|
|
"$ref": "#/components/schemas/TagResponseDto"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"tags": [
|
|
|
|
"Tag"
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"get": {
|
|
|
|
"operationId": "findAll",
|
|
|
|
"description": "",
|
|
|
|
"parameters": [],
|
|
|
|
"responses": {
|
|
|
|
"200": {
|
|
|
|
"description": "",
|
|
|
|
"content": {
|
|
|
|
"application/json": {
|
|
|
|
"schema": {
|
|
|
|
"type": "array",
|
|
|
|
"items": {
|
|
|
|
"$ref": "#/components/schemas/TagResponseDto"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"tags": [
|
|
|
|
"Tag"
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"/tag/{id}": {
|
|
|
|
"get": {
|
|
|
|
"operationId": "findOne",
|
|
|
|
"description": "",
|
|
|
|
"parameters": [
|
|
|
|
{
|
|
|
|
"name": "id",
|
|
|
|
"required": true,
|
|
|
|
"in": "path",
|
|
|
|
"schema": {
|
|
|
|
"type": "string"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"responses": {
|
|
|
|
"200": {
|
|
|
|
"description": "",
|
|
|
|
"content": {
|
|
|
|
"application/json": {
|
|
|
|
"schema": {
|
|
|
|
"$ref": "#/components/schemas/TagResponseDto"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"tags": [
|
|
|
|
"Tag"
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"patch": {
|
|
|
|
"operationId": "update",
|
|
|
|
"description": "",
|
|
|
|
"parameters": [
|
|
|
|
{
|
|
|
|
"name": "id",
|
|
|
|
"required": true,
|
|
|
|
"in": "path",
|
|
|
|
"schema": {
|
|
|
|
"type": "string"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"requestBody": {
|
|
|
|
"required": true,
|
|
|
|
"content": {
|
|
|
|
"application/json": {
|
|
|
|
"schema": {
|
|
|
|
"$ref": "#/components/schemas/UpdateTagDto"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"responses": {
|
|
|
|
"200": {
|
|
|
|
"description": "",
|
|
|
|
"content": {
|
|
|
|
"application/json": {
|
|
|
|
"schema": {
|
|
|
|
"$ref": "#/components/schemas/TagResponseDto"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"tags": [
|
|
|
|
"Tag"
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"delete": {
|
|
|
|
"operationId": "delete",
|
|
|
|
"description": "",
|
|
|
|
"parameters": [
|
|
|
|
{
|
|
|
|
"name": "id",
|
|
|
|
"required": true,
|
|
|
|
"in": "path",
|
|
|
|
"schema": {
|
|
|
|
"type": "string"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"responses": {
|
|
|
|
"200": {
|
|
|
|
"description": ""
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"tags": [
|
|
|
|
"Tag"
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
2023-01-12 04:34:36 +02:00
|
|
|
"/album/count-by-user-id": {
|
|
|
|
"get": {
|
|
|
|
"operationId": "getAlbumCountByUserId",
|
2023-01-13 00:07:27 +02:00
|
|
|
"description": "",
|
2023-01-12 04:34:36 +02:00
|
|
|
"parameters": [],
|
|
|
|
"responses": {
|
|
|
|
"200": {
|
|
|
|
"description": "",
|
|
|
|
"content": {
|
|
|
|
"application/json": {
|
|
|
|
"schema": {
|
|
|
|
"$ref": "#/components/schemas/AlbumCountResponseDto"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"tags": [
|
|
|
|
"Album"
|
|
|
|
],
|
|
|
|
"security": [
|
|
|
|
{
|
|
|
|
"bearer": []
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"/album": {
|
|
|
|
"post": {
|
|
|
|
"operationId": "createAlbum",
|
2023-01-13 00:07:27 +02:00
|
|
|
"description": "",
|
2023-01-12 04:34:36 +02:00
|
|
|
"parameters": [],
|
|
|
|
"requestBody": {
|
|
|
|
"required": true,
|
|
|
|
"content": {
|
|
|
|
"application/json": {
|
|
|
|
"schema": {
|
|
|
|
"$ref": "#/components/schemas/CreateAlbumDto"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"responses": {
|
|
|
|
"201": {
|
|
|
|
"description": "",
|
|
|
|
"content": {
|
|
|
|
"application/json": {
|
|
|
|
"schema": {
|
|
|
|
"$ref": "#/components/schemas/AlbumResponseDto"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"tags": [
|
|
|
|
"Album"
|
|
|
|
],
|
|
|
|
"security": [
|
|
|
|
{
|
|
|
|
"bearer": []
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"get": {
|
|
|
|
"operationId": "getAllAlbums",
|
2023-01-13 00:07:27 +02:00
|
|
|
"description": "",
|
2023-01-12 04:34:36 +02:00
|
|
|
"parameters": [
|
|
|
|
{
|
|
|
|
"name": "shared",
|
|
|
|
"required": false,
|
|
|
|
"in": "query",
|
|
|
|
"schema": {
|
|
|
|
"type": "boolean"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"name": "assetId",
|
|
|
|
"required": false,
|
|
|
|
"in": "query",
|
|
|
|
"description": "Only returns albums that contain the asset\nIgnores the shared parameter\nundefined: get all albums",
|
|
|
|
"schema": {
|
|
|
|
"type": "string"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"responses": {
|
|
|
|
"200": {
|
|
|
|
"description": "",
|
|
|
|
"content": {
|
|
|
|
"application/json": {
|
|
|
|
"schema": {
|
|
|
|
"type": "array",
|
|
|
|
"items": {
|
|
|
|
"$ref": "#/components/schemas/AlbumResponseDto"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"tags": [
|
|
|
|
"Album"
|
|
|
|
],
|
|
|
|
"security": [
|
|
|
|
{
|
|
|
|
"bearer": []
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"/album/{albumId}/users": {
|
|
|
|
"put": {
|
|
|
|
"operationId": "addUsersToAlbum",
|
2023-01-13 00:07:27 +02:00
|
|
|
"description": "",
|
2023-01-12 04:34:36 +02:00
|
|
|
"parameters": [
|
|
|
|
{
|
|
|
|
"name": "albumId",
|
|
|
|
"required": true,
|
|
|
|
"in": "path",
|
|
|
|
"schema": {
|
|
|
|
"type": "string"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"requestBody": {
|
|
|
|
"required": true,
|
|
|
|
"content": {
|
|
|
|
"application/json": {
|
|
|
|
"schema": {
|
|
|
|
"$ref": "#/components/schemas/AddUsersDto"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"responses": {
|
|
|
|
"200": {
|
|
|
|
"description": "",
|
|
|
|
"content": {
|
|
|
|
"application/json": {
|
|
|
|
"schema": {
|
|
|
|
"$ref": "#/components/schemas/AlbumResponseDto"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"tags": [
|
|
|
|
"Album"
|
|
|
|
],
|
|
|
|
"security": [
|
|
|
|
{
|
|
|
|
"bearer": []
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"/album/{albumId}/assets": {
|
|
|
|
"put": {
|
|
|
|
"operationId": "addAssetsToAlbum",
|
2023-01-13 00:07:27 +02:00
|
|
|
"description": "",
|
2023-01-12 04:34:36 +02:00
|
|
|
"parameters": [
|
|
|
|
{
|
|
|
|
"name": "albumId",
|
2022-12-05 19:56:44 +02:00
|
|
|
"required": true,
|
|
|
|
"in": "path",
|
|
|
|
"schema": {
|
|
|
|
"type": "string"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"requestBody": {
|
|
|
|
"required": true,
|
|
|
|
"content": {
|
|
|
|
"application/json": {
|
|
|
|
"schema": {
|
|
|
|
"$ref": "#/components/schemas/AddAssetsDto"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"responses": {
|
|
|
|
"200": {
|
|
|
|
"description": "",
|
|
|
|
"content": {
|
|
|
|
"application/json": {
|
|
|
|
"schema": {
|
|
|
|
"$ref": "#/components/schemas/AddAssetsResponseDto"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"tags": [
|
|
|
|
"Album"
|
|
|
|
],
|
|
|
|
"security": [
|
|
|
|
{
|
|
|
|
"bearer": []
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"delete": {
|
|
|
|
"operationId": "removeAssetFromAlbum",
|
2023-01-13 00:07:27 +02:00
|
|
|
"description": "",
|
2022-12-05 19:56:44 +02:00
|
|
|
"parameters": [
|
|
|
|
{
|
|
|
|
"name": "albumId",
|
|
|
|
"required": true,
|
|
|
|
"in": "path",
|
|
|
|
"schema": {
|
|
|
|
"type": "string"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"requestBody": {
|
|
|
|
"required": true,
|
|
|
|
"content": {
|
|
|
|
"application/json": {
|
|
|
|
"schema": {
|
|
|
|
"$ref": "#/components/schemas/RemoveAssetsDto"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"responses": {
|
|
|
|
"200": {
|
|
|
|
"description": "",
|
|
|
|
"content": {
|
|
|
|
"application/json": {
|
|
|
|
"schema": {
|
|
|
|
"$ref": "#/components/schemas/AlbumResponseDto"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"tags": [
|
|
|
|
"Album"
|
|
|
|
],
|
|
|
|
"security": [
|
|
|
|
{
|
|
|
|
"bearer": []
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"/album/{albumId}": {
|
|
|
|
"get": {
|
|
|
|
"operationId": "getAlbumInfo",
|
2023-01-13 00:07:27 +02:00
|
|
|
"description": "",
|
2022-12-05 19:56:44 +02:00
|
|
|
"parameters": [
|
|
|
|
{
|
|
|
|
"name": "albumId",
|
|
|
|
"required": true,
|
|
|
|
"in": "path",
|
|
|
|
"schema": {
|
|
|
|
"type": "string"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"responses": {
|
|
|
|
"200": {
|
|
|
|
"description": "",
|
|
|
|
"content": {
|
|
|
|
"application/json": {
|
|
|
|
"schema": {
|
|
|
|
"$ref": "#/components/schemas/AlbumResponseDto"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"tags": [
|
|
|
|
"Album"
|
|
|
|
],
|
|
|
|
"security": [
|
|
|
|
{
|
|
|
|
"bearer": []
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"delete": {
|
|
|
|
"operationId": "deleteAlbum",
|
2023-01-13 00:07:27 +02:00
|
|
|
"description": "",
|
2022-12-05 19:56:44 +02:00
|
|
|
"parameters": [
|
|
|
|
{
|
|
|
|
"name": "albumId",
|
|
|
|
"required": true,
|
|
|
|
"in": "path",
|
|
|
|
"schema": {
|
|
|
|
"type": "string"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"responses": {
|
|
|
|
"200": {
|
|
|
|
"description": ""
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"tags": [
|
|
|
|
"Album"
|
|
|
|
],
|
|
|
|
"security": [
|
|
|
|
{
|
|
|
|
"bearer": []
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"patch": {
|
|
|
|
"operationId": "updateAlbumInfo",
|
2023-01-13 00:07:27 +02:00
|
|
|
"description": "",
|
2022-12-05 19:56:44 +02:00
|
|
|
"parameters": [
|
|
|
|
{
|
|
|
|
"name": "albumId",
|
|
|
|
"required": true,
|
|
|
|
"in": "path",
|
|
|
|
"schema": {
|
|
|
|
"type": "string"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"requestBody": {
|
|
|
|
"required": true,
|
|
|
|
"content": {
|
|
|
|
"application/json": {
|
|
|
|
"schema": {
|
|
|
|
"$ref": "#/components/schemas/UpdateAlbumDto"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"responses": {
|
|
|
|
"200": {
|
|
|
|
"description": "",
|
|
|
|
"content": {
|
|
|
|
"application/json": {
|
|
|
|
"schema": {
|
|
|
|
"$ref": "#/components/schemas/AlbumResponseDto"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"tags": [
|
|
|
|
"Album"
|
|
|
|
],
|
|
|
|
"security": [
|
|
|
|
{
|
|
|
|
"bearer": []
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"/album/{albumId}/user/{userId}": {
|
|
|
|
"delete": {
|
|
|
|
"operationId": "removeUserFromAlbum",
|
2023-01-13 00:07:27 +02:00
|
|
|
"description": "",
|
2022-12-05 19:56:44 +02:00
|
|
|
"parameters": [
|
|
|
|
{
|
|
|
|
"name": "albumId",
|
|
|
|
"required": true,
|
|
|
|
"in": "path",
|
|
|
|
"schema": {
|
|
|
|
"type": "string"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"name": "userId",
|
|
|
|
"required": true,
|
|
|
|
"in": "path",
|
|
|
|
"schema": {
|
|
|
|
"type": "string"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"responses": {
|
|
|
|
"200": {
|
|
|
|
"description": ""
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"tags": [
|
|
|
|
"Album"
|
|
|
|
],
|
|
|
|
"security": [
|
|
|
|
{
|
|
|
|
"bearer": []
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"/album/{albumId}/download": {
|
|
|
|
"get": {
|
|
|
|
"operationId": "downloadArchive",
|
2023-01-13 00:07:27 +02:00
|
|
|
"description": "",
|
2022-12-05 19:56:44 +02:00
|
|
|
"parameters": [
|
|
|
|
{
|
|
|
|
"name": "albumId",
|
|
|
|
"required": true,
|
|
|
|
"in": "path",
|
|
|
|
"schema": {
|
|
|
|
"type": "string"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"name": "skip",
|
|
|
|
"required": false,
|
|
|
|
"in": "query",
|
|
|
|
"schema": {
|
|
|
|
"type": "number"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"responses": {
|
|
|
|
"200": {
|
|
|
|
"description": "",
|
|
|
|
"content": {
|
|
|
|
"application/json": {
|
|
|
|
"schema": {
|
|
|
|
"type": "object"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"tags": [
|
|
|
|
"Album"
|
|
|
|
],
|
|
|
|
"security": [
|
|
|
|
{
|
|
|
|
"bearer": []
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
2023-01-09 22:16:08 +02:00
|
|
|
"/album/create-shared-link": {
|
|
|
|
"post": {
|
|
|
|
"operationId": "createAlbumSharedLink",
|
2023-01-13 00:07:27 +02:00
|
|
|
"description": "",
|
2023-01-09 22:16:08 +02:00
|
|
|
"parameters": [],
|
|
|
|
"requestBody": {
|
|
|
|
"required": true,
|
|
|
|
"content": {
|
|
|
|
"application/json": {
|
|
|
|
"schema": {
|
|
|
|
"$ref": "#/components/schemas/CreateAlbumShareLinkDto"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"responses": {
|
|
|
|
"201": {
|
|
|
|
"description": "",
|
|
|
|
"content": {
|
|
|
|
"application/json": {
|
|
|
|
"schema": {
|
|
|
|
"$ref": "#/components/schemas/SharedLinkResponseDto"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"tags": [
|
|
|
|
"Album"
|
|
|
|
],
|
|
|
|
"security": [
|
|
|
|
{
|
|
|
|
"bearer": []
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
2023-01-25 18:35:28 +02:00
|
|
|
"/server-info": {
|
|
|
|
"get": {
|
|
|
|
"operationId": "getServerInfo",
|
|
|
|
"description": "",
|
|
|
|
"parameters": [],
|
2022-12-21 16:43:35 +02:00
|
|
|
"responses": {
|
2023-01-24 06:13:42 +02:00
|
|
|
"200": {
|
2022-12-21 16:43:35 +02:00
|
|
|
"description": "",
|
|
|
|
"content": {
|
|
|
|
"application/json": {
|
|
|
|
"schema": {
|
2023-01-25 18:35:28 +02:00
|
|
|
"$ref": "#/components/schemas/ServerInfoResponseDto"
|
2022-12-05 19:56:44 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"tags": [
|
|
|
|
"Server Info"
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"/server-info/ping": {
|
|
|
|
"get": {
|
|
|
|
"operationId": "pingServer",
|
2023-01-13 00:07:27 +02:00
|
|
|
"description": "",
|
2022-12-05 19:56:44 +02:00
|
|
|
"parameters": [],
|
|
|
|
"responses": {
|
|
|
|
"200": {
|
|
|
|
"description": "",
|
|
|
|
"content": {
|
|
|
|
"application/json": {
|
|
|
|
"schema": {
|
|
|
|
"$ref": "#/components/schemas/ServerPingResponse"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"tags": [
|
|
|
|
"Server Info"
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"/server-info/version": {
|
|
|
|
"get": {
|
|
|
|
"operationId": "getServerVersion",
|
2023-01-13 00:07:27 +02:00
|
|
|
"description": "",
|
2022-12-05 19:56:44 +02:00
|
|
|
"parameters": [],
|
|
|
|
"responses": {
|
|
|
|
"200": {
|
|
|
|
"description": "",
|
|
|
|
"content": {
|
|
|
|
"application/json": {
|
|
|
|
"schema": {
|
|
|
|
"$ref": "#/components/schemas/ServerVersionReponseDto"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"tags": [
|
|
|
|
"Server Info"
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"/server-info/stats": {
|
|
|
|
"get": {
|
|
|
|
"operationId": "getStats",
|
2023-01-13 00:07:27 +02:00
|
|
|
"description": "",
|
2022-12-05 19:56:44 +02:00
|
|
|
"parameters": [],
|
|
|
|
"responses": {
|
|
|
|
"200": {
|
|
|
|
"description": "",
|
|
|
|
"content": {
|
|
|
|
"application/json": {
|
|
|
|
"schema": {
|
|
|
|
"$ref": "#/components/schemas/ServerStatsResponseDto"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"tags": [
|
|
|
|
"Server Info"
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"/jobs": {
|
|
|
|
"get": {
|
|
|
|
"operationId": "getAllJobsStatus",
|
2023-01-13 00:07:27 +02:00
|
|
|
"description": "",
|
2022-12-05 19:56:44 +02:00
|
|
|
"parameters": [],
|
|
|
|
"responses": {
|
|
|
|
"200": {
|
|
|
|
"description": "",
|
|
|
|
"content": {
|
|
|
|
"application/json": {
|
|
|
|
"schema": {
|
|
|
|
"$ref": "#/components/schemas/AllJobStatusResponseDto"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"tags": [
|
|
|
|
"Job"
|
|
|
|
],
|
|
|
|
"security": [
|
|
|
|
{
|
|
|
|
"bearer": []
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"/jobs/{jobId}": {
|
|
|
|
"put": {
|
|
|
|
"operationId": "sendJobCommand",
|
2023-01-13 00:07:27 +02:00
|
|
|
"description": "",
|
2022-12-05 19:56:44 +02:00
|
|
|
"parameters": [
|
|
|
|
{
|
|
|
|
"name": "jobId",
|
|
|
|
"required": true,
|
|
|
|
"in": "path",
|
|
|
|
"schema": {
|
|
|
|
"$ref": "#/components/schemas/JobId"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"requestBody": {
|
|
|
|
"required": true,
|
|
|
|
"content": {
|
|
|
|
"application/json": {
|
|
|
|
"schema": {
|
|
|
|
"$ref": "#/components/schemas/JobCommandDto"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"responses": {
|
|
|
|
"200": {
|
|
|
|
"description": "",
|
|
|
|
"content": {
|
|
|
|
"application/json": {
|
|
|
|
"schema": {
|
|
|
|
"type": "number"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"tags": [
|
|
|
|
"Job"
|
|
|
|
],
|
|
|
|
"security": [
|
|
|
|
{
|
|
|
|
"bearer": []
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"info": {
|
|
|
|
"title": "Immich",
|
|
|
|
"description": "Immich API",
|
2023-02-22 05:53:56 +02:00
|
|
|
"version": "1.48.1",
|
2022-12-05 19:56:44 +02:00
|
|
|
"contact": {}
|
|
|
|
},
|
|
|
|
"tags": [],
|
|
|
|
"servers": [
|
|
|
|
{
|
|
|
|
"url": "/api"
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"components": {
|
|
|
|
"securitySchemes": {
|
|
|
|
"bearer": {
|
|
|
|
"scheme": "Bearer",
|
|
|
|
"bearerFormat": "JWT",
|
|
|
|
"type": "http",
|
|
|
|
"in": "header"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"schemas": {
|
2023-01-18 16:40:15 +02:00
|
|
|
"APIKeyCreateDto": {
|
|
|
|
"type": "object",
|
|
|
|
"properties": {
|
|
|
|
"name": {
|
|
|
|
"type": "string"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"APIKeyResponseDto": {
|
|
|
|
"type": "object",
|
|
|
|
"properties": {
|
|
|
|
"id": {
|
2023-02-18 22:58:55 +02:00
|
|
|
"type": "string"
|
2023-01-18 16:40:15 +02:00
|
|
|
},
|
|
|
|
"name": {
|
|
|
|
"type": "string"
|
|
|
|
},
|
|
|
|
"createdAt": {
|
|
|
|
"type": "string"
|
|
|
|
},
|
|
|
|
"updatedAt": {
|
|
|
|
"type": "string"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"required": [
|
|
|
|
"id",
|
|
|
|
"name",
|
|
|
|
"createdAt",
|
|
|
|
"updatedAt"
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"APIKeyCreateResponseDto": {
|
|
|
|
"type": "object",
|
|
|
|
"properties": {
|
|
|
|
"secret": {
|
|
|
|
"type": "string"
|
|
|
|
},
|
|
|
|
"apiKey": {
|
|
|
|
"$ref": "#/components/schemas/APIKeyResponseDto"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"required": [
|
|
|
|
"secret",
|
|
|
|
"apiKey"
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"APIKeyUpdateDto": {
|
|
|
|
"type": "object",
|
|
|
|
"properties": {
|
|
|
|
"name": {
|
|
|
|
"type": "string"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"required": [
|
|
|
|
"name"
|
|
|
|
]
|
|
|
|
},
|
2023-01-24 06:13:42 +02:00
|
|
|
"LoginCredentialDto": {
|
|
|
|
"type": "object",
|
|
|
|
"properties": {
|
|
|
|
"email": {
|
|
|
|
"type": "string",
|
|
|
|
"example": "testuser@email.com"
|
|
|
|
},
|
|
|
|
"password": {
|
|
|
|
"type": "string",
|
|
|
|
"example": "password"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"required": [
|
|
|
|
"email",
|
|
|
|
"password"
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"LoginResponseDto": {
|
|
|
|
"type": "object",
|
|
|
|
"properties": {
|
|
|
|
"accessToken": {
|
|
|
|
"type": "string",
|
|
|
|
"readOnly": true
|
|
|
|
},
|
|
|
|
"userId": {
|
|
|
|
"type": "string",
|
|
|
|
"readOnly": true
|
|
|
|
},
|
|
|
|
"userEmail": {
|
|
|
|
"type": "string",
|
|
|
|
"readOnly": true
|
|
|
|
},
|
|
|
|
"firstName": {
|
|
|
|
"type": "string",
|
|
|
|
"readOnly": true
|
|
|
|
},
|
|
|
|
"lastName": {
|
|
|
|
"type": "string",
|
|
|
|
"readOnly": true
|
|
|
|
},
|
|
|
|
"profileImagePath": {
|
|
|
|
"type": "string",
|
|
|
|
"readOnly": true
|
|
|
|
},
|
|
|
|
"isAdmin": {
|
|
|
|
"type": "boolean",
|
|
|
|
"readOnly": true
|
|
|
|
},
|
|
|
|
"shouldChangePassword": {
|
|
|
|
"type": "boolean",
|
|
|
|
"readOnly": true
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"required": [
|
|
|
|
"accessToken",
|
|
|
|
"userId",
|
|
|
|
"userEmail",
|
|
|
|
"firstName",
|
|
|
|
"lastName",
|
|
|
|
"profileImagePath",
|
|
|
|
"isAdmin",
|
|
|
|
"shouldChangePassword"
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"SignUpDto": {
|
|
|
|
"type": "object",
|
|
|
|
"properties": {
|
|
|
|
"email": {
|
|
|
|
"type": "string",
|
|
|
|
"example": "testuser@email.com"
|
|
|
|
},
|
|
|
|
"password": {
|
|
|
|
"type": "string",
|
|
|
|
"example": "password"
|
|
|
|
},
|
|
|
|
"firstName": {
|
|
|
|
"type": "string",
|
|
|
|
"example": "Admin"
|
|
|
|
},
|
|
|
|
"lastName": {
|
|
|
|
"type": "string",
|
|
|
|
"example": "Doe"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"required": [
|
|
|
|
"email",
|
|
|
|
"password",
|
|
|
|
"firstName",
|
|
|
|
"lastName"
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"AdminSignupResponseDto": {
|
|
|
|
"type": "object",
|
|
|
|
"properties": {
|
|
|
|
"id": {
|
|
|
|
"type": "string"
|
|
|
|
},
|
|
|
|
"email": {
|
|
|
|
"type": "string"
|
|
|
|
},
|
|
|
|
"firstName": {
|
|
|
|
"type": "string"
|
|
|
|
},
|
|
|
|
"lastName": {
|
|
|
|
"type": "string"
|
|
|
|
},
|
|
|
|
"createdAt": {
|
|
|
|
"type": "string"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"required": [
|
|
|
|
"id",
|
|
|
|
"email",
|
|
|
|
"firstName",
|
|
|
|
"lastName",
|
|
|
|
"createdAt"
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"ValidateAccessTokenResponseDto": {
|
|
|
|
"type": "object",
|
|
|
|
"properties": {
|
|
|
|
"authStatus": {
|
|
|
|
"type": "boolean"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"required": [
|
|
|
|
"authStatus"
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"ChangePasswordDto": {
|
|
|
|
"type": "object",
|
|
|
|
"properties": {
|
|
|
|
"password": {
|
|
|
|
"type": "string",
|
|
|
|
"example": "password"
|
|
|
|
},
|
|
|
|
"newPassword": {
|
|
|
|
"type": "string",
|
|
|
|
"example": "password"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"required": [
|
|
|
|
"password",
|
|
|
|
"newPassword"
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"UserResponseDto": {
|
|
|
|
"type": "object",
|
|
|
|
"properties": {
|
|
|
|
"id": {
|
|
|
|
"type": "string"
|
|
|
|
},
|
|
|
|
"email": {
|
|
|
|
"type": "string"
|
|
|
|
},
|
|
|
|
"firstName": {
|
|
|
|
"type": "string"
|
|
|
|
},
|
|
|
|
"lastName": {
|
|
|
|
"type": "string"
|
|
|
|
},
|
|
|
|
"createdAt": {
|
|
|
|
"type": "string"
|
|
|
|
},
|
|
|
|
"profileImagePath": {
|
|
|
|
"type": "string"
|
|
|
|
},
|
|
|
|
"shouldChangePassword": {
|
|
|
|
"type": "boolean"
|
|
|
|
},
|
|
|
|
"isAdmin": {
|
|
|
|
"type": "boolean"
|
|
|
|
},
|
|
|
|
"deletedAt": {
|
|
|
|
"format": "date-time",
|
|
|
|
"type": "string"
|
|
|
|
},
|
|
|
|
"oauthId": {
|
|
|
|
"type": "string"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"required": [
|
|
|
|
"id",
|
|
|
|
"email",
|
|
|
|
"firstName",
|
|
|
|
"lastName",
|
|
|
|
"createdAt",
|
|
|
|
"profileImagePath",
|
|
|
|
"shouldChangePassword",
|
|
|
|
"isAdmin",
|
|
|
|
"oauthId"
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"LogoutResponseDto": {
|
|
|
|
"type": "object",
|
|
|
|
"properties": {
|
|
|
|
"successful": {
|
|
|
|
"type": "boolean",
|
|
|
|
"readOnly": true
|
|
|
|
},
|
|
|
|
"redirectUri": {
|
|
|
|
"type": "string",
|
|
|
|
"readOnly": true
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"required": [
|
|
|
|
"successful",
|
|
|
|
"redirectUri"
|
|
|
|
]
|
|
|
|
},
|
2023-02-01 22:55:06 +02:00
|
|
|
"DeviceTypeEnum": {
|
|
|
|
"type": "string",
|
|
|
|
"enum": [
|
|
|
|
"IOS",
|
|
|
|
"ANDROID",
|
|
|
|
"WEB"
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"UpsertDeviceInfoDto": {
|
|
|
|
"type": "object",
|
|
|
|
"properties": {
|
|
|
|
"deviceType": {
|
|
|
|
"$ref": "#/components/schemas/DeviceTypeEnum"
|
|
|
|
},
|
|
|
|
"deviceId": {
|
|
|
|
"type": "string"
|
|
|
|
},
|
|
|
|
"isAutoBackup": {
|
|
|
|
"type": "boolean"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"required": [
|
|
|
|
"deviceType",
|
|
|
|
"deviceId"
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"DeviceInfoResponseDto": {
|
|
|
|
"type": "object",
|
|
|
|
"properties": {
|
|
|
|
"id": {
|
|
|
|
"type": "integer"
|
|
|
|
},
|
|
|
|
"deviceType": {
|
|
|
|
"$ref": "#/components/schemas/DeviceTypeEnum"
|
|
|
|
},
|
|
|
|
"userId": {
|
|
|
|
"type": "string"
|
|
|
|
},
|
|
|
|
"deviceId": {
|
|
|
|
"type": "string"
|
|
|
|
},
|
|
|
|
"createdAt": {
|
|
|
|
"type": "string"
|
|
|
|
},
|
|
|
|
"isAutoBackup": {
|
|
|
|
"type": "boolean"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"required": [
|
|
|
|
"id",
|
|
|
|
"deviceType",
|
|
|
|
"userId",
|
|
|
|
"deviceId",
|
|
|
|
"createdAt",
|
|
|
|
"isAutoBackup"
|
|
|
|
]
|
|
|
|
},
|
2023-01-24 06:13:42 +02:00
|
|
|
"OAuthConfigDto": {
|
|
|
|
"type": "object",
|
|
|
|
"properties": {
|
|
|
|
"redirectUri": {
|
|
|
|
"type": "string"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"required": [
|
|
|
|
"redirectUri"
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"OAuthConfigResponseDto": {
|
|
|
|
"type": "object",
|
|
|
|
"properties": {
|
|
|
|
"enabled": {
|
|
|
|
"type": "boolean"
|
|
|
|
},
|
|
|
|
"passwordLoginEnabled": {
|
|
|
|
"type": "boolean"
|
|
|
|
},
|
|
|
|
"url": {
|
|
|
|
"type": "string"
|
|
|
|
},
|
|
|
|
"buttonText": {
|
|
|
|
"type": "string"
|
|
|
|
},
|
|
|
|
"autoLaunch": {
|
|
|
|
"type": "boolean"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"required": [
|
|
|
|
"enabled",
|
|
|
|
"passwordLoginEnabled"
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"OAuthCallbackDto": {
|
|
|
|
"type": "object",
|
|
|
|
"properties": {
|
|
|
|
"url": {
|
|
|
|
"type": "string"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"required": [
|
|
|
|
"url"
|
|
|
|
]
|
|
|
|
},
|
2023-01-25 18:35:28 +02:00
|
|
|
"SharedLinkType": {
|
|
|
|
"type": "string",
|
|
|
|
"enum": [
|
|
|
|
"ALBUM",
|
|
|
|
"INDIVIDUAL"
|
2023-01-21 18:11:55 +02:00
|
|
|
]
|
|
|
|
},
|
2023-01-25 18:35:28 +02:00
|
|
|
"AssetTypeEnum": {
|
|
|
|
"type": "string",
|
|
|
|
"enum": [
|
|
|
|
"IMAGE",
|
|
|
|
"VIDEO",
|
|
|
|
"AUDIO",
|
|
|
|
"OTHER"
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"ExifResponseDto": {
|
2023-01-21 18:11:55 +02:00
|
|
|
"type": "object",
|
|
|
|
"properties": {
|
2023-01-25 18:35:28 +02:00
|
|
|
"fileSizeInByte": {
|
|
|
|
"type": "integer",
|
|
|
|
"nullable": true,
|
|
|
|
"default": null,
|
|
|
|
"format": "int64"
|
2023-01-21 18:11:55 +02:00
|
|
|
},
|
2023-01-25 18:35:28 +02:00
|
|
|
"make": {
|
|
|
|
"type": "string",
|
|
|
|
"nullable": true,
|
|
|
|
"default": null
|
2023-01-21 18:11:55 +02:00
|
|
|
},
|
2023-01-25 18:35:28 +02:00
|
|
|
"model": {
|
|
|
|
"type": "string",
|
|
|
|
"nullable": true,
|
|
|
|
"default": null
|
2023-01-21 18:11:55 +02:00
|
|
|
},
|
2023-01-25 18:35:28 +02:00
|
|
|
"imageName": {
|
|
|
|
"type": "string",
|
|
|
|
"nullable": true,
|
|
|
|
"default": null
|
2023-01-21 18:11:55 +02:00
|
|
|
},
|
2023-01-25 18:35:28 +02:00
|
|
|
"exifImageWidth": {
|
|
|
|
"type": "number",
|
|
|
|
"nullable": true,
|
|
|
|
"default": null
|
|
|
|
},
|
|
|
|
"exifImageHeight": {
|
|
|
|
"type": "number",
|
|
|
|
"nullable": true,
|
|
|
|
"default": null
|
|
|
|
},
|
|
|
|
"orientation": {
|
|
|
|
"type": "string",
|
|
|
|
"nullable": true,
|
|
|
|
"default": null
|
|
|
|
},
|
|
|
|
"dateTimeOriginal": {
|
|
|
|
"format": "date-time",
|
|
|
|
"type": "string",
|
|
|
|
"nullable": true,
|
|
|
|
"default": null
|
|
|
|
},
|
|
|
|
"modifyDate": {
|
|
|
|
"format": "date-time",
|
|
|
|
"type": "string",
|
|
|
|
"nullable": true,
|
|
|
|
"default": null
|
|
|
|
},
|
|
|
|
"lensModel": {
|
|
|
|
"type": "string",
|
|
|
|
"nullable": true,
|
|
|
|
"default": null
|
|
|
|
},
|
|
|
|
"fNumber": {
|
|
|
|
"type": "number",
|
|
|
|
"nullable": true,
|
|
|
|
"default": null
|
|
|
|
},
|
|
|
|
"focalLength": {
|
|
|
|
"type": "number",
|
|
|
|
"nullable": true,
|
|
|
|
"default": null
|
|
|
|
},
|
|
|
|
"iso": {
|
|
|
|
"type": "number",
|
|
|
|
"nullable": true,
|
|
|
|
"default": null
|
|
|
|
},
|
|
|
|
"exposureTime": {
|
2023-01-26 21:14:05 +02:00
|
|
|
"type": "string",
|
2023-01-25 18:35:28 +02:00
|
|
|
"nullable": true,
|
|
|
|
"default": null
|
|
|
|
},
|
|
|
|
"latitude": {
|
|
|
|
"type": "number",
|
|
|
|
"nullable": true,
|
|
|
|
"default": null
|
|
|
|
},
|
|
|
|
"longitude": {
|
|
|
|
"type": "number",
|
|
|
|
"nullable": true,
|
|
|
|
"default": null
|
|
|
|
},
|
|
|
|
"city": {
|
|
|
|
"type": "string",
|
|
|
|
"nullable": true,
|
|
|
|
"default": null
|
|
|
|
},
|
|
|
|
"state": {
|
|
|
|
"type": "string",
|
|
|
|
"nullable": true,
|
|
|
|
"default": null
|
|
|
|
},
|
|
|
|
"country": {
|
|
|
|
"type": "string",
|
|
|
|
"nullable": true,
|
|
|
|
"default": null
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"SmartInfoResponseDto": {
|
|
|
|
"type": "object",
|
|
|
|
"properties": {
|
|
|
|
"tags": {
|
|
|
|
"nullable": true,
|
|
|
|
"type": "array",
|
|
|
|
"items": {
|
|
|
|
"type": "string"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"objects": {
|
|
|
|
"nullable": true,
|
|
|
|
"type": "array",
|
|
|
|
"items": {
|
|
|
|
"type": "string"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"TagTypeEnum": {
|
|
|
|
"type": "string",
|
|
|
|
"enum": [
|
|
|
|
"OBJECT",
|
|
|
|
"FACE",
|
|
|
|
"CUSTOM"
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"TagResponseDto": {
|
|
|
|
"type": "object",
|
|
|
|
"properties": {
|
|
|
|
"id": {
|
|
|
|
"type": "string"
|
|
|
|
},
|
|
|
|
"type": {
|
|
|
|
"$ref": "#/components/schemas/TagTypeEnum"
|
|
|
|
},
|
|
|
|
"name": {
|
|
|
|
"type": "string"
|
|
|
|
},
|
|
|
|
"userId": {
|
|
|
|
"type": "string"
|
|
|
|
},
|
|
|
|
"renameTagId": {
|
|
|
|
"type": "string",
|
|
|
|
"nullable": true
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"required": [
|
|
|
|
"id",
|
|
|
|
"type",
|
|
|
|
"name",
|
|
|
|
"userId"
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"AssetResponseDto": {
|
|
|
|
"type": "object",
|
|
|
|
"properties": {
|
|
|
|
"type": {
|
|
|
|
"$ref": "#/components/schemas/AssetTypeEnum"
|
|
|
|
},
|
|
|
|
"id": {
|
|
|
|
"type": "string"
|
|
|
|
},
|
|
|
|
"deviceAssetId": {
|
|
|
|
"type": "string"
|
|
|
|
},
|
|
|
|
"ownerId": {
|
|
|
|
"type": "string"
|
|
|
|
},
|
|
|
|
"deviceId": {
|
|
|
|
"type": "string"
|
|
|
|
},
|
|
|
|
"originalPath": {
|
|
|
|
"type": "string"
|
|
|
|
},
|
|
|
|
"resizePath": {
|
|
|
|
"type": "string",
|
|
|
|
"nullable": true
|
|
|
|
},
|
2023-02-19 18:44:53 +02:00
|
|
|
"fileCreatedAt": {
|
2023-01-25 18:35:28 +02:00
|
|
|
"type": "string"
|
|
|
|
},
|
2023-02-19 18:44:53 +02:00
|
|
|
"fileModifiedAt": {
|
2023-01-25 18:35:28 +02:00
|
|
|
"type": "string"
|
|
|
|
},
|
2023-02-06 18:24:58 +02:00
|
|
|
"updatedAt": {
|
|
|
|
"type": "string"
|
|
|
|
},
|
2023-01-25 18:35:28 +02:00
|
|
|
"isFavorite": {
|
|
|
|
"type": "boolean"
|
|
|
|
},
|
|
|
|
"mimeType": {
|
|
|
|
"type": "string",
|
|
|
|
"nullable": true
|
|
|
|
},
|
|
|
|
"duration": {
|
|
|
|
"type": "string"
|
|
|
|
},
|
|
|
|
"webpPath": {
|
|
|
|
"type": "string",
|
|
|
|
"nullable": true
|
|
|
|
},
|
|
|
|
"encodedVideoPath": {
|
|
|
|
"type": "string",
|
|
|
|
"nullable": true
|
|
|
|
},
|
|
|
|
"exifInfo": {
|
|
|
|
"$ref": "#/components/schemas/ExifResponseDto"
|
|
|
|
},
|
|
|
|
"smartInfo": {
|
|
|
|
"$ref": "#/components/schemas/SmartInfoResponseDto"
|
|
|
|
},
|
|
|
|
"livePhotoVideoId": {
|
|
|
|
"type": "string",
|
|
|
|
"nullable": true
|
|
|
|
},
|
|
|
|
"tags": {
|
|
|
|
"type": "array",
|
|
|
|
"items": {
|
|
|
|
"$ref": "#/components/schemas/TagResponseDto"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"required": [
|
|
|
|
"type",
|
|
|
|
"id",
|
|
|
|
"deviceAssetId",
|
|
|
|
"ownerId",
|
|
|
|
"deviceId",
|
|
|
|
"originalPath",
|
|
|
|
"resizePath",
|
2023-02-19 18:44:53 +02:00
|
|
|
"fileCreatedAt",
|
|
|
|
"fileModifiedAt",
|
2023-02-06 18:24:58 +02:00
|
|
|
"updatedAt",
|
2023-01-25 18:35:28 +02:00
|
|
|
"isFavorite",
|
|
|
|
"mimeType",
|
|
|
|
"duration",
|
2023-02-07 04:47:06 +02:00
|
|
|
"webpPath"
|
2023-01-25 18:35:28 +02:00
|
|
|
]
|
|
|
|
},
|
|
|
|
"AlbumResponseDto": {
|
|
|
|
"type": "object",
|
|
|
|
"properties": {
|
|
|
|
"assetCount": {
|
|
|
|
"type": "integer"
|
|
|
|
},
|
|
|
|
"id": {
|
|
|
|
"type": "string"
|
|
|
|
},
|
|
|
|
"ownerId": {
|
|
|
|
"type": "string"
|
|
|
|
},
|
|
|
|
"albumName": {
|
|
|
|
"type": "string"
|
|
|
|
},
|
|
|
|
"createdAt": {
|
|
|
|
"type": "string"
|
|
|
|
},
|
2023-02-06 18:24:58 +02:00
|
|
|
"updatedAt": {
|
|
|
|
"type": "string"
|
|
|
|
},
|
2023-01-25 18:35:28 +02:00
|
|
|
"albumThumbnailAssetId": {
|
|
|
|
"type": "string",
|
|
|
|
"nullable": true
|
|
|
|
},
|
|
|
|
"shared": {
|
|
|
|
"type": "boolean"
|
|
|
|
},
|
|
|
|
"sharedUsers": {
|
|
|
|
"type": "array",
|
|
|
|
"items": {
|
|
|
|
"$ref": "#/components/schemas/UserResponseDto"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"assets": {
|
|
|
|
"type": "array",
|
|
|
|
"items": {
|
|
|
|
"$ref": "#/components/schemas/AssetResponseDto"
|
|
|
|
}
|
2023-02-07 04:47:06 +02:00
|
|
|
},
|
|
|
|
"owner": {
|
|
|
|
"$ref": "#/components/schemas/UserResponseDto"
|
2023-01-25 18:35:28 +02:00
|
|
|
}
|
|
|
|
},
|
|
|
|
"required": [
|
|
|
|
"assetCount",
|
|
|
|
"id",
|
|
|
|
"ownerId",
|
|
|
|
"albumName",
|
|
|
|
"createdAt",
|
2023-02-06 18:24:58 +02:00
|
|
|
"updatedAt",
|
2023-01-25 18:35:28 +02:00
|
|
|
"albumThumbnailAssetId",
|
|
|
|
"shared",
|
|
|
|
"sharedUsers",
|
2023-02-07 23:11:14 +02:00
|
|
|
"assets",
|
|
|
|
"owner"
|
2023-01-25 18:35:28 +02:00
|
|
|
]
|
|
|
|
},
|
|
|
|
"SharedLinkResponseDto": {
|
|
|
|
"type": "object",
|
|
|
|
"properties": {
|
|
|
|
"type": {
|
|
|
|
"$ref": "#/components/schemas/SharedLinkType"
|
|
|
|
},
|
|
|
|
"id": {
|
|
|
|
"type": "string"
|
|
|
|
},
|
|
|
|
"description": {
|
|
|
|
"type": "string"
|
|
|
|
},
|
|
|
|
"userId": {
|
|
|
|
"type": "string"
|
|
|
|
},
|
|
|
|
"key": {
|
|
|
|
"type": "string"
|
|
|
|
},
|
|
|
|
"createdAt": {
|
|
|
|
"type": "string"
|
|
|
|
},
|
|
|
|
"expiresAt": {
|
|
|
|
"type": "string",
|
|
|
|
"nullable": true
|
|
|
|
},
|
|
|
|
"assets": {
|
|
|
|
"type": "array",
|
|
|
|
"items": {
|
|
|
|
"$ref": "#/components/schemas/AssetResponseDto"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"album": {
|
|
|
|
"$ref": "#/components/schemas/AlbumResponseDto"
|
|
|
|
},
|
|
|
|
"allowUpload": {
|
|
|
|
"type": "boolean"
|
|
|
|
},
|
|
|
|
"allowDownload": {
|
|
|
|
"type": "boolean"
|
|
|
|
},
|
|
|
|
"showExif": {
|
|
|
|
"type": "boolean"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"required": [
|
|
|
|
"type",
|
|
|
|
"id",
|
|
|
|
"userId",
|
|
|
|
"key",
|
|
|
|
"createdAt",
|
|
|
|
"expiresAt",
|
|
|
|
"assets",
|
|
|
|
"allowUpload",
|
|
|
|
"allowDownload",
|
|
|
|
"showExif"
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"EditSharedLinkDto": {
|
|
|
|
"type": "object",
|
|
|
|
"properties": {
|
|
|
|
"description": {
|
|
|
|
"type": "string"
|
|
|
|
},
|
|
|
|
"expiresAt": {
|
|
|
|
"type": "string",
|
|
|
|
"nullable": true
|
|
|
|
},
|
|
|
|
"allowUpload": {
|
|
|
|
"type": "boolean"
|
|
|
|
},
|
|
|
|
"allowDownload": {
|
|
|
|
"type": "boolean"
|
|
|
|
},
|
|
|
|
"showExif": {
|
|
|
|
"type": "boolean"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"SystemConfigFFmpegDto": {
|
|
|
|
"type": "object",
|
|
|
|
"properties": {
|
|
|
|
"crf": {
|
|
|
|
"type": "string"
|
|
|
|
},
|
|
|
|
"preset": {
|
|
|
|
"type": "string"
|
|
|
|
},
|
|
|
|
"targetVideoCodec": {
|
|
|
|
"type": "string"
|
|
|
|
},
|
|
|
|
"targetAudioCodec": {
|
|
|
|
"type": "string"
|
|
|
|
},
|
|
|
|
"targetScaling": {
|
|
|
|
"type": "string"
|
|
|
|
},
|
|
|
|
"transcodeAll": {
|
|
|
|
"type": "boolean"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"required": [
|
|
|
|
"crf",
|
|
|
|
"preset",
|
|
|
|
"targetVideoCodec",
|
|
|
|
"targetAudioCodec",
|
|
|
|
"targetScaling",
|
|
|
|
"transcodeAll"
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"SystemConfigOAuthDto": {
|
|
|
|
"type": "object",
|
|
|
|
"properties": {
|
|
|
|
"enabled": {
|
|
|
|
"type": "boolean"
|
|
|
|
},
|
|
|
|
"issuerUrl": {
|
|
|
|
"type": "string"
|
|
|
|
},
|
|
|
|
"clientId": {
|
|
|
|
"type": "string"
|
|
|
|
},
|
|
|
|
"clientSecret": {
|
|
|
|
"type": "string"
|
|
|
|
},
|
|
|
|
"scope": {
|
|
|
|
"type": "string"
|
|
|
|
},
|
|
|
|
"buttonText": {
|
|
|
|
"type": "string"
|
|
|
|
},
|
|
|
|
"autoRegister": {
|
|
|
|
"type": "boolean"
|
2023-01-21 18:11:55 +02:00
|
|
|
},
|
|
|
|
"autoLaunch": {
|
|
|
|
"type": "boolean"
|
|
|
|
},
|
|
|
|
"mobileOverrideEnabled": {
|
|
|
|
"type": "boolean"
|
|
|
|
},
|
|
|
|
"mobileRedirectUri": {
|
|
|
|
"type": "string"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"required": [
|
|
|
|
"enabled",
|
|
|
|
"issuerUrl",
|
|
|
|
"clientId",
|
|
|
|
"clientSecret",
|
|
|
|
"scope",
|
|
|
|
"buttonText",
|
|
|
|
"autoRegister",
|
|
|
|
"autoLaunch",
|
|
|
|
"mobileOverrideEnabled",
|
|
|
|
"mobileRedirectUri"
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"SystemConfigPasswordLoginDto": {
|
|
|
|
"type": "object",
|
|
|
|
"properties": {
|
|
|
|
"enabled": {
|
|
|
|
"type": "boolean"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"required": [
|
|
|
|
"enabled"
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"SystemConfigStorageTemplateDto": {
|
|
|
|
"type": "object",
|
|
|
|
"properties": {
|
|
|
|
"template": {
|
|
|
|
"type": "string"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"required": [
|
|
|
|
"template"
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"SystemConfigDto": {
|
|
|
|
"type": "object",
|
|
|
|
"properties": {
|
|
|
|
"ffmpeg": {
|
|
|
|
"$ref": "#/components/schemas/SystemConfigFFmpegDto"
|
|
|
|
},
|
|
|
|
"oauth": {
|
|
|
|
"$ref": "#/components/schemas/SystemConfigOAuthDto"
|
|
|
|
},
|
|
|
|
"passwordLogin": {
|
|
|
|
"$ref": "#/components/schemas/SystemConfigPasswordLoginDto"
|
|
|
|
},
|
|
|
|
"storageTemplate": {
|
|
|
|
"$ref": "#/components/schemas/SystemConfigStorageTemplateDto"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"required": [
|
|
|
|
"ffmpeg",
|
|
|
|
"oauth",
|
|
|
|
"passwordLogin",
|
|
|
|
"storageTemplate"
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"SystemConfigTemplateStorageOptionDto": {
|
|
|
|
"type": "object",
|
|
|
|
"properties": {
|
|
|
|
"yearOptions": {
|
|
|
|
"type": "array",
|
|
|
|
"items": {
|
|
|
|
"type": "string"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"monthOptions": {
|
|
|
|
"type": "array",
|
|
|
|
"items": {
|
|
|
|
"type": "string"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"dayOptions": {
|
|
|
|
"type": "array",
|
|
|
|
"items": {
|
|
|
|
"type": "string"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"hourOptions": {
|
|
|
|
"type": "array",
|
|
|
|
"items": {
|
|
|
|
"type": "string"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"minuteOptions": {
|
|
|
|
"type": "array",
|
|
|
|
"items": {
|
|
|
|
"type": "string"
|
|
|
|
}
|
|
|
|
},
|
2023-01-24 06:13:42 +02:00
|
|
|
"secondOptions": {
|
|
|
|
"type": "array",
|
|
|
|
"items": {
|
|
|
|
"type": "string"
|
|
|
|
}
|
2022-12-26 17:35:52 +02:00
|
|
|
},
|
2023-01-24 06:13:42 +02:00
|
|
|
"presetOptions": {
|
|
|
|
"type": "array",
|
|
|
|
"items": {
|
|
|
|
"type": "string"
|
|
|
|
}
|
2022-12-05 19:56:44 +02:00
|
|
|
}
|
|
|
|
},
|
|
|
|
"required": [
|
2023-01-24 06:13:42 +02:00
|
|
|
"yearOptions",
|
|
|
|
"monthOptions",
|
|
|
|
"dayOptions",
|
|
|
|
"hourOptions",
|
|
|
|
"minuteOptions",
|
|
|
|
"secondOptions",
|
|
|
|
"presetOptions"
|
2022-12-05 19:56:44 +02:00
|
|
|
]
|
|
|
|
},
|
|
|
|
"CreateUserDto": {
|
|
|
|
"type": "object",
|
|
|
|
"properties": {
|
|
|
|
"email": {
|
|
|
|
"type": "string",
|
|
|
|
"example": "testuser@email.com"
|
|
|
|
},
|
|
|
|
"password": {
|
|
|
|
"type": "string",
|
|
|
|
"example": "password"
|
|
|
|
},
|
|
|
|
"firstName": {
|
|
|
|
"type": "string",
|
|
|
|
"example": "John"
|
|
|
|
},
|
|
|
|
"lastName": {
|
|
|
|
"type": "string",
|
|
|
|
"example": "Doe"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"required": [
|
|
|
|
"email",
|
|
|
|
"password",
|
|
|
|
"firstName",
|
|
|
|
"lastName"
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"UserCountResponseDto": {
|
|
|
|
"type": "object",
|
|
|
|
"properties": {
|
|
|
|
"userCount": {
|
|
|
|
"type": "integer"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"required": [
|
|
|
|
"userCount"
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"UpdateUserDto": {
|
|
|
|
"type": "object",
|
|
|
|
"properties": {
|
|
|
|
"id": {
|
|
|
|
"type": "string"
|
|
|
|
},
|
2022-12-27 18:36:31 +02:00
|
|
|
"email": {
|
|
|
|
"type": "string"
|
|
|
|
},
|
2022-12-05 19:56:44 +02:00
|
|
|
"password": {
|
|
|
|
"type": "string"
|
|
|
|
},
|
|
|
|
"firstName": {
|
|
|
|
"type": "string"
|
|
|
|
},
|
|
|
|
"lastName": {
|
|
|
|
"type": "string"
|
|
|
|
},
|
|
|
|
"isAdmin": {
|
|
|
|
"type": "boolean"
|
|
|
|
},
|
|
|
|
"shouldChangePassword": {
|
|
|
|
"type": "boolean"
|
|
|
|
},
|
|
|
|
"profileImagePath": {
|
|
|
|
"type": "string"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"required": [
|
|
|
|
"id"
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"CreateProfileImageDto": {
|
|
|
|
"type": "object",
|
|
|
|
"properties": {
|
|
|
|
"file": {
|
|
|
|
"type": "string",
|
|
|
|
"format": "binary"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"required": [
|
|
|
|
"file"
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"CreateProfileImageResponseDto": {
|
|
|
|
"type": "object",
|
|
|
|
"properties": {
|
|
|
|
"userId": {
|
|
|
|
"type": "string"
|
|
|
|
},
|
|
|
|
"profileImagePath": {
|
|
|
|
"type": "string"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"required": [
|
|
|
|
"userId",
|
|
|
|
"profileImagePath"
|
|
|
|
]
|
|
|
|
},
|
2023-02-12 07:54:07 +02:00
|
|
|
"CreateAssetDto": {
|
2023-01-12 04:34:36 +02:00
|
|
|
"type": "object",
|
|
|
|
"properties": {
|
2023-02-12 07:54:07 +02:00
|
|
|
"assetType": {
|
|
|
|
"$ref": "#/components/schemas/AssetTypeEnum"
|
|
|
|
},
|
2023-01-12 04:34:36 +02:00
|
|
|
"assetData": {
|
|
|
|
"type": "string",
|
|
|
|
"format": "binary"
|
2023-02-12 07:54:07 +02:00
|
|
|
},
|
|
|
|
"livePhotoData": {
|
|
|
|
"type": "string",
|
|
|
|
"format": "binary"
|
|
|
|
},
|
|
|
|
"deviceAssetId": {
|
|
|
|
"type": "string"
|
|
|
|
},
|
|
|
|
"deviceId": {
|
|
|
|
"type": "string"
|
|
|
|
},
|
2023-02-19 18:44:53 +02:00
|
|
|
"fileCreatedAt": {
|
2023-02-12 07:54:07 +02:00
|
|
|
"type": "string"
|
|
|
|
},
|
2023-02-19 18:44:53 +02:00
|
|
|
"fileModifiedAt": {
|
2023-02-12 07:54:07 +02:00
|
|
|
"type": "string"
|
|
|
|
},
|
|
|
|
"isFavorite": {
|
|
|
|
"type": "boolean"
|
|
|
|
},
|
|
|
|
"isVisible": {
|
|
|
|
"type": "boolean"
|
|
|
|
},
|
|
|
|
"fileExtension": {
|
|
|
|
"type": "string"
|
|
|
|
},
|
|
|
|
"duration": {
|
|
|
|
"type": "string"
|
2023-01-12 04:34:36 +02:00
|
|
|
}
|
|
|
|
},
|
|
|
|
"required": [
|
2023-02-12 07:54:07 +02:00
|
|
|
"assetType",
|
|
|
|
"assetData",
|
|
|
|
"deviceAssetId",
|
|
|
|
"deviceId",
|
2023-02-19 18:44:53 +02:00
|
|
|
"fileCreatedAt",
|
|
|
|
"fileModifiedAt",
|
2023-02-12 07:54:07 +02:00
|
|
|
"isFavorite",
|
|
|
|
"fileExtension"
|
2022-12-05 19:56:44 +02:00
|
|
|
]
|
|
|
|
},
|
2023-01-12 04:34:36 +02:00
|
|
|
"AssetFileUploadResponseDto": {
|
|
|
|
"type": "object",
|
|
|
|
"properties": {
|
|
|
|
"id": {
|
|
|
|
"type": "string"
|
2023-01-30 18:14:13 +02:00
|
|
|
},
|
|
|
|
"duplicate": {
|
|
|
|
"type": "boolean"
|
2023-01-12 04:34:36 +02:00
|
|
|
}
|
|
|
|
},
|
|
|
|
"required": [
|
2023-01-30 18:14:13 +02:00
|
|
|
"id",
|
|
|
|
"duplicate"
|
2023-01-12 04:34:36 +02:00
|
|
|
]
|
|
|
|
},
|
|
|
|
"DownloadFilesDto": {
|
2023-01-25 18:35:28 +02:00
|
|
|
"type": "object",
|
|
|
|
"properties": {
|
|
|
|
"assetIds": {
|
|
|
|
"title": "Array of asset ids to be downloaded",
|
2022-12-05 19:56:44 +02:00
|
|
|
"type": "array",
|
|
|
|
"items": {
|
|
|
|
"type": "string"
|
|
|
|
}
|
|
|
|
}
|
2023-01-25 18:35:28 +02:00
|
|
|
},
|
|
|
|
"required": [
|
|
|
|
"assetIds"
|
|
|
|
]
|
2022-12-05 19:56:44 +02:00
|
|
|
},
|
2023-01-25 18:35:28 +02:00
|
|
|
"ThumbnailFormat": {
|
2022-12-05 19:56:44 +02:00
|
|
|
"type": "string",
|
|
|
|
"enum": [
|
2023-01-25 18:35:28 +02:00
|
|
|
"JPEG",
|
|
|
|
"WEBP"
|
2022-12-05 19:56:44 +02:00
|
|
|
]
|
|
|
|
},
|
2023-01-25 18:35:28 +02:00
|
|
|
"CuratedObjectsResponseDto": {
|
2022-12-05 19:56:44 +02:00
|
|
|
"type": "object",
|
|
|
|
"properties": {
|
|
|
|
"id": {
|
|
|
|
"type": "string"
|
|
|
|
},
|
2023-01-25 18:35:28 +02:00
|
|
|
"object": {
|
|
|
|
"type": "string"
|
2022-12-05 19:56:44 +02:00
|
|
|
},
|
2023-01-25 18:35:28 +02:00
|
|
|
"resizePath": {
|
2022-12-05 19:56:44 +02:00
|
|
|
"type": "string"
|
2022-12-06 23:46:13 +02:00
|
|
|
},
|
2023-01-25 18:35:28 +02:00
|
|
|
"deviceAssetId": {
|
2022-12-06 23:46:13 +02:00
|
|
|
"type": "string"
|
|
|
|
},
|
2023-01-25 18:35:28 +02:00
|
|
|
"deviceId": {
|
|
|
|
"type": "string"
|
2022-12-05 19:56:44 +02:00
|
|
|
}
|
|
|
|
},
|
|
|
|
"required": [
|
|
|
|
"id",
|
2023-01-25 18:35:28 +02:00
|
|
|
"object",
|
|
|
|
"resizePath",
|
|
|
|
"deviceAssetId",
|
|
|
|
"deviceId"
|
2022-12-05 19:56:44 +02:00
|
|
|
]
|
|
|
|
},
|
2023-01-25 18:35:28 +02:00
|
|
|
"CuratedLocationsResponseDto": {
|
2022-12-05 19:56:44 +02:00
|
|
|
"type": "object",
|
|
|
|
"properties": {
|
|
|
|
"id": {
|
|
|
|
"type": "string"
|
|
|
|
},
|
2023-01-25 18:35:28 +02:00
|
|
|
"city": {
|
2022-12-05 19:56:44 +02:00
|
|
|
"type": "string"
|
|
|
|
},
|
|
|
|
"resizePath": {
|
|
|
|
"type": "string"
|
|
|
|
},
|
2023-01-25 18:35:28 +02:00
|
|
|
"deviceAssetId": {
|
2022-12-05 19:56:44 +02:00
|
|
|
"type": "string"
|
|
|
|
},
|
2023-01-25 18:35:28 +02:00
|
|
|
"deviceId": {
|
2022-12-05 19:56:44 +02:00
|
|
|
"type": "string"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"required": [
|
|
|
|
"id",
|
2023-01-25 18:35:28 +02:00
|
|
|
"city",
|
2022-12-05 19:56:44 +02:00
|
|
|
"resizePath",
|
2023-01-25 18:35:28 +02:00
|
|
|
"deviceAssetId",
|
|
|
|
"deviceId"
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"SearchAssetDto": {
|
|
|
|
"type": "object",
|
|
|
|
"properties": {
|
|
|
|
"searchTerm": {
|
|
|
|
"type": "string"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"required": [
|
|
|
|
"searchTerm"
|
2022-12-05 19:56:44 +02:00
|
|
|
]
|
|
|
|
},
|
|
|
|
"TimeGroupEnum": {
|
|
|
|
"type": "string",
|
|
|
|
"enum": [
|
|
|
|
"day",
|
|
|
|
"month"
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"GetAssetCountByTimeBucketDto": {
|
|
|
|
"type": "object",
|
|
|
|
"properties": {
|
|
|
|
"timeGroup": {
|
|
|
|
"$ref": "#/components/schemas/TimeGroupEnum"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"required": [
|
|
|
|
"timeGroup"
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"AssetCountByTimeBucket": {
|
|
|
|
"type": "object",
|
|
|
|
"properties": {
|
|
|
|
"timeBucket": {
|
|
|
|
"type": "string"
|
|
|
|
},
|
|
|
|
"count": {
|
|
|
|
"type": "integer"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"required": [
|
|
|
|
"timeBucket",
|
|
|
|
"count"
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"AssetCountByTimeBucketResponseDto": {
|
|
|
|
"type": "object",
|
|
|
|
"properties": {
|
|
|
|
"totalCount": {
|
|
|
|
"type": "integer"
|
|
|
|
},
|
|
|
|
"buckets": {
|
|
|
|
"type": "array",
|
|
|
|
"items": {
|
|
|
|
"$ref": "#/components/schemas/AssetCountByTimeBucket"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"required": [
|
|
|
|
"totalCount",
|
|
|
|
"buckets"
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"AssetCountByUserIdResponseDto": {
|
|
|
|
"type": "object",
|
|
|
|
"properties": {
|
|
|
|
"audio": {
|
|
|
|
"type": "integer",
|
|
|
|
"default": 0
|
|
|
|
},
|
|
|
|
"photos": {
|
|
|
|
"type": "integer",
|
|
|
|
"default": 0
|
|
|
|
},
|
|
|
|
"videos": {
|
|
|
|
"type": "integer",
|
|
|
|
"default": 0
|
|
|
|
},
|
|
|
|
"other": {
|
|
|
|
"type": "integer",
|
|
|
|
"default": 0
|
|
|
|
},
|
|
|
|
"total": {
|
|
|
|
"type": "integer",
|
|
|
|
"default": 0
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"required": [
|
|
|
|
"audio",
|
|
|
|
"photos",
|
|
|
|
"videos",
|
|
|
|
"other",
|
|
|
|
"total"
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"GetAssetByTimeBucketDto": {
|
|
|
|
"type": "object",
|
|
|
|
"properties": {
|
|
|
|
"timeBucket": {
|
|
|
|
"title": "Array of date time buckets",
|
|
|
|
"example": [
|
|
|
|
"2015-06-01T00:00:00.000Z",
|
|
|
|
"2016-02-01T00:00:00.000Z",
|
|
|
|
"2016-03-01T00:00:00.000Z"
|
|
|
|
],
|
|
|
|
"type": "array",
|
|
|
|
"items": {
|
|
|
|
"type": "string"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"required": [
|
|
|
|
"timeBucket"
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"UpdateAssetDto": {
|
|
|
|
"type": "object",
|
|
|
|
"properties": {
|
|
|
|
"tagIds": {
|
|
|
|
"title": "Array of tag IDs to add to the asset",
|
|
|
|
"example": [
|
|
|
|
"bf973405-3f2a-48d2-a687-2ed4167164be",
|
|
|
|
"dd41870b-5d00-46d2-924e-1d8489a0aa0f",
|
|
|
|
"fad77c3f-deef-4e7e-9608-14c1aa4e559a"
|
|
|
|
],
|
|
|
|
"type": "array",
|
|
|
|
"items": {
|
|
|
|
"type": "string"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"isFavorite": {
|
|
|
|
"type": "boolean"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"DeleteAssetDto": {
|
|
|
|
"type": "object",
|
|
|
|
"properties": {
|
|
|
|
"ids": {
|
|
|
|
"title": "Array of asset IDs to delete",
|
|
|
|
"example": [
|
|
|
|
"bf973405-3f2a-48d2-a687-2ed4167164be",
|
|
|
|
"dd41870b-5d00-46d2-924e-1d8489a0aa0f",
|
|
|
|
"fad77c3f-deef-4e7e-9608-14c1aa4e559a"
|
|
|
|
],
|
|
|
|
"type": "array",
|
|
|
|
"items": {
|
|
|
|
"type": "string"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"required": [
|
|
|
|
"ids"
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"DeleteAssetStatus": {
|
|
|
|
"type": "string",
|
|
|
|
"enum": [
|
|
|
|
"SUCCESS",
|
|
|
|
"FAILED"
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"DeleteAssetResponseDto": {
|
|
|
|
"type": "object",
|
|
|
|
"properties": {
|
|
|
|
"status": {
|
|
|
|
"$ref": "#/components/schemas/DeleteAssetStatus"
|
|
|
|
},
|
|
|
|
"id": {
|
|
|
|
"type": "string"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"required": [
|
|
|
|
"status",
|
|
|
|
"id"
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"CheckDuplicateAssetDto": {
|
|
|
|
"type": "object",
|
|
|
|
"properties": {
|
|
|
|
"deviceAssetId": {
|
|
|
|
"type": "string"
|
|
|
|
},
|
|
|
|
"deviceId": {
|
|
|
|
"type": "string"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"required": [
|
|
|
|
"deviceAssetId",
|
|
|
|
"deviceId"
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"CheckDuplicateAssetResponseDto": {
|
|
|
|
"type": "object",
|
|
|
|
"properties": {
|
|
|
|
"isExist": {
|
|
|
|
"type": "boolean"
|
|
|
|
},
|
|
|
|
"id": {
|
|
|
|
"type": "string"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"required": [
|
|
|
|
"isExist"
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"CheckExistingAssetsDto": {
|
|
|
|
"type": "object",
|
|
|
|
"properties": {
|
|
|
|
"deviceAssetIds": {
|
|
|
|
"type": "array",
|
|
|
|
"items": {
|
|
|
|
"type": "string"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"deviceId": {
|
|
|
|
"type": "string"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"required": [
|
|
|
|
"deviceAssetIds",
|
|
|
|
"deviceId"
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"CheckExistingAssetsResponseDto": {
|
|
|
|
"type": "object",
|
|
|
|
"properties": {
|
|
|
|
"existingIds": {
|
|
|
|
"type": "array",
|
|
|
|
"items": {
|
|
|
|
"type": "string"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"required": [
|
|
|
|
"existingIds"
|
|
|
|
]
|
|
|
|
},
|
2023-01-15 07:49:47 +02:00
|
|
|
"CreateAssetsShareLinkDto": {
|
|
|
|
"type": "object",
|
|
|
|
"properties": {
|
|
|
|
"assetIds": {
|
|
|
|
"title": "Array asset IDs to be shared",
|
|
|
|
"example": [
|
|
|
|
"bf973405-3f2a-48d2-a687-2ed4167164be",
|
|
|
|
"dd41870b-5d00-46d2-924e-1d8489a0aa0f",
|
|
|
|
"fad77c3f-deef-4e7e-9608-14c1aa4e559a"
|
|
|
|
],
|
|
|
|
"type": "array",
|
|
|
|
"items": {
|
|
|
|
"type": "string"
|
|
|
|
}
|
|
|
|
},
|
2023-01-25 18:35:28 +02:00
|
|
|
"expiresAt": {
|
2023-01-15 07:49:47 +02:00
|
|
|
"type": "string"
|
|
|
|
},
|
|
|
|
"allowUpload": {
|
|
|
|
"type": "boolean"
|
|
|
|
},
|
2023-01-22 06:15:16 +02:00
|
|
|
"allowDownload": {
|
|
|
|
"type": "boolean"
|
|
|
|
},
|
|
|
|
"showExif": {
|
|
|
|
"type": "boolean"
|
|
|
|
},
|
2023-01-15 07:49:47 +02:00
|
|
|
"description": {
|
|
|
|
"type": "string"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"required": [
|
|
|
|
"assetIds"
|
|
|
|
]
|
|
|
|
},
|
2023-02-15 23:21:22 +02:00
|
|
|
"AddAssetsDto": {
|
|
|
|
"type": "object",
|
|
|
|
"properties": {
|
|
|
|
"assetIds": {
|
|
|
|
"type": "array",
|
|
|
|
"items": {
|
|
|
|
"type": "string"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"required": [
|
|
|
|
"assetIds"
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"RemoveAssetsDto": {
|
2023-01-15 07:49:47 +02:00
|
|
|
"type": "object",
|
|
|
|
"properties": {
|
|
|
|
"assetIds": {
|
|
|
|
"type": "array",
|
|
|
|
"items": {
|
|
|
|
"type": "string"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"required": [
|
|
|
|
"assetIds"
|
|
|
|
]
|
|
|
|
},
|
2023-01-15 22:01:10 +02:00
|
|
|
"CreateTagDto": {
|
|
|
|
"type": "object",
|
|
|
|
"properties": {
|
|
|
|
"type": {
|
|
|
|
"$ref": "#/components/schemas/TagTypeEnum"
|
|
|
|
},
|
|
|
|
"name": {
|
|
|
|
"type": "string"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"required": [
|
|
|
|
"type",
|
|
|
|
"name"
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"UpdateTagDto": {
|
|
|
|
"type": "object",
|
|
|
|
"properties": {
|
|
|
|
"name": {
|
|
|
|
"type": "string"
|
|
|
|
},
|
|
|
|
"renameTagId": {
|
|
|
|
"type": "string"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
2022-12-05 19:56:44 +02:00
|
|
|
"AlbumCountResponseDto": {
|
|
|
|
"type": "object",
|
|
|
|
"properties": {
|
|
|
|
"owned": {
|
|
|
|
"type": "integer"
|
|
|
|
},
|
|
|
|
"shared": {
|
|
|
|
"type": "integer"
|
|
|
|
},
|
|
|
|
"sharing": {
|
|
|
|
"type": "integer"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"required": [
|
|
|
|
"owned",
|
|
|
|
"shared",
|
|
|
|
"sharing"
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"CreateAlbumDto": {
|
|
|
|
"type": "object",
|
|
|
|
"properties": {
|
|
|
|
"albumName": {
|
|
|
|
"type": "string"
|
|
|
|
},
|
|
|
|
"sharedWithUserIds": {
|
|
|
|
"type": "array",
|
|
|
|
"items": {
|
|
|
|
"type": "string"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"assetIds": {
|
|
|
|
"type": "array",
|
|
|
|
"items": {
|
|
|
|
"type": "string"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"required": [
|
|
|
|
"albumName"
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"AddUsersDto": {
|
|
|
|
"type": "object",
|
|
|
|
"properties": {
|
|
|
|
"sharedUserIds": {
|
|
|
|
"type": "array",
|
|
|
|
"items": {
|
|
|
|
"type": "string"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"required": [
|
|
|
|
"sharedUserIds"
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"AddAssetsResponseDto": {
|
|
|
|
"type": "object",
|
|
|
|
"properties": {
|
|
|
|
"successfullyAdded": {
|
|
|
|
"type": "integer"
|
|
|
|
},
|
|
|
|
"alreadyInAlbum": {
|
|
|
|
"type": "array",
|
|
|
|
"items": {
|
|
|
|
"type": "string"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"album": {
|
|
|
|
"$ref": "#/components/schemas/AlbumResponseDto"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"required": [
|
|
|
|
"successfullyAdded",
|
|
|
|
"alreadyInAlbum"
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"UpdateAlbumDto": {
|
|
|
|
"type": "object",
|
|
|
|
"properties": {
|
|
|
|
"albumName": {
|
|
|
|
"type": "string"
|
|
|
|
},
|
|
|
|
"albumThumbnailAssetId": {
|
|
|
|
"type": "string"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
2023-01-09 22:16:08 +02:00
|
|
|
"CreateAlbumShareLinkDto": {
|
|
|
|
"type": "object",
|
|
|
|
"properties": {
|
|
|
|
"albumId": {
|
|
|
|
"type": "string"
|
|
|
|
},
|
2023-01-25 18:35:28 +02:00
|
|
|
"expiresAt": {
|
2023-01-09 22:16:08 +02:00
|
|
|
"type": "string"
|
|
|
|
},
|
|
|
|
"allowUpload": {
|
|
|
|
"type": "boolean"
|
2023-01-22 06:15:16 +02:00
|
|
|
},
|
|
|
|
"allowDownload": {
|
|
|
|
"type": "boolean"
|
|
|
|
},
|
|
|
|
"showExif": {
|
|
|
|
"type": "boolean"
|
2023-01-09 22:16:08 +02:00
|
|
|
},
|
|
|
|
"description": {
|
|
|
|
"type": "string"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"required": [
|
|
|
|
"albumId"
|
|
|
|
]
|
|
|
|
},
|
2022-12-05 19:56:44 +02:00
|
|
|
"ServerInfoResponseDto": {
|
|
|
|
"type": "object",
|
|
|
|
"properties": {
|
|
|
|
"diskSizeRaw": {
|
|
|
|
"type": "integer",
|
|
|
|
"format": "int64"
|
|
|
|
},
|
|
|
|
"diskUseRaw": {
|
|
|
|
"type": "integer",
|
|
|
|
"format": "int64"
|
|
|
|
},
|
|
|
|
"diskAvailableRaw": {
|
|
|
|
"type": "integer",
|
|
|
|
"format": "int64"
|
|
|
|
},
|
|
|
|
"diskUsagePercentage": {
|
|
|
|
"type": "number",
|
|
|
|
"format": "float"
|
|
|
|
},
|
|
|
|
"diskSize": {
|
|
|
|
"type": "string"
|
|
|
|
},
|
|
|
|
"diskUse": {
|
|
|
|
"type": "string"
|
|
|
|
},
|
|
|
|
"diskAvailable": {
|
|
|
|
"type": "string"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"required": [
|
|
|
|
"diskSizeRaw",
|
|
|
|
"diskUseRaw",
|
|
|
|
"diskAvailableRaw",
|
|
|
|
"diskUsagePercentage",
|
|
|
|
"diskSize",
|
|
|
|
"diskUse",
|
|
|
|
"diskAvailable"
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"ServerPingResponse": {
|
|
|
|
"type": "object",
|
|
|
|
"properties": {
|
|
|
|
"res": {
|
|
|
|
"type": "string",
|
|
|
|
"readOnly": true,
|
|
|
|
"example": "pong"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"required": [
|
|
|
|
"res"
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"ServerVersionReponseDto": {
|
|
|
|
"type": "object",
|
|
|
|
"properties": {
|
|
|
|
"major": {
|
|
|
|
"type": "integer"
|
|
|
|
},
|
|
|
|
"minor": {
|
|
|
|
"type": "integer"
|
|
|
|
},
|
|
|
|
"patch": {
|
|
|
|
"type": "integer"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"required": [
|
|
|
|
"major",
|
|
|
|
"minor",
|
2023-01-24 05:46:37 +02:00
|
|
|
"patch"
|
2022-12-05 19:56:44 +02:00
|
|
|
]
|
|
|
|
},
|
|
|
|
"UsageByUserDto": {
|
|
|
|
"type": "object",
|
|
|
|
"properties": {
|
|
|
|
"userId": {
|
|
|
|
"type": "string"
|
|
|
|
},
|
|
|
|
"videos": {
|
|
|
|
"type": "integer"
|
|
|
|
},
|
|
|
|
"photos": {
|
|
|
|
"type": "integer"
|
|
|
|
},
|
|
|
|
"usageRaw": {
|
|
|
|
"type": "integer",
|
|
|
|
"format": "int64"
|
|
|
|
},
|
|
|
|
"usage": {
|
|
|
|
"type": "string"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"required": [
|
|
|
|
"userId",
|
|
|
|
"videos",
|
|
|
|
"photos",
|
|
|
|
"usageRaw",
|
|
|
|
"usage"
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"ServerStatsResponseDto": {
|
|
|
|
"type": "object",
|
|
|
|
"properties": {
|
|
|
|
"photos": {
|
|
|
|
"type": "integer"
|
|
|
|
},
|
|
|
|
"videos": {
|
|
|
|
"type": "integer"
|
|
|
|
},
|
|
|
|
"objects": {
|
|
|
|
"type": "integer"
|
|
|
|
},
|
|
|
|
"usageRaw": {
|
|
|
|
"type": "integer",
|
|
|
|
"format": "int64"
|
|
|
|
},
|
|
|
|
"usage": {
|
|
|
|
"type": "string"
|
|
|
|
},
|
|
|
|
"usageByUser": {
|
|
|
|
"title": "Array of usage for each user",
|
|
|
|
"example": [
|
|
|
|
{
|
|
|
|
"photos": 1,
|
|
|
|
"videos": 1,
|
|
|
|
"diskUsageRaw": 1
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"type": "array",
|
|
|
|
"items": {
|
|
|
|
"$ref": "#/components/schemas/UsageByUserDto"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"required": [
|
|
|
|
"photos",
|
|
|
|
"videos",
|
|
|
|
"objects",
|
|
|
|
"usageRaw",
|
|
|
|
"usage",
|
|
|
|
"usageByUser"
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"JobCounts": {
|
|
|
|
"type": "object",
|
|
|
|
"properties": {
|
|
|
|
"active": {
|
|
|
|
"type": "integer"
|
|
|
|
},
|
|
|
|
"completed": {
|
|
|
|
"type": "integer"
|
|
|
|
},
|
|
|
|
"failed": {
|
|
|
|
"type": "integer"
|
|
|
|
},
|
|
|
|
"delayed": {
|
|
|
|
"type": "integer"
|
|
|
|
},
|
|
|
|
"waiting": {
|
|
|
|
"type": "integer"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"required": [
|
|
|
|
"active",
|
|
|
|
"completed",
|
|
|
|
"failed",
|
|
|
|
"delayed",
|
|
|
|
"waiting"
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"AllJobStatusResponseDto": {
|
|
|
|
"type": "object",
|
|
|
|
"properties": {
|
2023-01-22 06:13:36 +02:00
|
|
|
"thumbnail-generation": {
|
2022-12-05 19:56:44 +02:00
|
|
|
"$ref": "#/components/schemas/JobCounts"
|
|
|
|
},
|
2023-01-22 06:13:36 +02:00
|
|
|
"metadata-extraction": {
|
2022-12-05 19:56:44 +02:00
|
|
|
"$ref": "#/components/schemas/JobCounts"
|
|
|
|
},
|
2023-01-22 06:13:36 +02:00
|
|
|
"video-conversion": {
|
2022-12-05 19:56:44 +02:00
|
|
|
"$ref": "#/components/schemas/JobCounts"
|
|
|
|
},
|
2023-01-22 06:13:36 +02:00
|
|
|
"machine-learning": {
|
2022-12-05 19:56:44 +02:00
|
|
|
"$ref": "#/components/schemas/JobCounts"
|
|
|
|
},
|
2023-01-22 06:13:36 +02:00
|
|
|
"storage-template-migration": {
|
2022-12-19 20:13:10 +02:00
|
|
|
"$ref": "#/components/schemas/JobCounts"
|
2022-12-05 19:56:44 +02:00
|
|
|
}
|
|
|
|
},
|
|
|
|
"required": [
|
2023-01-22 06:13:36 +02:00
|
|
|
"thumbnail-generation",
|
|
|
|
"metadata-extraction",
|
|
|
|
"video-conversion",
|
|
|
|
"machine-learning",
|
|
|
|
"storage-template-migration"
|
2022-12-05 19:56:44 +02:00
|
|
|
]
|
|
|
|
},
|
|
|
|
"JobId": {
|
|
|
|
"type": "string",
|
|
|
|
"enum": [
|
|
|
|
"thumbnail-generation",
|
|
|
|
"metadata-extraction",
|
|
|
|
"video-conversion",
|
2022-12-19 20:13:10 +02:00
|
|
|
"machine-learning",
|
|
|
|
"storage-template-migration"
|
2022-12-05 19:56:44 +02:00
|
|
|
]
|
|
|
|
},
|
|
|
|
"JobCommand": {
|
|
|
|
"type": "string",
|
|
|
|
"enum": [
|
|
|
|
"start",
|
|
|
|
"stop"
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"JobCommandDto": {
|
|
|
|
"type": "object",
|
|
|
|
"properties": {
|
|
|
|
"command": {
|
|
|
|
"$ref": "#/components/schemas/JobCommand"
|
2023-01-27 06:50:22 +02:00
|
|
|
},
|
|
|
|
"includeAllAssets": {
|
|
|
|
"type": "boolean"
|
2022-12-05 19:56:44 +02:00
|
|
|
}
|
|
|
|
},
|
|
|
|
"required": [
|
2023-01-27 06:50:22 +02:00
|
|
|
"command",
|
|
|
|
"includeAllAssets"
|
2022-12-05 19:56:44 +02:00
|
|
|
]
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|