[skip ci] Updated swagger docs

This commit is contained in:
Frederick [Bot] 2023-10-20 11:39:17 +00:00 committed by kolaente
parent 1eefe265c5
commit b2b4b5423f
3 changed files with 7 additions and 13 deletions

View File

@ -2488,7 +2488,7 @@ const docTemplate = `{
"JWTKeyAuth": [] "JWTKeyAuth": []
} }
], ],
"description": "Create a webhook target which recieves POST requests about specified events from a project.", "description": "Create a webhook target which receives POST requests about specified events from a project.",
"consumes": [ "consumes": [
"application/json" "application/json"
], ],
@ -8468,8 +8468,7 @@ const docTemplate = `{
"description": "The webhook events which should fire this webhook target", "description": "The webhook events which should fire this webhook target",
"type": "array", "type": "array",
"items": { "items": {
"type": "string", "type": "string"
"minLength": 1
} }
}, },
"id": { "id": {
@ -8486,8 +8485,7 @@ const docTemplate = `{
}, },
"target_url": { "target_url": {
"description": "The target URL where the POST request with the webhook payload will be made", "description": "The target URL where the POST request with the webhook payload will be made",
"type": "string", "type": "string"
"minLength": 1
}, },
"updated": { "updated": {
"description": "A timestamp when this webhook target was last updated. You cannot change this value.", "description": "A timestamp when this webhook target was last updated. You cannot change this value.",

View File

@ -2480,7 +2480,7 @@
"JWTKeyAuth": [] "JWTKeyAuth": []
} }
], ],
"description": "Create a webhook target which recieves POST requests about specified events from a project.", "description": "Create a webhook target which receives POST requests about specified events from a project.",
"consumes": [ "consumes": [
"application/json" "application/json"
], ],
@ -8460,8 +8460,7 @@
"description": "The webhook events which should fire this webhook target", "description": "The webhook events which should fire this webhook target",
"type": "array", "type": "array",
"items": { "items": {
"type": "string", "type": "string"
"minLength": 1
} }
}, },
"id": { "id": {
@ -8478,8 +8477,7 @@
}, },
"target_url": { "target_url": {
"description": "The target URL where the POST request with the webhook payload will be made", "description": "The target URL where the POST request with the webhook payload will be made",
"type": "string", "type": "string"
"minLength": 1
}, },
"updated": { "updated": {
"description": "A timestamp when this webhook target was last updated. You cannot change this value.", "description": "A timestamp when this webhook target was last updated. You cannot change this value.",

View File

@ -1053,7 +1053,6 @@ definitions:
events: events:
description: The webhook events which should fire this webhook target description: The webhook events which should fire this webhook target
items: items:
minLength: 1
type: string type: string
type: array type: array
id: id:
@ -1069,7 +1068,6 @@ definitions:
target_url: target_url:
description: The target URL where the POST request with the webhook payload description: The target URL where the POST request with the webhook payload
will be made will be made
minLength: 1
type: string type: string
updated: updated:
description: A timestamp when this webhook target was last updated. You cannot description: A timestamp when this webhook target was last updated. You cannot
@ -3084,7 +3082,7 @@ paths:
put: put:
consumes: consumes:
- application/json - application/json
description: Create a webhook target which recieves POST requests about specified description: Create a webhook target which receives POST requests about specified
events from a project. events from a project.
parameters: parameters:
- description: Project ID - description: Project ID