You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

66 lines
1.6 KiB
YAML

put:
tags:
- group
summary: approve pending membership
description: This operation approves a pending membership request for a group.
parameters:
- in: path
name: slug
schema:
type: string
required: true
description: a group slug
example: private-group
- in: path
name: uid
schema:
type: number
required: true
description: a user id
example: 1
responses:
'200':
description: Membership request approved.
content:
application/json:
schema:
type: object
properties:
status:
$ref: ../../../../components/schemas/Status.yaml#/Status
response:
type: object
properties: {}
delete:
tags:
- group
summary: reject pending membership
description: This operation rejects a pending membership request for a group.
parameters:
- in: path
name: slug
schema:
type: string
required: true
description: a group slug
example: private-group
- in: path
name: uid
schema:
type: number
required: true
description: a user id
example: 1
responses:
'200':
description: Membership request rejected.
content:
application/json:
schema:
type: object
properties:
status:
$ref: ../../../../components/schemas/Status.yaml#/Status
response:
type: object
properties: {}