Skip to content
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

Merged
merged 11 commits into from
Dec 9, 2015

Conversation

frenchbread
Copy link
Contributor

No description provided.

@frenchbread
Copy link
Contributor Author

@brylie Please review. Related issue #694

@@ -1,24 +1,30 @@
JsonRoutes.add("get", "api/:id/swagger.json", function (request, response, next) {

// Get current id
var id = request.params.id;
Copy link
Contributor

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.

@brylie
Copy link
Contributor

brylie commented Dec 9, 2015

This looks good. There are just a couple of minor issues relating to readability.

@frenchbread
Copy link
Contributor Author

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;
Copy link
Contributor

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.

brylie added a commit that referenced this pull request Dec 9, 2015
…fix-fix

Feature/documentation basePath prefix fix - closes #694
@brylie brylie merged commit 21fd25b into develop Dec 9, 2015
@brylie brylie removed the in progress label Dec 9, 2015
@brylie brylie deleted the feature/documentation-basePath-prefix-fix branch December 9, 2015 14:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants