-
Notifications
You must be signed in to change notification settings - Fork 126
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
[Roadmap] Server generator #11
Comments
Optionally it may generate an async version using https://github.com/amphp/aerys |
Hey, I'd like to contribute to this feature. I could start with the controller interfaces. Although I like the flexibility of separate interface for each endpoint, I would like to be able to optionally group them by resource. Ideally I'd like to have UserControllerInterface, CarControllerInterface, etc. Tags could be used for this purpose, what do you think? |
In my company, we started a new project which is OpenAPI first. We first wrote the schema which defines the contract and now, we are building the server. We currently use Sadly, Then for server generation, I would like to use some ADR generator with actions which use Symfony HttpFoundation Request/Response and would use Symfony messenger to send messages into the application and implement CQRS pattern. Someone would probably use PSR7 instead of HttpFoundation and juste generate some XML routes which map paths to hand written controllers. As a first step in the direction of a server generator, I would like to allow generators to be configured. This would solve the generate only the models and the normalizers from an openapi file but neither the client nor the endpoints. This configuration could also allow the use of custom generators to allow users to generate anything they have in mind. What do you think? |
First of all, glad you take jane to power up your project 🚀 In case server feature comes, there will be a client mode with what we have today, and a server mode which won't generate stuff you don't want but only server-side related stuff 😉 I totally agree with Request/Response based on Symfony HttpFoundation they're both powerfull and fit to what we do need. About Symfony HTTP Client or PSR-7, I'll prefer PSR-7 approach since HTTP Client does support PSR-7 and I prefer to be compatible with most of possible implementations instead of just one. |
Add a server generator which should generate
The text was updated successfully, but these errors were encountered: