list memberships for end users (#537)

This commit is contained in:
Michael Quigley
2024-12-10 13:28:29 -05:00
parent 5582ac0ea5
commit 3aff9950c8
25 changed files with 1636 additions and 0 deletions

View File

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