This is an external open-source GitHub repository imported into the WOCSOL Marketplace for discovery. The original repository owner is the primary creator.
๐งธ CRUD (Create, Read, Update, Delete) Operations
๐งธ CRUD (Create, Read, Update, Delete) Operations
--- ```markdown # ๐งธ Toy Store API (FastAPI + Python) A beginner-friendly project built with **FastAPI** to explore the fundamentals of Python API development. The API simulates a simple **Toy Store** where you can **add, list, update, and delete toys** using in-memory storage (Python lists & dictionaries). --- ## ๐ Project Goal The main goal of this project is to **learn FastAPI basics** and core **Python API concepts** through hands-on practice. --- ## โจ Features - โ **Add Toys** โ Create new toy entries. - ๐ **List Toys** โ Retrieve all stored toys. - โ๏ธ **Update Toys** โ Modify toy details. - โ **Delete Toys** โ Remove toys from the collection. *(Note: Data is stored in memory only and resets when the server restarts.)* --- ## ๐ ๏ธ Skills Practiced - โ FastAPI routes (`@app.get`, `@app.post`, `@app.put`, `@app.delete`) - โ Handling **JSON requests & responses** - โ Managing data with **Python lists & dictionaries** - โ Understanding **CRUD API patterns** --- ## ๐ Project Structure ``` toystore-api/ โโโ main.py # FastAPI application โโโ requirements.txt # Project dependencies โโโ README.md # Project documentation ```` --- ## โก Installation & Setup 1. **Clone the repository** ```bash git clone https://github.com/your-username/toystore-api.git cd toystore-api ```` 2. **Create a virtual environment (optional but recommended)** ```bash python -m venv venv source venv/bin/activate # Mac/Linux venv\Scripts\activate # Windows ``` 3. **Install dependencies** ```bash pip install -r requirements.txt ``` 4. **Run the FastAPI server** ```bash uvicorn main:app --reload ``` --- ## ๐ API Endpoints | Method | Endpoint | Description | | ------ | ------------ | ------------------ | | GET | `/toys` | List all toys | | POST | `/toys` |
Ask questions or discuss this product. New comments are reviewed before publishing.
Loading comments...