Sweep: Add a new backend service to this blog app that the user can view the blog by the "category" of the blog similar to the "tag" (β Sandbox Passed) #5
This pull request adds a new backend service to the blog app that allows users to view blogs by category, similar to the existing functionality for viewing blogs by tag.
Summary
Added getBlogsByCategoryId method to BlogDao.java
Added CategoryDao.java with methods to list all categories and get category by ID
Added Category entity with fields for category name and description
Updated Blog entity to include a Category field
Updated BlogService.java to include getBlogsByCategory method
Updated BlogDao.xml to include SQL query for getting blogs by category
Added CategoryDao.xml with SQL queries for listing all categories and getting category by ID
Fixes #3.
π Latest improvements to Sweep:
New dashboard launched for real-time tracking of Sweep issues, covering all stages from search to coding.
Integration of OpenAI's latest Assistant API for more efficient and reliable code planning and editing, improving speed by 3x.
Description
This pull request adds a new backend service to the blog app that allows users to view blogs by category, similar to the existing functionality for viewing blogs by tag.
Summary
getBlogsByCategoryId
method toBlogDao.java
CategoryDao.java
with methods to list all categories and get category by IDCategory
entity with fields for category name and descriptionBlog
entity to include aCategory
fieldBlogService.java
to includegetBlogsByCategory
methodBlogDao.xml
to include SQL query for getting blogs by categoryCategoryDao.xml
with SQL queries for listing all categories and getting category by IDFixes #3.
π Latest improvements to Sweep:
π‘ To get Sweep to edit this pull request, you can: