Skip to content

Commit

Permalink
Merge pull request #19 from nsonanh/feature-get-language-impl
Browse files Browse the repository at this point in the history
[feature-get-language-impl] Update docs
  • Loading branch information
nsonanh committed Jun 26, 2017
2 parents f26f3f4 + ed0ecd0 commit 58ae2ce
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion public/apidoc/api_data.js
Original file line number Diff line number Diff line change
Expand Up @@ -304,7 +304,7 @@ define({ "api": [
{
"type": "get",
"url": "/api/danhngon/:language",
"title": "Find a danhngon with language",
"title": "Find all danhngon with original language",
"version": "1.0.0",
"group": "Danhngon",
"parameter": {
Expand Down
2 changes: 1 addition & 1 deletion public/apidoc/api_data.json
Original file line number Diff line number Diff line change
Expand Up @@ -304,7 +304,7 @@
{
"type": "get",
"url": "/api/danhngon/:language",
"title": "Find a danhngon with language",
"title": "Find all danhngon with original language",
"version": "1.0.0",
"group": "Danhngon",
"parameter": {
Expand Down
2 changes: 1 addition & 1 deletion public/apidoc/api_project.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ define({
"apidoc": "0.3.0",
"generator": {
"name": "apidoc",
"time": "2017-06-26T15:25:11.992Z",
"time": "2017-06-26T15:37:00.253Z",
"url": "http://apidocjs.com",
"version": "0.17.6"
}
Expand Down
2 changes: 1 addition & 1 deletion public/apidoc/api_project.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"apidoc": "0.3.0",
"generator": {
"name": "apidoc",
"time": "2017-06-26T15:25:11.992Z",
"time": "2017-06-26T15:37:00.253Z",
"url": "http://apidocjs.com",
"version": "0.17.6"
}
Expand Down
4 changes: 2 additions & 2 deletions server.js
Original file line number Diff line number Diff line change
Expand Up @@ -186,13 +186,13 @@ router.route('/danhngon/random/:language')
requestHandler.handleGetRandomWithLang(req, res);
});

// on routes that end in /danhngon/:language
// on routes that end in /danhngon/language/:language
// ----------------------------------------------------
router.route('/danhngon/language/:language')

// get the danhngon with that language (accessed at GET http://localhost:8080/api/danhngon/:danhngon_id)
/**
* @api {get} /api/danhngon/:language Find a danhngon with language
* @api {get} /api/danhngon/:language Find all danhngon with original language
* @apiVersion 1.0.0
* @apiGroup Danhngon
* @apiParam {String} language danhngon language (in ISO code)
Expand Down

0 comments on commit 58ae2ce

Please sign in to comment.