Skip to content

raiego/fastapi-menu-restaurant-python

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

5 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

🍽️ Restaurant Menu API (FastAPI)

A REST API built with Python and FastAPI that retrieves and exposes restaurant and menu data through HTTP endpoints.

This project was created to practice backend development, API design, and working with external data sources using modern Python tools.

FastAPI is a modern Python framework designed for building fast and efficient APIs with automatic documentation and type-based validation.

πŸ“Œ About the Project

This API provides endpoints to retrieve restaurant information and their menus from a dataset.

It demonstrates core backend concepts such as:

REST API development

Data fetching from external sources

Query parameters

Endpoint design

JSON responses

The project serves as a practical study of API development with FastAPI.

βš™οΈ Technologies Used

Python

FastAPI

Requests

Uvicorn (ASGI server)

JSON

πŸš€ Features

Retrieve a list of restaurants

Filter restaurants by name

Access menu data for specific restaurants

JSON API responses

Automatic API documentation with Swagger UI

πŸ› οΈ Running the Project Locally 1️⃣ Clone the repository git clone https://github.com/raiego/fastapi-cardapio-restaurantes-python.git 2️⃣ Navigate to the project folder cd fastapi-cardapio-restaurantes-python 3️⃣ Create a virtual environment python -m venv venv

Activate it:

Windows

venv\Scripts\activate

Linux / Mac

source venv/bin/activate 4️⃣ Install dependencies pip install -r requirements.txt 5️⃣ Run the API uvicorn main:app --reload

The API will be available at:

http://127.0.0.1:8000 πŸ“š API Documentation

FastAPI automatically generates interactive documentation.

You can access it at:

http://127.0.0.1:8000/docs

or

http://127.0.0.1:8000/redoc πŸ“‚ Project Structure fastapi-cardapio-restaurantes-python β”‚ β”œβ”€β”€ main.py β”œβ”€β”€ requirements.txt └── README.md 🎯 What I Learned

Building REST APIs with FastAPI

Handling HTTP requests and responses

Working with JSON data

Designing clean API endpoints

Using Python for backend web development

πŸ“„ License

This project is for educational purposes.

About

Python API built with FastAPI that provides access to restaurant menus through REST endpoints. Designed as a practical example for learning how to build simple APIs and consume external data sources.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages