Skip to content

Commit 9975e6f

Browse files
paulirishrishikanthc
authored andcommitted
fix duplicated openapi annotations pt 2
1 parent a7aaf06 commit 9975e6f

File tree

4 files changed

+9
-0
lines changed

4 files changed

+9
-0
lines changed

api-docs/docs.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -132,6 +132,9 @@ const docTemplate = `{
132132
}
133133
],
134134
"description": "Delete an API key",
135+
"produces": [
136+
"application/json"
137+
],
135138
"tags": [
136139
"api-keys"
137140
],

api-docs/swagger.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -126,6 +126,9 @@
126126
}
127127
],
128128
"description": "Delete an API key",
129+
"produces": [
130+
"application/json"
131+
],
129132
"tags": [
130133
"api-keys"
131134
],

api-docs/swagger.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -854,6 +854,8 @@ paths:
854854
name: id
855855
required: true
856856
type: integer
857+
produces:
858+
- application/json
857859
responses:
858860
"200":
859861
description: OK

internal/api/handlers.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1934,6 +1934,7 @@ func (h *Handler) CreateAPIKey(c *gin.Context) {
19341934
// @Summary Delete API key
19351935
// @Description Delete an API key
19361936
// @Tags api-keys
1937+
// @Produce json
19371938
// @Param id path int true "API Key ID"
19381939
// @Success 200 {object} map[string]string
19391940
// @Failure 400 {object} map[string]string

0 commit comments

Comments
 (0)