Skip to content

Latest commit

 

History

History
30 lines (19 loc) · 872 Bytes

File metadata and controls

30 lines (19 loc) · 872 Bytes

FastAPI API Demo - Contacts

This repository demonstrates a simple API built with FastAPI for managing contacts. The API serves sample contact data and provides endpoints for retrieving, adding, and deleting contacts. The latter endpoints are provided as skeletons (returning a 501 error) so it's up to you to implement the actual functionality.

Setup Instructions

  1. Create a Virtual Environment
python3 -m venv venv
source venv/bin/activate # On Windows: venv\Scripts\activate
  1. Install Dependencies
pip install -r requirements.txt
  1. Run the API
uvicorn main:app --reload
  1. Open the app

Open http://localhost:8000 in your browser to see the app.

FastAPI also automatically generates OpenAPI documentation for your API. You can view it at http://localhost:8000/docs.