cloudfoundry / multiapps-cli-plugin

A CLI plugin for Multi-Target Application (MTA) operations in Cloud Foundry
Apache License 2.0
81 stars 41 forks source link

multiapps usage from java #75

Open eternasparta opened 5 years ago

eternasparta commented 5 years ago

Description

I have a maven java project and I'm using https://github.com/cloudfoundry/cf-java-client to interact with my SCP Cloud foundry subaccount.

Is it possible to use the java client to deploy a mtar?

I know how to do it from command line using this plugin, but I'd like to integrate it into a java program. Is it possible (maybe a java version of the plugin)?

Your environment

Steps to reproduce

No info required it's not a bug :)

Additional information

ddonchev commented 4 years ago

Hi @eternasparta & thanks for the patience with this reply. At the moment, there is no java library for consuming the rest api. There is interest for orchestration of certain endpoints by a partnering service written in java, but it's future is unclear. The API definition we maintain is found at swaggerhub: https://app.swaggerhub.com/apis/SAP53/mtarest/1.0.0 If you want to see a live client in action, use the DEBUG env variable with the cf cli plugin ( 'DEBUG=1 cf deploy ...') This will make the client dump all requests & responses to stdout.