Re: how to get the CF endpoint API in my program


Scott Frederick <scottyfred@...>
 

There is no way for an app running on CF to detect the CC API URL for the
platform the app is running on. The API domain can be different from the
app domain, so you can’t reliably derive the domain of any system endpoints
(api, uaa, login, etc) from any routes bound to the app. You can set the
API endpoint in an environment variable or system property and have your
app read that.

Scott

On Wed, Oct 21, 2015 at 6:33 PM, zooba Sir <myfakename90(a)gmail.com> wrote:

I need to get the CF endpoint API programmatically (not using cf cli). My
java spring boot project should get this endpoint url while running in cf.

Join cf-dev@lists.cloudfoundry.org to automatically receive all group messages.