Feature Request
Is your feature request related to a problem? Please describe.
Currently one can either generate the API or the template (html/htmx) scaffold. In most cases i would want both.
Describe the solution you'd like
Just supply both scaffolds at the same time:
cargo loco g scaffold --api --htmx posts name:string likes:big_int
This should just generate both scaffolds, they shouldn't really conflict.
In most cases if something like filtering should be supported you obviously need to add parsing of the filters etc. but that concern is not part of the scaffold generator and probably shouldn't be.
Describe alternatives you've considered
None. This feature would add a lot of convenience if both is needed.
Are you open for contributions on this? Any pointers?
Feature Request
Is your feature request related to a problem? Please describe.
Currently one can either generate the API or the template (html/htmx) scaffold. In most cases i would want both.
Describe the solution you'd like
Just supply both scaffolds at the same time:
This should just generate both scaffolds, they shouldn't really conflict.
In most cases if something like filtering should be supported you obviously need to add parsing of the filters etc. but that concern is not part of the scaffold generator and probably shouldn't be.
Describe alternatives you've considered
None. This feature would add a lot of convenience if both is needed.
Are you open for contributions on this? Any pointers?