Skip to content

DrMohammedhbi/fastapi_p1

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

FastAPI Item Management

This repository contains a FastAPI application that allows for the management of items using a RESTful API. The application supports creating, retrieving, updating, and deleting items.

Overview

In this project, we have improved the code from the previous example. The enhancements focus on better error handling and response models.

Features

  • Get all items: Retrieve a list of all items.
  • Create an item: Add a new item to the list.
  • Get an item by ID: Retrieve a specific item using its ID.
  • Update an item: Modify an existing item.
  • Delete an item: Remove an item from the list.

Improvements

The code has been improved from the previous version, which can be found in the following video:

The latest improvements are showcased in this video:

Running FastAPI on Google Colab: A Step-by-Step Guide:

Installation

To run this application, you need to have Python and FastAPI installed. You can install FastAPI using pip:

bash pip install fastapi[all]

Usage

Run the application using:

bash uvicorn main:app --reload

You can then access the API at http://127.0.0.1:8000.

License

This project is licensed under the MIT License.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published