1
0
Fork 0
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:
Hui 2021-10-12 12:12:08 +13:00 committed by GitHub
parent 6a67e8142d
commit e6d690e31e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
90 changed files with 190 additions and 123 deletions

View file

@ -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"

View file

@ -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"

View file

@ -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

View file

@ -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