diff --git a/api-docs/docs.go b/api-docs/docs.go index 2b5d573b..48925f83 100644 --- a/api-docs/docs.go +++ b/api-docs/docs.go @@ -132,6 +132,9 @@ const docTemplate = `{ } ], "description": "Delete an API key", + "produces": [ + "application/json" + ], "tags": [ "api-keys" ], diff --git a/api-docs/swagger.json b/api-docs/swagger.json index dcfd5806..d4292fd6 100644 --- a/api-docs/swagger.json +++ b/api-docs/swagger.json @@ -126,6 +126,9 @@ } ], "description": "Delete an API key", + "produces": [ + "application/json" + ], "tags": [ "api-keys" ], diff --git a/api-docs/swagger.yaml b/api-docs/swagger.yaml index 6d09f239..319daa1c 100644 --- a/api-docs/swagger.yaml +++ b/api-docs/swagger.yaml @@ -854,6 +854,8 @@ paths: name: id required: true type: integer + produces: + - application/json responses: "200": description: OK diff --git a/internal/api/handlers.go b/internal/api/handlers.go index 6f57840f..6756d986 100644 --- a/internal/api/handlers.go +++ b/internal/api/handlers.go @@ -1934,6 +1934,7 @@ func (h *Handler) CreateAPIKey(c *gin.Context) { // @Summary Delete API key // @Description Delete an API key // @Tags api-keys +// @Produce json // @Param id path int true "API Key ID" // @Success 200 {object} map[string]string // @Failure 400 {object} map[string]string