1
0
Fork 0
mirror of https://github.com/portainer/portainer.git synced 2025-08-05 13:55:21 +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

@ -37,7 +37,7 @@ func (payload *teamMembershipCreatePayload) Validate(r *http.Request) error {
// @id TeamMembershipCreate
// @summary Create a new team membership
// @description Create a new team memberships. Access is only available to administrators leaders of the associated team.
// @description **Access policy**: admin
// @description **Access policy**: administrator
// @tags team_memberships
// @security jwt
// @accept json

View file

@ -15,7 +15,7 @@ import (
// @id TeamMembershipDelete
// @summary Remove a team membership
// @description Remove a team membership. Access is only available to administrators leaders of the associated team.
// @description **Access policy**: restricted
// @description **Access policy**: administrator
// @tags team_memberships
// @security jwt
// @param id path int true "TeamMembership identifier"

View file

@ -12,7 +12,7 @@ import (
// @id TeamMembershipList
// @summary List team memberships
// @description List team memberships. Access is only available to administrators and team leaders.
// @description **Access policy**: admin
// @description **Access policy**: administrator
// @tags team_memberships
// @security jwt
// @produce json

View file

@ -38,7 +38,7 @@ func (payload *teamMembershipUpdatePayload) Validate(r *http.Request) error {
// @id TeamMembershipUpdate
// @summary Update a team membership
// @description Update a team membership. Access is only available to administrators leaders of the associated team.
// @description **Access policy**: restricted
// @description **Access policy**: administrator
// @tags team_memberships
// @security jwt
// @accept json