Open guyhanael opened 8 years ago
@guyhanael thanks for the suggestion. Do you mean adding another library options in Java API client to support Spring-Shell?
@wing328 - I played a bit with the codegen and used the Java Spring MVC option. I sew it generated the REST controllers. What I was thinking is generating code that will create a spring shell classes and generate something like the rest-shell spring project. i.e. command line tool (like the swagger UI)that will be able to run any API that was part of the swagger configuration.
java-springmvc is for server stub. I think java
template (API client) would be more suitable for your case as you're trying to implement another client that talks to a RESTful backend if I understand correctly.
@wing328 , you understood correctly, thanks for pointing me in the correct direction. So what I want to do is to wrap this with the spring shell classes and annotations which will produce a CLI tool to invoke these APIs. Elegendly I can clone and submit a pull request, but I would like to get some more feedback from the community if they find it useful before I start. What is the process I need to follow ?
Besides posting here, you can also start a discussion in Swagger Group to gather feedback from the community.
I was thinking creating a new option to generate a Spring-Shell application from swagger specification. The new generator will create the code to be compliant with [https://github.com/spring-projects/spring-shell] WDYT ?