Class Generation
devmaxde opened this issue · 1 comments
devmaxde commented
Hey, I am currently trying to implement the Rust Package. But I am not 100% sure how this package is intended to work.
As far as I am able to understand you can generate the Request functions. But sometimes you are using generated Classes? How are they generated? What is the Purpose of it? Is it some kind of Request Body? Can I autogenerate them?
Are the responses Autogenerated?
As far as I am able to tell this is the last thing for me to do.
mooreds commented
Hi @devmaxde ! Thanks for putting together a rust client.
I'm not sure I quite understand your question. Are you asking how the request JSON is generated or what? Here's a high level overview of the components of client library generation:
- Domain json objects which are generated from the java client library every release.
- API json objects, maintained by hand, that include path and parameter info
- A freemarker file for each supported client library
- A github repo containing static components of each client library (python example)
- A build process which using the freemarker file and the API and domain json objects to build native REST calls into a file/package for the library. Then that file/package is checked into the client lib github repo, tested and tagged.
Does this help?