You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
### Description
<!-- Provide a comprehensive description here about what your PR aims to
solve. -->
<!-- You may also add additional context -->
- Refactor Comments into our Layered architecture by creating dedicated
mappers, dto, interface, and controller just like article
- separate mappers into atomic files
---
### PR Checklist
<!-- Please do not remove this section -->
<!-- Mark each item with an "x" ([ ] becomes [x]) -->
- [x] Read the Developer's Guide in
[CONTRIBUTING.md](https://github.com/agnyz/bedstack/blob/main/CONTRIBUTING.md)
- [x] Use a concise title to represent the changes introduced in this PR
- [x] Provide a detailed description of the changes introduced in this
PR, and, if necessary, some screenshots
- [x] Reference an issue or discussion where the feature or changes have
been previously discussed
- [x] Add a failing test that passes with the changes introduced in this
PR, or explain why it's not feasible
- [x] Add documentation for the feature or changes introduced in this PR
to the docs; you can run them with `bun docs`
<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->
## Summary by CodeRabbit
- **New Features**
- Introduced a dedicated comments API with endpoints to create,
retrieve, and delete comments on articles.
- Added structured response formats for single and multiple comments.
- **Refactor**
- Separated comment-related routes from the articles API to a standalone
comments controller.
- Improved data mapping for articles and comments using dedicated mapper
functions and centralized exports.
- **Bug Fixes**
- Corrected import paths for comments schema to ensure consistency.
- **Chores**
- Enhanced type safety and maintainability with new and updated
interfaces for comments.
- Updated documentation and response schemas for improved API clarity.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->
---------
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
0 commit comments