diff --git a/packages/component-manuscript-manager/src/Collections.js b/packages/component-manuscript-manager/src/Collections.js index 178ca4dbc17d1f90bfa15a11f514364e95092b06..81f8c4d7f6977ae496a3d021ac6dbc0a7be37dca 100644 --- a/packages/component-manuscript-manager/src/Collections.js +++ b/packages/component-manuscript-manager/src/Collections.js @@ -7,8 +7,8 @@ const Collections = app => { session: false, }) /** - * @api {get} /api/fragments Get latest fragments - * @apiGroup Fragments + * @api {get} /api/collections Get latest collections + * @apiGroup Collections * @apiSuccessExample {json} Success * HTTP/1.1 200 OK * [ @@ -28,7 +28,7 @@ const Collections = app => { * } * } * ] - * @apiErrorExample {json} Get fragments errors + * @apiErrorExample {json} Get collections errors * HTTP/1.1 403 Forbidden */ app.get( @@ -37,6 +37,14 @@ const Collections = app => { require(`${routePath}/get`)(app.locals.models), ) + /** + * @api {delete} /api/collections/:collectionId Delete collection with specified id + * @apiGroup Collections + * @apiSuccessExample {json} Success + * HTTP/1.1 204 Accepted + * @apiErrorExample {json} Get collections errors + * HTTP/1.1 403 Forbidden + */ app.delete( '/api/collections/:collectionId', authBearer,