docs: update bulk insert video documentation
This commit is contained in:
@ -1,5 +1,5 @@
|
||||
import { t } from "elysia";
|
||||
import { AppRouteSchema } from "../../../helpers/types/AppRouteSchema";
|
||||
import {t} from "elysia";
|
||||
import {AppRouteSchema} from "../../../helpers/types/AppRouteSchema";
|
||||
|
||||
export const bulkInsertVideoSchema = {
|
||||
body: t.Object({
|
||||
@ -16,14 +16,27 @@ export const bulkInsertVideoSchema = {
|
||||
service_id: t.String({
|
||||
description: "The ID of the video service",
|
||||
}),
|
||||
priority: t.Optional(t.Number({
|
||||
description: "The priority of the video (can't be duplicate)",
|
||||
})),
|
||||
video_code: t.String({
|
||||
description: "The code of the video on the service",
|
||||
}),
|
||||
short_code: t.Optional(
|
||||
t.String({
|
||||
description: "The code of the preview video on the service",
|
||||
}),
|
||||
),
|
||||
thumbnail_code: t.Optional(
|
||||
t.String({
|
||||
description: "The code of the thumbnail for the video on the service",
|
||||
}),
|
||||
),
|
||||
download_code: t.Optional(
|
||||
t.String({
|
||||
description: "The code of the download link for the video on the service",
|
||||
})
|
||||
)
|
||||
}),
|
||||
),
|
||||
}),
|
||||
@ -41,9 +54,9 @@ export const bulkInsertVideoSchema = {
|
||||
schema: {
|
||||
type: "object",
|
||||
properties: {
|
||||
success: { type: "boolean", default: true },
|
||||
status: { type: "integer", default: 201 },
|
||||
message: { type: "string", default: "Videos inserted successfully" },
|
||||
success: {type: "boolean", default: true},
|
||||
status: {type: "integer", default: 201},
|
||||
message: {type: "string", default: "Videos inserted successfully"},
|
||||
data: {
|
||||
type: "array",
|
||||
default: ["xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"],
|
||||
|
||||
@ -1,35 +0,0 @@
|
||||
import { t } from "elysia";
|
||||
import { AppRouteSchema } from "../../../helpers/types/AppRouteSchema";
|
||||
|
||||
export const updateAllEpisodeThumbnailSchema = {
|
||||
body: t.Object({
|
||||
service_reference_id: t.String({
|
||||
description: "The ID of the service to which the target of episode thumbnails belong",
|
||||
}),
|
||||
}),
|
||||
detail: {
|
||||
summary: "Bulk update episode thumbnails",
|
||||
description:
|
||||
"Perform bulk update of episode thumbnails for all episodes associated with a specific service reference ID. This operation fetches the latest thumbnail data from external sources and updates the existing episode records in the database accordingly.",
|
||||
responses: {
|
||||
204: {
|
||||
description: "Updating episode thumbnails operation completed successfully",
|
||||
content: {
|
||||
"application/json": {
|
||||
schema: {
|
||||
type: "object",
|
||||
properties: {
|
||||
success: { type: "boolean", default: true },
|
||||
status: { type: "integer", default: 204 },
|
||||
message: {
|
||||
type: "string",
|
||||
default: "Updating {newEpisodeThumbnailsCount} episode thumbnails operation completed successfully",
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
} satisfies AppRouteSchema;
|
||||
Reference in New Issue
Block a user