Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 

Repository files navigation

E-Commerce API (FastAPI)

This project is a simple E-commerce API built using FastAPI as part of the FastAPI Internship Day-1 assignment.
It demonstrates the basics of REST API development, endpoint creation, data filtering, and JSON responses.

The API simulates a small online store backend where users can view products, search items, filter by category, and check stock availability.


Features

  • View all products
  • Get product by ID
  • Filter products by category, price, and stock
  • Show only in-stock products
  • Search products by keyword (case-insensitive)
  • Store summary endpoint
  • Best deal (cheapest product) & Premium pick (most expensive product)

Tech Stack

  • Python
  • FastAPI
  • Uvicorn

API Endpoints

Method Endpoint Description
GET / Home endpoint
GET /products Get all products
GET /products/{product_id} Get product by ID
GET /products/filter Filter products
GET /products/category/{category_name} Products by category
GET /products/instock Only in-stock products
GET /store/summary Store overview
GET /products/search/{keyword} Search products
GET /products/deals Cheapest & most expensive product

About

This project is a simple E-commerce API built using FastAPI as part of an internship assignment. It demonstrates core API concepts such as creating endpoints, filtering products, searching by keyword, and checking stock availability. The API returns structured JSON responses and simulates a basic online store backend.

Resources

Stars

Watchers

Forks

Releases

Packages

Contributors

Languages