This is my first use of apiDocs and I'm following exactly the documentation provided. The issue is that I'm defining the apiName and apiGroup but only apiGroup is shown in the output. This is my definition:
/**
* @apiVersion 1.0.0
* @api {post} /users/register
* @apiGroup users
* @apiName register
* @apiDescription Register new user
* @apiParam {String} userName User email address
* @apiParam {String} passWord User password
* @apiSuccess {json} response error, message
* @apiSuccessExample {json} Success-Response:
* HTTP/1.1 200 OK
* {
* "error": false,
* "message": "USER_CREATED_SUCCESSFULLY"
* }
* @apiError {json} error error, message
* @apiErrorExample {json} Error-USER_CREATE_FAILED:
* HTTP/1.1 200 Error creating user
* {
* "error": true
* ,"message" : "USER_CREATE_FAILED"
* }
*/
This is my apidoc.json:
{
"name": "T-Rex",
"version": "1.0.0",
"description": "API Document",
"title": "T-Rex",
"url": "https://apiusr.t-rex.io",
"template": {
"withCompare": true,
"withGenerator": true
}
}
But the output list just the group name, ignoring the apiName:
users //apiGroup, it's ok
users //Should be @apiName, but showing the group
Delete user device association //@apiDescription, ok
The rest of the output is fine.