flask/examples/rest_api_blog
2025-06-03 12:32:04 +00:00
..
app.py [pre-commit.ci lite] apply automatic fixes 2025-06-03 12:32:04 +00:00
README.md Add REST API blog example with full CRUD and unit tests 2025-06-03 20:28:43 +08:00
test_app.py [pre-commit.ci lite] apply automatic fixes 2025-06-03 12:32:04 +00:00

REST API Blog Example (Flask)

This is a simple Flask REST API example added inside the Flask repo fork for the IT6 Final Drill.

Features

  • Full CRUD operations for blog posts (id, title, content)
  • Proper error handling and HTTP status codes
  • Unit tests with 100% coverage (using unittest)

How to run

  1. Install dependencies (preferably in a virtual environment):
pip install flask