Skip to content

Commit 39ef627

Browse files
committed
fix duplicated openapi annotations
1 parent d013fe2 commit 39ef627

File tree

4 files changed

+6
-110
lines changed

4 files changed

+6
-110
lines changed

api-docs/docs.go

Lines changed: 2 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -2029,31 +2029,15 @@ const docTemplate = `{
20292029
"BearerAuth": []
20302030
}
20312031
],
2032-
"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",
2032+
"description": "Get a list of all transcription jobs with optional search and filtering",
20332033
"produces": [
2034-
"application/json",
20352034
"application/json"
20362035
],
20372036
"tags": [
2038-
"transcription",
20392037
"transcription"
20402038
],
20412039
"summary": "List all transcription records",
20422040
"parameters": [
2043-
{
2044-
"type": "integer",
2045-
"default": 1,
2046-
"description": "Page number",
2047-
"name": "page",
2048-
"in": "query"
2049-
},
2050-
{
2051-
"type": "integer",
2052-
"default": 10,
2053-
"description": "Items per page",
2054-
"name": "limit",
2055-
"in": "query"
2056-
},
20572041
{
20582042
"type": "integer",
20592043
"default": 1,
@@ -2699,37 +2683,22 @@ const docTemplate = `{
26992683
},
27002684
"delete": {
27012685
"security": [
2702-
{
2703-
"ApiKeyAuth": []
2704-
},
2705-
{
2706-
"BearerAuth": []
2707-
},
27082686
{
27092687
"ApiKeyAuth": []
27102688
},
27112689
{
27122690
"BearerAuth": []
27132691
}
27142692
],
2715-
"description": "Delete a transcription job and its associated files\nDelete a transcription job and its associated files",
2693+
"description": "Delete a transcription job and its associated files",
27162694
"produces": [
2717-
"application/json",
27182695
"application/json"
27192696
],
27202697
"tags": [
2721-
"transcription",
27222698
"transcription"
27232699
],
27242700
"summary": "Delete transcription job",
27252701
"parameters": [
2726-
{
2727-
"type": "string",
2728-
"description": "Job ID",
2729-
"name": "id",
2730-
"in": "path",
2731-
"required": true
2732-
},
27332702
{
27342703
"type": "string",
27352704
"description": "Job ID",

api-docs/swagger.json

Lines changed: 2 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -2023,31 +2023,15 @@
20232023
"BearerAuth": []
20242024
}
20252025
],
2026-
"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",
2026+
"description": "Get a list of all transcription jobs with optional search and filtering",
20272027
"produces": [
2028-
"application/json",
20292028
"application/json"
20302029
],
20312030
"tags": [
2032-
"transcription",
20332031
"transcription"
20342032
],
20352033
"summary": "List all transcription records",
20362034
"parameters": [
2037-
{
2038-
"type": "integer",
2039-
"default": 1,
2040-
"description": "Page number",
2041-
"name": "page",
2042-
"in": "query"
2043-
},
2044-
{
2045-
"type": "integer",
2046-
"default": 10,
2047-
"description": "Items per page",
2048-
"name": "limit",
2049-
"in": "query"
2050-
},
20512035
{
20522036
"type": "integer",
20532037
"default": 1,
@@ -2693,37 +2677,22 @@
26932677
},
26942678
"delete": {
26952679
"security": [
2696-
{
2697-
"ApiKeyAuth": []
2698-
},
2699-
{
2700-
"BearerAuth": []
2701-
},
27022680
{
27032681
"ApiKeyAuth": []
27042682
},
27052683
{
27062684
"BearerAuth": []
27072685
}
27082686
],
2709-
"description": "Delete a transcription job and its associated files\nDelete a transcription job and its associated files",
2687+
"description": "Delete a transcription job and its associated files",
27102688
"produces": [
2711-
"application/json",
27122689
"application/json"
27132690
],
27142691
"tags": [
2715-
"transcription",
27162692
"transcription"
27172693
],
27182694
"summary": "Delete transcription job",
27192695
"parameters": [
2720-
{
2721-
"type": "string",
2722-
"description": "Job ID",
2723-
"name": "id",
2724-
"in": "path",
2725-
"required": true
2726-
},
27272696
{
27282697
"type": "string",
27292698
"description": "Job ID",

api-docs/swagger.yaml

Lines changed: 2 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -2033,23 +2033,15 @@ paths:
20332033
- summarize
20342034
/api/v1/transcription/{id}:
20352035
delete:
2036-
description: |-
2037-
Delete a transcription job and its associated files
2038-
Delete a transcription job and its associated files
2036+
description: Delete a transcription job and its associated files
20392037
parameters:
2040-
- description: Job ID
2041-
in: path
2042-
name: id
2043-
required: true
2044-
type: string
20452038
- description: Job ID
20462039
in: path
20472040
name: id
20482041
required: true
20492042
type: string
20502043
produces:
20512044
- application/json
2052-
- application/json
20532045
responses:
20542046
"200":
20552047
description: OK
@@ -2072,12 +2064,9 @@ paths:
20722064
security:
20732065
- ApiKeyAuth: []
20742066
- BearerAuth: []
2075-
- ApiKeyAuth: []
2076-
- BearerAuth: []
20772067
summary: Delete transcription job
20782068
tags:
20792069
- transcription
2080-
- transcription
20812070
get:
20822071
description: Get details of a specific transcription job
20832072
parameters:
@@ -2619,20 +2608,8 @@ paths:
26192608
- transcription
26202609
/api/v1/transcription/list:
26212610
get:
2622-
description: |-
2623-
Get a list of all transcription jobs with optional search and filtering
2624-
Get a list of all transcription jobs with optional search and filtering
2611+
description: Get a list of all transcription jobs with optional search and filtering
26252612
parameters:
2626-
- default: 1
2627-
description: Page number
2628-
in: query
2629-
name: page
2630-
type: integer
2631-
- default: 10
2632-
description: Items per page
2633-
in: query
2634-
name: limit
2635-
type: integer
26362613
- default: 1
26372614
description: Page number
26382615
in: query
@@ -2665,7 +2642,6 @@ paths:
26652642
type: string
26662643
produces:
26672644
- application/json
2668-
- application/json
26692645
responses:
26702646
"200":
26712647
description: OK
@@ -2684,7 +2660,6 @@ paths:
26842660
summary: List all transcription records
26852661
tags:
26862662
- transcription
2687-
- transcription
26882663
/api/v1/transcription/models:
26892664
get:
26902665
description: Get list of supported WhisperX models

internal/api/handlers.go

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -868,12 +868,6 @@ func (h *Handler) GetTranscript(c *gin.Context) {
868868
})
869869
}
870870

871-
// @Summary List all transcription records
872-
// @Description Get a list of all transcription jobs with optional search and filtering
873-
// @Tags transcription
874-
// @Produce json
875-
// @Param page query int false "Page number" default(1)
876-
// @Param limit query int false "Items per page" default(10)
877871
// @Summary List all transcription records
878872
// @Description Get a list of all transcription jobs with optional search and filtering
879873
// @Tags transcription
@@ -1212,17 +1206,6 @@ func (h *Handler) UpdateTranscriptionTitle(c *gin.Context) {
12121206
})
12131207
}
12141208

1215-
// @Summary Delete transcription job
1216-
// @Description Delete a transcription job and its associated files
1217-
// @Tags transcription
1218-
// @Produce json
1219-
// @Param id path string true "Job ID"
1220-
// @Success 200 {object} map[string]string
1221-
// @Failure 404 {object} map[string]string
1222-
// @Failure 400 {object} map[string]string
1223-
// @Router /api/v1/transcription/{id} [delete]
1224-
// @Security ApiKeyAuth
1225-
// @Security BearerAuth
12261209
// @Summary Delete transcription job
12271210
// @Description Delete a transcription job and its associated files
12281211
// @Tags transcription

0 commit comments

Comments
 (0)