From a7aaf06bbb29caae70942013e3cb5632acb84b77 Mon Sep 17 00:00:00 2001 From: Paul Irish Date: Mon, 29 Dec 2025 14:16:29 -0800 Subject: [PATCH] fix duplicated openapi annotations --- api-docs/docs.go | 35 ++--------------------------------- api-docs/swagger.json | 35 ++--------------------------------- api-docs/swagger.yaml | 29 ++--------------------------- internal/api/handlers.go | 17 ----------------- 4 files changed, 6 insertions(+), 110 deletions(-) diff --git a/api-docs/docs.go b/api-docs/docs.go index 18b98d0d..2b5d573b 100644 --- a/api-docs/docs.go +++ b/api-docs/docs.go @@ -2029,31 +2029,15 @@ const docTemplate = `{ "BearerAuth": [] } ], - "description": "Get a list of all transcription jobs with optional search and filtering\nGet a list of all transcription jobs with optional search and filtering", + "description": "Get a list of all transcription jobs with optional search and filtering", "produces": [ - "application/json", "application/json" ], "tags": [ - "transcription", "transcription" ], "summary": "List all transcription records", "parameters": [ - { - "type": "integer", - "default": 1, - "description": "Page number", - "name": "page", - "in": "query" - }, - { - "type": "integer", - "default": 10, - "description": "Items per page", - "name": "limit", - "in": "query" - }, { "type": "integer", "default": 1, @@ -2699,12 +2683,6 @@ const docTemplate = `{ }, "delete": { "security": [ - { - "ApiKeyAuth": [] - }, - { - "BearerAuth": [] - }, { "ApiKeyAuth": [] }, @@ -2712,24 +2690,15 @@ const docTemplate = `{ "BearerAuth": [] } ], - "description": "Delete a transcription job and its associated files\nDelete a transcription job and its associated files", + "description": "Delete a transcription job and its associated files", "produces": [ - "application/json", "application/json" ], "tags": [ - "transcription", "transcription" ], "summary": "Delete transcription job", "parameters": [ - { - "type": "string", - "description": "Job ID", - "name": "id", - "in": "path", - "required": true - }, { "type": "string", "description": "Job ID", diff --git a/api-docs/swagger.json b/api-docs/swagger.json index 29e0c6c5..dcfd5806 100644 --- a/api-docs/swagger.json +++ b/api-docs/swagger.json @@ -2023,31 +2023,15 @@ "BearerAuth": [] } ], - "description": "Get a list of all transcription jobs with optional search and filtering\nGet a list of all transcription jobs with optional search and filtering", + "description": "Get a list of all transcription jobs with optional search and filtering", "produces": [ - "application/json", "application/json" ], "tags": [ - "transcription", "transcription" ], "summary": "List all transcription records", "parameters": [ - { - "type": "integer", - "default": 1, - "description": "Page number", - "name": "page", - "in": "query" - }, - { - "type": "integer", - "default": 10, - "description": "Items per page", - "name": "limit", - "in": "query" - }, { "type": "integer", "default": 1, @@ -2693,12 +2677,6 @@ }, "delete": { "security": [ - { - "ApiKeyAuth": [] - }, - { - "BearerAuth": [] - }, { "ApiKeyAuth": [] }, @@ -2706,24 +2684,15 @@ "BearerAuth": [] } ], - "description": "Delete a transcription job and its associated files\nDelete a transcription job and its associated files", + "description": "Delete a transcription job and its associated files", "produces": [ - "application/json", "application/json" ], "tags": [ - "transcription", "transcription" ], "summary": "Delete transcription job", "parameters": [ - { - "type": "string", - "description": "Job ID", - "name": "id", - "in": "path", - "required": true - }, { "type": "string", "description": "Job ID", diff --git a/api-docs/swagger.yaml b/api-docs/swagger.yaml index b104170e..6d09f239 100644 --- a/api-docs/swagger.yaml +++ b/api-docs/swagger.yaml @@ -2033,15 +2033,8 @@ paths: - summarize /api/v1/transcription/{id}: delete: - description: |- - Delete a transcription job and its associated files - Delete a transcription job and its associated files + description: Delete a transcription job and its associated files parameters: - - description: Job ID - in: path - name: id - required: true - type: string - description: Job ID in: path name: id @@ -2049,7 +2042,6 @@ paths: type: string produces: - application/json - - application/json responses: "200": description: OK @@ -2072,12 +2064,9 @@ paths: security: - ApiKeyAuth: [] - BearerAuth: [] - - ApiKeyAuth: [] - - BearerAuth: [] summary: Delete transcription job tags: - transcription - - transcription get: description: Get details of a specific transcription job parameters: @@ -2619,20 +2608,8 @@ paths: - transcription /api/v1/transcription/list: get: - description: |- - Get a list of all transcription jobs with optional search and filtering - Get a list of all transcription jobs with optional search and filtering + description: Get a list of all transcription jobs with optional search and filtering parameters: - - default: 1 - description: Page number - in: query - name: page - type: integer - - default: 10 - description: Items per page - in: query - name: limit - type: integer - default: 1 description: Page number in: query @@ -2665,7 +2642,6 @@ paths: type: string produces: - application/json - - application/json responses: "200": description: OK @@ -2684,7 +2660,6 @@ paths: summary: List all transcription records tags: - transcription - - transcription /api/v1/transcription/models: get: description: Get list of supported WhisperX models diff --git a/internal/api/handlers.go b/internal/api/handlers.go index 465841f7..6f57840f 100644 --- a/internal/api/handlers.go +++ b/internal/api/handlers.go @@ -868,12 +868,6 @@ func (h *Handler) GetTranscript(c *gin.Context) { }) } -// @Summary List all transcription records -// @Description Get a list of all transcription jobs with optional search and filtering -// @Tags transcription -// @Produce json -// @Param page query int false "Page number" default(1) -// @Param limit query int false "Items per page" default(10) // @Summary List all transcription records // @Description Get a list of all transcription jobs with optional search and filtering // @Tags transcription @@ -1212,17 +1206,6 @@ func (h *Handler) UpdateTranscriptionTitle(c *gin.Context) { }) } -// @Summary Delete transcription job -// @Description Delete a transcription job and its associated files -// @Tags transcription -// @Produce json -// @Param id path string true "Job ID" -// @Success 200 {object} map[string]string -// @Failure 404 {object} map[string]string -// @Failure 400 {object} map[string]string -// @Router /api/v1/transcription/{id} [delete] -// @Security ApiKeyAuth -// @Security BearerAuth // @Summary Delete transcription job // @Description Delete a transcription job and its associated files // @Tags transcription