Skip to content
This repository has been archived by the owner on Oct 5, 2022. It is now read-only.

provide a forge command to add a JAX-RS client for a service found in kubernetes to a Java project #5463

Open
jstrachan opened this issue Dec 15, 2015 · 1 comment
Assignees

Comments

@jstrachan
Copy link
Contributor

it would be great to browse kubernetes services running in a namespace and once a service is found with, say, Swagger, be able to generate a JAXRS client for it inside your project via a Forge command (so we can use in the web console, on the CLI, in an IDE).

So a forge command something like, api-importwhich would give you a list of possible kubernetes services with swagger; you pick one, then it'd give you a choice of what package to generate the code inside - it'd then tinker with your pom.xml to generate the client JAXRS interface & factory class etc.

Then you could immediately use the new generated Java interface in your code to consume the service.

i.e. this would provide a nice quick way to start consuming any service running inside kubernetes - whether from the CLI, IDE or web console

@jstrachan jstrachan added the api label Dec 15, 2015
@jstrachan
Copy link
Contributor Author

looks like there's a maven plugin we can try out for generating the JAXRS client (or other clients):
https://github.com/swagger-api/swagger-codegen/tree/master/modules/swagger-codegen-maven-plugin#usage

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants