cloudfoundry / cloud_controller_ng

Cloud Foundry Cloud Controller
Apache License 2.0
187 stars 356 forks source link

add 'current_droplet' to app's relationships #3863

Open gmllt opened 3 weeks ago

gmllt commented 3 weeks ago

The only way to retrieve the current droplet of an application via the API is to go through the /v3/apps/:app_guid/droplets/current or /v3/apps/:app_guid/relationships/current_droplet endpoints.

In a context where we want to retrieve all the applications (more than 3000 in my case) and their current droplet, it is therefore necessary to make one request per application (more than 3000 requests).

This PR aims to make the current_droplet relationship visible on all endpoints presenting the app object :

See issue #3860