fix duplicated openapi annotations pt 2

This commit is contained in:
Paul Irish
2025-12-29 14:21:29 -08:00
committed by Rishikanth Chandrasekaran
parent a7aaf06bbb
commit 9975e6fb02
4 changed files with 9 additions and 0 deletions

View File

@@ -132,6 +132,9 @@ const docTemplate = `{
}
],
"description": "Delete an API key",
"produces": [
"application/json"
],
"tags": [
"api-keys"
],

View File

@@ -126,6 +126,9 @@
}
],
"description": "Delete an API key",
"produces": [
"application/json"
],
"tags": [
"api-keys"
],

View File

@@ -854,6 +854,8 @@ paths:
name: id
required: true
type: integer
produces:
- application/json
responses:
"200":
description: OK

View File

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