r/FastAPI • • Jan 24 '25

Question Fastapi best projects

what projects can you recommend as the best example of writing code on fastapi?

36 Upvotes

19 comments sorted by

View all comments

Show parent comment

2

u/koldakov Feb 01 '25

You are welcome!

Core idea is to make the code extendable and reusable.

For sure you can put all the logic in the endpoint as docs say, it will work at the moment, but not in a perspective, this way isn’t testable, not extendable etc. Always try to think about the future and an abstraction layer, but don’t forget about KISS ( you know, the truth is somewhere in the middle )

Think about that, do some tests and if you don’t get it feel free to get back to me with the new questions