Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Proposal - support swagger-codgen for REST services on f8 #1065

Open
stevef1uk opened this issue Dec 18, 2015 · 4 comments
Open

Proposal - support swagger-codgen for REST services on f8 #1065

stevef1uk opened this issue Dec 18, 2015 · 4 comments
Assignees

Comments

@stevef1uk
Copy link

As Swagger is the defacto tool to design REST APIs and swagger-codegen provides code generation for client and server side (including Java JAX RS, which works well with maven) it would be nice to be able to easily run the generated code on f8. Then you could use APIMan to expose the APIs apply policies over them etc.

I have looked at the generated code from Swagger-codegen and the sample Ipass-quickstarts REST code and there is a bit of a gap to overcome. Some form of tooling or swagger-codegen would be very nice.

@stevef1uk stevef1uk changed the title Proposal - support swagger-codegn for REST services on f8 Proposal - support swagger-codgen for REST services on f8 Dec 18, 2015
@KurtStam KurtStam self-assigned this Mar 12, 2016
@KurtStam
Copy link
Member

Related to fabric8io/fabric8#5463

@stevef1uk
Copy link
Author

I did put up an example project of this working on fabric8 if you want to take a look:

https://github.com/stevef1uk/ipaas-quickstarts.git

in quick start -> spring-boot -> jars

Just made the commit that makes this available

@KurtStam
Copy link
Member

Thanks @stevef1uk! Your example generates the server side right? In that use case where would the user obtain the swagger document? I can see the case for generating the client side based on a swagger document obtained from a service, but yours is opposite :).

@stevef1uk
Copy link
Author

Yes, it is simply a server side RESTful service creased by swagger-code-gen that contains the full swagger documentation running on fabric8. I added a README that shows how to view and use the swagger output.

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

No branches or pull requests

2 participants