-
Notifications
You must be signed in to change notification settings - Fork 35
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Feature/documentation basePath prefix fix - closes #694 #698
Conversation
@@ -1,24 +1,30 @@ | |||
JsonRoutes.add("get", "api/:id/swagger.json", function (request, response, next) { | |||
|
|||
// Get current id | |||
var id = request.params.id; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What id
is this? Please be more specific with variable names, as it improves readability. Be sure to update your comment with a more specific description.
This looks good. There are just a couple of minor issues relating to readability. |
Added suggested changes to the working branch. |
@@ -1,24 +1,30 @@ | |||
JsonRoutes.add("get", "api/:id/swagger.json", function (request, response, next) { | |||
|
|||
// Get current apiDocument Id | |||
var id = request.params.id; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Go ahead and change the variable name to apiDocumentId
. It is important that variable names are semantic, since they are used throughout the souce. I.e. all lines of source should be semantic as well as comments.
…fix-fix Feature/documentation basePath prefix fix - closes #694
No description provided.