{"action":"opened","issue":{"url":"https://api.github.com/repos/cf-tm-bot/capi/issues/206","repository_url":"https://api.github.com/repos/cf-tm-bot/capi","labels_url":"https://api.github.com/repos/cf-tm-bot/capi/issues/206/labels{/name}","comments_url":"https://api.github.com/repos/cf-tm-bot/capi/issues/206/comments","events_url":"https://api.github.com/repos/cf-tm-bot/capi/issues/206/events","html_url":"https://github.com/cf-tm-bot/capi/issues/206","id":181512072,"number":206,"title":"As an app developer, I would like VCAP_APPLICATION to have cf api endpoint - Story Id: 131833459","user":{"login":"cf-tm-bot","id":20690070,"avatar_url":"https://avatars.githubusercontent.com/u/20690070?v=3","gravatar_id":"","url":"https://api.github.com/users/cf-tm-bot","html_url":"https://github.com/cf-tm-bot","followers_url":"https://api.github.com/users/cf-tm-bot/followers","following_url":"https://api.github.com/users/cf-tm-bot/following{/other_user}","gists_url":"https://api.github.com/users/cf-tm-bot/gists{/gist_id}","starred_url":"https://api.github.com/users/cf-tm-bot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cf-tm-bot/subscriptions","organizations_url":"https://api.github.com/users/cf-tm-bot/orgs","repos_url":"https://api.github.com/users/cf-tm-bot/repos","events_url":"https://api.github.com/users/cf-tm-bot/events{/privacy}","received_events_url":"https://api.github.com/users/cf-tm-bot/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/cf-tm-bot/capi/labels/feature","name":"feature","color":"ededed"},{"url":"https://api.github.com/repos/cf-tm-bot/capi/labels/ipm","name":"ipm","color":"ededed"},{"url":"https://api.github.com/repos/cf-tm-bot/capi/labels/unscheduled","name":"unscheduled","color":"c8cbd0"}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-10-06T20:04:26Z","updated_at":"2016-10-06T20:04:26Z","closed_at":null,"body":"As an app developer, I would like to dynamically retrieve the the API endpoint for the Cloud Foundry deployment where my app is deployed. It should be in VCAP_APPLICATION, which cannot be changed by an app developer.\n\n```\n{\n \"VCAP_APPLICATION\": {\n  \"cf_api\": \"https://api.xena.cf-app.com\",\n  \"application_id\": \"6bd70d30-0ec1-4be5-8077-643586650e57\",\n  \"application_name\": \"nickdora\",\n  \"application_uris\": [\n   \"nickdora.xena-app.cf-app.com\"\n  ],\n  \"application_version\": \"e858e608-5727-4d06-bb52-e5c6d486572e\",\n  \"limits\": {\n   \"disk\": 1024,\n   \"fds\": 16384,\n   \"mem\": 256\n  },\n  \"name\": \"nickdora\",\n  \"space_id\": \"34d0b558-2868-4d4b-a335-31944be47e46\",\n  \"space_name\": \"nick\",\n  \"uris\": [\n   \"nickdora.xena-app.cf-app.com\"\n  ],\n  \"users\": null,\n  \"version\": \"e858e608-5727-4d06-bb52-e5c6d486572e\"\n }\n}\n```\n\nAC:\nVCAP_APPLICATION includes new `cf_api` key\n\n---\n\nMirrors: [story 131833459](https://www.pivotaltracker.com/story/show/131833459) submitted on Oct 6, 2016 UTC\n- **Requester**: Nicholas Calugar\n- **Estimate**: 0.0"}}
{"actor":{"display_login":"cf-tm-bot"}}