You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Feature Request: Instead of just exposing the crud endpoints, can it generate the actual methods in a file? #216
Idea is to utilize piccolo FastAPIWrapper to generate both router files and service/repository files for the basic crud actions on a table.
Reference: https://docs.nestjs.com/recipes/crud-generator
Advantages:
It can then be easy to override logic based on one's use cases.
The generated method can then be called from other services directly instead of relying only on a HTTP call
Useful to scaffold a larger fastapi project with minimal effort.
BTW, I have been already enjoying working with piccolo with its many awesome features. Thanks a lot.
Activity
dantownsend commentedon Mar 4, 2023
It's an interesting idea.
We currently have some code scaffolding available via
piccolo asgi new, but this is just for a new project.We also have
piccolo app newwhich generates a new Piccolo app, but doesn't contain any endpoints.If we were to add more scaffolding, it would probably be augmenting these existing commands.
For example
piccolo asgi route.