Feature Request: Add CLI Commands for FastAPI Similar to rails generate
and rails routes
#142
Unanswered
sarvesh4396
asked this question in
Questions
Replies: 1 comment
-
Hey,
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
First Check
Commit to Help
Example Code
NA
Description
I recently worked with rails and i am curious that can some of its features can be implemented in
fastapi
it-selfI propose enhancing the FastAPI CLI with developer-friendly commands like:
fastapi generate
Generate boilerplate for models, routes, controllers, etc.
Example:
fastapi generate model User --fields "name:str,email:str,is_active:bool"
fastapi routes
List all routes in a structured format:
Output:
Why?
We may Standardize the structure.
Operating System
Linux, Windows, macOS
Operating System Details
Windows 10
Python Version
3.10
Additional Context
No response
Beta Was this translation helpful? Give feedback.
All reactions