fix duplicated openapi annotations

This commit is contained in:
Paul Irish
2025-12-29 14:16:29 -08:00
committed by Rishikanth Chandrasekaran
parent ab912a6b6e
commit a7aaf06bbb
4 changed files with 6 additions and 110 deletions

View File

@@ -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",

View File

@@ -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",

View File

@@ -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