Skip to content
Snippets Groups Projects
Commit ceda0de4 authored by Andrei Cioromila's avatar Andrei Cioromila
Browse files

docs(collections): update docs for delete endpoint

parent bfdf11d6
No related branches found
No related tags found
2 merge requests!136Sprint 22 features (updates),!125HIN-1066
......@@ -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,
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment