This Flask-based API provides CRUD endpoints for managing finance & investment blogs stored in MongoDB.
- List all blogs:
GET /api/blogs - Get single blog:
GET /api/blogs/<id> - Create blog:
POST /api/blogs(multipart/form-data: heading, title, short_content, content, date, image) - Update blog:
PUT /api/blogs/<id>(multipart/form-data) - Delete blog:
DELETE /api/blogs/<id>
- Clone the repo.
- Copy
.env.exampleto.envand fill yourMONGO_URI. - Install:
pip install -r requirements.txt