{"action":"opened","number":648,"pull_request":{"url":"https://api.github.com/repos/cloudfoundry/cli/pulls/648","id":48641871,"html_url":"https://github.com/cloudfoundry/cli/pull/648","diff_url":"https://github.com/cloudfoundry/cli/pull/648.diff","patch_url":"https://github.com/cloudfoundry/cli/pull/648.patch","issue_url":"https://api.github.com/repos/cloudfoundry/cli/issues/648","number":648,"state":"open","locked":false,"title":"create-route command now takes optional context path","user":{"login":"crhino","id":4146455,"avatar_url":"https://avatars.githubusercontent.com/u/4146455?v=3","gravatar_id":"","url":"https://api.github.com/users/crhino","html_url":"https://github.com/crhino","followers_url":"https://api.github.com/users/crhino/followers","following_url":"https://api.github.com/users/crhino/following{/other_user}","gists_url":"https://api.github.com/users/crhino/gists{/gist_id}","starred_url":"https://api.github.com/users/crhino/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/crhino/subscriptions","organizations_url":"https://api.github.com/users/crhino/orgs","repos_url":"https://api.github.com/users/crhino/repos","events_url":"https://api.github.com/users/crhino/events{/privacy}","received_events_url":"https://api.github.com/users/crhino/received_events","type":"User","site_admin":false},"body":"This PR adds an optional parameter, `-c`, to the `create-route` command in order to specify a context path for a route.\r\n\r\nNotably, in this PR we are always sending the `path` key in the JSON request to the CC, by default an empty string. We also modify the `RouteCreator` interface to take in a new path parameter and send in the empty string for `map-route` at the current time.\r\n\r\n[#104020104](https://www.pivotaltracker.com/story/show/104020104)","created_at":"2015-10-23T23:42:14Z","updated_at":"2015-10-23T23:42:14Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/cloudfoundry/cli/pulls/648/commits","review_comments_url":"https://api.github.com/repos/cloudfoundry/cli/pulls/648/comments","review_comment_url":"https://api.github.com/repos/cloudfoundry/cli/pulls/comments{/number}","comments_url":"https://api.github.com/repos/cloudfoundry/cli/issues/648/comments","statuses_url":"https://api.github.com/repos/cloudfoundry/cli/statuses/20f3bc7ea154c6f945f64367ed3ee93699ee4e14","head":{"label":"cf-routing:104020104-context-path-create","ref":"104020104-context-path-create","sha":"20f3bc7ea154c6f945f64367ed3ee93699ee4e14","user":{"login":"cf-routing","id":15128555,"avatar_url":"https://avatars.githubusercontent.com/u/15128555?v=3","gravatar_id":"","url":"https://api.github.com/users/cf-routing","html_url":"https://github.com/cf-routing","followers_url":"https://api.github.com/users/cf-routing/followers","following_url":"https://api.github.com/users/cf-routing/following{/other_user}","gists_url":"https://api.github.com/users/cf-routing/gists{/gist_id}","starred_url":"https://api.github.com/users/cf-routing/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cf-routing/subscriptions","organizations_url":"https://api.github.com/users/cf-routing/orgs","repos_url":"https://api.github.com/users/cf-routing/repos","events_url":"https://api.github.com/users/cf-routing/events{/privacy}","received_events_url":"https://api.github.com/users/cf-routing/received_events","type":"Organization","site_admin":false},"repo":{"id":44278487,"name":"cli","full_name":"cf-routing/cli","owner":{"login":"cf-routing","id":15128555,"avatar_url":"https://avatars.githubusercontent.com/u/15128555?v=3","gravatar_id":"","url":"https://api.github.com/users/cf-routing","html_url":"https://github.com/cf-routing","followers_url":"https://api.github.com/users/cf-routing/followers","following_url":"https://api.github.com/users/cf-routing/following{/other_user}","gists_url":"https://api.github.com/users/cf-routing/gists{/gist_id}","starred_url":"https://api.github.com/users/cf-routing/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cf-routing/subscriptions","organizations_url":"https://api.github.com/users/cf-routing/orgs","repos_url":"https://api.github.com/users/cf-routing/repos","events_url":"https://api.github.com/users/cf-routing/events{/privacy}","received_events_url":"https://api.github.com/users/cf-routing/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/cf-routing/cli","description":"A CLI for Cloud Foundry written in Go","fork":true,"url":"https://api.github.com/repos/cf-routing/cli","forks_url":"https://api.github.com/repos/cf-routing/cli/forks","keys_url":"https://api.github.com/repos/cf-routing/cli/keys{/key_id}","collaborators_url":"https://api.github.com/repos/cf-routing/cli/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/cf-routing/cli/teams","hooks_url":"https://api.github.com/repos/cf-routing/cli/hooks","issue_events_url":"https://api.github.com/repos/cf-routing/cli/issues/events{/number}","events_url":"https://api.github.com/repos/cf-routing/cli/events","assignees_url":"https://api.github.com/repos/cf-routing/cli/assignees{/user}","branches_url":"https://api.github.com/repos/cf-routing/cli/branches{/branch}","tags_url":"https://api.github.com/repos/cf-routing/cli/tags","blobs_url":"https://api.github.com/repos/cf-routing/cli/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/cf-routing/cli/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/cf-routing/cli/git/refs{/sha}","trees_url":"https://api.github.com/repos/cf-routing/cli/git/trees{/sha}","statuses_url":"https://api.github.com/repos/cf-routing/cli/statuses/{sha}","languages_url":"https://api.github.com/repos/cf-routing/cli/languages","stargazers_url":"https://api.github.com/repos/cf-routing/cli/stargazers","contributors_url":"https://api.github.com/repos/cf-routing/cli/contributors","subscribers_url":"https://api.github.com/repos/cf-routing/cli/subscribers","subscription_url":"https://api.github.com/repos/cf-routing/cli/subscription","commits_url":"https://api.github.com/repos/cf-routing/cli/commits{/sha}","git_commits_url":"https://api.github.com/repos/cf-routing/cli/git/commits{/sha}","comments_url":"https://api.github.com/repos/cf-routing/cli/comments{/number}","issue_comment_url":"https://api.github.com/repos/cf-routing/cli/issues/comments{/number}","contents_url":"https://api.github.com/repos/cf-routing/cli/contents/{+path}","compare_url":"https://api.github.com/repos/cf-routing/cli/compare/{base}...{head}","merges_url":"https://api.github.com/repos/cf-routing/cli/merges","archive_url":"https://api.github.com/repos/cf-routing/cli/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/cf-routing/cli/downloads","issues_url":"https://api.github.com/repos/cf-routing/cli/issues{/number}","pulls_url":"https://api.github.com/repos/cf-routing/cli/pulls{/number}","milestones_url":"https://api.github.com/repos/cf-routing/cli/milestones{/number}","notifications_url":"https://api.github.com/repos/cf-routing/cli/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/cf-routing/cli/labels{/name}","releases_url":"https://api.github.com/repos/cf-routing/cli/releases{/id}","created_at":"2015-10-14T21:53:05Z","updated_at":"2015-10-22T16:51:02Z","pushed_at":"2015-10-23T23:38:17Z","git_url":"git://github.com/cf-routing/cli.git","ssh_url":"git@github.com:cf-routing/cli.git","clone_url":"https://github.com/cf-routing/cli.git","svn_url":"https://github.com/cf-routing/cli","homepage":"","size":42382,"stargazers_count":0,"watchers_count":0,"language":"Go","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"cloudfoundry:master","ref":"master","sha":"adb1e88f22b704df1e0855dfedd9fb6bd85492c4","user":{"login":"cloudfoundry","id":621746,"avatar_url":"https://avatars.githubusercontent.com/u/621746?v=3","gravatar_id":"","url":"https://api.github.com/users/cloudfoundry","html_url":"https://github.com/cloudfoundry","followers_url":"https://api.github.com/users/cloudfoundry/followers","following_url":"https://api.github.com/users/cloudfoundry/following{/other_user}","gists_url":"https://api.github.com/users/cloudfoundry/gists{/gist_id}","starred_url":"https://api.github.com/users/cloudfoundry/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cloudfoundry/subscriptions","organizations_url":"https://api.github.com/users/cloudfoundry/orgs","repos_url":"https://api.github.com/users/cloudfoundry/repos","events_url":"https://api.github.com/users/cloudfoundry/events{/privacy}","received_events_url":"https://api.github.com/users/cloudfoundry/received_events","type":"Organization","site_admin":false},"repo":{"id":12223350,"name":"cli","full_name":"cloudfoundry/cli","owner":{"login":"cloudfoundry","id":621746,"avatar_url":"https://avatars.githubusercontent.com/u/621746?v=3","gravatar_id":"","url":"https://api.github.com/users/cloudfoundry","html_url":"https://github.com/cloudfoundry","followers_url":"https://api.github.com/users/cloudfoundry/followers","following_url":"https://api.github.com/users/cloudfoundry/following{/other_user}","gists_url":"https://api.github.com/users/cloudfoundry/gists{/gist_id}","starred_url":"https://api.github.com/users/cloudfoundry/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cloudfoundry/subscriptions","organizations_url":"https://api.github.com/users/cloudfoundry/orgs","repos_url":"https://api.github.com/users/cloudfoundry/repos","events_url":"https://api.github.com/users/cloudfoundry/events{/privacy}","received_events_url":"https://api.github.com/users/cloudfoundry/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/cloudfoundry/cli","description":"A CLI for Cloud Foundry written in Go","fork":false,"url":"https://api.github.com/repos/cloudfoundry/cli","forks_url":"https://api.github.com/repos/cloudfoundry/cli/forks","keys_url":"https://api.github.com/repos/cloudfoundry/cli/keys{/key_id}","collaborators_url":"https://api.github.com/repos/cloudfoundry/cli/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/cloudfoundry/cli/teams","hooks_url":"https://api.github.com/repos/cloudfoundry/cli/hooks","issue_events_url":"https://api.github.com/repos/cloudfoundry/cli/issues/events{/number}","events_url":"https://api.github.com/repos/cloudfoundry/cli/events","assignees_url":"https://api.github.com/repos/cloudfoundry/cli/assignees{/user}","branches_url":"https://api.github.com/repos/cloudfoundry/cli/branches{/branch}","tags_url":"https://api.github.com/repos/cloudfoundry/cli/tags","blobs_url":"https://api.github.com/repos/cloudfoundry/cli/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/cloudfoundry/cli/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/cloudfoundry/cli/git/refs{/sha}","trees_url":"https://api.github.com/repos/cloudfoundry/cli/git/trees{/sha}","statuses_url":"https://api.github.com/repos/cloudfoundry/cli/statuses/{sha}","languages_url":"https://api.github.com/repos/cloudfoundry/cli/languages","stargazers_url":"https://api.github.com/repos/cloudfoundry/cli/stargazers","contributors_url":"https://api.github.com/repos/cloudfoundry/cli/contributors","subscribers_url":"https://api.github.com/repos/cloudfoundry/cli/subscribers","subscription_url":"https://api.github.com/repos/cloudfoundry/cli/subscription","commits_url":"https://api.github.com/repos/cloudfoundry/cli/commits{/sha}","git_commits_url":"https://api.github.com/repos/cloudfoundry/cli/git/commits{/sha}","comments_url":"https://api.github.com/repos/cloudfoundry/cli/comments{/number}","issue_comment_url":"https://api.github.com/repos/cloudfoundry/cli/issues/comments{/number}","contents_url":"https://api.github.com/repos/cloudfoundry/cli/contents/{+path}","compare_url":"https://api.github.com/repos/cloudfoundry/cli/compare/{base}...{head}","merges_url":"https://api.github.com/repos/cloudfoundry/cli/merges","archive_url":"https://api.github.com/repos/cloudfoundry/cli/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/cloudfoundry/cli/downloads","issues_url":"https://api.github.com/repos/cloudfoundry/cli/issues{/number}","pulls_url":"https://api.github.com/repos/cloudfoundry/cli/pulls{/number}","milestones_url":"https://api.github.com/repos/cloudfoundry/cli/milestones{/number}","notifications_url":"https://api.github.com/repos/cloudfoundry/cli/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/cloudfoundry/cli/labels{/name}","releases_url":"https://api.github.com/repos/cloudfoundry/cli/releases{/id}","created_at":"2013-08-19T17:47:45Z","updated_at":"2015-10-23T12:25:19Z","pushed_at":"2015-10-23T23:42:14Z","git_url":"git://github.com/cloudfoundry/cli.git","ssh_url":"git@github.com:cloudfoundry/cli.git","clone_url":"https://github.com/cloudfoundry/cli.git","svn_url":"https://github.com/cloudfoundry/cli","homepage":"","size":60225,"stargazers_count":385,"watchers_count":385,"language":"Go","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":311,"mirror_url":null,"open_issues_count":60,"forks":311,"open_issues":60,"watchers":385,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/cloudfoundry/cli/pulls/648"},"html":{"href":"https://github.com/cloudfoundry/cli/pull/648"},"issue":{"href":"https://api.github.com/repos/cloudfoundry/cli/issues/648"},"comments":{"href":"https://api.github.com/repos/cloudfoundry/cli/issues/648/comments"},"review_comments":{"href":"https://api.github.com/repos/cloudfoundry/cli/pulls/648/comments"},"review_comment":{"href":"https://api.github.com/repos/cloudfoundry/cli/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/cloudfoundry/cli/pulls/648/commits"},"statuses":{"href":"https://api.github.com/repos/cloudfoundry/cli/statuses/20f3bc7ea154c6f945f64367ed3ee93699ee4e14"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"commits":1,"additions":226,"deletions":80,"changed_files":18}}