how to get the CF endpoint API in my program


Zuba Al
 

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.


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.


Noburou TANIGUCHI
 

There may be a proposal that adds "CC endpoint" to the `VCAP_APPLICATION`
environment variable. It seems no additional risk exists. However, there
must be one or more reasonable use cases for it.

Why do you want to know the CF endpoint from your app running on CF, zooba?



-----
I'm not a ...
noburou taniguchi
--
View this message in context: http://cf-dev.70369.x6.nabble.com/cf-dev-how-to-get-the-CF-endpoint-API-in-my-program-tp2385p2536.html
Sent from the CF Dev mailing list archive at Nabble.com.