From 3959a7bd9c49e917b9b062af4371aff37bcae2c9 Mon Sep 17 00:00:00 2001 From: Julian Lam Date: Tue, 22 Dec 2020 14:43:22 -0500 Subject: [PATCH] fix(api): failing test due to missing file --- .../write/groups/slug/ownership/uid.yaml | 66 +++++++++++++++++++ 1 file changed, 66 insertions(+) create mode 100644 public/openapi/write/groups/slug/ownership/uid.yaml diff --git a/public/openapi/write/groups/slug/ownership/uid.yaml b/public/openapi/write/groups/slug/ownership/uid.yaml new file mode 100644 index 0000000000..ba8e16558e --- /dev/null +++ b/public/openapi/write/groups/slug/ownership/uid.yaml @@ -0,0 +1,66 @@ +put: + tags: + - groups + summary: grant group ownership + description: This operation grants ownership privilege to a user. + parameters: + - in: path + name: slug + schema: + type: string + required: true + description: slug of the group you would like to grant ownership + example: test-group + - in: path + name: uid + schema: + type: number + required: true + description: uid of the user to grant ownership + example: 1 + responses: + '200': + description: ownership successfully granted + content: + application/json: + schema: + type: object + properties: + status: + $ref: ../../../../components/schemas/Status.yaml#/Status + response: + type: object + properties: {} +delete: + tags: + - groups + summary: rescind group ownership + description: 'This operation rescinds ownership privilege from a user. **Note**: Every group needs at least one owner, so if you are attempting to remove the last owner of a group, this call will fail.' + parameters: + - in: path + name: slug + schema: + type: string + required: true + description: slug of the group you would like to rescind ownership + example: test-group + - in: path + name: uid + schema: + type: number + required: true + description: uid of the user to rescind ownership from + example: 2 + responses: + '200': + description: ownership successfully rescinded + content: + application/json: + schema: + type: object + properties: + status: + $ref: ../../../../components/schemas/Status.yaml#/Status + response: + type: object + properties: {} \ No newline at end of file