-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
/
doc.go
50 lines (43 loc) · 1.13 KB
/
doc.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
// Package group offers capabilities for grouping subjects together, making policy management easier.
//
// This endpoint is **experimental**, use it at your own risk.
package group
// A list of groups the member is belonging to
// swagger:response findGroupsByMemberResponse
type swaggerFindGroupsByMemberResponse struct {
// in: body
// type: array
Body []Group
}
// swagger:parameters findGroupsByMember
type swaggerFindGroupsByMemberParameters struct {
// The id of the member to look up.
// in: query
// required: true
Member string `json:"member"`
}
// swagger:parameters createGroup
type swaggerCreateGroupParameters struct {
// in: body
Body Group
}
// swagger:parameters getGroup deleteGroup
type swaggerGetGroupParameters struct {
// The id of the group to look up.
// in: path
ID string `json:"id"`
}
// swagger:parameters removeMembersFromGroup addMembersToGroup
type swaggerModifyMembersParameters struct {
// The id of the group to modify.
// in: path
ID string `json:"id"`
// in: body
Body membersRequest
}
// A group
// swagger:response groupResponse
type swaggerGroupResponse struct {
// in: body
Body Group
}