From d0a681fbc3fb626adcddbbb13f8c96c0bbd72c02 Mon Sep 17 00:00:00 2001 From: Romain Date: Tue, 12 Oct 2021 12:47:19 +0200 Subject: [API] Add endpount to get user org permissions (#17232) * Add endpoint * Add swagger response + generate swagger * Stop execution if user / org is not found * Add tests Co-authored-by: 6543 <6543@obermui.de> --- routers/api/v1/swagger/org.go | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'routers/api/v1/swagger/org.go') diff --git a/routers/api/v1/swagger/org.go b/routers/api/v1/swagger/org.go index c962e7b188..d98e821ba7 100644 --- a/routers/api/v1/swagger/org.go +++ b/routers/api/v1/swagger/org.go @@ -35,3 +35,10 @@ type swaggerResponseTeamList struct { // in:body Body []api.Team `json:"body"` } + +// OrganizationPermissions +// swagger:response OrganizationPermissions +type swaggerResponseOrganizationPermissions struct { + // in:body + Body api.OrganizationPermissions `json:"body"` +} -- cgit v1.2.3