mirror of
https://github.com/rishikanthc/Scriberr.git
synced 2026-06-28 06:46:25 +00:00
fix duplicated openapi annotations
This commit is contained in:
committed by
Rishikanth Chandrasekaran
parent
ab912a6b6e
commit
a7aaf06bbb
@@ -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",
|
||||
|
||||
@@ -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",
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user