fix apidoc comments

This commit is contained in:
Matteo Pagliazzi
2016-02-14 12:56:40 +01:00
parent 1eee27bdd4
commit 8b7719d25e
2 changed files with 4 additions and 4 deletions

View File

@@ -62,7 +62,8 @@ async function _createTasks (req, res, user, challenge) {
* @apiName CreateUserTasks
* @apiGroup Task
*
* @apiSuccess {Object|Array} task The newly created task(s)
* @apiSuccess {Object} task The newly created task
* @apiSuccess {Object[]} tasks The newly created tasks (if more than one was created)
*/
api.createUserTasks = {
method: 'POST',
@@ -82,7 +83,8 @@ api.createUserTasks = {
*
* @apiParam {UUID} challengeId The id of the challenge the new task(s) will belong to.
*
* @apiSuccess {Object|Array} task The newly created task(s)
* @apiSuccess {Object} task The newly created task
* @apiSuccess {Object[]} tasks The newly created tasks (if more than one was created)
*/
api.createChallengeTasks = {
method: 'POST',