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

[REQ] Guide, examples and tutorials for using generated code of cpp-qt-qhttpengine-server #12958

Open
AgronAerco opened this issue Jul 20, 2022 · 3 comments

Comments

@AgronAerco
Copy link

Please explain how to use cpp-qt-qhttpengine-server.

In the pet store example, please show where in the code you would save the data to a database, where in the code would you return a list of requested data.

What is the best place to establish a database connection.

I can't find any open source project that implemented a solution using this generated code. Please list some for reference.

@wing328
Copy link
Member

wing328 commented Jul 21, 2022

For references, what about doing a code search in Github? e.g. https://github.com/search?q=qhttpengine+openapi+generator&type=code

Looks like some of these are users who leverages openapi-genreator to generate cpp-qt-qhttpengine-server server-side code.

@AgronAerco
Copy link
Author

@wing328 thanks but from your search list not a single project is actually used. They seem to have been generated but never implemented for actual usage.

@AgronAerco
Copy link
Author

Every generated file has this comment:

NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). https://openapi-generator.tech Do not edit the class manually.
If we're not supposed to edit this file, how should we use it? As a parent class or as a member variable? An example would be nice.

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

No branches or pull requests

2 participants