2022-12-05 17:56:44 +00:00
|
|
|
{
|
|
|
|
"openapi": "3.0.0",
|
|
|
|
"paths": {
|
2023-03-26 02:46:48 +00:00
|
|
|
"/album": {
|
|
|
|
"get": {
|
|
|
|
"operationId": "getAllAlbums",
|
|
|
|
"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": {
|
|
|
|
"format": "uuid",
|
|
|
|
"type": "string"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"responses": {
|
|
|
|
"200": {
|
|
|
|
"description": "",
|
|
|
|
"content": {
|
|
|
|
"application/json": {
|
|
|
|
"schema": {
|
|
|
|
"type": "array",
|
|
|
|
"items": {
|
|
|
|
"$ref": "#/components/schemas/AlbumResponseDto"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"tags": [
|
|
|
|
"Album"
|
|
|
|
],
|
|
|
|
"security": [
|
|
|
|
{
|
|
|
|
"bearer": []
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"cookie": []
|
2023-05-04 16:41:29 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"api_key": []
|
2023-03-26 02:46:48 +00:00
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"post": {
|
|
|
|
"operationId": "createAlbum",
|
|
|
|
"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": []
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"cookie": []
|
2023-05-04 16:41:29 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"api_key": []
|
2023-03-26 02:46:48 +00:00
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
2023-05-25 19:37:19 +00:00
|
|
|
"/album/{id}": {
|
|
|
|
"patch": {
|
|
|
|
"operationId": "updateAlbumInfo",
|
|
|
|
"parameters": [
|
|
|
|
{
|
|
|
|
"name": "id",
|
|
|
|
"required": true,
|
|
|
|
"in": "path",
|
|
|
|
"schema": {
|
|
|
|
"format": "uuid",
|
|
|
|
"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": []
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"cookie": []
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"api_key": []
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
2023-05-26 13:04:09 +00:00
|
|
|
"delete": {
|
|
|
|
"operationId": "deleteAlbum",
|
2023-05-25 19:37:19 +00:00
|
|
|
"parameters": [
|
|
|
|
{
|
|
|
|
"name": "id",
|
|
|
|
"required": true,
|
|
|
|
"in": "path",
|
|
|
|
"schema": {
|
|
|
|
"format": "uuid",
|
|
|
|
"type": "string"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"responses": {
|
|
|
|
"200": {
|
2023-05-26 13:04:09 +00:00
|
|
|
"description": ""
|
2023-05-25 19:37:19 +00:00
|
|
|
}
|
|
|
|
},
|
|
|
|
"tags": [
|
|
|
|
"Album"
|
|
|
|
],
|
|
|
|
"security": [
|
|
|
|
{
|
|
|
|
"bearer": []
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"cookie": []
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"api_key": []
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
2023-05-26 13:04:09 +00:00
|
|
|
"get": {
|
|
|
|
"operationId": "getAlbumInfo",
|
2023-05-25 19:37:19 +00:00
|
|
|
"parameters": [
|
|
|
|
{
|
|
|
|
"name": "id",
|
|
|
|
"required": true,
|
|
|
|
"in": "path",
|
|
|
|
"schema": {
|
|
|
|
"format": "uuid",
|
|
|
|
"type": "string"
|
|
|
|
}
|
2023-05-26 13:04:09 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"name": "key",
|
|
|
|
"required": false,
|
|
|
|
"in": "query",
|
|
|
|
"schema": {
|
|
|
|
"type": "string"
|
|
|
|
}
|
2023-05-25 19:37:19 +00:00
|
|
|
}
|
|
|
|
],
|
|
|
|
"responses": {
|
|
|
|
"200": {
|
2023-05-26 13:04:09 +00:00
|
|
|
"description": "",
|
|
|
|
"content": {
|
|
|
|
"application/json": {
|
|
|
|
"schema": {
|
|
|
|
"$ref": "#/components/schemas/AlbumResponseDto"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2023-05-25 19:37:19 +00:00
|
|
|
}
|
|
|
|
},
|
|
|
|
"tags": [
|
|
|
|
"Album"
|
|
|
|
],
|
|
|
|
"security": [
|
|
|
|
{
|
|
|
|
"bearer": []
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"cookie": []
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"api_key": []
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
2023-01-18 14:40:15 +00:00
|
|
|
"/api-key": {
|
|
|
|
"post": {
|
|
|
|
"operationId": "createKey",
|
|
|
|
"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"
|
2023-02-24 16:01:10 +00:00
|
|
|
],
|
|
|
|
"security": [
|
|
|
|
{
|
|
|
|
"bearer": []
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"cookie": []
|
2023-05-04 16:41:29 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"api_key": []
|
2023-02-24 16:01:10 +00:00
|
|
|
}
|
2023-01-18 14:40:15 +00:00
|
|
|
]
|
|
|
|
},
|
|
|
|
"get": {
|
|
|
|
"operationId": "getKeys",
|
|
|
|
"parameters": [],
|
|
|
|
"responses": {
|
|
|
|
"200": {
|
|
|
|
"description": "",
|
|
|
|
"content": {
|
|
|
|
"application/json": {
|
|
|
|
"schema": {
|
|
|
|
"type": "array",
|
|
|
|
"items": {
|
|
|
|
"$ref": "#/components/schemas/APIKeyResponseDto"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"tags": [
|
|
|
|
"API Key"
|
2023-02-24 16:01:10 +00:00
|
|
|
],
|
|
|
|
"security": [
|
|
|
|
{
|
|
|
|
"bearer": []
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"cookie": []
|
2023-05-04 16:41:29 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"api_key": []
|
2023-02-24 16:01:10 +00:00
|
|
|
}
|
2023-01-18 14:40:15 +00:00
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"/api-key/{id}": {
|
|
|
|
"get": {
|
|
|
|
"operationId": "getKey",
|
|
|
|
"parameters": [
|
|
|
|
{
|
|
|
|
"name": "id",
|
|
|
|
"required": true,
|
|
|
|
"in": "path",
|
|
|
|
"schema": {
|
2023-04-04 22:24:08 +00:00
|
|
|
"format": "uuid",
|
2023-02-18 20:58:55 +00:00
|
|
|
"type": "string"
|
2023-01-18 14:40:15 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"responses": {
|
|
|
|
"200": {
|
|
|
|
"description": "",
|
|
|
|
"content": {
|
|
|
|
"application/json": {
|
|
|
|
"schema": {
|
|
|
|
"$ref": "#/components/schemas/APIKeyResponseDto"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"tags": [
|
|
|
|
"API Key"
|
2023-02-24 16:01:10 +00:00
|
|
|
],
|
|
|
|
"security": [
|
|
|
|
{
|
|
|
|
"bearer": []
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"cookie": []
|
2023-05-04 16:41:29 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"api_key": []
|
2023-02-24 16:01:10 +00:00
|
|
|
}
|
2023-01-18 14:40:15 +00:00
|
|
|
]
|
|
|
|
},
|
|
|
|
"put": {
|
|
|
|
"operationId": "updateKey",
|
|
|
|
"parameters": [
|
|
|
|
{
|
|
|
|
"name": "id",
|
|
|
|
"required": true,
|
|
|
|
"in": "path",
|
|
|
|
"schema": {
|
2023-04-04 22:24:08 +00:00
|
|
|
"format": "uuid",
|
2023-02-18 20:58:55 +00:00
|
|
|
"type": "string"
|
2023-01-18 14:40:15 +00: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"
|
2023-02-24 16:01:10 +00:00
|
|
|
],
|
|
|
|
"security": [
|
|
|
|
{
|
|
|
|
"bearer": []
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"cookie": []
|
2023-05-04 16:41:29 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"api_key": []
|
2023-02-24 16:01:10 +00:00
|
|
|
}
|
2023-01-18 14:40:15 +00:00
|
|
|
]
|
|
|
|
},
|
|
|
|
"delete": {
|
|
|
|
"operationId": "deleteKey",
|
|
|
|
"parameters": [
|
|
|
|
{
|
|
|
|
"name": "id",
|
|
|
|
"required": true,
|
|
|
|
"in": "path",
|
|
|
|
"schema": {
|
2023-04-04 22:24:08 +00:00
|
|
|
"format": "uuid",
|
2023-02-18 20:58:55 +00:00
|
|
|
"type": "string"
|
2023-01-18 14:40:15 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"responses": {
|
|
|
|
"200": {
|
|
|
|
"description": ""
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"tags": [
|
|
|
|
"API Key"
|
2023-02-24 16:01:10 +00:00
|
|
|
],
|
|
|
|
"security": [
|
|
|
|
{
|
|
|
|
"bearer": []
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"cookie": []
|
2023-05-04 16:41:29 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"api_key": []
|
2023-02-24 16:01:10 +00:00
|
|
|
}
|
2023-01-18 14:40:15 +00:00
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
2023-05-21 06:26:06 +00:00
|
|
|
"/asset/map-marker": {
|
|
|
|
"get": {
|
|
|
|
"operationId": "getMapMarkers",
|
|
|
|
"parameters": [
|
|
|
|
{
|
|
|
|
"name": "isFavorite",
|
|
|
|
"required": false,
|
|
|
|
"in": "query",
|
|
|
|
"schema": {
|
|
|
|
"type": "boolean"
|
|
|
|
}
|
2023-05-25 16:47:52 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"name": "fileCreatedAfter",
|
|
|
|
"required": false,
|
|
|
|
"in": "query",
|
|
|
|
"schema": {
|
|
|
|
"format": "date-time",
|
|
|
|
"type": "string"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"name": "fileCreatedBefore",
|
|
|
|
"required": false,
|
|
|
|
"in": "query",
|
|
|
|
"schema": {
|
|
|
|
"format": "date-time",
|
|
|
|
"type": "string"
|
|
|
|
}
|
2023-05-21 06:26:06 +00:00
|
|
|
}
|
|
|
|
],
|
|
|
|
"responses": {
|
|
|
|
"200": {
|
|
|
|
"description": "",
|
|
|
|
"content": {
|
|
|
|
"application/json": {
|
|
|
|
"schema": {
|
|
|
|
"type": "array",
|
|
|
|
"items": {
|
|
|
|
"$ref": "#/components/schemas/MapMarkerResponseDto"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"tags": [
|
|
|
|
"Asset"
|
|
|
|
],
|
|
|
|
"security": [
|
|
|
|
{
|
|
|
|
"bearer": []
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"cookie": []
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"api_key": []
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
2023-01-24 04:13:42 +00:00
|
|
|
"/auth/login": {
|
|
|
|
"post": {
|
|
|
|
"operationId": "login",
|
2023-01-21 16:11:55 +00:00
|
|
|
"parameters": [],
|
2023-01-24 04:13:42 +00:00
|
|
|
"requestBody": {
|
|
|
|
"required": true,
|
|
|
|
"content": {
|
|
|
|
"application/json": {
|
|
|
|
"schema": {
|
|
|
|
"$ref": "#/components/schemas/LoginCredentialDto"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
2023-01-21 16:11:55 +00:00
|
|
|
"responses": {
|
2023-01-24 04:13:42 +00:00
|
|
|
"201": {
|
2023-01-21 16:11:55 +00:00
|
|
|
"description": "",
|
|
|
|
"content": {
|
|
|
|
"application/json": {
|
|
|
|
"schema": {
|
2023-01-24 04:13:42 +00:00
|
|
|
"$ref": "#/components/schemas/LoginResponseDto"
|
2023-01-21 16:11:55 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"tags": [
|
2023-01-24 04:13:42 +00:00
|
|
|
"Authentication"
|
2023-01-21 16:11:55 +00:00
|
|
|
]
|
2023-01-24 04:13:42 +00:00
|
|
|
}
|
|
|
|
},
|
|
|
|
"/auth/admin-sign-up": {
|
|
|
|
"post": {
|
|
|
|
"operationId": "adminSignUp",
|
2023-01-21 16:11:55 +00:00
|
|
|
"parameters": [],
|
|
|
|
"requestBody": {
|
|
|
|
"required": true,
|
|
|
|
"content": {
|
|
|
|
"application/json": {
|
|
|
|
"schema": {
|
2023-01-24 04:13:42 +00:00
|
|
|
"$ref": "#/components/schemas/SignUpDto"
|
2023-01-21 16:11:55 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"responses": {
|
2023-01-24 04:13:42 +00:00
|
|
|
"201": {
|
2023-01-21 16:11:55 +00:00
|
|
|
"description": "",
|
|
|
|
"content": {
|
|
|
|
"application/json": {
|
|
|
|
"schema": {
|
2023-01-24 04:13:42 +00:00
|
|
|
"$ref": "#/components/schemas/AdminSignupResponseDto"
|
2023-01-21 16:11:55 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2023-01-24 04:13:42 +00:00
|
|
|
},
|
|
|
|
"400": {
|
|
|
|
"description": "The server already has an admin"
|
2023-01-21 16:11:55 +00:00
|
|
|
}
|
|
|
|
},
|
|
|
|
"tags": [
|
2023-01-24 04:13:42 +00:00
|
|
|
"Authentication"
|
2023-01-21 16:11:55 +00:00
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
2023-04-26 02:19:23 +00:00
|
|
|
"/auth/devices": {
|
|
|
|
"get": {
|
|
|
|
"operationId": "getAuthDevices",
|
|
|
|
"parameters": [],
|
|
|
|
"responses": {
|
|
|
|
"200": {
|
|
|
|
"description": "",
|
|
|
|
"content": {
|
|
|
|
"application/json": {
|
|
|
|
"schema": {
|
|
|
|
"type": "array",
|
|
|
|
"items": {
|
|
|
|
"$ref": "#/components/schemas/AuthDeviceResponseDto"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"tags": [
|
|
|
|
"Authentication"
|
|
|
|
],
|
|
|
|
"security": [
|
|
|
|
{
|
|
|
|
"bearer": []
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"cookie": []
|
2023-05-04 16:41:29 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"api_key": []
|
2023-04-26 02:19:23 +00:00
|
|
|
}
|
|
|
|
]
|
2023-05-09 19:34:17 +00:00
|
|
|
},
|
|
|
|
"delete": {
|
|
|
|
"operationId": "logoutAuthDevices",
|
|
|
|
"parameters": [],
|
|
|
|
"responses": {
|
|
|
|
"200": {
|
|
|
|
"description": ""
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"tags": [
|
|
|
|
"Authentication"
|
|
|
|
],
|
|
|
|
"security": [
|
|
|
|
{
|
|
|
|
"bearer": []
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"cookie": []
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"api_key": []
|
|
|
|
}
|
|
|
|
]
|
2023-04-26 02:19:23 +00:00
|
|
|
}
|
|
|
|
},
|
|
|
|
"/auth/devices/{id}": {
|
|
|
|
"delete": {
|
|
|
|
"operationId": "logoutAuthDevice",
|
|
|
|
"parameters": [
|
|
|
|
{
|
|
|
|
"name": "id",
|
|
|
|
"required": true,
|
|
|
|
"in": "path",
|
|
|
|
"schema": {
|
|
|
|
"format": "uuid",
|
|
|
|
"type": "string"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"responses": {
|
|
|
|
"200": {
|
|
|
|
"description": ""
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"tags": [
|
|
|
|
"Authentication"
|
|
|
|
],
|
|
|
|
"security": [
|
|
|
|
{
|
|
|
|
"bearer": []
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"cookie": []
|
2023-05-04 16:41:29 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"api_key": []
|
2023-04-26 02:19:23 +00:00
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
2023-01-24 04:13:42 +00:00
|
|
|
"/auth/validateToken": {
|
|
|
|
"post": {
|
|
|
|
"operationId": "validateAccessToken",
|
2023-01-21 16:11:55 +00:00
|
|
|
"parameters": [],
|
|
|
|
"responses": {
|
2023-01-24 04:13:42 +00:00
|
|
|
"201": {
|
2023-01-21 16:11:55 +00:00
|
|
|
"description": "",
|
|
|
|
"content": {
|
|
|
|
"application/json": {
|
|
|
|
"schema": {
|
2023-01-24 04:13:42 +00:00
|
|
|
"$ref": "#/components/schemas/ValidateAccessTokenResponseDto"
|
2023-01-21 16:11:55 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"tags": [
|
2023-01-24 04:13:42 +00:00
|
|
|
"Authentication"
|
2023-01-21 16:11:55 +00:00
|
|
|
],
|
|
|
|
"security": [
|
|
|
|
{
|
|
|
|
"bearer": []
|
2023-02-24 16:01:10 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"cookie": []
|
2023-05-04 16:41:29 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"api_key": []
|
2023-01-21 16:11:55 +00:00
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
2023-01-24 04:13:42 +00:00
|
|
|
"/auth/change-password": {
|
|
|
|
"post": {
|
|
|
|
"operationId": "changePassword",
|
2023-01-21 16:11:55 +00:00
|
|
|
"parameters": [],
|
2023-01-24 04:13:42 +00:00
|
|
|
"requestBody": {
|
|
|
|
"required": true,
|
|
|
|
"content": {
|
|
|
|
"application/json": {
|
|
|
|
"schema": {
|
|
|
|
"$ref": "#/components/schemas/ChangePasswordDto"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
2023-01-21 16:11:55 +00:00
|
|
|
"responses": {
|
2023-01-24 04:13:42 +00:00
|
|
|
"201": {
|
2023-01-21 16:11:55 +00:00
|
|
|
"description": "",
|
|
|
|
"content": {
|
|
|
|
"application/json": {
|
|
|
|
"schema": {
|
2023-01-24 04:13:42 +00:00
|
|
|
"$ref": "#/components/schemas/UserResponseDto"
|
2023-01-21 16:11:55 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"tags": [
|
2023-01-24 04:13:42 +00:00
|
|
|
"Authentication"
|
2023-01-21 16:11:55 +00:00
|
|
|
],
|
|
|
|
"security": [
|
|
|
|
{
|
|
|
|
"bearer": []
|
2023-02-24 16:01:10 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"cookie": []
|
2023-05-04 16:41:29 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"api_key": []
|
2023-01-21 16:11:55 +00:00
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
2023-01-24 04:13:42 +00:00
|
|
|
"/auth/logout": {
|
|
|
|
"post": {
|
|
|
|
"operationId": "logout",
|
|
|
|
"parameters": [],
|
|
|
|
"responses": {
|
|
|
|
"201": {
|
|
|
|
"description": "",
|
|
|
|
"content": {
|
|
|
|
"application/json": {
|
|
|
|
"schema": {
|
|
|
|
"$ref": "#/components/schemas/LogoutResponseDto"
|
|
|
|
}
|
|
|
|
}
|
2022-12-05 17:56:44 +00:00
|
|
|
}
|
|
|
|
}
|
2023-01-24 04:13:42 +00:00
|
|
|
},
|
|
|
|
"tags": [
|
|
|
|
"Authentication"
|
2023-02-24 16:01:10 +00:00
|
|
|
],
|
|
|
|
"security": [
|
|
|
|
{
|
|
|
|
"bearer": []
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"cookie": []
|
2023-05-04 16:41:29 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"api_key": []
|
2023-02-24 16:01:10 +00:00
|
|
|
}
|
2023-01-24 04:13:42 +00:00
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
2023-03-20 15:55:28 +00:00
|
|
|
"/jobs": {
|
|
|
|
"get": {
|
|
|
|
"operationId": "getAllJobsStatus",
|
|
|
|
"parameters": [],
|
|
|
|
"responses": {
|
|
|
|
"200": {
|
|
|
|
"description": "",
|
|
|
|
"content": {
|
|
|
|
"application/json": {
|
|
|
|
"schema": {
|
|
|
|
"$ref": "#/components/schemas/AllJobStatusResponseDto"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"tags": [
|
|
|
|
"Job"
|
|
|
|
],
|
|
|
|
"security": [
|
|
|
|
{
|
|
|
|
"bearer": []
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"cookie": []
|
2023-05-04 16:41:29 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"api_key": []
|
2023-03-20 15:55:28 +00:00
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"/jobs/{jobId}": {
|
|
|
|
"put": {
|
|
|
|
"operationId": "sendJobCommand",
|
|
|
|
"parameters": [
|
|
|
|
{
|
|
|
|
"name": "jobId",
|
|
|
|
"required": true,
|
|
|
|
"in": "path",
|
|
|
|
"schema": {
|
|
|
|
"$ref": "#/components/schemas/JobName"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"requestBody": {
|
|
|
|
"required": true,
|
|
|
|
"content": {
|
|
|
|
"application/json": {
|
|
|
|
"schema": {
|
|
|
|
"$ref": "#/components/schemas/JobCommandDto"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"responses": {
|
|
|
|
"200": {
|
2023-04-01 20:46:07 +00:00
|
|
|
"description": "",
|
|
|
|
"content": {
|
|
|
|
"application/json": {
|
|
|
|
"schema": {
|
|
|
|
"$ref": "#/components/schemas/JobStatusDto"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2023-03-20 15:55:28 +00:00
|
|
|
}
|
|
|
|
},
|
|
|
|
"tags": [
|
|
|
|
"Job"
|
|
|
|
],
|
|
|
|
"security": [
|
|
|
|
{
|
|
|
|
"bearer": []
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"cookie": []
|
2023-05-04 16:41:29 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"api_key": []
|
2023-03-20 15:55:28 +00:00
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
2023-01-24 04:13:42 +00:00
|
|
|
"/oauth/mobile-redirect": {
|
|
|
|
"get": {
|
|
|
|
"operationId": "mobileRedirect",
|
|
|
|
"parameters": [],
|
2022-12-05 17:56:44 +00:00
|
|
|
"responses": {
|
|
|
|
"200": {
|
2023-01-24 04:13:42 +00:00
|
|
|
"description": ""
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"tags": [
|
|
|
|
"OAuth"
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"/oauth/config": {
|
|
|
|
"post": {
|
|
|
|
"operationId": "generateConfig",
|
|
|
|
"parameters": [],
|
|
|
|
"requestBody": {
|
|
|
|
"required": true,
|
|
|
|
"content": {
|
|
|
|
"application/json": {
|
|
|
|
"schema": {
|
|
|
|
"$ref": "#/components/schemas/OAuthConfigDto"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"responses": {
|
|
|
|
"201": {
|
2022-12-05 17:56:44 +00:00
|
|
|
"description": "",
|
|
|
|
"content": {
|
|
|
|
"application/json": {
|
|
|
|
"schema": {
|
2023-01-24 04:13:42 +00:00
|
|
|
"$ref": "#/components/schemas/OAuthConfigResponseDto"
|
2022-12-05 17:56:44 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"tags": [
|
2023-01-24 04:13:42 +00:00
|
|
|
"OAuth"
|
2022-12-05 17:56:44 +00:00
|
|
|
]
|
2023-01-24 04:13:42 +00:00
|
|
|
}
|
|
|
|
},
|
|
|
|
"/oauth/callback": {
|
2022-12-05 17:56:44 +00:00
|
|
|
"post": {
|
2023-01-24 04:13:42 +00:00
|
|
|
"operationId": "callback",
|
2022-12-05 17:56:44 +00:00
|
|
|
"parameters": [],
|
|
|
|
"requestBody": {
|
|
|
|
"required": true,
|
|
|
|
"content": {
|
|
|
|
"application/json": {
|
|
|
|
"schema": {
|
2023-01-24 04:13:42 +00:00
|
|
|
"$ref": "#/components/schemas/OAuthCallbackDto"
|
2022-12-05 17:56:44 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"responses": {
|
|
|
|
"201": {
|
|
|
|
"description": "",
|
|
|
|
"content": {
|
|
|
|
"application/json": {
|
|
|
|
"schema": {
|
2023-01-24 04:13:42 +00:00
|
|
|
"$ref": "#/components/schemas/LoginResponseDto"
|
2022-12-05 17:56:44 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"tags": [
|
2023-01-24 04:13:42 +00:00
|
|
|
"OAuth"
|
2022-12-05 17:56:44 +00:00
|
|
|
]
|
2023-01-24 04:13:42 +00:00
|
|
|
}
|
|
|
|
},
|
|
|
|
"/oauth/link": {
|
|
|
|
"post": {
|
|
|
|
"operationId": "link",
|
2022-12-05 17:56:44 +00:00
|
|
|
"parameters": [],
|
|
|
|
"requestBody": {
|
|
|
|
"required": true,
|
|
|
|
"content": {
|
|
|
|
"application/json": {
|
|
|
|
"schema": {
|
2023-01-24 04:13:42 +00:00
|
|
|
"$ref": "#/components/schemas/OAuthCallbackDto"
|
2022-12-05 17:56:44 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"responses": {
|
2023-01-24 04:13:42 +00:00
|
|
|
"201": {
|
2022-12-05 17:56:44 +00:00
|
|
|
"description": "",
|
|
|
|
"content": {
|
|
|
|
"application/json": {
|
|
|
|
"schema": {
|
|
|
|
"$ref": "#/components/schemas/UserResponseDto"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"tags": [
|
2023-01-24 04:13:42 +00:00
|
|
|
"OAuth"
|
2023-02-24 16:01:10 +00:00
|
|
|
],
|
|
|
|
"security": [
|
|
|
|
{
|
|
|
|
"bearer": []
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"cookie": []
|
2023-05-04 16:41:29 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"api_key": []
|
2023-02-24 16:01:10 +00:00
|
|
|
}
|
2022-12-05 17:56:44 +00:00
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
2023-01-24 04:13:42 +00:00
|
|
|
"/oauth/unlink": {
|
|
|
|
"post": {
|
|
|
|
"operationId": "unlink",
|
|
|
|
"parameters": [],
|
2022-12-05 17:56:44 +00:00
|
|
|
"responses": {
|
2023-01-24 04:13:42 +00:00
|
|
|
"201": {
|
2022-12-05 17:56:44 +00:00
|
|
|
"description": "",
|
|
|
|
"content": {
|
|
|
|
"application/json": {
|
|
|
|
"schema": {
|
|
|
|
"$ref": "#/components/schemas/UserResponseDto"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"tags": [
|
2023-01-24 04:13:42 +00:00
|
|
|
"OAuth"
|
2023-02-24 16:01:10 +00:00
|
|
|
],
|
|
|
|
"security": [
|
|
|
|
{
|
|
|
|
"bearer": []
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"cookie": []
|
2023-05-04 16:41:29 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"api_key": []
|
2023-02-24 16:01:10 +00:00
|
|
|
}
|
2022-12-05 17:56:44 +00:00
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
2023-05-15 17:30:53 +00:00
|
|
|
"/partner": {
|
|
|
|
"get": {
|
|
|
|
"operationId": "getPartners",
|
|
|
|
"parameters": [
|
|
|
|
{
|
|
|
|
"name": "direction",
|
|
|
|
"required": true,
|
|
|
|
"in": "query",
|
|
|
|
"schema": {
|
|
|
|
"enum": [
|
|
|
|
"shared-by",
|
|
|
|
"shared-with"
|
|
|
|
],
|
|
|
|
"type": "string"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"responses": {
|
|
|
|
"200": {
|
|
|
|
"description": "",
|
|
|
|
"content": {
|
|
|
|
"application/json": {
|
|
|
|
"schema": {
|
|
|
|
"type": "array",
|
|
|
|
"items": {
|
|
|
|
"$ref": "#/components/schemas/UserResponseDto"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"tags": [
|
|
|
|
"Partner"
|
|
|
|
],
|
|
|
|
"security": [
|
|
|
|
{
|
|
|
|
"bearer": []
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"cookie": []
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"api_key": []
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"/partner/{id}": {
|
|
|
|
"post": {
|
|
|
|
"operationId": "createPartner",
|
|
|
|
"parameters": [
|
|
|
|
{
|
|
|
|
"name": "id",
|
|
|
|
"required": true,
|
|
|
|
"in": "path",
|
|
|
|
"schema": {
|
|
|
|
"format": "uuid",
|
|
|
|
"type": "string"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"responses": {
|
|
|
|
"201": {
|
|
|
|
"description": "",
|
|
|
|
"content": {
|
|
|
|
"application/json": {
|
|
|
|
"schema": {
|
|
|
|
"$ref": "#/components/schemas/UserResponseDto"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"tags": [
|
|
|
|
"Partner"
|
|
|
|
],
|
|
|
|
"security": [
|
|
|
|
{
|
|
|
|
"bearer": []
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"cookie": []
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"api_key": []
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"delete": {
|
|
|
|
"operationId": "removePartner",
|
|
|
|
"parameters": [
|
|
|
|
{
|
|
|
|
"name": "id",
|
|
|
|
"required": true,
|
|
|
|
"in": "path",
|
|
|
|
"schema": {
|
|
|
|
"format": "uuid",
|
|
|
|
"type": "string"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"responses": {
|
|
|
|
"200": {
|
|
|
|
"description": ""
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"tags": [
|
|
|
|
"Partner"
|
|
|
|
],
|
|
|
|
"security": [
|
|
|
|
{
|
|
|
|
"bearer": []
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"cookie": []
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"api_key": []
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
2023-03-03 02:47:08 +00:00
|
|
|
"/search": {
|
|
|
|
"get": {
|
|
|
|
"operationId": "search",
|
2023-03-20 20:16:32 +00:00
|
|
|
"parameters": [
|
|
|
|
{
|
|
|
|
"name": "q",
|
|
|
|
"required": false,
|
|
|
|
"in": "query",
|
|
|
|
"schema": {
|
|
|
|
"type": "string"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"name": "query",
|
|
|
|
"required": false,
|
|
|
|
"in": "query",
|
|
|
|
"schema": {
|
|
|
|
"type": "string"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"name": "clip",
|
|
|
|
"required": false,
|
|
|
|
"in": "query",
|
|
|
|
"schema": {
|
|
|
|
"type": "boolean"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"name": "type",
|
|
|
|
"required": false,
|
|
|
|
"in": "query",
|
|
|
|
"schema": {
|
|
|
|
"enum": [
|
|
|
|
"IMAGE",
|
|
|
|
"VIDEO",
|
|
|
|
"AUDIO",
|
|
|
|
"OTHER"
|
|
|
|
],
|
|
|
|
"type": "string"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"name": "isFavorite",
|
|
|
|
"required": false,
|
|
|
|
"in": "query",
|
|
|
|
"schema": {
|
|
|
|
"type": "boolean"
|
|
|
|
}
|
|
|
|
},
|
2023-04-12 15:37:52 +00:00
|
|
|
{
|
|
|
|
"name": "isArchived",
|
|
|
|
"required": false,
|
|
|
|
"in": "query",
|
|
|
|
"schema": {
|
|
|
|
"type": "boolean"
|
|
|
|
}
|
|
|
|
},
|
2023-03-20 20:16:32 +00:00
|
|
|
{
|
|
|
|
"name": "exifInfo.city",
|
|
|
|
"required": false,
|
|
|
|
"in": "query",
|
|
|
|
"schema": {
|
|
|
|
"type": "string"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"name": "exifInfo.state",
|
|
|
|
"required": false,
|
|
|
|
"in": "query",
|
|
|
|
"schema": {
|
|
|
|
"type": "string"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"name": "exifInfo.country",
|
|
|
|
"required": false,
|
|
|
|
"in": "query",
|
|
|
|
"schema": {
|
|
|
|
"type": "string"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"name": "exifInfo.make",
|
|
|
|
"required": false,
|
|
|
|
"in": "query",
|
|
|
|
"schema": {
|
|
|
|
"type": "string"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"name": "exifInfo.model",
|
|
|
|
"required": false,
|
|
|
|
"in": "query",
|
|
|
|
"schema": {
|
|
|
|
"type": "string"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"name": "smartInfo.objects",
|
|
|
|
"required": false,
|
|
|
|
"in": "query",
|
|
|
|
"schema": {
|
|
|
|
"type": "array",
|
|
|
|
"items": {
|
|
|
|
"type": "string"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"name": "smartInfo.tags",
|
|
|
|
"required": false,
|
|
|
|
"in": "query",
|
|
|
|
"schema": {
|
|
|
|
"type": "array",
|
|
|
|
"items": {
|
|
|
|
"type": "string"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"name": "recent",
|
|
|
|
"required": false,
|
|
|
|
"in": "query",
|
|
|
|
"schema": {
|
|
|
|
"type": "boolean"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"name": "motion",
|
|
|
|
"required": false,
|
|
|
|
"in": "query",
|
|
|
|
"schema": {
|
|
|
|
"type": "boolean"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
],
|
2023-03-03 02:47:08 +00:00
|
|
|
"responses": {
|
|
|
|
"200": {
|
|
|
|
"description": "",
|
|
|
|
"content": {
|
|
|
|
"application/json": {
|
|
|
|
"schema": {
|
|
|
|
"$ref": "#/components/schemas/SearchResponseDto"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"tags": [
|
|
|
|
"Search"
|
|
|
|
],
|
|
|
|
"security": [
|
|
|
|
{
|
|
|
|
"bearer": []
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"cookie": []
|
2023-05-04 16:41:29 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"api_key": []
|
2023-03-03 02:47:08 +00:00
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"/search/config": {
|
|
|
|
"get": {
|
|
|
|
"operationId": "getSearchConfig",
|
|
|
|
"parameters": [],
|
|
|
|
"responses": {
|
|
|
|
"200": {
|
|
|
|
"description": "",
|
|
|
|
"content": {
|
|
|
|
"application/json": {
|
|
|
|
"schema": {
|
|
|
|
"$ref": "#/components/schemas/SearchConfigResponseDto"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"tags": [
|
|
|
|
"Search"
|
|
|
|
],
|
|
|
|
"security": [
|
|
|
|
{
|
|
|
|
"bearer": []
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"cookie": []
|
2023-05-04 16:41:29 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"api_key": []
|
2023-03-05 20:44:31 +00:00
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"/search/explore": {
|
|
|
|
"get": {
|
|
|
|
"operationId": "getExploreData",
|
|
|
|
"parameters": [],
|
|
|
|
"responses": {
|
|
|
|
"200": {
|
|
|
|
"description": "",
|
|
|
|
"content": {
|
|
|
|
"application/json": {
|
|
|
|
"schema": {
|
|
|
|
"type": "array",
|
|
|
|
"items": {
|
|
|
|
"$ref": "#/components/schemas/SearchExploreResponseDto"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"tags": [
|
|
|
|
"Search"
|
|
|
|
],
|
|
|
|
"security": [
|
2023-03-03 02:47:08 +00:00
|
|
|
{
|
|
|
|
"bearer": []
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"cookie": []
|
2023-05-04 16:41:29 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"api_key": []
|
2023-03-03 02:47:08 +00:00
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
2023-03-22 02:49:19 +00:00
|
|
|
"/server-info": {
|
|
|
|
"get": {
|
|
|
|
"operationId": "getServerInfo",
|
|
|
|
"parameters": [],
|
|
|
|
"responses": {
|
|
|
|
"200": {
|
|
|
|
"description": "",
|
|
|
|
"content": {
|
|
|
|
"application/json": {
|
|
|
|
"schema": {
|
|
|
|
"$ref": "#/components/schemas/ServerInfoResponseDto"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"tags": [
|
|
|
|
"Server Info"
|
2023-03-27 14:38:54 +00:00
|
|
|
],
|
|
|
|
"security": [
|
|
|
|
{
|
|
|
|
"bearer": []
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"cookie": []
|
2023-05-04 16:41:29 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"api_key": []
|
2023-03-27 14:38:54 +00:00
|
|
|
}
|
2023-03-22 02:49:19 +00:00
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"/server-info/ping": {
|
|
|
|
"get": {
|
|
|
|
"operationId": "pingServer",
|
|
|
|
"parameters": [],
|
|
|
|
"responses": {
|
|
|
|
"200": {
|
|
|
|
"description": "",
|
|
|
|
"content": {
|
|
|
|
"application/json": {
|
|
|
|
"schema": {
|
|
|
|
"$ref": "#/components/schemas/ServerPingResponse"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"tags": [
|
|
|
|
"Server Info"
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"/server-info/version": {
|
|
|
|
"get": {
|
|
|
|
"operationId": "getServerVersion",
|
|
|
|
"parameters": [],
|
|
|
|
"responses": {
|
|
|
|
"200": {
|
|
|
|
"description": "",
|
|
|
|
"content": {
|
|
|
|
"application/json": {
|
|
|
|
"schema": {
|
|
|
|
"$ref": "#/components/schemas/ServerVersionReponseDto"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"tags": [
|
|
|
|
"Server Info"
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"/server-info/stats": {
|
|
|
|
"get": {
|
|
|
|
"operationId": "getStats",
|
|
|
|
"parameters": [],
|
|
|
|
"responses": {
|
|
|
|
"200": {
|
|
|
|
"description": "",
|
|
|
|
"content": {
|
|
|
|
"application/json": {
|
|
|
|
"schema": {
|
|
|
|
"$ref": "#/components/schemas/ServerStatsResponseDto"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"tags": [
|
|
|
|
"Server Info"
|
|
|
|
],
|
|
|
|
"security": [
|
|
|
|
{
|
|
|
|
"bearer": []
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"cookie": []
|
2023-05-04 16:41:29 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"api_key": []
|
2023-03-22 02:49:19 +00:00
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
2023-01-25 16:35:28 +00:00
|
|
|
"/share": {
|
|
|
|
"get": {
|
|
|
|
"operationId": "getAllSharedLinks",
|
|
|
|
"parameters": [],
|
|
|
|
"responses": {
|
|
|
|
"200": {
|
|
|
|
"description": "",
|
|
|
|
"content": {
|
|
|
|
"application/json": {
|
|
|
|
"schema": {
|
|
|
|
"type": "array",
|
|
|
|
"items": {
|
|
|
|
"$ref": "#/components/schemas/SharedLinkResponseDto"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"tags": [
|
|
|
|
"share"
|
2023-02-24 16:01:10 +00:00
|
|
|
],
|
|
|
|
"security": [
|
|
|
|
{
|
|
|
|
"bearer": []
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"cookie": []
|
2023-05-04 16:41:29 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"api_key": []
|
2023-02-24 16:01:10 +00:00
|
|
|
}
|
2023-01-25 16:35:28 +00:00
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"/share/me": {
|
|
|
|
"get": {
|
|
|
|
"operationId": "getMySharedLink",
|
2023-02-24 16:01:10 +00:00
|
|
|
"parameters": [
|
|
|
|
{
|
|
|
|
"name": "key",
|
|
|
|
"required": false,
|
|
|
|
"in": "query",
|
|
|
|
"schema": {
|
|
|
|
"type": "string"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
],
|
2023-01-25 16:35:28 +00:00
|
|
|
"responses": {
|
|
|
|
"200": {
|
|
|
|
"description": "",
|
|
|
|
"content": {
|
|
|
|
"application/json": {
|
|
|
|
"schema": {
|
|
|
|
"$ref": "#/components/schemas/SharedLinkResponseDto"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"tags": [
|
|
|
|
"share"
|
2023-02-24 16:01:10 +00:00
|
|
|
],
|
|
|
|
"security": [
|
|
|
|
{
|
|
|
|
"bearer": []
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"cookie": []
|
2023-05-04 16:41:29 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"api_key": []
|
2023-02-24 16:01:10 +00:00
|
|
|
}
|
2023-01-25 16:35:28 +00:00
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"/share/{id}": {
|
|
|
|
"get": {
|
|
|
|
"operationId": "getSharedLinkById",
|
|
|
|
"parameters": [
|
|
|
|
{
|
|
|
|
"name": "id",
|
|
|
|
"required": true,
|
|
|
|
"in": "path",
|
|
|
|
"schema": {
|
2023-04-04 22:24:08 +00:00
|
|
|
"format": "uuid",
|
2023-01-25 16:35:28 +00:00
|
|
|
"type": "string"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"responses": {
|
|
|
|
"200": {
|
|
|
|
"description": "",
|
|
|
|
"content": {
|
|
|
|
"application/json": {
|
|
|
|
"schema": {
|
|
|
|
"$ref": "#/components/schemas/SharedLinkResponseDto"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"tags": [
|
|
|
|
"share"
|
2023-02-24 16:01:10 +00:00
|
|
|
],
|
|
|
|
"security": [
|
|
|
|
{
|
|
|
|
"bearer": []
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"cookie": []
|
2023-05-04 16:41:29 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"api_key": []
|
2023-02-24 16:01:10 +00:00
|
|
|
}
|
2023-01-25 16:35:28 +00:00
|
|
|
]
|
|
|
|
},
|
|
|
|
"delete": {
|
|
|
|
"operationId": "removeSharedLink",
|
|
|
|
"parameters": [
|
|
|
|
{
|
|
|
|
"name": "id",
|
|
|
|
"required": true,
|
|
|
|
"in": "path",
|
|
|
|
"schema": {
|
2023-04-04 22:24:08 +00:00
|
|
|
"format": "uuid",
|
2023-01-25 16:35:28 +00:00
|
|
|
"type": "string"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"responses": {
|
|
|
|
"200": {
|
|
|
|
"description": ""
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"tags": [
|
|
|
|
"share"
|
2023-02-24 16:01:10 +00:00
|
|
|
],
|
|
|
|
"security": [
|
|
|
|
{
|
|
|
|
"bearer": []
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"cookie": []
|
2023-05-04 16:41:29 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"api_key": []
|
2023-02-24 16:01:10 +00:00
|
|
|
}
|
2023-01-25 16:35:28 +00:00
|
|
|
]
|
|
|
|
},
|
|
|
|
"patch": {
|
|
|
|
"operationId": "editSharedLink",
|
|
|
|
"parameters": [
|
|
|
|
{
|
|
|
|
"name": "id",
|
|
|
|
"required": true,
|
|
|
|
"in": "path",
|
|
|
|
"schema": {
|
2023-04-04 22:24:08 +00:00
|
|
|
"format": "uuid",
|
2023-01-25 16:35:28 +00:00
|
|
|
"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-02-24 16:01:10 +00:00
|
|
|
],
|
|
|
|
"security": [
|
|
|
|
{
|
|
|
|
"bearer": []
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"cookie": []
|
2023-05-04 16:41:29 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"api_key": []
|
2023-02-24 16:01:10 +00:00
|
|
|
}
|
2023-01-25 16:35:28 +00:00
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
2023-01-24 04:13:42 +00:00
|
|
|
"/system-config": {
|
2022-12-05 17:56:44 +00:00
|
|
|
"get": {
|
2023-01-24 04:13:42 +00:00
|
|
|
"operationId": "getConfig",
|
2022-12-05 17:56:44 +00:00
|
|
|
"parameters": [],
|
|
|
|
"responses": {
|
|
|
|
"200": {
|
|
|
|
"description": "",
|
|
|
|
"content": {
|
|
|
|
"application/json": {
|
|
|
|
"schema": {
|
2023-01-24 04:13:42 +00:00
|
|
|
"$ref": "#/components/schemas/SystemConfigDto"
|
2022-12-05 17:56:44 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"tags": [
|
2023-01-24 04:13:42 +00:00
|
|
|
"System Config"
|
2022-12-05 17:56:44 +00:00
|
|
|
],
|
|
|
|
"security": [
|
|
|
|
{
|
|
|
|
"bearer": []
|
2023-02-24 16:01:10 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"cookie": []
|
2023-05-04 16:41:29 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"api_key": []
|
2022-12-05 17:56:44 +00:00
|
|
|
}
|
|
|
|
]
|
2023-01-24 04:13:42 +00:00
|
|
|
},
|
|
|
|
"put": {
|
|
|
|
"operationId": "updateConfig",
|
|
|
|
"parameters": [],
|
|
|
|
"requestBody": {
|
|
|
|
"required": true,
|
|
|
|
"content": {
|
|
|
|
"application/json": {
|
|
|
|
"schema": {
|
|
|
|
"$ref": "#/components/schemas/SystemConfigDto"
|
|
|
|
}
|
2022-12-09 20:53:11 +00:00
|
|
|
}
|
|
|
|
}
|
2023-01-24 04:13:42 +00:00
|
|
|
},
|
2022-12-05 17:56:44 +00:00
|
|
|
"responses": {
|
|
|
|
"200": {
|
|
|
|
"description": "",
|
|
|
|
"content": {
|
|
|
|
"application/json": {
|
|
|
|
"schema": {
|
2023-01-24 04:13:42 +00:00
|
|
|
"$ref": "#/components/schemas/SystemConfigDto"
|
2022-12-05 17:56:44 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"tags": [
|
2023-01-24 04:13:42 +00:00
|
|
|
"System Config"
|
|
|
|
],
|
|
|
|
"security": [
|
2022-12-05 17:56:44 +00:00
|
|
|
{
|
2023-01-24 04:13:42 +00:00
|
|
|
"bearer": []
|
2023-02-24 16:01:10 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"cookie": []
|
2023-05-04 16:41:29 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"api_key": []
|
2023-01-24 04:13:42 +00:00
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"/system-config/defaults": {
|
|
|
|
"get": {
|
|
|
|
"operationId": "getDefaults",
|
|
|
|
"parameters": [],
|
|
|
|
"responses": {
|
|
|
|
"200": {
|
|
|
|
"description": "",
|
|
|
|
"content": {
|
|
|
|
"application/json": {
|
|
|
|
"schema": {
|
|
|
|
"$ref": "#/components/schemas/SystemConfigDto"
|
|
|
|
}
|
|
|
|
}
|
2022-12-05 17:56:44 +00:00
|
|
|
}
|
|
|
|
}
|
2023-01-24 04:13:42 +00:00
|
|
|
},
|
|
|
|
"tags": [
|
|
|
|
"System Config"
|
2022-12-05 17:56:44 +00:00
|
|
|
],
|
2023-01-24 04:13:42 +00:00
|
|
|
"security": [
|
|
|
|
{
|
|
|
|
"bearer": []
|
2023-02-24 16:01:10 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"cookie": []
|
2023-05-04 16:41:29 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"api_key": []
|
2023-01-24 04:13:42 +00:00
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"/system-config/storage-template-options": {
|
|
|
|
"get": {
|
|
|
|
"operationId": "getStorageTemplateOptions",
|
|
|
|
"parameters": [],
|
2022-12-05 17:56:44 +00:00
|
|
|
"responses": {
|
|
|
|
"200": {
|
|
|
|
"description": "",
|
|
|
|
"content": {
|
|
|
|
"application/json": {
|
|
|
|
"schema": {
|
2023-01-24 04:13:42 +00:00
|
|
|
"$ref": "#/components/schemas/SystemConfigTemplateStorageOptionDto"
|
2022-12-05 17:56:44 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"tags": [
|
2023-01-24 04:13:42 +00:00
|
|
|
"System Config"
|
2022-12-05 17:56:44 +00:00
|
|
|
],
|
|
|
|
"security": [
|
|
|
|
{
|
|
|
|
"bearer": []
|
2023-02-24 16:01:10 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"cookie": []
|
2023-05-04 16:41:29 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"api_key": []
|
2022-12-05 17:56:44 +00:00
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
2023-01-24 04:13:42 +00:00
|
|
|
"/user": {
|
|
|
|
"get": {
|
|
|
|
"operationId": "getAllUsers",
|
2022-12-05 17:56:44 +00:00
|
|
|
"parameters": [
|
|
|
|
{
|
2023-01-24 04:13:42 +00:00
|
|
|
"name": "isAll",
|
2022-12-05 17:56:44 +00:00
|
|
|
"required": true,
|
2023-01-24 04:13:42 +00:00
|
|
|
"in": "query",
|
2022-12-05 17:56:44 +00:00
|
|
|
"schema": {
|
2023-01-24 04:13:42 +00:00
|
|
|
"type": "boolean"
|
2022-12-05 17:56:44 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"responses": {
|
2023-01-24 04:13:42 +00:00
|
|
|
"200": {
|
2022-12-05 17:56:44 +00:00
|
|
|
"description": "",
|
|
|
|
"content": {
|
|
|
|
"application/json": {
|
|
|
|
"schema": {
|
2023-01-24 04:13:42 +00:00
|
|
|
"type": "array",
|
|
|
|
"items": {
|
|
|
|
"$ref": "#/components/schemas/UserResponseDto"
|
|
|
|
}
|
2022-12-05 17:56:44 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"tags": [
|
|
|
|
"User"
|
|
|
|
],
|
|
|
|
"security": [
|
|
|
|
{
|
|
|
|
"bearer": []
|
2023-02-24 16:01:10 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"cookie": []
|
2023-05-04 16:41:29 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"api_key": []
|
2022-12-05 17:56:44 +00:00
|
|
|
}
|
|
|
|
]
|
2023-01-24 04:13:42 +00:00
|
|
|
},
|
2022-12-05 17:56:44 +00:00
|
|
|
"post": {
|
2023-01-24 04:13:42 +00:00
|
|
|
"operationId": "createUser",
|
2022-12-05 17:56:44 +00:00
|
|
|
"parameters": [],
|
|
|
|
"requestBody": {
|
|
|
|
"required": true,
|
|
|
|
"content": {
|
2023-01-24 04:13:42 +00:00
|
|
|
"application/json": {
|
2022-12-05 17:56:44 +00:00
|
|
|
"schema": {
|
2023-01-24 04:13:42 +00:00
|
|
|
"$ref": "#/components/schemas/CreateUserDto"
|
2022-12-05 17:56:44 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"responses": {
|
|
|
|
"201": {
|
|
|
|
"description": "",
|
|
|
|
"content": {
|
|
|
|
"application/json": {
|
|
|
|
"schema": {
|
2023-01-24 04:13:42 +00:00
|
|
|
"$ref": "#/components/schemas/UserResponseDto"
|
2022-12-05 17:56:44 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"tags": [
|
|
|
|
"User"
|
|
|
|
],
|
|
|
|
"security": [
|
|
|
|
{
|
|
|
|
"bearer": []
|
2023-02-24 16:01:10 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"cookie": []
|
2023-05-04 16:41:29 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"api_key": []
|
2022-12-05 17:56:44 +00:00
|
|
|
}
|
|
|
|
]
|
2023-01-24 04:13:42 +00:00
|
|
|
},
|
|
|
|
"put": {
|
|
|
|
"operationId": "updateUser",
|
2022-12-05 17:56:44 +00:00
|
|
|
"parameters": [],
|
|
|
|
"requestBody": {
|
|
|
|
"required": true,
|
|
|
|
"content": {
|
2023-01-24 04:13:42 +00:00
|
|
|
"application/json": {
|
2022-12-05 17:56:44 +00:00
|
|
|
"schema": {
|
2023-01-24 04:13:42 +00:00
|
|
|
"$ref": "#/components/schemas/UpdateUserDto"
|
2022-12-05 17:56:44 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"responses": {
|
2023-01-24 04:13:42 +00:00
|
|
|
"200": {
|
2022-12-05 17:56:44 +00:00
|
|
|
"description": "",
|
|
|
|
"content": {
|
|
|
|
"application/json": {
|
|
|
|
"schema": {
|
2023-01-24 04:13:42 +00:00
|
|
|
"$ref": "#/components/schemas/UserResponseDto"
|
2022-12-05 17:56:44 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"tags": [
|
2023-01-24 04:13:42 +00:00
|
|
|
"User"
|
2022-12-05 17:56:44 +00:00
|
|
|
],
|
|
|
|
"security": [
|
|
|
|
{
|
|
|
|
"bearer": []
|
2023-02-24 16:01:10 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"cookie": []
|
2023-05-04 16:41:29 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"api_key": []
|
2022-12-05 17:56:44 +00:00
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
2023-01-24 04:13:42 +00:00
|
|
|
"/user/info/{userId}": {
|
2022-12-05 17:56:44 +00:00
|
|
|
"get": {
|
2023-01-24 04:13:42 +00:00
|
|
|
"operationId": "getUserById",
|
2022-12-05 17:56:44 +00:00
|
|
|
"parameters": [
|
|
|
|
{
|
2023-01-24 04:13:42 +00:00
|
|
|
"name": "userId",
|
2022-12-05 17:56:44 +00:00
|
|
|
"required": true,
|
|
|
|
"in": "path",
|
|
|
|
"schema": {
|
2023-04-04 22:24:08 +00:00
|
|
|
"format": "uuid",
|
2022-12-05 17:56:44 +00:00
|
|
|
"type": "string"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"responses": {
|
|
|
|
"200": {
|
|
|
|
"description": "",
|
|
|
|
"content": {
|
|
|
|
"application/json": {
|
|
|
|
"schema": {
|
2023-01-24 04:13:42 +00:00
|
|
|
"$ref": "#/components/schemas/UserResponseDto"
|
2022-12-05 17:56:44 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"tags": [
|
2023-01-24 04:13:42 +00:00
|
|
|
"User"
|
2023-03-27 14:38:54 +00:00
|
|
|
],
|
|
|
|
"security": [
|
|
|
|
{
|
|
|
|
"bearer": []
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"cookie": []
|
2023-05-04 16:41:29 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"api_key": []
|
2023-03-27 14:38:54 +00:00
|
|
|
}
|
2022-12-05 17:56:44 +00:00
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
2023-01-24 04:13:42 +00:00
|
|
|
"/user/me": {
|
|
|
|
"get": {
|
|
|
|
"operationId": "getMyUserInfo",
|
2023-01-09 20:16:08 +00:00
|
|
|
"parameters": [],
|
|
|
|
"responses": {
|
2023-01-24 04:13:42 +00:00
|
|
|
"200": {
|
2023-01-09 20:16:08 +00:00
|
|
|
"description": "",
|
|
|
|
"content": {
|
|
|
|
"application/json": {
|
|
|
|
"schema": {
|
2023-01-24 04:13:42 +00:00
|
|
|
"$ref": "#/components/schemas/UserResponseDto"
|
2023-01-09 20:16:08 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"tags": [
|
2023-01-24 04:13:42 +00:00
|
|
|
"User"
|
2023-01-09 20:16:08 +00:00
|
|
|
],
|
|
|
|
"security": [
|
|
|
|
{
|
|
|
|
"bearer": []
|
2023-02-24 16:01:10 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"cookie": []
|
2023-05-04 16:41:29 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"api_key": []
|
2023-01-09 20:16:08 +00:00
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
2023-01-24 04:13:42 +00:00
|
|
|
"/user/count": {
|
2022-12-05 17:56:44 +00:00
|
|
|
"get": {
|
2023-01-24 04:13:42 +00:00
|
|
|
"operationId": "getUserCount",
|
2022-12-05 17:56:44 +00:00
|
|
|
"parameters": [
|
|
|
|
{
|
2023-01-24 04:13:42 +00:00
|
|
|
"name": "admin",
|
2022-12-05 17:56:44 +00:00
|
|
|
"required": false,
|
|
|
|
"in": "query",
|
|
|
|
"schema": {
|
2023-01-24 04:13:42 +00:00
|
|
|
"default": false,
|
|
|
|
"type": "boolean"
|
2022-12-05 17:56:44 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"responses": {
|
|
|
|
"200": {
|
|
|
|
"description": "",
|
|
|
|
"content": {
|
|
|
|
"application/json": {
|
|
|
|
"schema": {
|
2023-01-24 04:13:42 +00:00
|
|
|
"$ref": "#/components/schemas/UserCountResponseDto"
|
2022-12-05 17:56:44 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"tags": [
|
2023-01-24 04:13:42 +00:00
|
|
|
"User"
|
2022-12-05 17:56:44 +00:00
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
2023-01-24 04:13:42 +00:00
|
|
|
"/user/{userId}": {
|
|
|
|
"delete": {
|
|
|
|
"operationId": "deleteUser",
|
2022-12-05 17:56:44 +00:00
|
|
|
"parameters": [
|
|
|
|
{
|
2023-01-24 04:13:42 +00:00
|
|
|
"name": "userId",
|
2022-12-05 17:56:44 +00:00
|
|
|
"required": true,
|
|
|
|
"in": "path",
|
|
|
|
"schema": {
|
2023-04-04 22:24:08 +00:00
|
|
|
"format": "uuid",
|
2022-12-05 17:56:44 +00:00
|
|
|
"type": "string"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"responses": {
|
|
|
|
"200": {
|
|
|
|
"description": "",
|
|
|
|
"content": {
|
|
|
|
"application/json": {
|
|
|
|
"schema": {
|
2023-01-24 04:13:42 +00:00
|
|
|
"$ref": "#/components/schemas/UserResponseDto"
|
2022-12-05 17:56:44 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"tags": [
|
2023-01-24 04:13:42 +00:00
|
|
|
"User"
|
2022-12-05 17:56:44 +00:00
|
|
|
],
|
|
|
|
"security": [
|
|
|
|
{
|
|
|
|
"bearer": []
|
2023-02-24 16:01:10 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"cookie": []
|
2023-05-04 16:41:29 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"api_key": []
|
2022-12-05 17:56:44 +00:00
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
2023-01-24 04:13:42 +00:00
|
|
|
"/user/{userId}/restore": {
|
|
|
|
"post": {
|
|
|
|
"operationId": "restoreUser",
|
2022-12-05 17:56:44 +00:00
|
|
|
"parameters": [
|
|
|
|
{
|
2023-01-24 04:13:42 +00:00
|
|
|
"name": "userId",
|
2022-12-05 17:56:44 +00:00
|
|
|
"required": true,
|
|
|
|
"in": "path",
|
|
|
|
"schema": {
|
2023-04-04 22:24:08 +00:00
|
|
|
"format": "uuid",
|
2022-12-05 17:56:44 +00:00
|
|
|
"type": "string"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"responses": {
|
2023-01-24 04:13:42 +00:00
|
|
|
"201": {
|
2022-12-05 17:56:44 +00:00
|
|
|
"description": "",
|
|
|
|
"content": {
|
|
|
|
"application/json": {
|
|
|
|
"schema": {
|
2023-01-24 04:13:42 +00:00
|
|
|
"$ref": "#/components/schemas/UserResponseDto"
|
2022-12-05 17:56:44 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"tags": [
|
2023-01-24 04:13:42 +00:00
|
|
|
"User"
|
2022-12-05 17:56:44 +00:00
|
|
|
],
|
|
|
|
"security": [
|
|
|
|
{
|
|
|
|
"bearer": []
|
2023-02-24 16:01:10 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"cookie": []
|
2023-05-04 16:41:29 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"api_key": []
|
2022-12-05 17:56:44 +00:00
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
2023-01-24 04:13:42 +00:00
|
|
|
"/user/profile-image": {
|
|
|
|
"post": {
|
|
|
|
"operationId": "createProfileImage",
|
2022-12-05 17:56:44 +00:00
|
|
|
"parameters": [],
|
2023-01-24 04:13:42 +00:00
|
|
|
"requestBody": {
|
|
|
|
"required": true,
|
|
|
|
"description": "A new avatar for the user",
|
|
|
|
"content": {
|
|
|
|
"multipart/form-data": {
|
|
|
|
"schema": {
|
|
|
|
"$ref": "#/components/schemas/CreateProfileImageDto"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
2022-12-05 17:56:44 +00:00
|
|
|
"responses": {
|
2023-01-24 04:13:42 +00:00
|
|
|
"201": {
|
2022-12-05 17:56:44 +00:00
|
|
|
"description": "",
|
|
|
|
"content": {
|
|
|
|
"application/json": {
|
|
|
|
"schema": {
|
2023-01-24 04:13:42 +00:00
|
|
|
"$ref": "#/components/schemas/CreateProfileImageResponseDto"
|
2022-12-05 17:56:44 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"tags": [
|
2023-01-24 04:13:42 +00:00
|
|
|
"User"
|
2022-12-05 17:56:44 +00:00
|
|
|
],
|
|
|
|
"security": [
|
|
|
|
{
|
|
|
|
"bearer": []
|
2023-02-24 16:01:10 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"cookie": []
|
2023-05-04 16:41:29 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"api_key": []
|
2022-12-05 17:56:44 +00:00
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
2023-01-24 04:13:42 +00:00
|
|
|
"/user/profile-image/{userId}": {
|
2022-12-05 17:56:44 +00:00
|
|
|
"get": {
|
2023-01-24 04:13:42 +00:00
|
|
|
"operationId": "getProfileImage",
|
|
|
|
"parameters": [
|
|
|
|
{
|
|
|
|
"name": "userId",
|
|
|
|
"required": true,
|
|
|
|
"in": "path",
|
|
|
|
"schema": {
|
2023-04-04 22:24:08 +00:00
|
|
|
"format": "uuid",
|
2023-01-24 04:13:42 +00:00
|
|
|
"type": "string"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
],
|
2022-12-05 17:56:44 +00:00
|
|
|
"responses": {
|
|
|
|
"200": {
|
|
|
|
"description": "",
|
|
|
|
"content": {
|
|
|
|
"application/json": {
|
|
|
|
"schema": {
|
2023-01-24 04:13:42 +00:00
|
|
|
"type": "object"
|
2022-12-05 17:56:44 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"tags": [
|
2023-01-24 04:13:42 +00:00
|
|
|
"User"
|
2023-03-27 14:38:54 +00:00
|
|
|
],
|
|
|
|
"security": [
|
|
|
|
{
|
|
|
|
"bearer": []
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"cookie": []
|
2023-05-04 16:41:29 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"api_key": []
|
2023-03-27 14:38:54 +00:00
|
|
|
}
|
2022-12-05 17:56:44 +00:00
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
2023-05-17 17:07:17 +00:00
|
|
|
"/person": {
|
|
|
|
"get": {
|
|
|
|
"operationId": "getAllPeople",
|
|
|
|
"parameters": [],
|
|
|
|
"responses": {
|
|
|
|
"200": {
|
|
|
|
"description": "",
|
|
|
|
"content": {
|
|
|
|
"application/json": {
|
|
|
|
"schema": {
|
|
|
|
"type": "array",
|
|
|
|
"items": {
|
|
|
|
"$ref": "#/components/schemas/PersonResponseDto"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"tags": [
|
|
|
|
"Person"
|
|
|
|
],
|
|
|
|
"security": [
|
|
|
|
{
|
|
|
|
"bearer": []
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"cookie": []
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"api_key": []
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"/person/{id}": {
|
|
|
|
"get": {
|
|
|
|
"operationId": "getPerson",
|
|
|
|
"parameters": [
|
|
|
|
{
|
|
|
|
"name": "id",
|
|
|
|
"required": true,
|
|
|
|
"in": "path",
|
|
|
|
"schema": {
|
|
|
|
"format": "uuid",
|
|
|
|
"type": "string"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"responses": {
|
|
|
|
"200": {
|
|
|
|
"description": "",
|
|
|
|
"content": {
|
|
|
|
"application/json": {
|
|
|
|
"schema": {
|
|
|
|
"$ref": "#/components/schemas/PersonResponseDto"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"tags": [
|
|
|
|
"Person"
|
|
|
|
],
|
|
|
|
"security": [
|
|
|
|
{
|
|
|
|
"bearer": []
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"cookie": []
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"api_key": []
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"put": {
|
|
|
|
"operationId": "updatePerson",
|
|
|
|
"parameters": [
|
|
|
|
{
|
|
|
|
"name": "id",
|
|
|
|
"required": true,
|
|
|
|
"in": "path",
|
|
|
|
"schema": {
|
|
|
|
"format": "uuid",
|
|
|
|
"type": "string"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"requestBody": {
|
|
|
|
"required": true,
|
|
|
|
"content": {
|
|
|
|
"application/json": {
|
|
|
|
"schema": {
|
|
|
|
"$ref": "#/components/schemas/PersonUpdateDto"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"responses": {
|
|
|
|
"200": {
|
|
|
|
"description": "",
|
|
|
|
"content": {
|
|
|
|
"application/json": {
|
|
|
|
"schema": {
|
|
|
|
"$ref": "#/components/schemas/PersonResponseDto"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"tags": [
|
|
|
|
"Person"
|
|
|
|
],
|
|
|
|
"security": [
|
|
|
|
{
|
|
|
|
"bearer": []
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"cookie": []
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"api_key": []
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"/person/{id}/thumbnail": {
|
|
|
|
"get": {
|
|
|
|
"operationId": "getPersonThumbnail",
|
|
|
|
"parameters": [
|
|
|
|
{
|
|
|
|
"name": "id",
|
|
|
|
"required": true,
|
|
|
|
"in": "path",
|
|
|
|
"schema": {
|
|
|
|
"format": "uuid",
|
|
|
|
"type": "string"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"responses": {
|
|
|
|
"200": {
|
|
|
|
"content": {
|
|
|
|
"application/octet-stream": {
|
|
|
|
"schema": {
|
|
|
|
"type": "string",
|
|
|
|
"format": "binary"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"description": ""
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"tags": [
|
|
|
|
"Person"
|
|
|
|
],
|
|
|
|
"security": [
|
|
|
|
{
|
|
|
|
"bearer": []
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"cookie": []
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"api_key": []
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"/person/{id}/assets": {
|
|
|
|
"get": {
|
|
|
|
"operationId": "getPersonAssets",
|
|
|
|
"parameters": [
|
|
|
|
{
|
|
|
|
"name": "id",
|
|
|
|
"required": true,
|
|
|
|
"in": "path",
|
|
|
|
"schema": {
|
|
|
|
"format": "uuid",
|
|
|
|
"type": "string"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"responses": {
|
|
|
|
"200": {
|
|
|
|
"description": "",
|
|
|
|
"content": {
|
|
|
|
"application/json": {
|
|
|
|
"schema": {
|
|
|
|
"type": "array",
|
|
|
|
"items": {
|
|
|
|
"$ref": "#/components/schemas/AssetResponseDto"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"tags": [
|
|
|
|
"Person"
|
|
|
|
],
|
|
|
|
"security": [
|
|
|
|
{
|
|
|
|
"bearer": []
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"cookie": []
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"api_key": []
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
2023-01-24 04:13:42 +00:00
|
|
|
"/asset/upload": {
|
|
|
|
"post": {
|
|
|
|
"operationId": "uploadFile",
|
2023-02-24 16:01:10 +00:00
|
|
|
"parameters": [
|
|
|
|
{
|
|
|
|
"name": "key",
|
|
|
|
"required": false,
|
|
|
|
"in": "query",
|
|
|
|
"schema": {
|
|
|
|
"type": "string"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
],
|
2023-01-24 04:13:42 +00:00
|
|
|
"requestBody": {
|
|
|
|
"required": true,
|
|
|
|
"description": "Asset Upload Information",
|
|
|
|
"content": {
|
|
|
|
"multipart/form-data": {
|
|
|
|
"schema": {
|
2023-02-12 05:54:07 +00:00
|
|
|
"$ref": "#/components/schemas/CreateAssetDto"
|
2023-01-24 04:13:42 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
2022-12-05 17:56:44 +00:00
|
|
|
"responses": {
|
2023-01-24 04:13:42 +00:00
|
|
|
"201": {
|
2022-12-05 17:56:44 +00:00
|
|
|
"description": "",
|
|
|
|
"content": {
|
|
|
|
"application/json": {
|
|
|
|
"schema": {
|
2023-01-24 04:13:42 +00:00
|
|
|
"$ref": "#/components/schemas/AssetFileUploadResponseDto"
|
2022-12-05 17:56:44 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"tags": [
|
|
|
|
"Asset"
|
|
|
|
],
|
|
|
|
"security": [
|
|
|
|
{
|
|
|
|
"bearer": []
|
2023-02-24 16:01:10 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"cookie": []
|
2023-05-04 16:41:29 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"api_key": []
|
2022-12-05 17:56:44 +00:00
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
2023-01-24 04:13:42 +00:00
|
|
|
"/asset/download/{assetId}": {
|
|
|
|
"get": {
|
|
|
|
"operationId": "downloadFile",
|
|
|
|
"parameters": [
|
|
|
|
{
|
|
|
|
"name": "assetId",
|
|
|
|
"required": true,
|
|
|
|
"in": "path",
|
|
|
|
"schema": {
|
2023-04-04 22:24:08 +00:00
|
|
|
"format": "uuid",
|
2023-01-24 04:13:42 +00:00
|
|
|
"type": "string"
|
2022-12-05 17:56:44 +00:00
|
|
|
}
|
2023-02-24 16:01:10 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"name": "key",
|
|
|
|
"required": false,
|
|
|
|
"in": "query",
|
|
|
|
"schema": {
|
|
|
|
"type": "string"
|
|
|
|
}
|
2022-12-05 17:56:44 +00:00
|
|
|
}
|
2023-01-24 04:13:42 +00:00
|
|
|
],
|
2022-12-05 17:56:44 +00:00
|
|
|
"responses": {
|
2023-01-24 04:13:42 +00:00
|
|
|
"200": {
|
2022-12-05 17:56:44 +00:00
|
|
|
"content": {
|
2023-02-24 16:01:10 +00:00
|
|
|
"application/octet-stream": {
|
2022-12-05 17:56:44 +00:00
|
|
|
"schema": {
|
2023-02-24 16:01:10 +00:00
|
|
|
"type": "string",
|
|
|
|
"format": "binary"
|
2022-12-05 17:56:44 +00:00
|
|
|
}
|
|
|
|
}
|
2023-02-24 16:01:10 +00:00
|
|
|
},
|
|
|
|
"description": ""
|
2022-12-05 17:56:44 +00:00
|
|
|
}
|
|
|
|
},
|
|
|
|
"tags": [
|
|
|
|
"Asset"
|
|
|
|
],
|
|
|
|
"security": [
|
|
|
|
{
|
|
|
|
"bearer": []
|
2023-02-24 16:01:10 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"cookie": []
|
2023-05-04 16:41:29 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"api_key": []
|
2022-12-05 17:56:44 +00:00
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
2023-01-24 04:13:42 +00:00
|
|
|
"/asset/download-files": {
|
2022-12-05 17:56:44 +00:00
|
|
|
"post": {
|
2023-01-24 04:13:42 +00:00
|
|
|
"operationId": "downloadFiles",
|
2023-02-24 16:01:10 +00:00
|
|
|
"parameters": [
|
|
|
|
{
|
|
|
|
"name": "key",
|
|
|
|
"required": false,
|
|
|
|
"in": "query",
|
|
|
|
"schema": {
|
|
|
|
"type": "string"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
],
|
2022-12-05 17:56:44 +00:00
|
|
|
"requestBody": {
|
|
|
|
"required": true,
|
|
|
|
"content": {
|
|
|
|
"application/json": {
|
|
|
|
"schema": {
|
2023-01-24 04:13:42 +00:00
|
|
|
"$ref": "#/components/schemas/DownloadFilesDto"
|
2022-12-05 17:56:44 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"responses": {
|
2023-02-24 16:01:10 +00:00
|
|
|
"200": {
|
2022-12-05 17:56:44 +00:00
|
|
|
"content": {
|
2023-02-24 16:01:10 +00:00
|
|
|
"application/octet-stream": {
|
2022-12-05 17:56:44 +00:00
|
|
|
"schema": {
|
2023-02-24 16:01:10 +00:00
|
|
|
"type": "string",
|
|
|
|
"format": "binary"
|
2022-12-05 17:56:44 +00:00
|
|
|
}
|
|
|
|
}
|
2023-02-24 16:01:10 +00:00
|
|
|
},
|
|
|
|
"description": ""
|
|
|
|
},
|
|
|
|
"201": {
|
|
|
|
"description": ""
|
2022-12-05 17:56:44 +00:00
|
|
|
}
|
|
|
|
},
|
|
|
|
"tags": [
|
|
|
|
"Asset"
|
|
|
|
],
|
|
|
|
"security": [
|
|
|
|
{
|
|
|
|
"bearer": []
|
2023-02-24 16:01:10 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"cookie": []
|
2023-05-04 16:41:29 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"api_key": []
|
2022-12-05 17:56:44 +00:00
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
2023-01-24 04:13:42 +00:00
|
|
|
"/asset/download-library": {
|
2022-12-05 17:56:44 +00:00
|
|
|
"get": {
|
2023-01-24 04:13:42 +00:00
|
|
|
"operationId": "downloadLibrary",
|
|
|
|
"description": "Current this is not used in any UI element",
|
|
|
|
"parameters": [
|
2023-04-06 17:50:55 +00:00
|
|
|
{
|
|
|
|
"name": "name",
|
|
|
|
"required": false,
|
|
|
|
"in": "query",
|
|
|
|
"schema": {
|
|
|
|
"type": "string"
|
|
|
|
}
|
|
|
|
},
|
2023-01-24 04:13:42 +00:00
|
|
|
{
|
|
|
|
"name": "skip",
|
|
|
|
"required": false,
|
|
|
|
"in": "query",
|
|
|
|
"schema": {
|
|
|
|
"type": "number"
|
|
|
|
}
|
2023-02-24 16:01:10 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"name": "key",
|
|
|
|
"required": false,
|
|
|
|
"in": "query",
|
|
|
|
"schema": {
|
|
|
|
"type": "string"
|
|
|
|
}
|
2023-01-24 04:13:42 +00:00
|
|
|
}
|
|
|
|
],
|
2022-12-05 17:56:44 +00:00
|
|
|
"responses": {
|
|
|
|
"200": {
|
|
|
|
"content": {
|
2023-02-24 16:01:10 +00:00
|
|
|
"application/octet-stream": {
|
2022-12-05 17:56:44 +00:00
|
|
|
"schema": {
|
2023-02-24 16:01:10 +00:00
|
|
|
"type": "string",
|
|
|
|
"format": "binary"
|
2022-12-05 17:56:44 +00:00
|
|
|
}
|
|
|
|
}
|
2023-02-24 16:01:10 +00:00
|
|
|
},
|
|
|
|
"description": ""
|
2022-12-05 17:56:44 +00:00
|
|
|
}
|
|
|
|
},
|
|
|
|
"tags": [
|
|
|
|
"Asset"
|
|
|
|
],
|
|
|
|
"security": [
|
|
|
|
{
|
|
|
|
"bearer": []
|
2023-02-24 16:01:10 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"cookie": []
|
2023-05-04 16:41:29 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"api_key": []
|
2022-12-05 17:56:44 +00:00
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
2023-01-24 04:13:42 +00:00
|
|
|
"/asset/file/{assetId}": {
|
2022-12-05 17:56:44 +00:00
|
|
|
"get": {
|
2023-01-24 04:13:42 +00:00
|
|
|
"operationId": "serveFile",
|
2022-12-05 17:56:44 +00:00
|
|
|
"parameters": [
|
|
|
|
{
|
2023-01-24 04:13:42 +00:00
|
|
|
"name": "isThumb",
|
|
|
|
"required": false,
|
|
|
|
"in": "query",
|
|
|
|
"schema": {
|
|
|
|
"title": "Is serve thumbnail (resize) file",
|
|
|
|
"type": "boolean"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"name": "isWeb",
|
2022-12-05 17:56:44 +00:00
|
|
|
"required": false,
|
2023-01-24 04:13:42 +00:00
|
|
|
"in": "query",
|
|
|
|
"schema": {
|
|
|
|
"title": "Is request made from web",
|
|
|
|
"type": "boolean"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"name": "assetId",
|
|
|
|
"required": true,
|
|
|
|
"in": "path",
|
2022-12-05 17:56:44 +00:00
|
|
|
"schema": {
|
2023-04-04 22:24:08 +00:00
|
|
|
"format": "uuid",
|
2022-12-05 17:56:44 +00:00
|
|
|
"type": "string"
|
|
|
|
}
|
2023-02-24 16:01:10 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"name": "key",
|
|
|
|
"required": false,
|
|
|
|
"in": "query",
|
|
|
|
"schema": {
|
|
|
|
"type": "string"
|
|
|
|
}
|
2022-12-05 17:56:44 +00:00
|
|
|
}
|
|
|
|
],
|
|
|
|
"responses": {
|
|
|
|
"200": {
|
|
|
|
"content": {
|
2023-02-24 16:01:10 +00:00
|
|
|
"application/octet-stream": {
|
2022-12-05 17:56:44 +00:00
|
|
|
"schema": {
|
2023-02-24 16:01:10 +00:00
|
|
|
"type": "string",
|
|
|
|
"format": "binary"
|
2022-12-05 17:56:44 +00:00
|
|
|
}
|
|
|
|
}
|
2023-02-24 16:01:10 +00:00
|
|
|
},
|
|
|
|
"description": ""
|
2022-12-05 17:56:44 +00:00
|
|
|
}
|
|
|
|
},
|
|
|
|
"tags": [
|
|
|
|
"Asset"
|
|
|
|
],
|
|
|
|
"security": [
|
|
|
|
{
|
|
|
|
"bearer": []
|
2023-02-24 16:01:10 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"cookie": []
|
2023-05-04 16:41:29 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"api_key": []
|
2022-12-05 17:56:44 +00:00
|
|
|
}
|
|
|
|
]
|
2023-01-24 04:13:42 +00:00
|
|
|
}
|
|
|
|
},
|
|
|
|
"/asset/thumbnail/{assetId}": {
|
|
|
|
"get": {
|
|
|
|
"operationId": "getAssetThumbnail",
|
|
|
|
"parameters": [
|
|
|
|
{
|
|
|
|
"name": "assetId",
|
|
|
|
"required": true,
|
|
|
|
"in": "path",
|
|
|
|
"schema": {
|
2023-04-04 22:24:08 +00:00
|
|
|
"format": "uuid",
|
2023-01-24 04:13:42 +00:00
|
|
|
"type": "string"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"name": "format",
|
|
|
|
"required": false,
|
|
|
|
"in": "query",
|
|
|
|
"schema": {
|
|
|
|
"$ref": "#/components/schemas/ThumbnailFormat"
|
2022-12-05 17:56:44 +00:00
|
|
|
}
|
2023-02-24 16:01:10 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"name": "key",
|
|
|
|
"required": false,
|
|
|
|
"in": "query",
|
|
|
|
"schema": {
|
|
|
|
"type": "string"
|
|
|
|
}
|
2022-12-05 17:56:44 +00:00
|
|
|
}
|
2023-01-24 04:13:42 +00:00
|
|
|
],
|
2022-12-05 17:56:44 +00:00
|
|
|
"responses": {
|
|
|
|
"200": {
|
|
|
|
"content": {
|
2023-02-24 16:01:10 +00:00
|
|
|
"application/octet-stream": {
|
2022-12-05 17:56:44 +00:00
|
|
|
"schema": {
|
2023-02-24 16:01:10 +00:00
|
|
|
"type": "string",
|
|
|
|
"format": "binary"
|
2022-12-05 17:56:44 +00:00
|
|
|
}
|
|
|
|
}
|
2023-02-24 16:01:10 +00:00
|
|
|
},
|
|
|
|
"description": ""
|
2022-12-05 17:56:44 +00:00
|
|
|
}
|
|
|
|
},
|
|
|
|
"tags": [
|
|
|
|
"Asset"
|
|
|
|
],
|
|
|
|
"security": [
|
|
|
|
{
|
|
|
|
"bearer": []
|
2023-02-24 16:01:10 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"cookie": []
|
2023-05-04 16:41:29 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"api_key": []
|
2022-12-05 17:56:44 +00:00
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
2023-01-24 04:13:42 +00:00
|
|
|
"/asset/curated-objects": {
|
|
|
|
"get": {
|
|
|
|
"operationId": "getCuratedObjects",
|
2022-12-05 17:56:44 +00:00
|
|
|
"parameters": [],
|
|
|
|
"responses": {
|
2023-01-24 04:13:42 +00:00
|
|
|
"200": {
|
2022-12-05 17:56:44 +00:00
|
|
|
"description": "",
|
|
|
|
"content": {
|
|
|
|
"application/json": {
|
|
|
|
"schema": {
|
|
|
|
"type": "array",
|
|
|
|
"items": {
|
2023-01-24 04:13:42 +00:00
|
|
|
"$ref": "#/components/schemas/CuratedObjectsResponseDto"
|
2022-12-05 17:56:44 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"tags": [
|
|
|
|
"Asset"
|
|
|
|
],
|
|
|
|
"security": [
|
|
|
|
{
|
|
|
|
"bearer": []
|
2023-02-24 16:01:10 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"cookie": []
|
2023-05-04 16:41:29 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"api_key": []
|
2022-12-05 17:56:44 +00:00
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
2023-01-24 04:13:42 +00:00
|
|
|
"/asset/curated-locations": {
|
2022-12-05 17:56:44 +00:00
|
|
|
"get": {
|
2023-01-24 04:13:42 +00:00
|
|
|
"operationId": "getCuratedLocations",
|
|
|
|
"parameters": [],
|
2022-12-05 17:56:44 +00:00
|
|
|
"responses": {
|
|
|
|
"200": {
|
|
|
|
"description": "",
|
|
|
|
"content": {
|
|
|
|
"application/json": {
|
|
|
|
"schema": {
|
|
|
|
"type": "array",
|
|
|
|
"items": {
|
2023-01-24 04:13:42 +00:00
|
|
|
"$ref": "#/components/schemas/CuratedLocationsResponseDto"
|
2022-12-05 17:56:44 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"tags": [
|
|
|
|
"Asset"
|
|
|
|
],
|
|
|
|
"security": [
|
|
|
|
{
|
|
|
|
"bearer": []
|
2023-02-24 16:01:10 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"cookie": []
|
2023-05-04 16:41:29 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"api_key": []
|
2022-12-05 17:56:44 +00:00
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
2023-01-24 04:13:42 +00:00
|
|
|
"/asset/search-terms": {
|
2022-12-05 17:56:44 +00:00
|
|
|
"get": {
|
2023-01-24 04:13:42 +00:00
|
|
|
"operationId": "getAssetSearchTerms",
|
|
|
|
"parameters": [],
|
2022-12-05 17:56:44 +00:00
|
|
|
"responses": {
|
|
|
|
"200": {
|
|
|
|
"description": "",
|
|
|
|
"content": {
|
|
|
|
"application/json": {
|
|
|
|
"schema": {
|
2023-01-24 04:13:42 +00:00
|
|
|
"type": "array",
|
|
|
|
"items": {
|
|
|
|
"type": "string"
|
|
|
|
}
|
2022-12-05 17:56:44 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"tags": [
|
|
|
|
"Asset"
|
|
|
|
],
|
|
|
|
"security": [
|
|
|
|
{
|
|
|
|
"bearer": []
|
2023-02-24 16:01:10 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"cookie": []
|
2023-05-04 16:41:29 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"api_key": []
|
2022-12-05 17:56:44 +00:00
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
2023-01-24 04:13:42 +00:00
|
|
|
"/asset/search": {
|
|
|
|
"post": {
|
|
|
|
"operationId": "searchAsset",
|
|
|
|
"parameters": [],
|
2022-12-05 17:56:44 +00:00
|
|
|
"requestBody": {
|
|
|
|
"required": true,
|
|
|
|
"content": {
|
|
|
|
"application/json": {
|
|
|
|
"schema": {
|
2023-01-24 04:13:42 +00:00
|
|
|
"$ref": "#/components/schemas/SearchAssetDto"
|
2022-12-05 17:56:44 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"responses": {
|
2023-01-24 04:13:42 +00:00
|
|
|
"201": {
|
2022-12-05 17:56:44 +00:00
|
|
|
"description": "",
|
|
|
|
"content": {
|
|
|
|
"application/json": {
|
|
|
|
"schema": {
|
2023-01-24 04:13:42 +00:00
|
|
|
"type": "array",
|
|
|
|
"items": {
|
|
|
|
"$ref": "#/components/schemas/AssetResponseDto"
|
|
|
|
}
|
2022-12-05 17:56:44 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"tags": [
|
|
|
|
"Asset"
|
|
|
|
],
|
|
|
|
"security": [
|
|
|
|
{
|
|
|
|
"bearer": []
|
2023-02-24 16:01:10 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"cookie": []
|
2023-05-04 16:41:29 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"api_key": []
|
2022-12-05 17:56:44 +00:00
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
2023-01-24 04:13:42 +00:00
|
|
|
"/asset/count-by-time-bucket": {
|
2022-12-05 17:56:44 +00:00
|
|
|
"post": {
|
2023-01-24 04:13:42 +00:00
|
|
|
"operationId": "getAssetCountByTimeBucket",
|
2022-12-05 17:56:44 +00:00
|
|
|
"parameters": [],
|
|
|
|
"requestBody": {
|
|
|
|
"required": true,
|
|
|
|
"content": {
|
|
|
|
"application/json": {
|
|
|
|
"schema": {
|
2023-01-24 04:13:42 +00:00
|
|
|
"$ref": "#/components/schemas/GetAssetCountByTimeBucketDto"
|
2022-12-05 17:56:44 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"responses": {
|
2023-01-24 04:13:42 +00:00
|
|
|
"201": {
|
2022-12-05 17:56:44 +00:00
|
|
|
"description": "",
|
|
|
|
"content": {
|
|
|
|
"application/json": {
|
|
|
|
"schema": {
|
2023-01-24 04:13:42 +00:00
|
|
|
"$ref": "#/components/schemas/AssetCountByTimeBucketResponseDto"
|
2022-12-05 17:56:44 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"tags": [
|
|
|
|
"Asset"
|
|
|
|
],
|
|
|
|
"security": [
|
|
|
|
{
|
|
|
|
"bearer": []
|
2023-02-24 16:01:10 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"cookie": []
|
2023-05-04 16:41:29 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"api_key": []
|
2022-12-05 17:56:44 +00:00
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
2023-01-24 04:13:42 +00:00
|
|
|
"/asset/count-by-user-id": {
|
|
|
|
"get": {
|
|
|
|
"operationId": "getAssetCountByUserId",
|
2022-12-05 17:56:44 +00:00
|
|
|
"parameters": [],
|
|
|
|
"responses": {
|
|
|
|
"200": {
|
|
|
|
"description": "",
|
|
|
|
"content": {
|
|
|
|
"application/json": {
|
|
|
|
"schema": {
|
2023-01-24 04:13:42 +00:00
|
|
|
"$ref": "#/components/schemas/AssetCountByUserIdResponseDto"
|
2022-12-05 17:56:44 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"tags": [
|
|
|
|
"Asset"
|
|
|
|
],
|
|
|
|
"security": [
|
|
|
|
{
|
|
|
|
"bearer": []
|
2023-02-24 16:01:10 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"cookie": []
|
2023-05-04 16:41:29 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"api_key": []
|
2022-12-05 17:56:44 +00:00
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
2023-04-12 15:37:52 +00:00
|
|
|
"/asset/stat/archive": {
|
|
|
|
"get": {
|
|
|
|
"operationId": "getArchivedAssetCountByUserId",
|
|
|
|
"parameters": [],
|
|
|
|
"responses": {
|
|
|
|
"200": {
|
|
|
|
"description": "",
|
|
|
|
"content": {
|
|
|
|
"application/json": {
|
|
|
|
"schema": {
|
|
|
|
"$ref": "#/components/schemas/AssetCountByUserIdResponseDto"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"tags": [
|
|
|
|
"Asset"
|
|
|
|
],
|
|
|
|
"security": [
|
|
|
|
{
|
|
|
|
"bearer": []
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"cookie": []
|
2023-05-04 16:41:29 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"api_key": []
|
2023-04-12 15:37:52 +00:00
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
2023-01-24 04:13:42 +00:00
|
|
|
"/asset": {
|
|
|
|
"get": {
|
|
|
|
"operationId": "getAllAssets",
|
|
|
|
"description": "Get all AssetEntity belong to the user",
|
|
|
|
"parameters": [
|
2023-05-25 03:52:43 +00:00
|
|
|
{
|
|
|
|
"name": "userId",
|
|
|
|
"required": false,
|
|
|
|
"in": "query",
|
|
|
|
"schema": {
|
|
|
|
"format": "uuid",
|
|
|
|
"type": "string"
|
|
|
|
}
|
|
|
|
},
|
2023-01-24 04:16:20 +00:00
|
|
|
{
|
|
|
|
"name": "isFavorite",
|
|
|
|
"required": false,
|
|
|
|
"in": "query",
|
|
|
|
"schema": {
|
|
|
|
"type": "boolean"
|
|
|
|
}
|
|
|
|
},
|
2023-04-12 15:37:52 +00:00
|
|
|
{
|
|
|
|
"name": "isArchived",
|
|
|
|
"required": false,
|
|
|
|
"in": "query",
|
|
|
|
"schema": {
|
|
|
|
"type": "boolean"
|
|
|
|
}
|
|
|
|
},
|
2023-01-24 04:16:20 +00:00
|
|
|
{
|
|
|
|
"name": "skip",
|
|
|
|
"required": false,
|
|
|
|
"in": "query",
|
|
|
|
"schema": {
|
|
|
|
"type": "number"
|
|
|
|
}
|
|
|
|
},
|
2023-01-24 04:13:42 +00:00
|
|
|
{
|
|
|
|
"name": "if-none-match",
|
|
|
|
"in": "header",
|
|
|
|
"description": "ETag of data already cached on the client",
|
|
|
|
"required": false,
|
|
|
|
"schema": {
|
|
|
|
"type": "string"
|
2023-01-15 05:49:47 +00:00
|
|
|
}
|
|
|
|
}
|
2023-01-24 04:13:42 +00:00
|
|
|
],
|
2023-01-15 05:49:47 +00:00
|
|
|
"responses": {
|
2023-01-24 04:13:42 +00:00
|
|
|
"200": {
|
2023-01-15 05:49:47 +00:00
|
|
|
"description": "",
|
|
|
|
"content": {
|
|
|
|
"application/json": {
|
|
|
|
"schema": {
|
2023-01-24 04:13:42 +00:00
|
|
|
"type": "array",
|
|
|
|
"items": {
|
|
|
|
"$ref": "#/components/schemas/AssetResponseDto"
|
|
|
|
}
|
2023-01-15 05:49:47 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"tags": [
|
|
|
|
"Asset"
|
|
|
|
],
|
|
|
|
"security": [
|
|
|
|
{
|
|
|
|
"bearer": []
|
2023-02-24 16:01:10 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"cookie": []
|
2023-05-04 16:41:29 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"api_key": []
|
2023-01-15 05:49:47 +00:00
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
2023-01-24 04:13:42 +00:00
|
|
|
"delete": {
|
|
|
|
"operationId": "deleteAsset",
|
2023-01-15 05:49:47 +00:00
|
|
|
"parameters": [],
|
|
|
|
"requestBody": {
|
|
|
|
"required": true,
|
|
|
|
"content": {
|
|
|
|
"application/json": {
|
|
|
|
"schema": {
|
2023-01-24 04:13:42 +00:00
|
|
|
"$ref": "#/components/schemas/DeleteAssetDto"
|
2023-01-15 05:49:47 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"responses": {
|
|
|
|
"200": {
|
|
|
|
"description": "",
|
|
|
|
"content": {
|
|
|
|
"application/json": {
|
|
|
|
"schema": {
|
2023-01-24 04:13:42 +00:00
|
|
|
"type": "array",
|
|
|
|
"items": {
|
|
|
|
"$ref": "#/components/schemas/DeleteAssetResponseDto"
|
|
|
|
}
|
2023-01-15 05:49:47 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"tags": [
|
|
|
|
"Asset"
|
|
|
|
],
|
|
|
|
"security": [
|
|
|
|
{
|
|
|
|
"bearer": []
|
2023-02-24 16:01:10 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"cookie": []
|
2023-05-04 16:41:29 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"api_key": []
|
2023-01-15 05:49:47 +00:00
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
2023-01-24 04:13:42 +00:00
|
|
|
"/asset/time-bucket": {
|
|
|
|
"post": {
|
|
|
|
"operationId": "getAssetByTimeBucket",
|
2022-12-05 17:56:44 +00:00
|
|
|
"parameters": [],
|
2023-01-24 04:13:42 +00:00
|
|
|
"requestBody": {
|
|
|
|
"required": true,
|
|
|
|
"content": {
|
|
|
|
"application/json": {
|
|
|
|
"schema": {
|
|
|
|
"$ref": "#/components/schemas/GetAssetByTimeBucketDto"
|
2022-12-05 17:56:44 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"responses": {
|
2023-01-24 04:13:42 +00:00
|
|
|
"201": {
|
2022-12-05 17:56:44 +00:00
|
|
|
"description": "",
|
|
|
|
"content": {
|
|
|
|
"application/json": {
|
|
|
|
"schema": {
|
2023-01-24 04:13:42 +00:00
|
|
|
"type": "array",
|
|
|
|
"items": {
|
|
|
|
"$ref": "#/components/schemas/AssetResponseDto"
|
|
|
|
}
|
2022-12-05 17:56:44 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"tags": [
|
2023-01-24 04:13:42 +00:00
|
|
|
"Asset"
|
|
|
|
],
|
|
|
|
"security": [
|
|
|
|
{
|
|
|
|
"bearer": []
|
2023-02-24 16:01:10 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"cookie": []
|
2023-05-04 16:41:29 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"api_key": []
|
2023-01-24 04:13:42 +00:00
|
|
|
}
|
2022-12-05 17:56:44 +00:00
|
|
|
]
|
2023-01-12 02:34:36 +00:00
|
|
|
}
|
|
|
|
},
|
2023-01-24 04:13:42 +00:00
|
|
|
"/asset/{deviceId}": {
|
2022-12-05 17:56:44 +00:00
|
|
|
"get": {
|
2023-01-24 04:13:42 +00:00
|
|
|
"operationId": "getUserAssetsByDeviceId",
|
|
|
|
"description": "Get all asset of a device that are in the database, ID only.",
|
2022-12-05 17:56:44 +00:00
|
|
|
"parameters": [
|
|
|
|
{
|
2023-01-24 04:13:42 +00:00
|
|
|
"name": "deviceId",
|
2023-01-12 02:34:36 +00:00
|
|
|
"required": true,
|
|
|
|
"in": "path",
|
2022-12-05 17:56:44 +00:00
|
|
|
"schema": {
|
2023-04-04 22:24:08 +00:00
|
|
|
"format": "uuid",
|
2022-12-05 17:56:44 +00:00
|
|
|
"type": "string"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"responses": {
|
|
|
|
"200": {
|
|
|
|
"description": "",
|
|
|
|
"content": {
|
|
|
|
"application/json": {
|
|
|
|
"schema": {
|
2023-01-24 04:13:42 +00:00
|
|
|
"type": "array",
|
|
|
|
"items": {
|
|
|
|
"type": "string"
|
|
|
|
}
|
2022-12-05 17:56:44 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"tags": [
|
2023-01-24 04:13:42 +00:00
|
|
|
"Asset"
|
|
|
|
],
|
|
|
|
"security": [
|
|
|
|
{
|
|
|
|
"bearer": []
|
2023-02-24 16:01:10 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"cookie": []
|
2023-05-04 16:41:29 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"api_key": []
|
2023-01-24 04:13:42 +00:00
|
|
|
}
|
2022-12-05 17:56:44 +00:00
|
|
|
]
|
2023-01-24 04:13:42 +00:00
|
|
|
}
|
|
|
|
},
|
|
|
|
"/asset/assetById/{assetId}": {
|
|
|
|
"get": {
|
|
|
|
"operationId": "getAssetById",
|
|
|
|
"description": "Get a single asset's information",
|
2022-12-05 17:56:44 +00:00
|
|
|
"parameters": [
|
|
|
|
{
|
2023-01-24 04:13:42 +00:00
|
|
|
"name": "assetId",
|
2022-12-05 17:56:44 +00:00
|
|
|
"required": true,
|
|
|
|
"in": "path",
|
|
|
|
"schema": {
|
2023-04-04 22:24:08 +00:00
|
|
|
"format": "uuid",
|
2022-12-05 17:56:44 +00:00
|
|
|
"type": "string"
|
|
|
|
}
|
2023-02-24 16:01:10 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"name": "key",
|
|
|
|
"required": false,
|
|
|
|
"in": "query",
|
|
|
|
"schema": {
|
|
|
|
"type": "string"
|
|
|
|
}
|
2022-12-05 17:56:44 +00:00
|
|
|
}
|
|
|
|
],
|
|
|
|
"responses": {
|
|
|
|
"200": {
|
|
|
|
"description": "",
|
|
|
|
"content": {
|
|
|
|
"application/json": {
|
|
|
|
"schema": {
|
2023-01-24 04:13:42 +00:00
|
|
|
"$ref": "#/components/schemas/AssetResponseDto"
|
2022-12-05 17:56:44 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"tags": [
|
2023-01-24 04:13:42 +00:00
|
|
|
"Asset"
|
|
|
|
],
|
|
|
|
"security": [
|
|
|
|
{
|
|
|
|
"bearer": []
|
2023-02-24 16:01:10 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"cookie": []
|
2023-05-04 16:41:29 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"api_key": []
|
2023-01-24 04:13:42 +00:00
|
|
|
}
|
2022-12-05 17:56:44 +00:00
|
|
|
]
|
2023-01-24 04:13:42 +00:00
|
|
|
}
|
|
|
|
},
|
|
|
|
"/asset/{assetId}": {
|
|
|
|
"put": {
|
|
|
|
"operationId": "updateAsset",
|
|
|
|
"description": "Update an asset",
|
2022-12-05 17:56:44 +00:00
|
|
|
"parameters": [
|
|
|
|
{
|
2023-01-24 04:13:42 +00:00
|
|
|
"name": "assetId",
|
2023-01-12 02:34:36 +00:00
|
|
|
"required": true,
|
|
|
|
"in": "path",
|
|
|
|
"schema": {
|
2023-04-04 22:24:08 +00:00
|
|
|
"format": "uuid",
|
2023-01-12 02:34:36 +00:00
|
|
|
"type": "string"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"requestBody": {
|
|
|
|
"required": true,
|
|
|
|
"content": {
|
|
|
|
"application/json": {
|
|
|
|
"schema": {
|
2023-01-24 04:13:42 +00:00
|
|
|
"$ref": "#/components/schemas/UpdateAssetDto"
|
2023-01-12 02:34:36 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"responses": {
|
|
|
|
"200": {
|
|
|
|
"description": "",
|
|
|
|
"content": {
|
|
|
|
"application/json": {
|
|
|
|
"schema": {
|
2023-01-24 04:13:42 +00:00
|
|
|
"$ref": "#/components/schemas/AssetResponseDto"
|
2023-01-12 02:34:36 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"tags": [
|
2023-01-24 04:13:42 +00:00
|
|
|
"Asset"
|
|
|
|
],
|
|
|
|
"security": [
|
|
|
|
{
|
|
|
|
"bearer": []
|
2023-02-24 16:01:10 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"cookie": []
|
2023-05-04 16:41:29 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"api_key": []
|
2023-01-24 04:13:42 +00:00
|
|
|
}
|
2023-01-12 02:34:36 +00:00
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
2023-01-24 04:13:42 +00:00
|
|
|
"/asset/check": {
|
2023-01-15 20:01:10 +00:00
|
|
|
"post": {
|
2023-01-24 04:13:42 +00:00
|
|
|
"operationId": "checkDuplicateAsset",
|
|
|
|
"description": "Check duplicated asset before uploading - for Web upload used",
|
2023-02-24 16:01:10 +00:00
|
|
|
"parameters": [
|
|
|
|
{
|
|
|
|
"name": "key",
|
|
|
|
"required": false,
|
|
|
|
"in": "query",
|
|
|
|
"schema": {
|
|
|
|
"type": "string"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
],
|
2023-01-15 20:01:10 +00:00
|
|
|
"requestBody": {
|
|
|
|
"required": true,
|
|
|
|
"content": {
|
|
|
|
"application/json": {
|
|
|
|
"schema": {
|
2023-01-24 04:13:42 +00:00
|
|
|
"$ref": "#/components/schemas/CheckDuplicateAssetDto"
|
2023-01-15 20:01:10 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"responses": {
|
2023-01-24 04:13:42 +00:00
|
|
|
"200": {
|
|
|
|
"description": "",
|
|
|
|
"content": {
|
|
|
|
"application/json": {
|
|
|
|
"schema": {
|
|
|
|
"$ref": "#/components/schemas/CheckDuplicateAssetResponseDto"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"tags": [
|
|
|
|
"Asset"
|
|
|
|
],
|
|
|
|
"security": [
|
|
|
|
{
|
|
|
|
"bearer": []
|
2023-02-24 16:01:10 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"cookie": []
|
2023-05-04 16:41:29 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"api_key": []
|
2023-01-24 04:13:42 +00:00
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"/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": []
|
2023-02-24 16:01:10 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"cookie": []
|
2023-05-04 16:41:29 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"api_key": []
|
2023-01-24 04:13:42 +00:00
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
2023-05-24 21:08:21 +00:00
|
|
|
"/asset/bulk-upload-check": {
|
|
|
|
"post": {
|
|
|
|
"operationId": "bulkUploadCheck",
|
|
|
|
"description": "Checks if assets exist by checksums",
|
|
|
|
"parameters": [],
|
|
|
|
"requestBody": {
|
|
|
|
"required": true,
|
|
|
|
"content": {
|
|
|
|
"application/json": {
|
|
|
|
"schema": {
|
|
|
|
"$ref": "#/components/schemas/AssetBulkUploadCheckDto"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"responses": {
|
|
|
|
"200": {
|
|
|
|
"description": "",
|
|
|
|
"content": {
|
|
|
|
"application/json": {
|
|
|
|
"schema": {
|
|
|
|
"$ref": "#/components/schemas/AssetBulkUploadCheckResponseDto"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"tags": [
|
|
|
|
"Asset"
|
|
|
|
],
|
|
|
|
"security": [
|
|
|
|
{
|
|
|
|
"bearer": []
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"cookie": []
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"api_key": []
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
2023-01-24 04:13:42 +00:00
|
|
|
"/asset/shared-link": {
|
|
|
|
"post": {
|
|
|
|
"operationId": "createAssetsSharedLink",
|
|
|
|
"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-24 16:01:10 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"cookie": []
|
2023-05-04 16:41:29 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"api_key": []
|
2023-01-24 04:13:42 +00:00
|
|
|
}
|
|
|
|
]
|
2023-02-15 21:21:22 +00:00
|
|
|
}
|
|
|
|
},
|
|
|
|
"/asset/shared-link/add": {
|
2023-01-24 04:13:42 +00:00
|
|
|
"patch": {
|
2023-02-15 21:21:22 +00:00
|
|
|
"operationId": "addAssetsToSharedLink",
|
2023-02-24 16:01:10 +00:00
|
|
|
"parameters": [
|
|
|
|
{
|
|
|
|
"name": "key",
|
|
|
|
"required": false,
|
|
|
|
"in": "query",
|
|
|
|
"schema": {
|
|
|
|
"type": "string"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
],
|
2023-01-24 04:13:42 +00:00
|
|
|
"requestBody": {
|
|
|
|
"required": true,
|
|
|
|
"content": {
|
|
|
|
"application/json": {
|
|
|
|
"schema": {
|
2023-02-15 21:21:22 +00:00
|
|
|
"$ref": "#/components/schemas/AddAssetsDto"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"responses": {
|
|
|
|
"200": {
|
|
|
|
"description": "",
|
|
|
|
"content": {
|
|
|
|
"application/json": {
|
|
|
|
"schema": {
|
|
|
|
"$ref": "#/components/schemas/SharedLinkResponseDto"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"tags": [
|
|
|
|
"Asset"
|
|
|
|
],
|
|
|
|
"security": [
|
|
|
|
{
|
|
|
|
"bearer": []
|
2023-02-24 16:01:10 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"cookie": []
|
2023-05-04 16:41:29 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"api_key": []
|
2023-02-15 21:21:22 +00:00
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"/asset/shared-link/remove": {
|
|
|
|
"patch": {
|
|
|
|
"operationId": "removeAssetsFromSharedLink",
|
2023-02-24 16:01:10 +00:00
|
|
|
"parameters": [
|
|
|
|
{
|
|
|
|
"name": "key",
|
|
|
|
"required": false,
|
|
|
|
"in": "query",
|
|
|
|
"schema": {
|
|
|
|
"type": "string"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
],
|
2023-02-15 21:21:22 +00:00
|
|
|
"requestBody": {
|
|
|
|
"required": true,
|
|
|
|
"content": {
|
|
|
|
"application/json": {
|
|
|
|
"schema": {
|
|
|
|
"$ref": "#/components/schemas/RemoveAssetsDto"
|
2023-01-24 04:13:42 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"responses": {
|
|
|
|
"200": {
|
|
|
|
"description": "",
|
|
|
|
"content": {
|
|
|
|
"application/json": {
|
|
|
|
"schema": {
|
|
|
|
"$ref": "#/components/schemas/SharedLinkResponseDto"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"tags": [
|
|
|
|
"Asset"
|
|
|
|
],
|
|
|
|
"security": [
|
|
|
|
{
|
|
|
|
"bearer": []
|
2023-02-24 16:01:10 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"cookie": []
|
2023-05-04 16:41:29 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"api_key": []
|
2023-01-24 04:13:42 +00:00
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"/tag": {
|
|
|
|
"post": {
|
|
|
|
"operationId": "create",
|
|
|
|
"parameters": [],
|
|
|
|
"requestBody": {
|
|
|
|
"required": true,
|
|
|
|
"content": {
|
|
|
|
"application/json": {
|
|
|
|
"schema": {
|
|
|
|
"$ref": "#/components/schemas/CreateTagDto"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"responses": {
|
|
|
|
"201": {
|
2023-01-15 20:01:10 +00:00
|
|
|
"description": "",
|
|
|
|
"content": {
|
|
|
|
"application/json": {
|
|
|
|
"schema": {
|
|
|
|
"$ref": "#/components/schemas/TagResponseDto"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"tags": [
|
|
|
|
"Tag"
|
2023-02-24 16:01:10 +00:00
|
|
|
],
|
|
|
|
"security": [
|
|
|
|
{
|
|
|
|
"bearer": []
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"cookie": []
|
2023-05-04 16:41:29 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"api_key": []
|
2023-02-24 16:01:10 +00:00
|
|
|
}
|
2023-01-15 20:01:10 +00:00
|
|
|
]
|
|
|
|
},
|
|
|
|
"get": {
|
|
|
|
"operationId": "findAll",
|
|
|
|
"parameters": [],
|
|
|
|
"responses": {
|
|
|
|
"200": {
|
|
|
|
"description": "",
|
|
|
|
"content": {
|
|
|
|
"application/json": {
|
|
|
|
"schema": {
|
|
|
|
"type": "array",
|
|
|
|
"items": {
|
|
|
|
"$ref": "#/components/schemas/TagResponseDto"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"tags": [
|
|
|
|
"Tag"
|
2023-02-24 16:01:10 +00:00
|
|
|
],
|
|
|
|
"security": [
|
|
|
|
{
|
|
|
|
"bearer": []
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"cookie": []
|
2023-05-04 16:41:29 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"api_key": []
|
2023-02-24 16:01:10 +00:00
|
|
|
}
|
2023-01-15 20:01:10 +00:00
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"/tag/{id}": {
|
|
|
|
"get": {
|
|
|
|
"operationId": "findOne",
|
|
|
|
"parameters": [
|
|
|
|
{
|
|
|
|
"name": "id",
|
|
|
|
"required": true,
|
|
|
|
"in": "path",
|
|
|
|
"schema": {
|
2023-04-04 22:24:08 +00:00
|
|
|
"format": "uuid",
|
2023-01-15 20:01:10 +00:00
|
|
|
"type": "string"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"responses": {
|
|
|
|
"200": {
|
|
|
|
"description": "",
|
|
|
|
"content": {
|
|
|
|
"application/json": {
|
|
|
|
"schema": {
|
|
|
|
"$ref": "#/components/schemas/TagResponseDto"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"tags": [
|
|
|
|
"Tag"
|
2023-02-24 16:01:10 +00:00
|
|
|
],
|
|
|
|
"security": [
|
|
|
|
{
|
|
|
|
"bearer": []
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"cookie": []
|
2023-05-04 16:41:29 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"api_key": []
|
2023-02-24 16:01:10 +00:00
|
|
|
}
|
2023-01-15 20:01:10 +00:00
|
|
|
]
|
|
|
|
},
|
|
|
|
"patch": {
|
|
|
|
"operationId": "update",
|
|
|
|
"parameters": [
|
|
|
|
{
|
|
|
|
"name": "id",
|
|
|
|
"required": true,
|
|
|
|
"in": "path",
|
|
|
|
"schema": {
|
2023-04-04 22:24:08 +00:00
|
|
|
"format": "uuid",
|
2023-01-15 20:01:10 +00:00
|
|
|
"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"
|
2023-02-24 16:01:10 +00:00
|
|
|
],
|
|
|
|
"security": [
|
|
|
|
{
|
|
|
|
"bearer": []
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"cookie": []
|
2023-05-04 16:41:29 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"api_key": []
|
2023-02-24 16:01:10 +00:00
|
|
|
}
|
2023-01-15 20:01:10 +00:00
|
|
|
]
|
|
|
|
},
|
|
|
|
"delete": {
|
|
|
|
"operationId": "delete",
|
|
|
|
"parameters": [
|
|
|
|
{
|
|
|
|
"name": "id",
|
|
|
|
"required": true,
|
|
|
|
"in": "path",
|
|
|
|
"schema": {
|
2023-04-04 22:24:08 +00:00
|
|
|
"format": "uuid",
|
2023-01-15 20:01:10 +00:00
|
|
|
"type": "string"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"responses": {
|
|
|
|
"200": {
|
|
|
|
"description": ""
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"tags": [
|
|
|
|
"Tag"
|
2023-02-24 16:01:10 +00:00
|
|
|
],
|
|
|
|
"security": [
|
|
|
|
{
|
|
|
|
"bearer": []
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"cookie": []
|
2023-05-04 16:41:29 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"api_key": []
|
2023-02-24 16:01:10 +00:00
|
|
|
}
|
2023-01-15 20:01:10 +00:00
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
2023-01-12 02:34:36 +00:00
|
|
|
"/album/count-by-user-id": {
|
|
|
|
"get": {
|
|
|
|
"operationId": "getAlbumCountByUserId",
|
|
|
|
"parameters": [],
|
|
|
|
"responses": {
|
|
|
|
"200": {
|
|
|
|
"description": "",
|
|
|
|
"content": {
|
|
|
|
"application/json": {
|
|
|
|
"schema": {
|
|
|
|
"$ref": "#/components/schemas/AlbumCountResponseDto"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"tags": [
|
|
|
|
"Album"
|
|
|
|
],
|
|
|
|
"security": [
|
|
|
|
{
|
|
|
|
"bearer": []
|
2023-02-24 16:01:10 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"cookie": []
|
2023-05-04 16:41:29 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"api_key": []
|
2023-01-12 02:34:36 +00:00
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
2023-05-24 14:30:13 +00:00
|
|
|
"/album/{id}/users": {
|
2023-01-12 02:34:36 +00:00
|
|
|
"put": {
|
|
|
|
"operationId": "addUsersToAlbum",
|
|
|
|
"parameters": [
|
|
|
|
{
|
2023-05-24 14:30:13 +00:00
|
|
|
"name": "id",
|
2023-01-12 02:34:36 +00:00
|
|
|
"required": true,
|
|
|
|
"in": "path",
|
|
|
|
"schema": {
|
2023-04-04 22:24:08 +00:00
|
|
|
"format": "uuid",
|
2023-01-12 02:34:36 +00:00
|
|
|
"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": []
|
2023-02-24 16:01:10 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"cookie": []
|
2023-05-04 16:41:29 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"api_key": []
|
2023-01-12 02:34:36 +00:00
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
2023-05-24 14:30:13 +00:00
|
|
|
"/album/{id}/assets": {
|
2023-01-12 02:34:36 +00:00
|
|
|
"put": {
|
|
|
|
"operationId": "addAssetsToAlbum",
|
|
|
|
"parameters": [
|
|
|
|
{
|
2023-05-24 14:30:13 +00:00
|
|
|
"name": "id",
|
2022-12-05 17:56:44 +00:00
|
|
|
"required": true,
|
|
|
|
"in": "path",
|
|
|
|
"schema": {
|
2023-04-04 22:24:08 +00:00
|
|
|
"format": "uuid",
|
2022-12-05 17:56:44 +00:00
|
|
|
"type": "string"
|
|
|
|
}
|
2023-02-24 16:01:10 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"name": "key",
|
|
|
|
"required": false,
|
|
|
|
"in": "query",
|
|
|
|
"schema": {
|
|
|
|
"type": "string"
|
|
|
|
}
|
2022-12-05 17:56:44 +00:00
|
|
|
}
|
|
|
|
],
|
|
|
|
"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": []
|
2023-02-24 16:01:10 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"cookie": []
|
2023-05-04 16:41:29 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"api_key": []
|
2022-12-05 17:56:44 +00:00
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"delete": {
|
|
|
|
"operationId": "removeAssetFromAlbum",
|
|
|
|
"parameters": [
|
|
|
|
{
|
2023-05-24 14:30:13 +00:00
|
|
|
"name": "id",
|
2022-12-05 17:56:44 +00:00
|
|
|
"required": true,
|
|
|
|
"in": "path",
|
|
|
|
"schema": {
|
2023-04-04 22:24:08 +00:00
|
|
|
"format": "uuid",
|
2022-12-05 17:56:44 +00:00
|
|
|
"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": []
|
2023-02-24 16:01:10 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"cookie": []
|
2023-05-04 16:41:29 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"api_key": []
|
2022-12-05 17:56:44 +00:00
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
2023-05-24 14:30:13 +00:00
|
|
|
"/album/{id}/user/{userId}": {
|
2022-12-05 17:56:44 +00:00
|
|
|
"delete": {
|
|
|
|
"operationId": "removeUserFromAlbum",
|
|
|
|
"parameters": [
|
|
|
|
{
|
2023-05-24 14:30:13 +00:00
|
|
|
"name": "id",
|
2022-12-05 17:56:44 +00:00
|
|
|
"required": true,
|
|
|
|
"in": "path",
|
|
|
|
"schema": {
|
2023-04-04 22:24:08 +00:00
|
|
|
"format": "uuid",
|
2022-12-05 17:56:44 +00:00
|
|
|
"type": "string"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"name": "userId",
|
|
|
|
"required": true,
|
|
|
|
"in": "path",
|
|
|
|
"schema": {
|
|
|
|
"type": "string"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"responses": {
|
|
|
|
"200": {
|
|
|
|
"description": ""
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"tags": [
|
|
|
|
"Album"
|
|
|
|
],
|
|
|
|
"security": [
|
|
|
|
{
|
|
|
|
"bearer": []
|
2023-02-24 16:01:10 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"cookie": []
|
2023-05-04 16:41:29 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"api_key": []
|
2022-12-05 17:56:44 +00:00
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
2023-05-24 14:30:13 +00:00
|
|
|
"/album/{id}/download": {
|
2022-12-05 17:56:44 +00:00
|
|
|
"get": {
|
|
|
|
"operationId": "downloadArchive",
|
|
|
|
"parameters": [
|
|
|
|
{
|
2023-05-24 14:30:13 +00:00
|
|
|
"name": "id",
|
2022-12-05 17:56:44 +00:00
|
|
|
"required": true,
|
|
|
|
"in": "path",
|
|
|
|
"schema": {
|
2023-04-04 22:24:08 +00:00
|
|
|
"format": "uuid",
|
2022-12-05 17:56:44 +00:00
|
|
|
"type": "string"
|
|
|
|
}
|
|
|
|
},
|
2023-04-06 17:50:55 +00:00
|
|
|
{
|
|
|
|
"name": "name",
|
|
|
|
"required": false,
|
|
|
|
"in": "query",
|
|
|
|
"schema": {
|
|
|
|
"type": "string"
|
|
|
|
}
|
|
|
|
},
|
2022-12-05 17:56:44 +00:00
|
|
|
{
|
|
|
|
"name": "skip",
|
|
|
|
"required": false,
|
|
|
|
"in": "query",
|
|
|
|
"schema": {
|
|
|
|
"type": "number"
|
|
|
|
}
|
2023-02-24 16:01:10 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"name": "key",
|
|
|
|
"required": false,
|
|
|
|
"in": "query",
|
|
|
|
"schema": {
|
|
|
|
"type": "string"
|
|
|
|
}
|
2022-12-05 17:56:44 +00:00
|
|
|
}
|
|
|
|
],
|
|
|
|
"responses": {
|
|
|
|
"200": {
|
|
|
|
"content": {
|
2023-02-24 16:01:10 +00:00
|
|
|
"application/zip": {
|
2022-12-05 17:56:44 +00:00
|
|
|
"schema": {
|
2023-02-24 16:01:10 +00:00
|
|
|
"type": "string",
|
|
|
|
"format": "binary"
|
2022-12-05 17:56:44 +00:00
|
|
|
}
|
|
|
|
}
|
2023-02-24 16:01:10 +00:00
|
|
|
},
|
|
|
|
"description": ""
|
2022-12-05 17:56:44 +00:00
|
|
|
}
|
|
|
|
},
|
|
|
|
"tags": [
|
|
|
|
"Album"
|
|
|
|
],
|
|
|
|
"security": [
|
|
|
|
{
|
|
|
|
"bearer": []
|
2023-02-24 16:01:10 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"cookie": []
|
2023-05-04 16:41:29 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"api_key": []
|
2022-12-05 17:56:44 +00:00
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
2023-01-09 20:16:08 +00:00
|
|
|
"/album/create-shared-link": {
|
|
|
|
"post": {
|
|
|
|
"operationId": "createAlbumSharedLink",
|
|
|
|
"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-02-24 16:01:10 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"cookie": []
|
2023-05-04 16:41:29 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"api_key": []
|
2023-01-09 20:16:08 +00:00
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
2022-12-05 17:56:44 +00:00
|
|
|
}
|
|
|
|
},
|
|
|
|
"info": {
|
|
|
|
"title": "Immich",
|
|
|
|
"description": "Immich API",
|
2023-05-27 21:56:06 +00:00
|
|
|
"version": "1.58.0",
|
2022-12-05 17:56:44 +00:00
|
|
|
"contact": {}
|
|
|
|
},
|
|
|
|
"tags": [],
|
|
|
|
"servers": [
|
|
|
|
{
|
|
|
|
"url": "/api"
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"components": {
|
|
|
|
"securitySchemes": {
|
|
|
|
"bearer": {
|
|
|
|
"scheme": "Bearer",
|
|
|
|
"bearerFormat": "JWT",
|
|
|
|
"type": "http",
|
|
|
|
"in": "header"
|
2023-02-24 16:01:10 +00:00
|
|
|
},
|
|
|
|
"cookie": {
|
|
|
|
"type": "apiKey",
|
|
|
|
"in": "cookie",
|
|
|
|
"name": "immich_access_token"
|
2023-05-04 16:41:29 +00:00
|
|
|
},
|
|
|
|
"api_key": {
|
|
|
|
"type": "apiKey",
|
|
|
|
"in": "header",
|
|
|
|
"name": "x-api-key"
|
2022-12-05 17:56:44 +00:00
|
|
|
}
|
|
|
|
},
|
|
|
|
"schemas": {
|
2023-03-26 02:46:48 +00:00
|
|
|
"UserResponseDto": {
|
2023-01-18 14:40:15 +00:00
|
|
|
"type": "object",
|
|
|
|
"properties": {
|
|
|
|
"id": {
|
2023-02-18 20:58:55 +00:00
|
|
|
"type": "string"
|
2023-01-18 14:40:15 +00:00
|
|
|
},
|
2023-03-26 02:46:48 +00:00
|
|
|
"email": {
|
|
|
|
"type": "string"
|
|
|
|
},
|
|
|
|
"firstName": {
|
|
|
|
"type": "string"
|
|
|
|
},
|
|
|
|
"lastName": {
|
2023-01-18 14:40:15 +00:00
|
|
|
"type": "string"
|
|
|
|
},
|
2023-05-22 03:18:10 +00:00
|
|
|
"storageLabel": {
|
|
|
|
"type": "string",
|
|
|
|
"nullable": true
|
|
|
|
},
|
2023-01-18 14:40:15 +00:00
|
|
|
"createdAt": {
|
|
|
|
"type": "string"
|
|
|
|
},
|
2023-03-26 02:46:48 +00:00
|
|
|
"profileImagePath": {
|
|
|
|
"type": "string"
|
|
|
|
},
|
|
|
|
"shouldChangePassword": {
|
|
|
|
"type": "boolean"
|
|
|
|
},
|
|
|
|
"isAdmin": {
|
|
|
|
"type": "boolean"
|
|
|
|
},
|
|
|
|
"deletedAt": {
|
|
|
|
"format": "date-time",
|
|
|
|
"type": "string"
|
|
|
|
},
|
2023-01-18 14:40:15 +00:00
|
|
|
"updatedAt": {
|
|
|
|
"type": "string"
|
2023-03-26 02:46:48 +00:00
|
|
|
},
|
|
|
|
"oauthId": {
|
|
|
|
"type": "string"
|
2023-01-18 14:40:15 +00:00
|
|
|
}
|
|
|
|
},
|
|
|
|
"required": [
|
|
|
|
"id",
|
2023-03-26 02:46:48 +00:00
|
|
|
"email",
|
|
|
|
"firstName",
|
|
|
|
"lastName",
|
2023-05-22 03:18:10 +00:00
|
|
|
"storageLabel",
|
2023-01-18 14:40:15 +00:00
|
|
|
"createdAt",
|
2023-03-26 02:46:48 +00:00
|
|
|
"profileImagePath",
|
|
|
|
"shouldChangePassword",
|
|
|
|
"isAdmin",
|
|
|
|
"oauthId"
|
2023-01-18 14:40:15 +00:00
|
|
|
]
|
|
|
|
},
|
2023-03-26 02:46:48 +00:00
|
|
|
"AssetTypeEnum": {
|
|
|
|
"type": "string",
|
|
|
|
"enum": [
|
|
|
|
"IMAGE",
|
|
|
|
"VIDEO",
|
|
|
|
"AUDIO",
|
|
|
|
"OTHER"
|
2023-01-18 14:40:15 +00:00
|
|
|
]
|
|
|
|
},
|
2023-03-26 02:46:48 +00:00
|
|
|
"ExifResponseDto": {
|
2023-01-24 04:13:42 +00:00
|
|
|
"type": "object",
|
|
|
|
"properties": {
|
2023-03-26 02:46:48 +00:00
|
|
|
"fileSizeInByte": {
|
|
|
|
"type": "integer",
|
|
|
|
"nullable": true,
|
|
|
|
"default": null,
|
|
|
|
"format": "int64"
|
2023-01-24 04:13:42 +00:00
|
|
|
},
|
2023-03-26 02:46:48 +00:00
|
|
|
"make": {
|
2023-01-24 04:13:42 +00:00
|
|
|
"type": "string",
|
2023-03-26 02:46:48 +00:00
|
|
|
"nullable": true,
|
|
|
|
"default": null
|
|
|
|
},
|
|
|
|
"model": {
|
2023-01-24 04:13:42 +00:00
|
|
|
"type": "string",
|
2023-03-26 02:46:48 +00:00
|
|
|
"nullable": true,
|
|
|
|
"default": null
|
2023-01-24 04:13:42 +00:00
|
|
|
},
|
2023-03-26 02:46:48 +00:00
|
|
|
"exifImageWidth": {
|
|
|
|
"type": "number",
|
|
|
|
"nullable": true,
|
|
|
|
"default": null
|
|
|
|
},
|
|
|
|
"exifImageHeight": {
|
|
|
|
"type": "number",
|
|
|
|
"nullable": true,
|
|
|
|
"default": null
|
|
|
|
},
|
|
|
|
"orientation": {
|
2023-01-24 04:13:42 +00:00
|
|
|
"type": "string",
|
2023-03-26 02:46:48 +00:00
|
|
|
"nullable": true,
|
|
|
|
"default": null
|
2023-01-24 04:13:42 +00:00
|
|
|
},
|
2023-03-26 02:46:48 +00:00
|
|
|
"dateTimeOriginal": {
|
|
|
|
"format": "date-time",
|
2023-01-24 04:13:42 +00:00
|
|
|
"type": "string",
|
2023-03-26 02:46:48 +00:00
|
|
|
"nullable": true,
|
|
|
|
"default": null
|
2023-01-24 04:13:42 +00:00
|
|
|
},
|
2023-03-26 02:46:48 +00:00
|
|
|
"modifyDate": {
|
|
|
|
"format": "date-time",
|
2023-01-24 04:13:42 +00:00
|
|
|
"type": "string",
|
2023-03-26 02:46:48 +00:00
|
|
|
"nullable": true,
|
|
|
|
"default": null
|
2023-01-24 04:13:42 +00:00
|
|
|
},
|
2023-04-02 19:11:24 +00:00
|
|
|
"timeZone": {
|
|
|
|
"type": "string",
|
|
|
|
"nullable": true,
|
|
|
|
"default": null
|
|
|
|
},
|
2023-03-26 02:46:48 +00:00
|
|
|
"lensModel": {
|
2023-01-24 04:13:42 +00:00
|
|
|
"type": "string",
|
2023-03-26 02:46:48 +00:00
|
|
|
"nullable": true,
|
|
|
|
"default": null
|
2023-01-24 04:13:42 +00:00
|
|
|
},
|
2023-03-26 02:46:48 +00:00
|
|
|
"fNumber": {
|
|
|
|
"type": "number",
|
|
|
|
"nullable": true,
|
|
|
|
"default": null
|
2023-01-24 04:13:42 +00:00
|
|
|
},
|
2023-03-26 02:46:48 +00:00
|
|
|
"focalLength": {
|
|
|
|
"type": "number",
|
|
|
|
"nullable": true,
|
|
|
|
"default": null
|
|
|
|
},
|
|
|
|
"iso": {
|
|
|
|
"type": "number",
|
|
|
|
"nullable": true,
|
|
|
|
"default": null
|
|
|
|
},
|
|
|
|
"exposureTime": {
|
2023-01-24 04:13:42 +00:00
|
|
|
"type": "string",
|
2023-03-26 02:46:48 +00:00
|
|
|
"nullable": true,
|
|
|
|
"default": null
|
2023-01-24 04:13:42 +00:00
|
|
|
},
|
2023-03-26 02:46:48 +00:00
|
|
|
"latitude": {
|
|
|
|
"type": "number",
|
|
|
|
"nullable": true,
|
|
|
|
"default": null
|
|
|
|
},
|
|
|
|
"longitude": {
|
|
|
|
"type": "number",
|
|
|
|
"nullable": true,
|
|
|
|
"default": null
|
|
|
|
},
|
|
|
|
"city": {
|
2023-01-24 04:13:42 +00:00
|
|
|
"type": "string",
|
2023-03-26 02:46:48 +00:00
|
|
|
"nullable": true,
|
|
|
|
"default": null
|
2023-01-24 04:13:42 +00:00
|
|
|
},
|
2023-03-26 02:46:48 +00:00
|
|
|
"state": {
|
2023-01-24 04:13:42 +00:00
|
|
|
"type": "string",
|
2023-03-26 02:46:48 +00:00
|
|
|
"nullable": true,
|
|
|
|
"default": null
|
2023-01-24 04:13:42 +00:00
|
|
|
},
|
2023-03-26 02:46:48 +00:00
|
|
|
"country": {
|
2023-01-24 04:13:42 +00:00
|
|
|
"type": "string",
|
2023-03-26 02:46:48 +00:00
|
|
|
"nullable": true,
|
|
|
|
"default": null
|
2023-04-13 15:22:06 +00:00
|
|
|
},
|
|
|
|
"description": {
|
|
|
|
"type": "string",
|
|
|
|
"nullable": true,
|
|
|
|
"default": null
|
2023-01-24 04:13:42 +00:00
|
|
|
}
|
2023-03-26 02:46:48 +00:00
|
|
|
}
|
|
|
|
},
|
|
|
|
"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"
|
2023-01-24 04:13:42 +00:00
|
|
|
]
|
|
|
|
},
|
2023-03-26 02:46:48 +00:00
|
|
|
"TagResponseDto": {
|
2023-01-24 04:13:42 +00:00
|
|
|
"type": "object",
|
|
|
|
"properties": {
|
|
|
|
"id": {
|
|
|
|
"type": "string"
|
|
|
|
},
|
2023-03-26 02:46:48 +00:00
|
|
|
"type": {
|
|
|
|
"$ref": "#/components/schemas/TagTypeEnum"
|
2023-01-24 04:13:42 +00:00
|
|
|
},
|
2023-03-26 02:46:48 +00:00
|
|
|
"name": {
|
2023-01-24 04:13:42 +00:00
|
|
|
"type": "string"
|
|
|
|
},
|
2023-03-26 02:46:48 +00:00
|
|
|
"userId": {
|
2023-01-24 04:13:42 +00:00
|
|
|
"type": "string"
|
|
|
|
},
|
2023-03-26 02:46:48 +00:00
|
|
|
"renameTagId": {
|
|
|
|
"type": "string",
|
|
|
|
"nullable": true
|
2023-01-24 04:13:42 +00:00
|
|
|
}
|
|
|
|
},
|
|
|
|
"required": [
|
|
|
|
"id",
|
2023-03-26 02:46:48 +00:00
|
|
|
"type",
|
|
|
|
"name",
|
|
|
|
"userId"
|
2023-01-24 04:13:42 +00:00
|
|
|
]
|
|
|
|
},
|
2023-05-17 17:07:17 +00:00
|
|
|
"PersonResponseDto": {
|
|
|
|
"type": "object",
|
|
|
|
"properties": {
|
|
|
|
"id": {
|
|
|
|
"type": "string"
|
|
|
|
},
|
|
|
|
"name": {
|
|
|
|
"type": "string"
|
|
|
|
},
|
|
|
|
"thumbnailPath": {
|
|
|
|
"type": "string"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"required": [
|
|
|
|
"id",
|
|
|
|
"name",
|
|
|
|
"thumbnailPath"
|
|
|
|
]
|
|
|
|
},
|
2023-03-26 02:46:48 +00:00
|
|
|
"AssetResponseDto": {
|
2023-01-24 04:13:42 +00:00
|
|
|
"type": "object",
|
|
|
|
"properties": {
|
2023-03-26 02:46:48 +00:00
|
|
|
"type": {
|
|
|
|
"$ref": "#/components/schemas/AssetTypeEnum"
|
2023-01-24 04:13:42 +00:00
|
|
|
},
|
|
|
|
"id": {
|
|
|
|
"type": "string"
|
|
|
|
},
|
2023-03-26 02:46:48 +00:00
|
|
|
"deviceAssetId": {
|
2023-01-24 04:13:42 +00:00
|
|
|
"type": "string"
|
|
|
|
},
|
2023-03-26 02:46:48 +00:00
|
|
|
"ownerId": {
|
2023-01-24 04:13:42 +00:00
|
|
|
"type": "string"
|
|
|
|
},
|
2023-03-26 02:46:48 +00:00
|
|
|
"deviceId": {
|
2023-01-24 04:13:42 +00:00
|
|
|
"type": "string"
|
|
|
|
},
|
2023-03-26 02:46:48 +00:00
|
|
|
"originalPath": {
|
2023-01-24 04:13:42 +00:00
|
|
|
"type": "string"
|
|
|
|
},
|
2023-04-11 10:23:39 +00:00
|
|
|
"originalFileName": {
|
|
|
|
"type": "string"
|
|
|
|
},
|
2023-05-28 01:56:17 +00:00
|
|
|
"resized": {
|
|
|
|
"type": "boolean"
|
2023-01-24 04:13:42 +00:00
|
|
|
},
|
2023-03-26 02:46:48 +00:00
|
|
|
"fileCreatedAt": {
|
|
|
|
"type": "string"
|
2023-01-24 04:13:42 +00:00
|
|
|
},
|
2023-03-26 02:46:48 +00:00
|
|
|
"fileModifiedAt": {
|
2023-01-24 04:13:42 +00:00
|
|
|
"type": "string"
|
|
|
|
},
|
2023-03-03 22:38:30 +00:00
|
|
|
"updatedAt": {
|
|
|
|
"type": "string"
|
|
|
|
},
|
2023-03-26 02:46:48 +00:00
|
|
|
"isFavorite": {
|
|
|
|
"type": "boolean"
|
|
|
|
},
|
2023-04-12 15:37:52 +00:00
|
|
|
"isArchived": {
|
|
|
|
"type": "boolean"
|
|
|
|
},
|
2023-03-26 02:46:48 +00:00
|
|
|
"mimeType": {
|
|
|
|
"type": "string",
|
|
|
|
"nullable": true
|
|
|
|
},
|
|
|
|
"duration": {
|
2023-01-24 04:13:42 +00:00
|
|
|
"type": "string"
|
|
|
|
},
|
2023-03-26 02:46:48 +00:00
|
|
|
"exifInfo": {
|
|
|
|
"$ref": "#/components/schemas/ExifResponseDto"
|
|
|
|
},
|
|
|
|
"smartInfo": {
|
|
|
|
"$ref": "#/components/schemas/SmartInfoResponseDto"
|
|
|
|
},
|
|
|
|
"livePhotoVideoId": {
|
|
|
|
"type": "string",
|
|
|
|
"nullable": true
|
|
|
|
},
|
|
|
|
"tags": {
|
|
|
|
"type": "array",
|
|
|
|
"items": {
|
|
|
|
"$ref": "#/components/schemas/TagResponseDto"
|
|
|
|
}
|
2023-05-17 17:07:17 +00:00
|
|
|
},
|
|
|
|
"people": {
|
|
|
|
"type": "array",
|
|
|
|
"items": {
|
|
|
|
"$ref": "#/components/schemas/PersonResponseDto"
|
|
|
|
}
|
2023-05-28 01:56:17 +00:00
|
|
|
},
|
|
|
|
"checksum": {
|
|
|
|
"type": "string",
|
|
|
|
"description": "base64 encoded sha1 hash"
|
2023-02-01 20:55:06 +00:00
|
|
|
}
|
|
|
|
},
|
|
|
|
"required": [
|
2023-03-26 02:46:48 +00:00
|
|
|
"type",
|
|
|
|
"id",
|
|
|
|
"deviceAssetId",
|
|
|
|
"ownerId",
|
|
|
|
"deviceId",
|
|
|
|
"originalPath",
|
2023-04-11 10:23:39 +00:00
|
|
|
"originalFileName",
|
2023-05-28 01:56:17 +00:00
|
|
|
"resized",
|
2023-03-26 02:46:48 +00:00
|
|
|
"fileCreatedAt",
|
|
|
|
"fileModifiedAt",
|
|
|
|
"updatedAt",
|
|
|
|
"isFavorite",
|
2023-04-12 15:37:52 +00:00
|
|
|
"isArchived",
|
2023-03-26 02:46:48 +00:00
|
|
|
"mimeType",
|
|
|
|
"duration",
|
2023-05-28 01:56:17 +00:00
|
|
|
"checksum"
|
2023-02-01 20:55:06 +00:00
|
|
|
]
|
|
|
|
},
|
2023-03-26 02:46:48 +00:00
|
|
|
"AlbumResponseDto": {
|
2023-02-01 20:55:06 +00:00
|
|
|
"type": "object",
|
|
|
|
"properties": {
|
2023-03-26 02:46:48 +00:00
|
|
|
"assetCount": {
|
2023-02-01 20:55:06 +00:00
|
|
|
"type": "integer"
|
|
|
|
},
|
2023-03-26 02:46:48 +00:00
|
|
|
"id": {
|
|
|
|
"type": "string"
|
2023-02-01 20:55:06 +00:00
|
|
|
},
|
2023-03-26 02:46:48 +00:00
|
|
|
"ownerId": {
|
2023-02-01 20:55:06 +00:00
|
|
|
"type": "string"
|
|
|
|
},
|
2023-03-26 02:46:48 +00:00
|
|
|
"albumName": {
|
2023-02-01 20:55:06 +00:00
|
|
|
"type": "string"
|
|
|
|
},
|
|
|
|
"createdAt": {
|
|
|
|
"type": "string"
|
|
|
|
},
|
2023-03-26 02:46:48 +00:00
|
|
|
"updatedAt": {
|
|
|
|
"type": "string"
|
|
|
|
},
|
|
|
|
"albumThumbnailAssetId": {
|
|
|
|
"type": "string",
|
|
|
|
"nullable": true
|
|
|
|
},
|
|
|
|
"shared": {
|
2023-02-01 20:55:06 +00:00
|
|
|
"type": "boolean"
|
2023-03-26 02:46:48 +00:00
|
|
|
},
|
|
|
|
"sharedUsers": {
|
|
|
|
"type": "array",
|
|
|
|
"items": {
|
|
|
|
"$ref": "#/components/schemas/UserResponseDto"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"assets": {
|
|
|
|
"type": "array",
|
|
|
|
"items": {
|
|
|
|
"$ref": "#/components/schemas/AssetResponseDto"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"owner": {
|
|
|
|
"$ref": "#/components/schemas/UserResponseDto"
|
2023-02-01 20:55:06 +00:00
|
|
|
}
|
|
|
|
},
|
|
|
|
"required": [
|
2023-03-26 02:46:48 +00:00
|
|
|
"assetCount",
|
2023-02-01 20:55:06 +00:00
|
|
|
"id",
|
2023-03-26 02:46:48 +00:00
|
|
|
"ownerId",
|
|
|
|
"albumName",
|
2023-02-01 20:55:06 +00:00
|
|
|
"createdAt",
|
2023-03-26 02:46:48 +00:00
|
|
|
"updatedAt",
|
|
|
|
"albumThumbnailAssetId",
|
|
|
|
"shared",
|
|
|
|
"sharedUsers",
|
|
|
|
"assets",
|
|
|
|
"owner"
|
2023-02-01 20:55:06 +00:00
|
|
|
]
|
|
|
|
},
|
2023-05-25 02:10:45 +00:00
|
|
|
"CreateAlbumDto": {
|
|
|
|
"type": "object",
|
|
|
|
"properties": {
|
|
|
|
"albumName": {
|
|
|
|
"type": "string"
|
|
|
|
},
|
|
|
|
"sharedWithUserIds": {
|
|
|
|
"type": "array",
|
|
|
|
"items": {
|
|
|
|
"type": "string",
|
|
|
|
"format": "uuid"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"assetIds": {
|
|
|
|
"type": "array",
|
|
|
|
"items": {
|
|
|
|
"type": "string",
|
|
|
|
"format": "uuid"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"required": [
|
|
|
|
"albumName"
|
|
|
|
]
|
|
|
|
},
|
2023-05-25 19:37:19 +00:00
|
|
|
"UpdateAlbumDto": {
|
|
|
|
"type": "object",
|
|
|
|
"properties": {
|
|
|
|
"albumName": {
|
|
|
|
"type": "string"
|
|
|
|
},
|
|
|
|
"albumThumbnailAssetId": {
|
|
|
|
"type": "string",
|
|
|
|
"format": "uuid"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
2023-03-26 02:46:48 +00:00
|
|
|
"APIKeyCreateDto": {
|
2023-03-20 15:55:28 +00:00
|
|
|
"type": "object",
|
|
|
|
"properties": {
|
2023-03-26 02:46:48 +00:00
|
|
|
"name": {
|
|
|
|
"type": "string"
|
2023-03-20 15:55:28 +00:00
|
|
|
}
|
2023-03-26 02:46:48 +00:00
|
|
|
}
|
2023-03-20 15:55:28 +00:00
|
|
|
},
|
2023-03-26 02:46:48 +00:00
|
|
|
"APIKeyResponseDto": {
|
2023-03-20 15:55:28 +00:00
|
|
|
"type": "object",
|
|
|
|
"properties": {
|
2023-03-26 02:46:48 +00:00
|
|
|
"id": {
|
|
|
|
"type": "string"
|
2023-03-20 15:55:28 +00:00
|
|
|
},
|
2023-03-26 02:46:48 +00:00
|
|
|
"name": {
|
|
|
|
"type": "string"
|
2023-03-20 15:55:28 +00:00
|
|
|
},
|
2023-03-26 02:46:48 +00:00
|
|
|
"createdAt": {
|
|
|
|
"type": "string"
|
2023-03-20 15:55:28 +00:00
|
|
|
},
|
2023-03-26 02:46:48 +00:00
|
|
|
"updatedAt": {
|
|
|
|
"type": "string"
|
2023-03-20 15:55:28 +00:00
|
|
|
}
|
|
|
|
},
|
|
|
|
"required": [
|
2023-03-26 02:46:48 +00:00
|
|
|
"id",
|
|
|
|
"name",
|
|
|
|
"createdAt",
|
|
|
|
"updatedAt"
|
2023-03-20 15:55:28 +00:00
|
|
|
]
|
|
|
|
},
|
2023-03-26 02:46:48 +00:00
|
|
|
"APIKeyCreateResponseDto": {
|
2023-03-20 15:55:28 +00:00
|
|
|
"type": "object",
|
|
|
|
"properties": {
|
2023-03-26 02:46:48 +00:00
|
|
|
"secret": {
|
|
|
|
"type": "string"
|
2023-03-20 15:55:28 +00:00
|
|
|
},
|
2023-03-26 02:46:48 +00:00
|
|
|
"apiKey": {
|
|
|
|
"$ref": "#/components/schemas/APIKeyResponseDto"
|
2023-03-20 15:55:28 +00:00
|
|
|
}
|
|
|
|
},
|
|
|
|
"required": [
|
2023-03-26 02:46:48 +00:00
|
|
|
"secret",
|
|
|
|
"apiKey"
|
2023-03-20 15:55:28 +00:00
|
|
|
]
|
|
|
|
},
|
2023-03-26 02:46:48 +00:00
|
|
|
"APIKeyUpdateDto": {
|
2023-01-24 04:13:42 +00:00
|
|
|
"type": "object",
|
|
|
|
"properties": {
|
2023-03-26 02:46:48 +00:00
|
|
|
"name": {
|
2023-01-24 04:13:42 +00:00
|
|
|
"type": "string"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"required": [
|
2023-03-26 02:46:48 +00:00
|
|
|
"name"
|
2023-01-24 04:13:42 +00:00
|
|
|
]
|
|
|
|
},
|
2023-05-21 06:26:06 +00:00
|
|
|
"MapMarkerResponseDto": {
|
|
|
|
"type": "object",
|
|
|
|
"properties": {
|
|
|
|
"id": {
|
|
|
|
"type": "string"
|
|
|
|
},
|
|
|
|
"lat": {
|
|
|
|
"type": "number",
|
|
|
|
"format": "double"
|
|
|
|
},
|
|
|
|
"lon": {
|
|
|
|
"type": "number",
|
|
|
|
"format": "double"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"required": [
|
|
|
|
"id",
|
|
|
|
"lat",
|
|
|
|
"lon"
|
|
|
|
]
|
|
|
|
},
|
2023-03-26 02:46:48 +00:00
|
|
|
"LoginCredentialDto": {
|
2023-01-24 04:13:42 +00:00
|
|
|
"type": "object",
|
|
|
|
"properties": {
|
2023-03-26 02:46:48 +00:00
|
|
|
"email": {
|
|
|
|
"type": "string",
|
|
|
|
"example": "testuser@email.com"
|
2023-01-24 04:13:42 +00:00
|
|
|
},
|
2023-03-26 02:46:48 +00:00
|
|
|
"password": {
|
|
|
|
"type": "string",
|
|
|
|
"example": "password"
|
2023-01-24 04:13:42 +00:00
|
|
|
}
|
|
|
|
},
|
|
|
|
"required": [
|
2023-03-26 02:46:48 +00:00
|
|
|
"email",
|
|
|
|
"password"
|
2023-01-25 16:35:28 +00:00
|
|
|
]
|
|
|
|
},
|
2023-03-26 02:46:48 +00:00
|
|
|
"LoginResponseDto": {
|
2023-01-21 16:11:55 +00:00
|
|
|
"type": "object",
|
|
|
|
"properties": {
|
2023-03-26 02:46:48 +00:00
|
|
|
"accessToken": {
|
2023-01-25 16:35:28 +00:00
|
|
|
"type": "string",
|
2023-03-26 02:46:48 +00:00
|
|
|
"readOnly": true
|
2023-01-21 16:11:55 +00:00
|
|
|
},
|
2023-03-26 02:46:48 +00:00
|
|
|
"userId": {
|
2023-01-25 16:35:28 +00:00
|
|
|
"type": "string",
|
2023-03-26 02:46:48 +00:00
|
|
|
"readOnly": true
|
2023-01-21 16:11:55 +00:00
|
|
|
},
|
2023-03-26 02:46:48 +00:00
|
|
|
"userEmail": {
|
2023-01-25 16:35:28 +00:00
|
|
|
"type": "string",
|
2023-03-26 02:46:48 +00:00
|
|
|
"readOnly": true
|
2023-01-25 16:35:28 +00:00
|
|
|
},
|
2023-03-26 02:46:48 +00:00
|
|
|
"firstName": {
|
2023-01-25 16:35:28 +00:00
|
|
|
"type": "string",
|
2023-03-26 02:46:48 +00:00
|
|
|
"readOnly": true
|
2023-01-25 16:35:28 +00:00
|
|
|
},
|
2023-03-26 02:46:48 +00:00
|
|
|
"lastName": {
|
2023-01-25 16:35:28 +00:00
|
|
|
"type": "string",
|
2023-03-26 02:46:48 +00:00
|
|
|
"readOnly": true
|
2023-01-25 16:35:28 +00:00
|
|
|
},
|
2023-03-26 02:46:48 +00:00
|
|
|
"profileImagePath": {
|
2023-01-25 16:35:28 +00:00
|
|
|
"type": "string",
|
2023-03-26 02:46:48 +00:00
|
|
|
"readOnly": true
|
2023-01-25 16:35:28 +00:00
|
|
|
},
|
2023-03-26 02:46:48 +00:00
|
|
|
"isAdmin": {
|
|
|
|
"type": "boolean",
|
|
|
|
"readOnly": true
|
2023-01-25 16:35:28 +00:00
|
|
|
},
|
2023-03-26 02:46:48 +00:00
|
|
|
"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"
|
2023-01-25 16:35:28 +00:00
|
|
|
},
|
2023-03-26 02:46:48 +00:00
|
|
|
"password": {
|
|
|
|
"type": "string",
|
|
|
|
"example": "password"
|
2023-01-25 16:35:28 +00:00
|
|
|
},
|
2023-03-26 02:46:48 +00:00
|
|
|
"firstName": {
|
|
|
|
"type": "string",
|
|
|
|
"example": "Admin"
|
2023-01-25 16:35:28 +00:00
|
|
|
},
|
2023-03-26 02:46:48 +00:00
|
|
|
"lastName": {
|
2023-01-26 19:14:05 +00:00
|
|
|
"type": "string",
|
2023-03-26 02:46:48 +00:00
|
|
|
"example": "Doe"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"required": [
|
|
|
|
"email",
|
|
|
|
"password",
|
|
|
|
"firstName",
|
|
|
|
"lastName"
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"AdminSignupResponseDto": {
|
|
|
|
"type": "object",
|
|
|
|
"properties": {
|
|
|
|
"id": {
|
|
|
|
"type": "string"
|
2023-01-25 16:35:28 +00:00
|
|
|
},
|
2023-03-26 02:46:48 +00:00
|
|
|
"email": {
|
|
|
|
"type": "string"
|
2023-01-25 16:35:28 +00:00
|
|
|
},
|
2023-03-26 02:46:48 +00:00
|
|
|
"firstName": {
|
|
|
|
"type": "string"
|
2023-01-25 16:35:28 +00:00
|
|
|
},
|
2023-03-26 02:46:48 +00:00
|
|
|
"lastName": {
|
|
|
|
"type": "string"
|
2023-01-25 16:35:28 +00:00
|
|
|
},
|
2023-03-26 02:46:48 +00:00
|
|
|
"createdAt": {
|
|
|
|
"type": "string"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"required": [
|
|
|
|
"id",
|
|
|
|
"email",
|
|
|
|
"firstName",
|
|
|
|
"lastName",
|
|
|
|
"createdAt"
|
|
|
|
]
|
|
|
|
},
|
2023-04-26 02:19:23 +00:00
|
|
|
"AuthDeviceResponseDto": {
|
|
|
|
"type": "object",
|
|
|
|
"properties": {
|
|
|
|
"id": {
|
|
|
|
"type": "string"
|
|
|
|
},
|
|
|
|
"createdAt": {
|
|
|
|
"type": "string"
|
|
|
|
},
|
|
|
|
"updatedAt": {
|
|
|
|
"type": "string"
|
|
|
|
},
|
|
|
|
"current": {
|
|
|
|
"type": "boolean"
|
|
|
|
},
|
|
|
|
"deviceType": {
|
|
|
|
"type": "string"
|
|
|
|
},
|
|
|
|
"deviceOS": {
|
|
|
|
"type": "string"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"required": [
|
|
|
|
"id",
|
|
|
|
"createdAt",
|
|
|
|
"updatedAt",
|
|
|
|
"current",
|
|
|
|
"deviceType",
|
|
|
|
"deviceOS"
|
|
|
|
]
|
|
|
|
},
|
2023-03-26 02:46:48 +00:00
|
|
|
"ValidateAccessTokenResponseDto": {
|
|
|
|
"type": "object",
|
|
|
|
"properties": {
|
|
|
|
"authStatus": {
|
|
|
|
"type": "boolean"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"required": [
|
|
|
|
"authStatus"
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"ChangePasswordDto": {
|
|
|
|
"type": "object",
|
|
|
|
"properties": {
|
|
|
|
"password": {
|
2023-01-25 16:35:28 +00:00
|
|
|
"type": "string",
|
2023-03-26 02:46:48 +00:00
|
|
|
"example": "password"
|
2023-01-25 16:35:28 +00:00
|
|
|
},
|
2023-03-26 02:46:48 +00:00
|
|
|
"newPassword": {
|
2023-01-25 16:35:28 +00:00
|
|
|
"type": "string",
|
2023-03-26 02:46:48 +00:00
|
|
|
"example": "password"
|
2023-01-25 16:35:28 +00:00
|
|
|
}
|
2023-03-26 02:46:48 +00:00
|
|
|
},
|
|
|
|
"required": [
|
|
|
|
"password",
|
|
|
|
"newPassword"
|
|
|
|
]
|
2023-01-25 16:35:28 +00:00
|
|
|
},
|
2023-03-26 02:46:48 +00:00
|
|
|
"LogoutResponseDto": {
|
2023-01-25 16:35:28 +00:00
|
|
|
"type": "object",
|
|
|
|
"properties": {
|
2023-03-26 02:46:48 +00:00
|
|
|
"successful": {
|
2023-04-26 02:19:23 +00:00
|
|
|
"type": "boolean"
|
2023-01-25 16:35:28 +00:00
|
|
|
},
|
2023-03-26 02:46:48 +00:00
|
|
|
"redirectUri": {
|
2023-04-26 02:19:23 +00:00
|
|
|
"type": "string"
|
2023-01-25 16:35:28 +00:00
|
|
|
}
|
2023-03-26 02:46:48 +00:00
|
|
|
},
|
|
|
|
"required": [
|
|
|
|
"successful",
|
|
|
|
"redirectUri"
|
|
|
|
]
|
2023-01-25 16:35:28 +00:00
|
|
|
},
|
2023-03-26 02:46:48 +00:00
|
|
|
"JobCountsDto": {
|
|
|
|
"type": "object",
|
|
|
|
"properties": {
|
|
|
|
"active": {
|
|
|
|
"type": "integer"
|
2023-01-25 16:35:28 +00:00
|
|
|
},
|
2023-03-26 02:46:48 +00:00
|
|
|
"completed": {
|
|
|
|
"type": "integer"
|
2023-01-25 16:35:28 +00:00
|
|
|
},
|
2023-03-26 02:46:48 +00:00
|
|
|
"failed": {
|
|
|
|
"type": "integer"
|
2023-02-06 16:24:58 +00:00
|
|
|
},
|
2023-03-26 02:46:48 +00:00
|
|
|
"delayed": {
|
|
|
|
"type": "integer"
|
2023-01-25 16:35:28 +00:00
|
|
|
},
|
2023-03-26 02:46:48 +00:00
|
|
|
"waiting": {
|
|
|
|
"type": "integer"
|
2023-03-29 15:33:03 +00:00
|
|
|
},
|
|
|
|
"paused": {
|
|
|
|
"type": "integer"
|
2023-03-26 02:46:48 +00:00
|
|
|
}
|
|
|
|
},
|
|
|
|
"required": [
|
|
|
|
"active",
|
|
|
|
"completed",
|
|
|
|
"failed",
|
|
|
|
"delayed",
|
2023-03-29 15:33:03 +00:00
|
|
|
"waiting",
|
|
|
|
"paused"
|
2023-03-26 02:46:48 +00:00
|
|
|
]
|
|
|
|
},
|
2023-04-01 20:46:07 +00:00
|
|
|
"QueueStatusDto": {
|
|
|
|
"type": "object",
|
|
|
|
"properties": {
|
|
|
|
"isActive": {
|
|
|
|
"type": "boolean"
|
|
|
|
},
|
|
|
|
"isPaused": {
|
|
|
|
"type": "boolean"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"required": [
|
|
|
|
"isActive",
|
|
|
|
"isPaused"
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"JobStatusDto": {
|
|
|
|
"type": "object",
|
|
|
|
"properties": {
|
|
|
|
"jobCounts": {
|
|
|
|
"$ref": "#/components/schemas/JobCountsDto"
|
|
|
|
},
|
|
|
|
"queueStatus": {
|
|
|
|
"$ref": "#/components/schemas/QueueStatusDto"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"required": [
|
|
|
|
"jobCounts",
|
|
|
|
"queueStatus"
|
|
|
|
]
|
|
|
|
},
|
2023-03-26 02:46:48 +00:00
|
|
|
"AllJobStatusResponseDto": {
|
|
|
|
"type": "object",
|
|
|
|
"properties": {
|
|
|
|
"thumbnail-generation-queue": {
|
2023-04-01 20:46:07 +00:00
|
|
|
"$ref": "#/components/schemas/JobStatusDto"
|
2023-01-25 16:35:28 +00:00
|
|
|
},
|
2023-03-26 02:46:48 +00:00
|
|
|
"metadata-extraction-queue": {
|
2023-04-01 20:46:07 +00:00
|
|
|
"$ref": "#/components/schemas/JobStatusDto"
|
2023-01-25 16:35:28 +00:00
|
|
|
},
|
2023-03-26 02:46:48 +00:00
|
|
|
"video-conversion-queue": {
|
2023-04-01 20:46:07 +00:00
|
|
|
"$ref": "#/components/schemas/JobStatusDto"
|
2023-01-25 16:35:28 +00:00
|
|
|
},
|
2023-03-26 02:46:48 +00:00
|
|
|
"object-tagging-queue": {
|
2023-04-01 20:46:07 +00:00
|
|
|
"$ref": "#/components/schemas/JobStatusDto"
|
2023-01-25 16:35:28 +00:00
|
|
|
},
|
2023-03-26 02:46:48 +00:00
|
|
|
"clip-encoding-queue": {
|
2023-04-01 20:46:07 +00:00
|
|
|
"$ref": "#/components/schemas/JobStatusDto"
|
2023-01-25 16:35:28 +00:00
|
|
|
},
|
2023-03-26 02:46:48 +00:00
|
|
|
"storage-template-migration-queue": {
|
2023-04-01 20:46:07 +00:00
|
|
|
"$ref": "#/components/schemas/JobStatusDto"
|
2023-01-25 16:35:28 +00:00
|
|
|
},
|
2023-03-26 02:46:48 +00:00
|
|
|
"background-task-queue": {
|
2023-04-01 20:46:07 +00:00
|
|
|
"$ref": "#/components/schemas/JobStatusDto"
|
2023-01-25 16:35:28 +00:00
|
|
|
},
|
2023-03-26 02:46:48 +00:00
|
|
|
"search-queue": {
|
2023-04-01 20:46:07 +00:00
|
|
|
"$ref": "#/components/schemas/JobStatusDto"
|
2023-05-17 17:07:17 +00:00
|
|
|
},
|
|
|
|
"recognize-faces-queue": {
|
|
|
|
"$ref": "#/components/schemas/JobStatusDto"
|
feat(server): xmp sidecar metadata (#2466)
* initial commit for XMP sidecar support
* Added support for 'missing' metadata files to include those without sidecar files, now detects sidecar files in the filesystem for media already ingested but the sidecar was created afterwards
* didn't mean to commit default log level during testing
* new sidecar logic for video metadata as well
* Added xml mimetype for sidecars only
* don't need capture group for this regex
* wrong default value reverted
* simplified the move here - keep it in the same try catch since the outcome is to move the media back anyway
* simplified setter logic
Co-authored-by: Jason Rasmussen <jrasm91@gmail.com>
* simplified logic per suggestions
* sidecar is now its own queue with a discover and sync, updated UI for the new job queueing
* queue a sidecar job for every asset based on discovery or sync, though the logic is almost identical aside from linking the sidecar
* now queue sidecar jobs for each assset, though logic is mostly the same between discovery and sync
* simplified logic of filename extraction and asset instantiation
* not sure how that got deleted..
* updated code per suggestions and comments in the PR
* stat was not being used, removed the variable set
* better type checking, using in-scope variables for exif getter instead of passing in every time
* removed commented out test
* ran and resolved all lints, formats, checks, and tests
* resolved suggested change in PR
* made getExifProperty more dynamic with multiple possible args for fallbacks, fixed typo, used generic in function for better type checking
* better error handling and moving files back to positions on move or save failure
* regenerated api
* format fixes
* Added XMP documentation
* documentation typo
* Merged in main
* missed merge conflict
* more changes due to a merge
* Resolving conflicts
* added icon for sidecar jobs
---------
Co-authored-by: Jason Rasmussen <jrasm91@gmail.com>
Co-authored-by: Alex Tran <alex.tran1502@gmail.com>
2023-05-25 01:59:30 +00:00
|
|
|
},
|
|
|
|
"sidecar-queue": {
|
|
|
|
"$ref": "#/components/schemas/JobStatusDto"
|
2023-01-25 16:35:28 +00:00
|
|
|
}
|
|
|
|
},
|
|
|
|
"required": [
|
2023-03-26 02:46:48 +00:00
|
|
|
"thumbnail-generation-queue",
|
|
|
|
"metadata-extraction-queue",
|
|
|
|
"video-conversion-queue",
|
|
|
|
"object-tagging-queue",
|
|
|
|
"clip-encoding-queue",
|
|
|
|
"storage-template-migration-queue",
|
|
|
|
"background-task-queue",
|
2023-05-17 17:07:17 +00:00
|
|
|
"search-queue",
|
feat(server): xmp sidecar metadata (#2466)
* initial commit for XMP sidecar support
* Added support for 'missing' metadata files to include those without sidecar files, now detects sidecar files in the filesystem for media already ingested but the sidecar was created afterwards
* didn't mean to commit default log level during testing
* new sidecar logic for video metadata as well
* Added xml mimetype for sidecars only
* don't need capture group for this regex
* wrong default value reverted
* simplified the move here - keep it in the same try catch since the outcome is to move the media back anyway
* simplified setter logic
Co-authored-by: Jason Rasmussen <jrasm91@gmail.com>
* simplified logic per suggestions
* sidecar is now its own queue with a discover and sync, updated UI for the new job queueing
* queue a sidecar job for every asset based on discovery or sync, though the logic is almost identical aside from linking the sidecar
* now queue sidecar jobs for each assset, though logic is mostly the same between discovery and sync
* simplified logic of filename extraction and asset instantiation
* not sure how that got deleted..
* updated code per suggestions and comments in the PR
* stat was not being used, removed the variable set
* better type checking, using in-scope variables for exif getter instead of passing in every time
* removed commented out test
* ran and resolved all lints, formats, checks, and tests
* resolved suggested change in PR
* made getExifProperty more dynamic with multiple possible args for fallbacks, fixed typo, used generic in function for better type checking
* better error handling and moving files back to positions on move or save failure
* regenerated api
* format fixes
* Added XMP documentation
* documentation typo
* Merged in main
* missed merge conflict
* more changes due to a merge
* Resolving conflicts
* added icon for sidecar jobs
---------
Co-authored-by: Jason Rasmussen <jrasm91@gmail.com>
Co-authored-by: Alex Tran <alex.tran1502@gmail.com>
2023-05-25 01:59:30 +00:00
|
|
|
"recognize-faces-queue",
|
|
|
|
"sidecar-queue"
|
2023-01-25 16:35:28 +00:00
|
|
|
]
|
|
|
|
},
|
2023-03-26 02:46:48 +00:00
|
|
|
"JobName": {
|
|
|
|
"type": "string",
|
|
|
|
"enum": [
|
|
|
|
"thumbnail-generation-queue",
|
|
|
|
"metadata-extraction-queue",
|
|
|
|
"video-conversion-queue",
|
|
|
|
"object-tagging-queue",
|
2023-05-17 17:07:17 +00:00
|
|
|
"recognize-faces-queue",
|
2023-03-26 02:46:48 +00:00
|
|
|
"clip-encoding-queue",
|
|
|
|
"background-task-queue",
|
|
|
|
"storage-template-migration-queue",
|
feat(server): xmp sidecar metadata (#2466)
* initial commit for XMP sidecar support
* Added support for 'missing' metadata files to include those without sidecar files, now detects sidecar files in the filesystem for media already ingested but the sidecar was created afterwards
* didn't mean to commit default log level during testing
* new sidecar logic for video metadata as well
* Added xml mimetype for sidecars only
* don't need capture group for this regex
* wrong default value reverted
* simplified the move here - keep it in the same try catch since the outcome is to move the media back anyway
* simplified setter logic
Co-authored-by: Jason Rasmussen <jrasm91@gmail.com>
* simplified logic per suggestions
* sidecar is now its own queue with a discover and sync, updated UI for the new job queueing
* queue a sidecar job for every asset based on discovery or sync, though the logic is almost identical aside from linking the sidecar
* now queue sidecar jobs for each assset, though logic is mostly the same between discovery and sync
* simplified logic of filename extraction and asset instantiation
* not sure how that got deleted..
* updated code per suggestions and comments in the PR
* stat was not being used, removed the variable set
* better type checking, using in-scope variables for exif getter instead of passing in every time
* removed commented out test
* ran and resolved all lints, formats, checks, and tests
* resolved suggested change in PR
* made getExifProperty more dynamic with multiple possible args for fallbacks, fixed typo, used generic in function for better type checking
* better error handling and moving files back to positions on move or save failure
* regenerated api
* format fixes
* Added XMP documentation
* documentation typo
* Merged in main
* missed merge conflict
* more changes due to a merge
* Resolving conflicts
* added icon for sidecar jobs
---------
Co-authored-by: Jason Rasmussen <jrasm91@gmail.com>
Co-authored-by: Alex Tran <alex.tran1502@gmail.com>
2023-05-25 01:59:30 +00:00
|
|
|
"search-queue",
|
|
|
|
"sidecar-queue"
|
2023-03-26 02:46:48 +00:00
|
|
|
]
|
|
|
|
},
|
|
|
|
"JobCommand": {
|
|
|
|
"type": "string",
|
|
|
|
"enum": [
|
|
|
|
"start",
|
|
|
|
"pause",
|
2023-03-28 18:25:22 +00:00
|
|
|
"resume",
|
2023-03-26 02:46:48 +00:00
|
|
|
"empty"
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"JobCommandDto": {
|
2023-01-25 16:35:28 +00:00
|
|
|
"type": "object",
|
|
|
|
"properties": {
|
2023-03-26 02:46:48 +00:00
|
|
|
"command": {
|
|
|
|
"$ref": "#/components/schemas/JobCommand"
|
2023-01-25 16:35:28 +00:00
|
|
|
},
|
2023-03-26 02:46:48 +00:00
|
|
|
"force": {
|
|
|
|
"type": "boolean"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"required": [
|
|
|
|
"command",
|
|
|
|
"force"
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"OAuthConfigDto": {
|
|
|
|
"type": "object",
|
|
|
|
"properties": {
|
|
|
|
"redirectUri": {
|
2023-01-25 16:35:28 +00:00
|
|
|
"type": "string"
|
2023-03-26 02:46:48 +00:00
|
|
|
}
|
|
|
|
},
|
|
|
|
"required": [
|
|
|
|
"redirectUri"
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"OAuthConfigResponseDto": {
|
|
|
|
"type": "object",
|
|
|
|
"properties": {
|
|
|
|
"enabled": {
|
|
|
|
"type": "boolean"
|
2023-01-25 16:35:28 +00:00
|
|
|
},
|
2023-03-26 02:46:48 +00:00
|
|
|
"passwordLoginEnabled": {
|
|
|
|
"type": "boolean"
|
2023-01-25 16:35:28 +00:00
|
|
|
},
|
2023-03-26 02:46:48 +00:00
|
|
|
"url": {
|
2023-01-25 16:35:28 +00:00
|
|
|
"type": "string"
|
|
|
|
},
|
2023-03-26 02:46:48 +00:00
|
|
|
"buttonText": {
|
2023-02-06 16:24:58 +00:00
|
|
|
"type": "string"
|
|
|
|
},
|
2023-03-26 02:46:48 +00:00
|
|
|
"autoLaunch": {
|
2023-01-25 16:35:28 +00:00
|
|
|
"type": "boolean"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"required": [
|
2023-03-26 02:46:48 +00:00
|
|
|
"enabled",
|
|
|
|
"passwordLoginEnabled"
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"OAuthCallbackDto": {
|
|
|
|
"type": "object",
|
|
|
|
"properties": {
|
|
|
|
"url": {
|
|
|
|
"type": "string"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"required": [
|
|
|
|
"url"
|
2023-01-25 16:35:28 +00:00
|
|
|
]
|
|
|
|
},
|
2023-03-03 02:47:08 +00:00
|
|
|
"SearchFacetCountResponseDto": {
|
|
|
|
"type": "object",
|
|
|
|
"properties": {
|
|
|
|
"count": {
|
|
|
|
"type": "integer"
|
|
|
|
},
|
|
|
|
"value": {
|
|
|
|
"type": "string"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"required": [
|
|
|
|
"count",
|
|
|
|
"value"
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"SearchFacetResponseDto": {
|
|
|
|
"type": "object",
|
|
|
|
"properties": {
|
|
|
|
"fieldName": {
|
|
|
|
"type": "string"
|
|
|
|
},
|
|
|
|
"counts": {
|
|
|
|
"type": "array",
|
|
|
|
"items": {
|
|
|
|
"$ref": "#/components/schemas/SearchFacetCountResponseDto"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"required": [
|
|
|
|
"fieldName",
|
|
|
|
"counts"
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"SearchAlbumResponseDto": {
|
|
|
|
"type": "object",
|
|
|
|
"properties": {
|
|
|
|
"total": {
|
|
|
|
"type": "integer"
|
|
|
|
},
|
|
|
|
"count": {
|
|
|
|
"type": "integer"
|
|
|
|
},
|
|
|
|
"items": {
|
|
|
|
"type": "array",
|
|
|
|
"items": {
|
|
|
|
"$ref": "#/components/schemas/AlbumResponseDto"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"facets": {
|
|
|
|
"type": "array",
|
|
|
|
"items": {
|
|
|
|
"$ref": "#/components/schemas/SearchFacetResponseDto"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"required": [
|
|
|
|
"total",
|
|
|
|
"count",
|
|
|
|
"items",
|
|
|
|
"facets"
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"SearchAssetResponseDto": {
|
|
|
|
"type": "object",
|
|
|
|
"properties": {
|
|
|
|
"total": {
|
|
|
|
"type": "integer"
|
|
|
|
},
|
|
|
|
"count": {
|
|
|
|
"type": "integer"
|
|
|
|
},
|
|
|
|
"items": {
|
|
|
|
"type": "array",
|
|
|
|
"items": {
|
|
|
|
"$ref": "#/components/schemas/AssetResponseDto"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"facets": {
|
|
|
|
"type": "array",
|
|
|
|
"items": {
|
|
|
|
"$ref": "#/components/schemas/SearchFacetResponseDto"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"required": [
|
|
|
|
"total",
|
|
|
|
"count",
|
|
|
|
"items",
|
|
|
|
"facets"
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"SearchResponseDto": {
|
|
|
|
"type": "object",
|
|
|
|
"properties": {
|
|
|
|
"albums": {
|
|
|
|
"$ref": "#/components/schemas/SearchAlbumResponseDto"
|
|
|
|
},
|
|
|
|
"assets": {
|
|
|
|
"$ref": "#/components/schemas/SearchAssetResponseDto"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"required": [
|
|
|
|
"albums",
|
|
|
|
"assets"
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"SearchConfigResponseDto": {
|
|
|
|
"type": "object",
|
|
|
|
"properties": {
|
|
|
|
"enabled": {
|
|
|
|
"type": "boolean"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"required": [
|
|
|
|
"enabled"
|
|
|
|
]
|
|
|
|
},
|
2023-03-05 20:44:31 +00:00
|
|
|
"SearchExploreItem": {
|
|
|
|
"type": "object",
|
|
|
|
"properties": {
|
|
|
|
"value": {
|
|
|
|
"type": "string"
|
|
|
|
},
|
|
|
|
"data": {
|
|
|
|
"$ref": "#/components/schemas/AssetResponseDto"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"required": [
|
|
|
|
"value",
|
|
|
|
"data"
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"SearchExploreResponseDto": {
|
|
|
|
"type": "object",
|
|
|
|
"properties": {
|
|
|
|
"fieldName": {
|
|
|
|
"type": "string"
|
|
|
|
},
|
|
|
|
"items": {
|
|
|
|
"type": "array",
|
|
|
|
"items": {
|
|
|
|
"$ref": "#/components/schemas/SearchExploreItem"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"required": [
|
|
|
|
"fieldName",
|
|
|
|
"items"
|
|
|
|
]
|
|
|
|
},
|
2023-03-22 02:49:19 +00: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",
|
|
|
|
"patch"
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"UsageByUserDto": {
|
|
|
|
"type": "object",
|
|
|
|
"properties": {
|
|
|
|
"userId": {
|
|
|
|
"type": "string"
|
|
|
|
},
|
|
|
|
"userFirstName": {
|
|
|
|
"type": "string"
|
|
|
|
},
|
|
|
|
"userLastName": {
|
|
|
|
"type": "string"
|
|
|
|
},
|
|
|
|
"photos": {
|
|
|
|
"type": "integer"
|
|
|
|
},
|
|
|
|
"videos": {
|
|
|
|
"type": "integer"
|
|
|
|
},
|
|
|
|
"usage": {
|
|
|
|
"type": "integer",
|
|
|
|
"format": "int64"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"required": [
|
|
|
|
"userId",
|
|
|
|
"userFirstName",
|
|
|
|
"userLastName",
|
|
|
|
"photos",
|
|
|
|
"videos",
|
|
|
|
"usage"
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"ServerStatsResponseDto": {
|
|
|
|
"type": "object",
|
|
|
|
"properties": {
|
|
|
|
"photos": {
|
|
|
|
"type": "integer",
|
|
|
|
"default": 0
|
|
|
|
},
|
|
|
|
"videos": {
|
|
|
|
"type": "integer",
|
|
|
|
"default": 0
|
|
|
|
},
|
|
|
|
"usage": {
|
|
|
|
"type": "integer",
|
|
|
|
"default": 0,
|
|
|
|
"format": "int64"
|
|
|
|
},
|
|
|
|
"usageByUser": {
|
|
|
|
"default": [],
|
|
|
|
"title": "Array of usage for each user",
|
|
|
|
"example": [
|
|
|
|
{
|
|
|
|
"photos": 1,
|
|
|
|
"videos": 1,
|
|
|
|
"diskUsageRaw": 1
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"type": "array",
|
|
|
|
"items": {
|
|
|
|
"$ref": "#/components/schemas/UsageByUserDto"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"required": [
|
|
|
|
"photos",
|
|
|
|
"videos",
|
|
|
|
"usage",
|
|
|
|
"usageByUser"
|
|
|
|
]
|
|
|
|
},
|
2023-03-03 02:47:08 +00:00
|
|
|
"SharedLinkType": {
|
|
|
|
"type": "string",
|
|
|
|
"enum": [
|
|
|
|
"ALBUM",
|
|
|
|
"INDIVIDUAL"
|
|
|
|
]
|
|
|
|
},
|
2023-01-25 16:35:28 +00: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": {
|
2023-05-22 18:07:43 +00:00
|
|
|
"type": "integer"
|
|
|
|
},
|
|
|
|
"threads": {
|
|
|
|
"type": "integer"
|
2023-01-25 16:35:28 +00:00
|
|
|
},
|
|
|
|
"preset": {
|
|
|
|
"type": "string"
|
|
|
|
},
|
|
|
|
"targetVideoCodec": {
|
|
|
|
"type": "string"
|
|
|
|
},
|
|
|
|
"targetAudioCodec": {
|
|
|
|
"type": "string"
|
|
|
|
},
|
2023-04-04 01:42:53 +00:00
|
|
|
"targetResolution": {
|
2023-01-25 16:35:28 +00:00
|
|
|
"type": "string"
|
|
|
|
},
|
2023-05-22 18:07:43 +00:00
|
|
|
"maxBitrate": {
|
|
|
|
"type": "string"
|
|
|
|
},
|
|
|
|
"twoPass": {
|
|
|
|
"type": "boolean"
|
|
|
|
},
|
2023-03-28 19:03:43 +00:00
|
|
|
"transcode": {
|
|
|
|
"type": "string",
|
|
|
|
"enum": [
|
|
|
|
"all",
|
|
|
|
"optimal",
|
2023-04-06 03:32:59 +00:00
|
|
|
"required",
|
|
|
|
"disabled"
|
2023-03-28 19:03:43 +00:00
|
|
|
]
|
2023-01-25 16:35:28 +00:00
|
|
|
}
|
|
|
|
},
|
|
|
|
"required": [
|
|
|
|
"crf",
|
2023-05-22 18:07:43 +00:00
|
|
|
"threads",
|
2023-01-25 16:35:28 +00:00
|
|
|
"preset",
|
|
|
|
"targetVideoCodec",
|
|
|
|
"targetAudioCodec",
|
2023-04-04 01:42:53 +00:00
|
|
|
"targetResolution",
|
2023-05-22 18:07:43 +00:00
|
|
|
"maxBitrate",
|
|
|
|
"twoPass",
|
2023-03-28 19:03:43 +00:00
|
|
|
"transcode"
|
2023-01-25 16:35:28 +00:00
|
|
|
]
|
|
|
|
},
|
|
|
|
"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 16:11:55 +00: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 04:13:42 +00:00
|
|
|
"secondOptions": {
|
|
|
|
"type": "array",
|
|
|
|
"items": {
|
|
|
|
"type": "string"
|
|
|
|
}
|
2022-12-26 15:35:52 +00:00
|
|
|
},
|
2023-01-24 04:13:42 +00:00
|
|
|
"presetOptions": {
|
|
|
|
"type": "array",
|
|
|
|
"items": {
|
|
|
|
"type": "string"
|
|
|
|
}
|
2022-12-05 17:56:44 +00:00
|
|
|
}
|
|
|
|
},
|
|
|
|
"required": [
|
2023-01-24 04:13:42 +00:00
|
|
|
"yearOptions",
|
|
|
|
"monthOptions",
|
|
|
|
"dayOptions",
|
|
|
|
"hourOptions",
|
|
|
|
"minuteOptions",
|
|
|
|
"secondOptions",
|
|
|
|
"presetOptions"
|
2022-12-05 17:56:44 +00:00
|
|
|
]
|
|
|
|
},
|
|
|
|
"CreateUserDto": {
|
|
|
|
"type": "object",
|
|
|
|
"properties": {
|
|
|
|
"email": {
|
2023-05-22 03:18:10 +00:00
|
|
|
"type": "string"
|
2022-12-05 17:56:44 +00:00
|
|
|
},
|
|
|
|
"password": {
|
2023-05-22 03:18:10 +00:00
|
|
|
"type": "string"
|
2022-12-05 17:56:44 +00:00
|
|
|
},
|
|
|
|
"firstName": {
|
2023-05-22 03:18:10 +00:00
|
|
|
"type": "string"
|
2022-12-05 17:56:44 +00:00
|
|
|
},
|
|
|
|
"lastName": {
|
2023-05-22 03:18:10 +00:00
|
|
|
"type": "string"
|
|
|
|
},
|
|
|
|
"storageLabel": {
|
2022-12-05 17:56:44 +00:00
|
|
|
"type": "string",
|
2023-05-22 03:18:10 +00:00
|
|
|
"nullable": true
|
2022-12-05 17:56:44 +00:00
|
|
|
}
|
|
|
|
},
|
|
|
|
"required": [
|
|
|
|
"email",
|
|
|
|
"password",
|
|
|
|
"firstName",
|
|
|
|
"lastName"
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"UserCountResponseDto": {
|
|
|
|
"type": "object",
|
|
|
|
"properties": {
|
|
|
|
"userCount": {
|
|
|
|
"type": "integer"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"required": [
|
|
|
|
"userCount"
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"UpdateUserDto": {
|
|
|
|
"type": "object",
|
|
|
|
"properties": {
|
2023-05-22 03:18:10 +00:00
|
|
|
"id": {
|
2023-04-01 16:43:45 +00:00
|
|
|
"type": "string",
|
2023-05-22 03:18:10 +00:00
|
|
|
"format": "uuid"
|
|
|
|
},
|
|
|
|
"email": {
|
|
|
|
"type": "string"
|
2022-12-27 16:36:31 +00:00
|
|
|
},
|
2022-12-05 17:56:44 +00:00
|
|
|
"password": {
|
2023-05-22 03:18:10 +00:00
|
|
|
"type": "string"
|
2022-12-05 17:56:44 +00:00
|
|
|
},
|
|
|
|
"firstName": {
|
2023-05-22 03:18:10 +00:00
|
|
|
"type": "string"
|
2022-12-05 17:56:44 +00:00
|
|
|
},
|
|
|
|
"lastName": {
|
2023-05-22 03:18:10 +00:00
|
|
|
"type": "string"
|
2023-04-01 16:43:45 +00:00
|
|
|
},
|
2023-05-22 03:18:10 +00:00
|
|
|
"storageLabel": {
|
|
|
|
"type": "string"
|
2022-12-05 17:56:44 +00:00
|
|
|
},
|
|
|
|
"isAdmin": {
|
|
|
|
"type": "boolean"
|
|
|
|
},
|
|
|
|
"shouldChangePassword": {
|
|
|
|
"type": "boolean"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"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-05-17 17:07:17 +00:00
|
|
|
"PersonUpdateDto": {
|
|
|
|
"type": "object",
|
|
|
|
"properties": {
|
|
|
|
"name": {
|
|
|
|
"type": "string"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"required": [
|
|
|
|
"name"
|
|
|
|
]
|
|
|
|
},
|
2023-02-12 05:54:07 +00:00
|
|
|
"CreateAssetDto": {
|
2023-01-12 02:34:36 +00:00
|
|
|
"type": "object",
|
|
|
|
"properties": {
|
2023-02-12 05:54:07 +00:00
|
|
|
"assetType": {
|
|
|
|
"$ref": "#/components/schemas/AssetTypeEnum"
|
|
|
|
},
|
2023-01-12 02:34:36 +00:00
|
|
|
"assetData": {
|
|
|
|
"type": "string",
|
|
|
|
"format": "binary"
|
2023-02-12 05:54:07 +00:00
|
|
|
},
|
|
|
|
"livePhotoData": {
|
|
|
|
"type": "string",
|
|
|
|
"format": "binary"
|
|
|
|
},
|
feat(server): xmp sidecar metadata (#2466)
* initial commit for XMP sidecar support
* Added support for 'missing' metadata files to include those without sidecar files, now detects sidecar files in the filesystem for media already ingested but the sidecar was created afterwards
* didn't mean to commit default log level during testing
* new sidecar logic for video metadata as well
* Added xml mimetype for sidecars only
* don't need capture group for this regex
* wrong default value reverted
* simplified the move here - keep it in the same try catch since the outcome is to move the media back anyway
* simplified setter logic
Co-authored-by: Jason Rasmussen <jrasm91@gmail.com>
* simplified logic per suggestions
* sidecar is now its own queue with a discover and sync, updated UI for the new job queueing
* queue a sidecar job for every asset based on discovery or sync, though the logic is almost identical aside from linking the sidecar
* now queue sidecar jobs for each assset, though logic is mostly the same between discovery and sync
* simplified logic of filename extraction and asset instantiation
* not sure how that got deleted..
* updated code per suggestions and comments in the PR
* stat was not being used, removed the variable set
* better type checking, using in-scope variables for exif getter instead of passing in every time
* removed commented out test
* ran and resolved all lints, formats, checks, and tests
* resolved suggested change in PR
* made getExifProperty more dynamic with multiple possible args for fallbacks, fixed typo, used generic in function for better type checking
* better error handling and moving files back to positions on move or save failure
* regenerated api
* format fixes
* Added XMP documentation
* documentation typo
* Merged in main
* missed merge conflict
* more changes due to a merge
* Resolving conflicts
* added icon for sidecar jobs
---------
Co-authored-by: Jason Rasmussen <jrasm91@gmail.com>
Co-authored-by: Alex Tran <alex.tran1502@gmail.com>
2023-05-25 01:59:30 +00:00
|
|
|
"sidecarData": {
|
|
|
|
"type": "string",
|
|
|
|
"format": "binary"
|
|
|
|
},
|
2023-02-12 05:54:07 +00:00
|
|
|
"deviceAssetId": {
|
|
|
|
"type": "string"
|
|
|
|
},
|
|
|
|
"deviceId": {
|
|
|
|
"type": "string"
|
|
|
|
},
|
2023-02-19 16:44:53 +00:00
|
|
|
"fileCreatedAt": {
|
2023-02-12 05:54:07 +00:00
|
|
|
"type": "string"
|
|
|
|
},
|
2023-02-19 16:44:53 +00:00
|
|
|
"fileModifiedAt": {
|
2023-02-12 05:54:07 +00:00
|
|
|
"type": "string"
|
|
|
|
},
|
|
|
|
"isFavorite": {
|
|
|
|
"type": "boolean"
|
|
|
|
},
|
2023-04-12 15:37:52 +00:00
|
|
|
"isArchived": {
|
|
|
|
"type": "boolean"
|
|
|
|
},
|
2023-02-12 05:54:07 +00:00
|
|
|
"isVisible": {
|
|
|
|
"type": "boolean"
|
|
|
|
},
|
|
|
|
"fileExtension": {
|
|
|
|
"type": "string"
|
|
|
|
},
|
|
|
|
"duration": {
|
|
|
|
"type": "string"
|
2023-01-12 02:34:36 +00:00
|
|
|
}
|
|
|
|
},
|
|
|
|
"required": [
|
2023-02-12 05:54:07 +00:00
|
|
|
"assetType",
|
|
|
|
"assetData",
|
|
|
|
"deviceAssetId",
|
|
|
|
"deviceId",
|
2023-02-19 16:44:53 +00:00
|
|
|
"fileCreatedAt",
|
|
|
|
"fileModifiedAt",
|
2023-02-12 05:54:07 +00:00
|
|
|
"isFavorite",
|
|
|
|
"fileExtension"
|
2022-12-05 17:56:44 +00:00
|
|
|
]
|
|
|
|
},
|
2023-01-12 02:34:36 +00:00
|
|
|
"AssetFileUploadResponseDto": {
|
|
|
|
"type": "object",
|
|
|
|
"properties": {
|
|
|
|
"id": {
|
|
|
|
"type": "string"
|
2023-01-30 16:14:13 +00:00
|
|
|
},
|
|
|
|
"duplicate": {
|
|
|
|
"type": "boolean"
|
2023-01-12 02:34:36 +00:00
|
|
|
}
|
|
|
|
},
|
|
|
|
"required": [
|
2023-01-30 16:14:13 +00:00
|
|
|
"id",
|
|
|
|
"duplicate"
|
2023-01-12 02:34:36 +00:00
|
|
|
]
|
|
|
|
},
|
|
|
|
"DownloadFilesDto": {
|
2023-01-25 16:35:28 +00:00
|
|
|
"type": "object",
|
|
|
|
"properties": {
|
|
|
|
"assetIds": {
|
|
|
|
"title": "Array of asset ids to be downloaded",
|
2022-12-05 17:56:44 +00:00
|
|
|
"type": "array",
|
|
|
|
"items": {
|
|
|
|
"type": "string"
|
|
|
|
}
|
|
|
|
}
|
2023-01-25 16:35:28 +00:00
|
|
|
},
|
|
|
|
"required": [
|
|
|
|
"assetIds"
|
|
|
|
]
|
2022-12-05 17:56:44 +00:00
|
|
|
},
|
2023-01-25 16:35:28 +00:00
|
|
|
"ThumbnailFormat": {
|
2022-12-05 17:56:44 +00:00
|
|
|
"type": "string",
|
|
|
|
"enum": [
|
2023-01-25 16:35:28 +00:00
|
|
|
"JPEG",
|
|
|
|
"WEBP"
|
2022-12-05 17:56:44 +00:00
|
|
|
]
|
|
|
|
},
|
2023-01-25 16:35:28 +00:00
|
|
|
"CuratedObjectsResponseDto": {
|
2022-12-05 17:56:44 +00:00
|
|
|
"type": "object",
|
|
|
|
"properties": {
|
|
|
|
"id": {
|
|
|
|
"type": "string"
|
|
|
|
},
|
2023-01-25 16:35:28 +00:00
|
|
|
"object": {
|
|
|
|
"type": "string"
|
2022-12-05 17:56:44 +00:00
|
|
|
},
|
2023-01-25 16:35:28 +00:00
|
|
|
"resizePath": {
|
2022-12-05 17:56:44 +00:00
|
|
|
"type": "string"
|
2022-12-06 21:46:13 +00:00
|
|
|
},
|
2023-01-25 16:35:28 +00:00
|
|
|
"deviceAssetId": {
|
2022-12-06 21:46:13 +00:00
|
|
|
"type": "string"
|
|
|
|
},
|
2023-01-25 16:35:28 +00:00
|
|
|
"deviceId": {
|
|
|
|
"type": "string"
|
2022-12-05 17:56:44 +00:00
|
|
|
}
|
|
|
|
},
|
|
|
|
"required": [
|
|
|
|
"id",
|
2023-01-25 16:35:28 +00:00
|
|
|
"object",
|
|
|
|
"resizePath",
|
|
|
|
"deviceAssetId",
|
|
|
|
"deviceId"
|
2022-12-05 17:56:44 +00:00
|
|
|
]
|
|
|
|
},
|
2023-01-25 16:35:28 +00:00
|
|
|
"CuratedLocationsResponseDto": {
|
2022-12-05 17:56:44 +00:00
|
|
|
"type": "object",
|
|
|
|
"properties": {
|
|
|
|
"id": {
|
|
|
|
"type": "string"
|
|
|
|
},
|
2023-01-25 16:35:28 +00:00
|
|
|
"city": {
|
2022-12-05 17:56:44 +00:00
|
|
|
"type": "string"
|
|
|
|
},
|
|
|
|
"resizePath": {
|
|
|
|
"type": "string"
|
|
|
|
},
|
2023-01-25 16:35:28 +00:00
|
|
|
"deviceAssetId": {
|
2022-12-05 17:56:44 +00:00
|
|
|
"type": "string"
|
|
|
|
},
|
2023-01-25 16:35:28 +00:00
|
|
|
"deviceId": {
|
2022-12-05 17:56:44 +00:00
|
|
|
"type": "string"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"required": [
|
|
|
|
"id",
|
2023-01-25 16:35:28 +00:00
|
|
|
"city",
|
2022-12-05 17:56:44 +00:00
|
|
|
"resizePath",
|
2023-01-25 16:35:28 +00:00
|
|
|
"deviceAssetId",
|
|
|
|
"deviceId"
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"SearchAssetDto": {
|
|
|
|
"type": "object",
|
|
|
|
"properties": {
|
|
|
|
"searchTerm": {
|
|
|
|
"type": "string"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"required": [
|
|
|
|
"searchTerm"
|
2022-12-05 17:56:44 +00:00
|
|
|
]
|
|
|
|
},
|
|
|
|
"TimeGroupEnum": {
|
|
|
|
"type": "string",
|
|
|
|
"enum": [
|
|
|
|
"day",
|
|
|
|
"month"
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"GetAssetCountByTimeBucketDto": {
|
|
|
|
"type": "object",
|
|
|
|
"properties": {
|
|
|
|
"timeGroup": {
|
|
|
|
"$ref": "#/components/schemas/TimeGroupEnum"
|
2023-05-15 17:30:53 +00:00
|
|
|
},
|
|
|
|
"userId": {
|
|
|
|
"type": "string",
|
|
|
|
"format": "uuid"
|
2022-12-05 17:56:44 +00:00
|
|
|
}
|
|
|
|
},
|
|
|
|
"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"
|
|
|
|
}
|
2023-05-15 17:30:53 +00:00
|
|
|
},
|
|
|
|
"userId": {
|
|
|
|
"type": "string",
|
|
|
|
"format": "uuid"
|
2023-05-25 02:13:02 +00:00
|
|
|
},
|
|
|
|
"withoutThumbs": {
|
|
|
|
"type": "boolean",
|
|
|
|
"description": "Include assets without thumbnails"
|
2022-12-05 17:56:44 +00:00
|
|
|
}
|
|
|
|
},
|
|
|
|
"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"
|
2023-04-12 15:37:52 +00:00
|
|
|
},
|
|
|
|
"isArchived": {
|
|
|
|
"type": "boolean"
|
2023-04-13 15:22:06 +00:00
|
|
|
},
|
|
|
|
"description": {
|
|
|
|
"type": "string"
|
2022-12-05 17:56:44 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"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-05-24 21:08:21 +00:00
|
|
|
"AssetBulkUploadCheckItem": {
|
|
|
|
"type": "object",
|
|
|
|
"properties": {
|
|
|
|
"id": {
|
|
|
|
"type": "string"
|
|
|
|
},
|
|
|
|
"checksum": {
|
2023-05-28 01:56:17 +00:00
|
|
|
"type": "string",
|
|
|
|
"description": "base64 or hex encoded sha1 hash"
|
2023-05-24 21:08:21 +00:00
|
|
|
}
|
|
|
|
},
|
|
|
|
"required": [
|
|
|
|
"id",
|
|
|
|
"checksum"
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"AssetBulkUploadCheckDto": {
|
|
|
|
"type": "object",
|
|
|
|
"properties": {
|
|
|
|
"assets": {
|
|
|
|
"type": "array",
|
|
|
|
"items": {
|
|
|
|
"$ref": "#/components/schemas/AssetBulkUploadCheckItem"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"required": [
|
|
|
|
"assets"
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"AssetBulkUploadCheckResult": {
|
|
|
|
"type": "object",
|
|
|
|
"properties": {
|
|
|
|
"id": {
|
|
|
|
"type": "string"
|
|
|
|
},
|
|
|
|
"action": {
|
|
|
|
"type": "string",
|
|
|
|
"enum": [
|
|
|
|
"accept",
|
|
|
|
"reject"
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"reason": {
|
|
|
|
"type": "string",
|
|
|
|
"enum": [
|
|
|
|
"duplicate",
|
|
|
|
"unsupported-format"
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"assetId": {
|
|
|
|
"type": "string"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"required": [
|
|
|
|
"id",
|
|
|
|
"action"
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"AssetBulkUploadCheckResponseDto": {
|
|
|
|
"type": "object",
|
|
|
|
"properties": {
|
|
|
|
"results": {
|
|
|
|
"type": "array",
|
|
|
|
"items": {
|
|
|
|
"$ref": "#/components/schemas/AssetBulkUploadCheckResult"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"required": [
|
|
|
|
"results"
|
|
|
|
]
|
|
|
|
},
|
2023-01-15 05:49:47 +00: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 16:35:28 +00:00
|
|
|
"expiresAt": {
|
2023-01-15 05:49:47 +00:00
|
|
|
"type": "string"
|
|
|
|
},
|
|
|
|
"allowUpload": {
|
|
|
|
"type": "boolean"
|
|
|
|
},
|
2023-01-22 04:15:16 +00:00
|
|
|
"allowDownload": {
|
|
|
|
"type": "boolean"
|
|
|
|
},
|
|
|
|
"showExif": {
|
|
|
|
"type": "boolean"
|
|
|
|
},
|
2023-01-15 05:49:47 +00:00
|
|
|
"description": {
|
|
|
|
"type": "string"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"required": [
|
|
|
|
"assetIds"
|
|
|
|
]
|
|
|
|
},
|
2023-02-15 21:21:22 +00:00
|
|
|
"AddAssetsDto": {
|
|
|
|
"type": "object",
|
|
|
|
"properties": {
|
|
|
|
"assetIds": {
|
|
|
|
"type": "array",
|
|
|
|
"items": {
|
2023-04-06 17:50:55 +00:00
|
|
|
"type": "string",
|
|
|
|
"format": "uuid"
|
2023-02-15 21:21:22 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"required": [
|
|
|
|
"assetIds"
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"RemoveAssetsDto": {
|
2023-01-15 05:49:47 +00:00
|
|
|
"type": "object",
|
|
|
|
"properties": {
|
|
|
|
"assetIds": {
|
|
|
|
"type": "array",
|
|
|
|
"items": {
|
2023-04-06 17:50:55 +00:00
|
|
|
"type": "string",
|
|
|
|
"format": "uuid"
|
2023-01-15 05:49:47 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"required": [
|
|
|
|
"assetIds"
|
|
|
|
]
|
|
|
|
},
|
2023-01-15 20:01:10 +00: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 17:56:44 +00:00
|
|
|
"AlbumCountResponseDto": {
|
|
|
|
"type": "object",
|
|
|
|
"properties": {
|
|
|
|
"owned": {
|
|
|
|
"type": "integer"
|
|
|
|
},
|
|
|
|
"shared": {
|
|
|
|
"type": "integer"
|
|
|
|
},
|
|
|
|
"sharing": {
|
|
|
|
"type": "integer"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"required": [
|
|
|
|
"owned",
|
|
|
|
"shared",
|
|
|
|
"sharing"
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"AddUsersDto": {
|
|
|
|
"type": "object",
|
|
|
|
"properties": {
|
|
|
|
"sharedUserIds": {
|
|
|
|
"type": "array",
|
|
|
|
"items": {
|
2023-04-06 17:50:55 +00:00
|
|
|
"type": "string",
|
|
|
|
"format": "uuid"
|
2022-12-05 17:56:44 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"required": [
|
|
|
|
"sharedUserIds"
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"AddAssetsResponseDto": {
|
|
|
|
"type": "object",
|
|
|
|
"properties": {
|
|
|
|
"successfullyAdded": {
|
|
|
|
"type": "integer"
|
|
|
|
},
|
|
|
|
"alreadyInAlbum": {
|
|
|
|
"type": "array",
|
|
|
|
"items": {
|
|
|
|
"type": "string"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"album": {
|
|
|
|
"$ref": "#/components/schemas/AlbumResponseDto"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"required": [
|
|
|
|
"successfullyAdded",
|
|
|
|
"alreadyInAlbum"
|
|
|
|
]
|
|
|
|
},
|
2023-01-09 20:16:08 +00:00
|
|
|
"CreateAlbumShareLinkDto": {
|
|
|
|
"type": "object",
|
|
|
|
"properties": {
|
|
|
|
"albumId": {
|
2023-04-06 17:50:55 +00:00
|
|
|
"type": "string",
|
|
|
|
"format": "uuid"
|
2023-01-09 20:16:08 +00:00
|
|
|
},
|
2023-01-25 16:35:28 +00:00
|
|
|
"expiresAt": {
|
2023-04-06 17:50:55 +00:00
|
|
|
"type": "string",
|
|
|
|
"format": "date-time"
|
2023-01-09 20:16:08 +00:00
|
|
|
},
|
|
|
|
"allowUpload": {
|
|
|
|
"type": "boolean"
|
2023-01-22 04:15:16 +00:00
|
|
|
},
|
|
|
|
"allowDownload": {
|
|
|
|
"type": "boolean"
|
|
|
|
},
|
|
|
|
"showExif": {
|
|
|
|
"type": "boolean"
|
2023-01-09 20:16:08 +00:00
|
|
|
},
|
|
|
|
"description": {
|
|
|
|
"type": "string"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"required": [
|
|
|
|
"albumId"
|
|
|
|
]
|
2022-12-05 17:56:44 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|