Closed Cytochrome123 closed 2 weeks ago
Refactor our current API endpoint for retrieving all blog entries to have the following route and response body.
GET /api/v1/blogs
Status Code: 200 OK
{ "data": [ { "id": "3fa85f64-5717-4562-b3fc-2c963f66afa6", "title": "string", "image_url": "string", "content": "string", "published_date": "2024-08-24T17:27:12.200Z", "updated_date": "2024-08-24T17:27:12.200Z", "author_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6", "category": "Startup", "comments": [ { "id": "3fa85f64-5717-4562-b3fc-2c963f66afa6", "content": "string", "created_at": "2024-08-24T17:27:12.200Z" } ] } ], "message": "string", "status_code": 0 }
Description
Refactor our current API endpoint for retrieving all blog entries to have the following route and response body.
Route:
GET /api/v1/blogs
Response Body:
Status Code: 200 OK