diff --git a/src/api_ingests.ts b/src/api_ingests.ts index 1f50159..8a263e2 100644 --- a/src/api_ingests.ts +++ b/src/api_ingests.ts @@ -135,6 +135,9 @@ const apiIngests: FastifyPluginCallback = ( { schema: { description: 'Retrieves an ingest.', + params: Type.Object({ + ingestId: Type.String({ minLength: 1, pattern: '^[0-9]+$' }) + }), response: { 200: Ingest, 500: Type.String() @@ -175,6 +178,9 @@ const apiIngests: FastifyPluginCallback = ( 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, @@ -247,6 +253,9 @@ const apiIngests: FastifyPluginCallback = ( { schema: { description: 'Deletes a Ingest.', + params: Type.Object({ + ingestId: Type.String({ minLength: 1, pattern: '^[0-9]+$' }) + }), response: { 200: Type.String(), 500: Type.String()