Skip to content

Commit b80727e

Browse files
committed
Fixer Group Rest API
1 parent 581c365 commit b80727e

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

controllers/api/GroupsApiController.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -207,7 +207,7 @@ public function post_members($id, array $body) {
207207
* @throws ServerException If the group could not be archived.
208208
* @return
209209
*/
210-
public function post_archive($id, array $body) {
210+
public function put_archive($id, array $body) {
211211
$this->idParamSchema();
212212

213213
$group = $this->groupModel->getByGroupID($id);

openapi/groups.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@ paths:
149149
required: true
150150
summary: Add member to a group.
151151
'/groups/{id}/archive':
152-
post:
152+
put:
153153
parameters:
154154
- description: The group ID.
155155
in: path
@@ -164,7 +164,7 @@ paths:
164164
- Groups
165165
requestBody:
166166
required: false
167-
summary: Archive to a group.
167+
summary: Archive a group.
168168
components:
169169
requestBodies:
170170
GroupPost:

0 commit comments

Comments
 (0)