-
-
Notifications
You must be signed in to change notification settings - Fork 6.6k
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
Add cpp-oatpp-server generator (alpha) #7903
base: master
Are you sure you want to change the base?
Conversation
Hi William, thanks for your effort to create this. May I ask is this generator stable to use? Any plan to merge it to master branch or release it? |
@Crisliu7 I've not seen any contributions to this generator so far. Would you have time to contribute to this PR to make the output works (at least with basic APIs like petstore that we use for testing in this project)? |
I plan to work on it, to create cpp-oatpp-server generator. But I will start from scratch, |
preparing hand-written oatpp-petstore-server https://github.com/atokama/oatpp-petstore-server i plan to use async endpoints, to enable non-blocking IO in handlers. https://oatpp.io/docs/oatpp-coroutines/ |
continue work here https://github.com/makru86/oatpp-petstore |
I manually created Petstore API with C++ and Oat++. Anyone welcome to use it as a reference for a https://github.com/makru86/oatpp-petstore-starter |
To build the new generator
cpp-oatpp-server
:(ref: https://github.com/oatpp/oatpp)
The new generator is created based on
cpp-pistache-server
. To start with, we'll need to update the mustache templates to useoatpp
. Templates can be found inmodules/openapi-generator/src/main/resources/cpp-oatpp-server
PR checklist
./bin/generate-samples.sh
to update all Petstore samples related to your fix. This is important, as CI jobs will verify all generator outputs of your HEAD commit as it would merge with master. These must match the expectations made by your contribution. You may regenerate an individual generator by passing the relevant config(s) as an argument to the script, for example./bin/generate-samples.sh bin/configs/java*
. For Windows users, please run the script in Git BASH.master