Esse é um projeto com o intuito de ser aprovado na sprint 1 da pos graduação Puc-Rio do curso de desenvolvimento full stack
Use o package manager pip para instalar.
pip install -r requirements.txt
Ou ative o venv
.\venv\Scripts\activate
python app.py
POST /reviews Create a new review.
Request body
{
"title": "The Shawshank Redemption",
"year": 1994,
"type": "movie",
"rating": 9,
"description": "Two imprisoned men bond over a number of years, finding solace and eventual redemption through acts of common decency."
}
Response
{
"message": "Review created successfully!"
}
GET /reviews List all reviews.
Response
[
{
"id": 1,
"title": "The Shawshank Redemption",
"year": 1994,
"type": "movie",
"rating": 9,
"description": "Two imprisoned men bond over a number of years, finding solace and eventual redemption through acts of common decency."
}
]
DELETE /reviews/{id} Delete a review by id.
Response
{
"message": "Review deleted successfully!"
}
The API uses a SQLite database, which is created and initialized on startup. The database file is named reviews.db.