r/FastAPI • u/Best_Ad_3595 • Jan 29 '25
Tutorial Resources to become an expert at writing APIs
Hi guys, I want to learn how to design and write APIs and I’m prepared to spend as long as it takes to become an expert (I’m currently clueless on how to write them)
So please point me to resources that have helped you or you recommend so I can learn and get better at it.
42
Upvotes
12
u/CrusaderGOT Jan 29 '25
The official docs is best for me, it has both beginner and advanced teachings.
8
u/pentapods Jan 29 '25
Start by becoming ass at writing APIs. I think you should pick a small project to work on and learn by doing. Kind people will look or even use your API. They will even tell you how bad your api is. Those experiences are 10x more valuable than books out there because it sticks.
So write bad apis first and share.
4
u/feoh Jan 29 '25
So there are multiple levels to becoming an "expert" in anything. Folks here have posted some great FastAPI resources, but that's not the question I see you asking.
I say if you want to become an expert in designing great APIs you need to focus on core software development competencies because from a design perspective IMO there's very little difference between designing a great REST API and designing a great traditional API comprised of methods or objects or whatever.
To that end, I think The Pragmatic Programmer is a classic and an amazingly good resource.
Also, given that FastAPI through Pydantic is an extension of core Python syntax, Fluent Python can't be beat.
Good luck on your journey!
6
u/ZuploAdrian Jan 29 '25
Hey - my blog has a lot of tips for improving your API development skills. We just worked on a blog with Marcelo (FastAPI expert) on E2E FastAPI development. It includes stuff most tutorials skip - like deployment/hosting, security, and documentation. I would appreciate feedback: https://zuplo.com/blog/2025/01/26/fastapi-tutorial
2
u/kudamk_ Jan 29 '25
Don't aim too high. How do you go to a place you don't know you just search or ask then go.
Just think of a small crud app and work on it don't worry about clean good code just make sure it works.Then from there start asking how to do this and this and this and join all the pieces I mean just get your hands dirt.
I learned fastapi in a day but just building a blog like api were users can just create read update post and delete .still working on it as I learn fast api concepts.
Use the documentation and few tutorials on YouTube
2
u/Kitchen-Natural8709 Jan 29 '25
Commenting to stay on this thread. I too want to learn API, currently I have no coding experience and using Zapier. I want to be able to understand API documentation to either use zapier more effectively, and eventually take the training wheels off and use something not as expensive. Thanks all! Any advice is welcome
2
u/CzyDePL Jan 29 '25
There are entire books at writing REST APIs alone
2
u/aliparpar Jan 31 '25 edited Jan 31 '25
You become an expert in API development by writing a lot of APIs. Books and docs can help to give you ideas on how to structure your code but ultimately, you need to hit the complexity problem of a large codebase to get the idea how to manage it effectively. Then you become an expert through experience of building lots of APIs.
I’ve talked about some API patterns and how to structure your FastAPI projects in the second chapter my book when I introduce FastAPI.
It mostly focuses on integrating FastAPI with generative ai models. You can get it from Amazon.
Building Generative AI Services with FastAPI (O’Reilly, 2025)
Amazon UK
Amazon US
Table of Contents:
3
u/nuthinbutneuralnet Jan 29 '25
I basically used a combination of this book (https://a.co/d/enhf3Vc), this YouTube video (https://youtu.be/gQTRsZpR7Gw) and just started coding using Cursor and asking/learning from the AI
1
u/[deleted] Jan 30 '25
I just have my ai agent write all the scripts and code for my apis. I put the NBA api into chat gpt using directions she gave me. Can turn books into server or any file
1
u/fraisey99 Feb 01 '25
A good backend course to take and understand concepts in details is Hussein Nassers courses on udemy. Definitely will help you write better APIs
1
u/hellalosses Jan 29 '25
Just read the documentation.
0
u/DeadProfessor Jan 29 '25
Ward
-4
u/ZachVorhies Jan 29 '25
This is opinionated advice and not everyone will agree with this, but here goes.
-4
u/[deleted] Jan 29 '25
My custom gpt can write manuals to do anything we have done together in the past. we have turned books, manuals, its external data base and the NBA API into APIs the gpt can use and write out the process for
1
u/[deleted] Jan 30 '25
[removed] — view removed comment