mirror of
https://github.com/rishikanthc/Scriberr.git
synced 2026-06-28 06:46:25 +00:00
fix duplicated openapi annotations pt 2
This commit is contained in:
committed by
Rishikanth Chandrasekaran
parent
a7aaf06bbb
commit
9975e6fb02
@@ -132,6 +132,9 @@ const docTemplate = `{
|
||||
}
|
||||
],
|
||||
"description": "Delete an API key",
|
||||
"produces": [
|
||||
"application/json"
|
||||
],
|
||||
"tags": [
|
||||
"api-keys"
|
||||
],
|
||||
|
||||
@@ -126,6 +126,9 @@
|
||||
}
|
||||
],
|
||||
"description": "Delete an API key",
|
||||
"produces": [
|
||||
"application/json"
|
||||
],
|
||||
"tags": [
|
||||
"api-keys"
|
||||
],
|
||||
|
||||
@@ -854,6 +854,8 @@ paths:
|
||||
name: id
|
||||
required: true
|
||||
type: integer
|
||||
produces:
|
||||
- application/json
|
||||
responses:
|
||||
"200":
|
||||
description: OK
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user