Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions openapi/components/paths.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,8 @@

"/groups":
$ref: "./paths/groups.yaml#/paths/~1groups"
"/groups/roleTemplates":
$ref: "./paths/groups.yaml#/paths/~1groups~1roleTemplates"
"/groups/{groupId}":
$ref: "./paths/groups.yaml#/paths/~1groups~1{groupId}"
"/groups/{groupId}/announcement":
Expand Down
1 change: 1 addition & 0 deletions openapi/components/paths/favorites.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,7 @@ paths:
parameters:
- $ref: ../parameters.yaml#/number
- $ref: ../parameters.yaml#/offset
- $ref: ../parameters.yaml#/userIdAdmin
- schema:
type: string
in: query
Expand Down
14 changes: 14 additions & 0 deletions openapi/components/paths/groups.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,20 @@ paths:
$ref: ../responses/MissingCredentialsError.yaml
security:
- authCookie: []
/groups/roleTemplates:
get:
summary: Get Group Role Templates
description: Obtain predefined templates for group roles
operationId: getGroupRoleTemplates
tags:
- groups
responses:
'200':
$ref: ../responses/groups/GroupRoleTemplatesResponse.yaml
'401':
$ref: ../responses/MissingCredentialsError.yaml
security:
- authCookie: []
'/groups/{groupId}':
parameters:
- $ref: ../parameters.yaml#/groupId
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
description: Returns a dictionary of GroupRoleTemplate objects.
content:
application/json:
schema:
type: object
additionalProperties:
$ref: ../../schemas/GroupRoleTemplateValues.yaml
30 changes: 30 additions & 0 deletions openapi/components/schemas/GroupRoleTemplateValues.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
title: GroupRoleTemplateValues
type: object
properties:
basePermissions:
type: array
items:
$ref: ./GroupPermissions.yaml
description:
type: string
name:
type: string
roles:
type: object
properties:
description:
type: string
name:
type: string
basePermissions:
type: array
items:
$ref: ./GroupPermissions.yaml
isAddedOnJoin:
type: boolean
default: false
required:
- basePermissions
- description
- name
- roles