-
Notifications
You must be signed in to change notification settings - Fork 8
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
Add teamId to expansion of query result, and keep team member ids in … #300
Merged
Merged
Changes from all commits
Commits
Show all changes
15 commits
Select commit
Hold shift + click to select a range
bb2a2f5
Add teamId to expansion of query result, and keep team member ids in …
pierreTklein fbf5b65
Merge develop
pierreTklein a68e22c
Update test
pierreTklein 3f4b070
Update comments
pierreTklein 3985c48
doc updates
pierreTklein 735102b
Bug fix
pierreTklein 183dfbe
ObjectId object -> string
pierreTklein 0fe953f
accountId -> hackerId
pierreTklein 9d7cc7b
Merge branch 'develop' into bugfix/addTeamMemberIds
pierreTklein 3bb4b8d
_id -> .toString()
pierreTklein 7db3739
Merge branch 'develop' into bugfix/addTeamMemberIds
pierreTklein 79c91eb
Merge branch 'develop' into bugfix/addTeamMemberIds
pierreTklein 98b535e
Merge master
pierreTklein 35bd65f
Merge branch 'develop' into bugfix/addTeamMemberIds
pierreTklein 4270516
Merge develop
pierreTklein File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -1257,7 +1257,7 @@ define({ | |
}, | ||
{ | ||
"type": "get", | ||
"url": "/hacker/email/:email", | ||
"url": "/hacker/:id", | ||
"title": "get a hacker's information", | ||
"name": "getHacker", | ||
"group": "Hacker", | ||
|
@@ -1268,8 +1268,8 @@ define({ | |
"group": "param", | ||
"type": "String", | ||
"optional": false, | ||
"field": "email", | ||
"description": "<p>a hacker's unique email</p>" | ||
"field": "id", | ||
"description": "<p>a hacker's unique mongoID</p>" | ||
}] | ||
} | ||
}, | ||
|
@@ -1324,12 +1324,12 @@ define({ | |
"filename": "routes/api/hacker.js", | ||
"groupTitle": "Hacker", | ||
"sampleRequest": [{ | ||
"url": "https://api.mchacks.ca/api/hacker/email/:email" | ||
"url": "https://api.mchacks.ca/api/hacker/:id" | ||
}] | ||
}, | ||
{ | ||
"type": "get", | ||
"url": "/hacker/:id", | ||
"url": "/hacker/email/:email", | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. It's also kind of weird that in some cases we remove :id to add email/:email, and above we removed email/:email to add :id There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. See comment above |
||
"title": "get a hacker's information", | ||
"name": "getHacker", | ||
"group": "Hacker", | ||
|
@@ -1340,8 +1340,8 @@ define({ | |
"group": "param", | ||
"type": "String", | ||
"optional": false, | ||
"field": "id", | ||
"description": "<p>a hacker's unique mongoID</p>" | ||
"field": "email", | ||
"description": "<p>a hacker's unique email</p>" | ||
}] | ||
} | ||
}, | ||
|
@@ -1396,7 +1396,7 @@ define({ | |
"filename": "routes/api/hacker.js", | ||
"groupTitle": "Hacker", | ||
"sampleRequest": [{ | ||
"url": "https://api.mchacks.ca/api/hacker/:id" | ||
"url": "https://api.mchacks.ca/api/hacker/email/:email" | ||
}] | ||
}, | ||
{ | ||
|
@@ -2645,7 +2645,7 @@ define({ | |
}, | ||
"examples": [{ | ||
"title": "Success-Response: ", | ||
"content": "{\n \"message\": \"Successfully retrieved team information\", \n \"data\": {...}\n }", | ||
"content": "{\n \"message\": \"Team retrieval successful\", \n \"data\": { \n \"team\": {\n \"name\":\"foo\",\n \"members\": [\n ObjectId('...')\n ],\n \"devpostURL\": \"www.devpost.com/foo\",\n \"projectName\": \"fooey\"\n },\n \"members\": [\n {\n \"firstName\": \"John\",\n \"lastName\": \"Doe\"\n }\n ],\n }\n }", | ||
"type": "object" | ||
}] | ||
}, | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,16 @@ | ||
define({ | ||
"name": "hackerAPI", | ||
"version": "0.0.8", | ||
"description": "Documentation for the API used for mchacks", | ||
"defaultVersion": "0.0.8", | ||
"title": "hackerAPI documentation", | ||
"url": "https://api.mchacks.ca/api", | ||
"sampleUrl": "https://api.mchacks.ca/api", | ||
"apidoc": "0.3.0", | ||
"generator": { | ||
"name": "apidoc", | ||
"time": "2019-01-21T04:13:36.482Z", | ||
"url": "http://apidocjs.com", | ||
"version": "0.17.7" | ||
} | ||
define({ | ||
"name": "hackerAPI", | ||
"version": "0.0.8", | ||
"description": "Documentation for the API used for mchacks", | ||
"defaultVersion": "0.0.8", | ||
"title": "hackerAPI documentation", | ||
"url": "https://api.mchacks.ca/api", | ||
"sampleUrl": "https://api.mchacks.ca/api", | ||
"apidoc": "0.3.0", | ||
"generator": { | ||
"name": "apidoc", | ||
"time": "2019-01-21T04:13:36.482Z", | ||
"url": "http://apidocjs.com", | ||
"version": "0.17.7" | ||
} | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,16 @@ | ||
{ | ||
"name": "hackerAPI", | ||
"version": "0.0.8", | ||
"description": "Documentation for the API used for mchacks", | ||
"defaultVersion": "0.0.8", | ||
"title": "hackerAPI documentation", | ||
"url": "https://api.mchacks.ca/api", | ||
"sampleUrl": "https://api.mchacks.ca/api", | ||
"apidoc": "0.3.0", | ||
"generator": { | ||
"name": "apidoc", | ||
"time": "2019-01-21T04:13:36.482Z", | ||
"url": "http://apidocjs.com", | ||
"version": "0.17.7" | ||
} | ||
{ | ||
"name": "hackerAPI", | ||
"version": "0.0.8", | ||
"description": "Documentation for the API used for mchacks", | ||
"defaultVersion": "0.0.8", | ||
"title": "hackerAPI documentation", | ||
"url": "https://api.mchacks.ca/api", | ||
"sampleUrl": "https://api.mchacks.ca/api", | ||
"apidoc": "0.3.0", | ||
"generator": { | ||
"name": "apidoc", | ||
"time": "2019-01-21T04:13:36.482Z", | ||
"url": "http://apidocjs.com", | ||
"version": "0.17.7" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
I'm a bit confused as to where these changes are coming from. Was this from a previous PR where docs wasn't updated?
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.
no idea, probably just ordering of the items in the list