Aliaksandr Haiko

Cafe and Wifi API

A RESTful API to manage and discover cafes with amenities like WiFi, power sockets, and coffee prices.

Technologies used:
Flask REST CRUD SQLAlchemy Postman
🌶️

📋 About the project

This project is a fully functional REST API that allows users to perform CRUD operations on a database of cafes. Users can get a list of all cafes, search by location, get a random cafe, add new cafes, update coffee prices, and delete cafes. The API returns clean JSON responses, making it easy to integrate into front-end applications.

✨ Key features

  • ✓ GET /all - Retrieve all cafes
  • ✓ GET /search?loc= - Search cafes by location
  • ✓ GET /random - Get a random cafe suggestion
  • ✓ POST /add - Add a new cafe to the database
  • ✓ PATCH /update-price/ - Update coffee price
  • ✓ DELETE /report-closed/ - Delete a cafe (API key required)

📸 Project preview

Cafe and Wifi API