mirror of
https://github.com/portainer/portainer.git
synced 2025-08-04 21:35:23 +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
|
@ -32,7 +32,7 @@ func (payload *adminInitPayload) Validate(r *http.Request) error {
|
|||
// @summary Initialize administrator account
|
||||
// @description Initialize the 'admin' user account.
|
||||
// @description **Access policy**: public
|
||||
// @tags
|
||||
// @tags users
|
||||
// @accept json
|
||||
// @produce json
|
||||
// @param body body adminInitPayload true "User details"
|
||||
|
|
|
@ -18,7 +18,6 @@ import (
|
|||
// @description **Access policy**: administrator
|
||||
// @tags users
|
||||
// @security jwt
|
||||
// @accept json
|
||||
// @produce json
|
||||
// @param id path int true "User identifier"
|
||||
// @success 204 "Success"
|
||||
|
|
|
@ -16,7 +16,7 @@ import (
|
|||
// @summary Inspect a user
|
||||
// @description Retrieve details about a user.
|
||||
// @description User passwords are filtered out, and should never be accessible.
|
||||
// @description **Access policy**: administrator
|
||||
// @description **Access policy**: authenticated
|
||||
// @tags users
|
||||
// @security jwt
|
||||
// @produce json
|
||||
|
|
|
@ -14,7 +14,7 @@ import (
|
|||
// @id UserMembershipsInspect
|
||||
// @summary Inspect a user memberships
|
||||
// @description Inspect a user memberships.
|
||||
// @description **Access policy**: authenticated
|
||||
// @description **Access policy**: restricted
|
||||
// @tags users
|
||||
// @security jwt
|
||||
// @produce json
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue