generated swag

This commit is contained in:
James Tombleson 2023-01-22 10:11:56 -08:00
parent da6f1fb54b
commit eef1f4db86
3 changed files with 9 additions and 10 deletions

View File

@ -237,13 +237,15 @@ const docTemplate = `{
} }
], ],
"responses": {} "responses": {}
}, }
"delete": { },
"/discord/webhooks/{ID}/enable": {
"post": {
"tags": [ "tags": [
"Config", "Discord",
"Source" "Webhook"
], ],
"summary": "Deletes a record by ID.", "summary": "Enables a source to continue processing.",
"parameters": [ "parameters": [
{ {
"type": "string", "type": "string",

View File

@ -318,15 +318,13 @@ paths:
/discord/webhooks/{ID}: /discord/webhooks/{ID}:
delete: delete:
parameters: parameters:
- description: uuid - description: id
in: path in: path
name: id name: id
required: true required: true
type: string type: string
produces:
- application/json
responses: {} responses: {}
summary: Returns a single entity by ID summary: Deletes a record by ID.
tags: tags:
- Discord - Discord
- Webhook - Webhook

View File

@ -383,7 +383,6 @@ func (s *Server) newTwitchSource(w http.ResponseWriter, r *http.Request) {
// DeleteSource // DeleteSource
// @Summary Marks a source as deleted based on its ID value. // @Summary Marks a source as deleted based on its ID value.
// @Summary Marks a source as deleted based on its ID value.
// @Param id path string true "id" // @Param id path string true "id"
// @Tags Source // @Tags Source
// @Router /sources/{id} [POST] // @Router /sources/{id} [POST]