Add REST API blog example with full CRUD and unit tests
This commit is contained in:
parent
a5f9742398
commit
6f54c4a1f6
3 changed files with 126 additions and 0 deletions
15
examples/rest_api_blog/README.md
Normal file
15
examples/rest_api_blog/README.md
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
# 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):
|
||||
|
||||
```bash
|
||||
pip install flask
|
||||
Loading…
Add table
Add a link
Reference in a new issue