Open p1-dta opened 6 months ago
That's not exactly what I would recommend (naming wise).
I prefer to call the directory api/
, and have a directory structure where the __init__.py
contains the APIRouter
, with the prefix based on the directory it is in.
@Kludex to clarify this point, the fastapi.FastAPI object ("app") is located in project/app.py
, and the main router in project/api/__init__.py
? What name would you prefer ? TBH I never took the time to think of a better name. What do you suggest?
@Kludex bump?
I think this repository is a good idea!
Here is my first contribution, more oriented around code and file layout than technical stuff. However, this approach has been very helpful to me and teammates over the past few years.
What do you think?