Commit Graph
3 Commits
Author SHA1 Message Date
dahyeon 2f027a361b Refactors API responses and data schemas
Enhances Swagger API documentation by enabling class-validator shim, recognizing entity DTOs, and adding YAML support for raw definitions. Standardizes error handling by transitioning from RxJS's `NotFoundError` to NestJS's `NotFoundException`.

Refactors DTOs and Mongoose schemas across the `Article`, `Taxonomy`, and `Content` modules. This includes renaming DTOs for consistency, integrating `class-transformer` for model-to-DTO conversion, and adding `class-validator` for improved schema validation.

The `Content` data model is redesigned to be more flexible, shifting from a fixed site header structure to a dynamic key-label-sections model that embeds taxonomy references. This allows for more generic and configurable content retrieval.

Updates `Article` and `Taxonomy` services and controllers to fetch specific items by slug or ID and return properly structured DTOs.
2025-11-15 05:51:54 +00:00
dahyeon f77f5f9543 Adds article retrieval and taxonomy path APIs
Implements endpoints to fetch article details and associated taxonomy paths by slug, enhancing content discovery and structure.

Introduces response DTOs and updates data models to support richer metadata and timestamp fields for improved API consistency.
2025-11-13 16:30:19 +00:00
dahyeon 9d65fbd235 first commit 2025-11-13 15:46:15 +00:00