---
title: "Discussion on \"How to build a basic API using FastAPI?\" | Hashnode"
description: "Discussion on \"How to build a basic API using FastAPI?\". A guide on all the essentials you need to build a FastAPI backend."
url: "https://hashnode.com/posts/how-to-build-a-basic-api-using-fastapi/65fb48a3017ceec787b9ac65"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [How to build a basic API using FastAPI?](https://kevincoder.co.za/how-to-build-a-basic-api-using-fastapi?utm_source=hashnode&utm_medium=feed)

A guide on all the essentials you need to build a FastAPI backend.

Mar 20, 2024 · 7 min read · kevincoder.co.za  
Updated Mar 22, 2024  
Read the article

-   [#fastapi](https://hashnode.com/tag/fastapi)
-   [#apis](https://hashnode.com/tag/apis)
-   [#django](https://hashnode.com/tag/django)
-   [#python](https://hashnode.com/tag/python)

## Written by

[Kevin Naidoo](https://hashnode.com/@kwnaidoo)

@kwnaidoo · Durban, South Africa

  
[View profile](https://hashnode.com/@kwnaidoo)

Passionate & experienced tech enthusiast

On kevincoder.co.za, I write about my journey as a developer working across Django, Go, and everything in between, from large-scale systems to small, useful tools. Programming has been my passion for about 2 decades now, and I'm still loving it, so I experiment a lot and sometimes write about it.

## Responses 4

Markdown supported · ⌘↵ to post

[Raghuveer Sriraman](https://hashnode.com/@raghuveersriraman)

[Mar 24, 2024](https://hashnode.com/posts/how-to-build-a-basic-api-using-fastapi/65fb48a3017ceec787b9ac65/comment/660060d92976a0ba692b873b)

This was great! I've been wondering if I should check out FastAPI and this gave me the push I needed, thanks!

[Rishab Kumar](https://hashnode.com/@rishabkumar7)

[Mar 23, 2024](https://hashnode.com/posts/how-to-build-a-basic-api-using-fastapi/65fb48a3017ceec787b9ac65/comment/65fee9addc208f07b22fb446)

Love Pydantic and FastAPI, has made my life easier when creating APIs.

[Timo](https://hashnode.com/@TimoCodes)

[Mar 23, 2024](https://hashnode.com/posts/how-to-build-a-basic-api-using-fastapi/65fb48a3017ceec787b9ac65/comment/65feaebd239314e824129127)

Nice article. Made a similar thing but with the simplest possible idea for Flask django and fastapi

[Artur Stępniak](https://hashnode.com/@r2rstep)

[Mar 22, 2024](https://hashnode.com/posts/how-to-build-a-basic-api-using-fastapi/65fb48a3017ceec787b9ac65/comment/65fd78ba1bc3ae5aa51d76fe)

it's worth noting that an ecosystem is being build around FastAPI by community. There are libs that enable fast CRUD API building, admin panels etc. I wonder if that becomes mature enough to be a valid replacement for Django.

As for asynchronuos programming I invite everyone to take a look at my recent post about bugs that can be introduced with async [tltales.com/hazards-of-backend-async-ronization-i…](https://tltales.com/hazards-of-backend-async-ronization-in-python)

[Raahul Seshadri](https://hashnode.com/@techphilosopher)

[Mar 21, 2024](https://hashnode.com/posts/how-to-build-a-basic-api-using-fastapi/65fb48a3017ceec787b9ac65/comment/65fc77774266b6942906a166)

Wanted to add that Pydantic has helped me structure a lot of business logic code as well, and they become much more easy to document and maintain by people who didn’t develop it. There’s a lot of long-term value in terms of maintainability and this velocity of adding new features.

[Kevin Naidoo](https://hashnode.com/@kwnaidoo)

[Mar 22, 2024](https://hashnode.com/posts/how-to-build-a-basic-api-using-fastapi/65fb48a3017ceec787b9ac65/comment/65fc77774266b6942906a166#reply-65fd2774453ffa8bfc147c47)

Thanks for reading. I absolutely 100% agree, it just makes validation and readability so much better.
