mirror of
https://github.com/openziti/zrok.git
synced 2025-08-14 18:18:30 +02:00
list memberships for end users (#537)
This commit is contained in:
@ -711,6 +711,47 @@ func init() {
|
||||
}
|
||||
}
|
||||
},
|
||||
"/memberships": {
|
||||
"get": {
|
||||
"security": [
|
||||
{
|
||||
"key": []
|
||||
}
|
||||
],
|
||||
"tags": [
|
||||
"metadata"
|
||||
],
|
||||
"operationId": "listMemberships",
|
||||
"responses": {
|
||||
"200": {
|
||||
"description": "ok",
|
||||
"schema": {
|
||||
"properties": {
|
||||
"memberships": {
|
||||
"type": "array",
|
||||
"items": {
|
||||
"properties": {
|
||||
"admin": {
|
||||
"type": "boolean"
|
||||
},
|
||||
"description": {
|
||||
"type": "string"
|
||||
},
|
||||
"token": {
|
||||
"type": "string"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"500": {
|
||||
"description": "internal server error"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"/metrics/account": {
|
||||
"get": {
|
||||
"security": [
|
||||
@ -2871,6 +2912,37 @@ func init() {
|
||||
}
|
||||
}
|
||||
},
|
||||
"/memberships": {
|
||||
"get": {
|
||||
"security": [
|
||||
{
|
||||
"key": []
|
||||
}
|
||||
],
|
||||
"tags": [
|
||||
"metadata"
|
||||
],
|
||||
"operationId": "listMemberships",
|
||||
"responses": {
|
||||
"200": {
|
||||
"description": "ok",
|
||||
"schema": {
|
||||
"properties": {
|
||||
"memberships": {
|
||||
"type": "array",
|
||||
"items": {
|
||||
"$ref": "#/definitions/MembershipsItems0"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"500": {
|
||||
"description": "internal server error"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"/metrics/account": {
|
||||
"get": {
|
||||
"security": [
|
||||
@ -3680,6 +3752,19 @@ func init() {
|
||||
}
|
||||
}
|
||||
},
|
||||
"MembershipsItems0": {
|
||||
"properties": {
|
||||
"admin": {
|
||||
"type": "boolean"
|
||||
},
|
||||
"description": {
|
||||
"type": "string"
|
||||
},
|
||||
"token": {
|
||||
"type": "string"
|
||||
}
|
||||
}
|
||||
},
|
||||
"OrganizationsItems0": {
|
||||
"properties": {
|
||||
"description": {
|
||||
|
Reference in New Issue
Block a user