{"action":"created","comment":{"url":"https://api.github.com/repos/optbot/restapi/pulls/comments/29201889","id":29201889,"diff_hunk":"@@ -33,11 +33,22 @@ Testing\n --\n If the service is running on port `8081` on a host with IP address `91.198.174.192`, navigate to the following REST endpoint in a web browser:\n \n-\thttp://91.198.174.192:8081/api/?equity=SCTY&option=call&strike=30&expiry=2015-4-9\n+\thttp://91.198.174.192:8081/api/options?equity=SCTY&option=call&strike=30&expiry=2015-4-9\n \n You can replace query string parameters as needed to query for suitable data.\n \n+If no data is being returned, it may be that the database connection string is improperly configured. As outlined in the **Connects To** section, this project currently requires a database called `optionsMkt` with a collection named `quotes`. To reconfigure this, you can issue the following command:\n+\n+\t$ npm config set @optbot/restapi:db:optionsMkt \"mongodb://<your_mongo_host>:<your_mongo_port>/<your_database_name>\"\n+\n+As an example, using the default settings would be\n+\n+\t$ npm config set @optbot/restapi:db:optionsMkt \"mongodb://localhost:27017/optionsMkt\"","path":"README.md","position":15,"original_position":15,"commit_id":"5fa4014e9d97f84da9840d420a655e8113d3b4d1","original_commit_id":"5fa4014e9d97f84da9840d420a655e8113d3b4d1","user":{"login":"aisthesis","id":1923000,"avatar_url":"https://avatars.githubusercontent.com/u/1923000?v=3","gravatar_id":"","url":"https://api.github.com/users/aisthesis","html_url":"https://github.com/aisthesis","followers_url":"https://api.github.com/users/aisthesis/followers","following_url":"https://api.github.com/users/aisthesis/following{/other_user}","gists_url":"https://api.github.com/users/aisthesis/gists{/gist_id}","starred_url":"https://api.github.com/users/aisthesis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aisthesis/subscriptions","organizations_url":"https://api.github.com/users/aisthesis/orgs","repos_url":"https://api.github.com/users/aisthesis/repos","events_url":"https://api.github.com/users/aisthesis/events{/privacy}","received_events_url":"https://api.github.com/users/aisthesis/received_events","type":"User","site_admin":false},"body":"missing `sudo` and `--global`","created_at":"2015-04-27T23:20:25Z","updated_at":"2015-04-27T23:20:25Z","html_url":"https://github.com/optbot/restapi/pull/8#discussion_r29201889","pull_request_url":"https://api.github.com/repos/optbot/restapi/pulls/8","_links":{"self":{"href":"https://api.github.com/repos/optbot/restapi/pulls/comments/29201889"},"html":{"href":"https://github.com/optbot/restapi/pull/8#discussion_r29201889"},"pull_request":{"href":"https://api.github.com/repos/optbot/restapi/pulls/8"}}},"pull_request":{"url":"https://api.github.com/repos/optbot/restapi/pulls/8","id":34212467,"html_url":"https://github.com/optbot/restapi/pull/8","diff_url":"https://github.com/optbot/restapi/pull/8.diff","patch_url":"https://github.com/optbot/restapi/pull/8.patch","issue_url":"https://api.github.com/repos/optbot/restapi/issues/8","number":8,"state":"open","locked":false,"title":"Next iteration including new endpoints and validation","user":{"login":"mscappini","id":1438041,"avatar_url":"https://avatars.githubusercontent.com/u/1438041?v=3","gravatar_id":"","url":"https://api.github.com/users/mscappini","html_url":"https://github.com/mscappini","followers_url":"https://api.github.com/users/mscappini/followers","following_url":"https://api.github.com/users/mscappini/following{/other_user}","gists_url":"https://api.github.com/users/mscappini/gists{/gist_id}","starred_url":"https://api.github.com/users/mscappini/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mscappini/subscriptions","organizations_url":"https://api.github.com/users/mscappini/orgs","repos_url":"https://api.github.com/users/mscappini/repos","events_url":"https://api.github.com/users/mscappini/events{/privacy}","received_events_url":"https://api.github.com/users/mscappini/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-04-27T21:29:44Z","updated_at":"2015-04-27T23:20:25Z","closed_at":null,"merged_at":null,"merge_commit_sha":"7aa9cfc5efd6f6219bc7dc514dad21ebe9225766","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/optbot/restapi/pulls/8/commits","review_comments_url":"https://api.github.com/repos/optbot/restapi/pulls/8/comments","review_comment_url":"https://api.github.com/repos/optbot/restapi/pulls/comments{/number}","comments_url":"https://api.github.com/repos/optbot/restapi/issues/8/comments","statuses_url":"https://api.github.com/repos/optbot/restapi/statuses/5fa4014e9d97f84da9840d420a655e8113d3b4d1","head":{"label":"optbot:mark","ref":"mark","sha":"5fa4014e9d97f84da9840d420a655e8113d3b4d1","user":{"login":"optbot","id":11791633,"avatar_url":"https://avatars.githubusercontent.com/u/11791633?v=3","gravatar_id":"","url":"https://api.github.com/users/optbot","html_url":"https://github.com/optbot","followers_url":"https://api.github.com/users/optbot/followers","following_url":"https://api.github.com/users/optbot/following{/other_user}","gists_url":"https://api.github.com/users/optbot/gists{/gist_id}","starred_url":"https://api.github.com/users/optbot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/optbot/subscriptions","organizations_url":"https://api.github.com/users/optbot/orgs","repos_url":"https://api.github.com/users/optbot/repos","events_url":"https://api.github.com/users/optbot/events{/privacy}","received_events_url":"https://api.github.com/users/optbot/received_events","type":"Organization","site_admin":false},"repo":{"id":33699956,"name":"restapi","full_name":"optbot/restapi","owner":{"login":"optbot","id":11791633,"avatar_url":"https://avatars.githubusercontent.com/u/11791633?v=3","gravatar_id":"","url":"https://api.github.com/users/optbot","html_url":"https://github.com/optbot","followers_url":"https://api.github.com/users/optbot/followers","following_url":"https://api.github.com/users/optbot/following{/other_user}","gists_url":"https://api.github.com/users/optbot/gists{/gist_id}","starred_url":"https://api.github.com/users/optbot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/optbot/subscriptions","organizations_url":"https://api.github.com/users/optbot/orgs","repos_url":"https://api.github.com/users/optbot/repos","events_url":"https://api.github.com/users/optbot/events{/privacy}","received_events_url":"https://api.github.com/users/optbot/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/optbot/restapi","description":"The RESTful API for the optbot service.","fork":false,"url":"https://api.github.com/repos/optbot/restapi","forks_url":"https://api.github.com/repos/optbot/restapi/forks","keys_url":"https://api.github.com/repos/optbot/restapi/keys{/key_id}","collaborators_url":"https://api.github.com/repos/optbot/restapi/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/optbot/restapi/teams","hooks_url":"https://api.github.com/repos/optbot/restapi/hooks","issue_events_url":"https://api.github.com/repos/optbot/restapi/issues/events{/number}","events_url":"https://api.github.com/repos/optbot/restapi/events","assignees_url":"https://api.github.com/repos/optbot/restapi/assignees{/user}","branches_url":"https://api.github.com/repos/optbot/restapi/branches{/branch}","tags_url":"https://api.github.com/repos/optbot/restapi/tags","blobs_url":"https://api.github.com/repos/optbot/restapi/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/optbot/restapi/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/optbot/restapi/git/refs{/sha}","trees_url":"https://api.github.com/repos/optbot/restapi/git/trees{/sha}","statuses_url":"https://api.github.com/repos/optbot/restapi/statuses/{sha}","languages_url":"https://api.github.com/repos/optbot/restapi/languages","stargazers_url":"https://api.github.com/repos/optbot/restapi/stargazers","contributors_url":"https://api.github.com/repos/optbot/restapi/contributors","subscribers_url":"https://api.github.com/repos/optbot/restapi/subscribers","subscription_url":"https://api.github.com/repos/optbot/restapi/subscription","commits_url":"https://api.github.com/repos/optbot/restapi/commits{/sha}","git_commits_url":"https://api.github.com/repos/optbot/restapi/git/commits{/sha}","comments_url":"https://api.github.com/repos/optbot/restapi/comments{/number}","issue_comment_url":"https://api.github.com/repos/optbot/restapi/issues/comments{/number}","contents_url":"https://api.github.com/repos/optbot/restapi/contents/{+path}","compare_url":"https://api.github.com/repos/optbot/restapi/compare/{base}...{head}","merges_url":"https://api.github.com/repos/optbot/restapi/merges","archive_url":"https://api.github.com/repos/optbot/restapi/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/optbot/restapi/downloads","issues_url":"https://api.github.com/repos/optbot/restapi/issues{/number}","pulls_url":"https://api.github.com/repos/optbot/restapi/pulls{/number}","milestones_url":"https://api.github.com/repos/optbot/restapi/milestones{/number}","notifications_url":"https://api.github.com/repos/optbot/restapi/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/optbot/restapi/labels{/name}","releases_url":"https://api.github.com/repos/optbot/restapi/releases{/id}","created_at":"2015-04-10T00:39:19Z","updated_at":"2015-04-22T23:31:42Z","pushed_at":"2015-04-27T23:15:00Z","git_url":"git://github.com/optbot/restapi.git","ssh_url":"git@github.com:optbot/restapi.git","clone_url":"https://github.com/optbot/restapi.git","svn_url":"https://github.com/optbot/restapi","homepage":null,"size":240,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":2,"forks":0,"open_issues":2,"watchers":0,"default_branch":"master"}},"base":{"label":"optbot:master","ref":"master","sha":"33a224f4fa54228f5382e5a3d19b709ca0e7e8bf","user":{"login":"optbot","id":11791633,"avatar_url":"https://avatars.githubusercontent.com/u/11791633?v=3","gravatar_id":"","url":"https://api.github.com/users/optbot","html_url":"https://github.com/optbot","followers_url":"https://api.github.com/users/optbot/followers","following_url":"https://api.github.com/users/optbot/following{/other_user}","gists_url":"https://api.github.com/users/optbot/gists{/gist_id}","starred_url":"https://api.github.com/users/optbot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/optbot/subscriptions","organizations_url":"https://api.github.com/users/optbot/orgs","repos_url":"https://api.github.com/users/optbot/repos","events_url":"https://api.github.com/users/optbot/events{/privacy}","received_events_url":"https://api.github.com/users/optbot/received_events","type":"Organization","site_admin":false},"repo":{"id":33699956,"name":"restapi","full_name":"optbot/restapi","owner":{"login":"optbot","id":11791633,"avatar_url":"https://avatars.githubusercontent.com/u/11791633?v=3","gravatar_id":"","url":"https://api.github.com/users/optbot","html_url":"https://github.com/optbot","followers_url":"https://api.github.com/users/optbot/followers","following_url":"https://api.github.com/users/optbot/following{/other_user}","gists_url":"https://api.github.com/users/optbot/gists{/gist_id}","starred_url":"https://api.github.com/users/optbot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/optbot/subscriptions","organizations_url":"https://api.github.com/users/optbot/orgs","repos_url":"https://api.github.com/users/optbot/repos","events_url":"https://api.github.com/users/optbot/events{/privacy}","received_events_url":"https://api.github.com/users/optbot/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/optbot/restapi","description":"The RESTful API for the optbot service.","fork":false,"url":"https://api.github.com/repos/optbot/restapi","forks_url":"https://api.github.com/repos/optbot/restapi/forks","keys_url":"https://api.github.com/repos/optbot/restapi/keys{/key_id}","collaborators_url":"https://api.github.com/repos/optbot/restapi/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/optbot/restapi/teams","hooks_url":"https://api.github.com/repos/optbot/restapi/hooks","issue_events_url":"https://api.github.com/repos/optbot/restapi/issues/events{/number}","events_url":"https://api.github.com/repos/optbot/restapi/events","assignees_url":"https://api.github.com/repos/optbot/restapi/assignees{/user}","branches_url":"https://api.github.com/repos/optbot/restapi/branches{/branch}","tags_url":"https://api.github.com/repos/optbot/restapi/tags","blobs_url":"https://api.github.com/repos/optbot/restapi/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/optbot/restapi/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/optbot/restapi/git/refs{/sha}","trees_url":"https://api.github.com/repos/optbot/restapi/git/trees{/sha}","statuses_url":"https://api.github.com/repos/optbot/restapi/statuses/{sha}","languages_url":"https://api.github.com/repos/optbot/restapi/languages","stargazers_url":"https://api.github.com/repos/optbot/restapi/stargazers","contributors_url":"https://api.github.com/repos/optbot/restapi/contributors","subscribers_url":"https://api.github.com/repos/optbot/restapi/subscribers","subscription_url":"https://api.github.com/repos/optbot/restapi/subscription","commits_url":"https://api.github.com/repos/optbot/restapi/commits{/sha}","git_commits_url":"https://api.github.com/repos/optbot/restapi/git/commits{/sha}","comments_url":"https://api.github.com/repos/optbot/restapi/comments{/number}","issue_comment_url":"https://api.github.com/repos/optbot/restapi/issues/comments{/number}","contents_url":"https://api.github.com/repos/optbot/restapi/contents/{+path}","compare_url":"https://api.github.com/repos/optbot/restapi/compare/{base}...{head}","merges_url":"https://api.github.com/repos/optbot/restapi/merges","archive_url":"https://api.github.com/repos/optbot/restapi/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/optbot/restapi/downloads","issues_url":"https://api.github.com/repos/optbot/restapi/issues{/number}","pulls_url":"https://api.github.com/repos/optbot/restapi/pulls{/number}","milestones_url":"https://api.github.com/repos/optbot/restapi/milestones{/number}","notifications_url":"https://api.github.com/repos/optbot/restapi/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/optbot/restapi/labels{/name}","releases_url":"https://api.github.com/repos/optbot/restapi/releases{/id}","created_at":"2015-04-10T00:39:19Z","updated_at":"2015-04-22T23:31:42Z","pushed_at":"2015-04-27T23:15:00Z","git_url":"git://github.com/optbot/restapi.git","ssh_url":"git@github.com:optbot/restapi.git","clone_url":"https://github.com/optbot/restapi.git","svn_url":"https://github.com/optbot/restapi","homepage":null,"size":240,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":2,"forks":0,"open_issues":2,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/optbot/restapi/pulls/8"},"html":{"href":"https://github.com/optbot/restapi/pull/8"},"issue":{"href":"https://api.github.com/repos/optbot/restapi/issues/8"},"comments":{"href":"https://api.github.com/repos/optbot/restapi/issues/8/comments"},"review_comments":{"href":"https://api.github.com/repos/optbot/restapi/pulls/8/comments"},"review_comment":{"href":"https://api.github.com/repos/optbot/restapi/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/optbot/restapi/pulls/8/commits"},"statuses":{"href":"https://api.github.com/repos/optbot/restapi/statuses/5fa4014e9d97f84da9840d420a655e8113d3b4d1"}}}}