Skip to content

Yazan-Dev9/FastAPI_Demo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

FastAPI People Demo

A simple RESTful API built with FastAPI for managing a list of people (id, name, age).
This project is intended for learning and experimentation purposes.


Features

  • List all people
  • Add new person
  • Get person by ID
  • Update person data
  • Delete person

Requirements

  • Python 3.8+
  • fastapi
  • uvicorn
  • pydantic

Install requirements with:

bash

pip install -r requirements.txt

How to Run

Start the server locally with:

bash

uvicorn main:app --reload

Replace main with your Python filename if different.

The API will be available at http://localhost:8000

You can test and explore the API via the interactive docs:


Example Endpoints

  • GET /all        List all people
  • GET /{id}        Get person by ID
  • POST /          Add new person (JSON body)
  • PUT /{id}        Update person data
  • DELETE /{id}      Delete person

Live Demo


License

MIT License.
For learning and demo purposes.

About

A simple RESTful API built with FastAPI for managing a list of people.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages