Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions src/api_ingests.ts
Original file line number Diff line number Diff line change
Expand Up @@ -135,6 +135,9 @@ const apiIngests: FastifyPluginCallback<ApiIngestsOptions> = (
{
schema: {
description: 'Retrieves an ingest.',
params: Type.Object({
ingestId: Type.String({ minLength: 1, pattern: '^[0-9]+$' })
}),
response: {
200: Ingest,
500: Type.String()
Expand Down Expand Up @@ -175,6 +178,9 @@ const apiIngests: FastifyPluginCallback<ApiIngestsOptions> = (
schema: {
description:
'Modify an existing Ingest. By changing the label, the deviceOutput or the deviceInput, the ingest is updated and the new ingest is returned.',
params: Type.Object({
ingestId: Type.String({ minLength: 1, pattern: '^[0-9]+$' })
}),
body: PatchIngest,
response: {
200: PatchIngestResponse,
Expand Down Expand Up @@ -247,6 +253,9 @@ const apiIngests: FastifyPluginCallback<ApiIngestsOptions> = (
{
schema: {
description: 'Deletes a Ingest.',
params: Type.Object({
ingestId: Type.String({ minLength: 1, pattern: '^[0-9]+$' })
}),
response: {
200: Type.String(),
500: Type.String()
Expand Down
Loading