mirror of
https://github.com/portainer/portainer.git
synced 2025-07-24 15:59:41 +02:00
fix(swagger) swagger annotations fixes and improvements EE-1205
This commit is contained in:
parent
6a67e8142d
commit
e6d690e31e
90 changed files with 190 additions and 123 deletions
|
@ -33,7 +33,7 @@ func (payload *webhookCreatePayload) Validate(r *http.Request) error {
|
|||
}
|
||||
|
||||
// @summary Create a webhook
|
||||
// @description
|
||||
// @description **Access policy**: authenticated
|
||||
// @security jwt
|
||||
// @tags webhooks
|
||||
// @accept json
|
||||
|
|
|
@ -10,11 +10,9 @@ import (
|
|||
)
|
||||
|
||||
// @summary Delete a webhook
|
||||
// @description
|
||||
// @description **Access policy**: authenticated
|
||||
// @security jwt
|
||||
// @tags webhooks
|
||||
// @accept json
|
||||
// @produce json
|
||||
// @param id path int true "Webhook id"
|
||||
// @success 202 "Webhook deleted"
|
||||
// @failure 400
|
||||
|
|
|
@ -16,9 +16,8 @@ import (
|
|||
|
||||
// @summary Execute a webhook
|
||||
// @description Acts on a passed in token UUID to restart the docker service
|
||||
// @description **Access policy**: public
|
||||
// @tags webhooks
|
||||
// @accept json
|
||||
// @produce json
|
||||
// @param token path string true "Webhook token"
|
||||
// @success 202 "Webhook executed"
|
||||
// @failure 400
|
||||
|
|
|
@ -15,7 +15,7 @@ type webhookListOperationFilters struct {
|
|||
}
|
||||
|
||||
// @summary List webhooks
|
||||
// @description
|
||||
// @description **Access policy**: authenticated
|
||||
// @security jwt
|
||||
// @tags webhooks
|
||||
// @accept json
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue