Track your tasks
| # | Task Name | Description | Time Allotted | Proposed Date | Start Date | End Date | Time Taken | Comment | Status |
|---|---|---|---|---|---|---|---|---|---|
| 1 | Write unit test for non-existent blog post | Develop a unit test to verify that a request for a non-existent slug returns an appropriate error. | 0 hr 40 min | 02-04-2026 11:24:54 | 0 hr 0 min | Pending | |||
| 2 | Write unit test for retrieving existing blog post | Develop a unit test to ensure fetching a valid blog post slug returns correct data. | 0 hr 40 min | 02-04-2026 11:24:54 | 0 hr 0 min | Pending | |||
| 3 | Return full blog post content as JSON object | Format and send all details of the requested blog post, including full content. | 0 hr 25 min | 02-04-2026 11:24:54 | 0 hr 0 min | Pending | |||
| 4 | Handle case where blog post slug is not found | Return a 404 Not Found error if the specified slug does not correspond to an existing post. | 0 hr 25 min | 02-04-2026 11:24:54 | 0 hr 0 min | Pending | |||
| 5 | Implement logic to fetch a single blog post by its slug | Write the database query to retrieve a specific blog post using its unique slug. | 0 hr 30 min | 02-04-2026 11:24:54 | 0 hr 0 min | Pending | |||
| 6 | Create GET `/api/blog/{slug}` route definition | Define the dynamic API route for fetching a single blog post. | 0 hr 20 min | 02-04-2026 11:24:54 | 0 hr 0 min | Pending |