mirror of
https://github.com/opf/openproject.git
synced 2026-06-14 03:30:14 +00:00
abbaf045c5
- validation script used unmaintained npm package - switched to actively maintained package from same maintainer - pipe full output to stdout - bump node major version in development backend Dockerfile - fix two api spec errors and two random warnings - boyscout, hell yeah
65 lines
1.4 KiB
YAML
65 lines
1.4 KiB
YAML
# Schema: GroupModel
|
|
---
|
|
allOf:
|
|
- $ref: './principal_model.yml'
|
|
- type: object
|
|
required:
|
|
- _type
|
|
- _embedded
|
|
properties:
|
|
_type:
|
|
type: string
|
|
enum:
|
|
- Group
|
|
_embedded:
|
|
type: object
|
|
properties:
|
|
members:
|
|
type: array
|
|
description: Embedded list of members.
|
|
items:
|
|
$ref: './user_model.yml'
|
|
_links:
|
|
type: object
|
|
properties:
|
|
self:
|
|
allOf:
|
|
- $ref: './link.yml'
|
|
- description: |-
|
|
This group resource
|
|
|
|
**Resource**: Group
|
|
members:
|
|
type: array
|
|
items:
|
|
allOf:
|
|
- $ref: './link.yml'
|
|
- description: |-
|
|
A member of the group
|
|
|
|
# Conditions:
|
|
|
|
- user has permission `manage_members` in any project
|
|
|
|
**Resource**: User
|
|
delete:
|
|
allOf:
|
|
- $ref: './link.yml'
|
|
- description: |-
|
|
An href to delete the group.
|
|
|
|
# Conditions:
|
|
|
|
- `admin`
|
|
updateImmediately:
|
|
allOf:
|
|
- $ref: './link.yml'
|
|
- description: |-
|
|
An href to update the group.
|
|
|
|
# Conditions:
|
|
|
|
- `admin`
|
|
|
|
**Resource**: Group
|