[Backend] Add OpenAPI / Swagger JSDoc annotations to analytics and compliance routes
Overview
backend/src/routes/v1/analytics.routes.ts and backend/src/routes/v1/compliance.routes.ts were recently added, but their endpoints lack OpenAPI JSDoc annotations for backend/src/config/swagger.ts.
Problem
- The interactive API documentation at
/api-docsis missing schema definitions and query parameter descriptions for analytics and compliance endpoints.
Proposed Changes
- Add
@openapiJSDoc blocks to all routes inbackend/src/routes/v1/analytics.routes.tsandbackend/src/routes/v1/compliance.routes.ts. - Define request parameters, response schemas, and status codes (
200,400,401,429).
Acceptance Criteria
- [ ] Analytics and compliance routes appear under their respective tags in the generated OpenAPI spec.
- [ ] All query parameters and JSON responses are documented accurately.
- [ ] Swagger spec builds without warnings.
@Yilkash has applied to work on this issue as part of the Stellar Wave Program's 10th wave.
Can i work on this?
âšī¸ Repo Maintainers: To accept this application, review their application or assign @Yilkash to this issue.
Congratulations, @Yilkash! đ Your application was accepted by the repo's maintainers, and the issue is due on October 22, 2026.
đ§âđģ @Yilkash: Please resolve the issue such that the repo's maintainers have enough time to review your contribution before the due date. You'll earn Points for completing the issue on-time, which will make you eligible for a share of the Stellar Wave Program's reward pool.
[!WARNING] When opening a PR, please link it to this issue to ensure it gets tracked accurately. Points are awarded when this issue is marked as completed by the maintainer.
đ¤ Repo maintainers: Please keep an eye on the contributor's progress and review their work before the due date. You can manage this issue, including adjusting its complexity and points, here.
đ Happy Wave đ
This issue has been completed by @Yilkash as part of the Stellar Wave Program's 10th Wave đĨŗ
đ @Yilkash: You earned 200 Points for completing this issue! Once the Wave's rewards are finalized, you'll be eligible for a percentage of the Wave's reward pool based on the percentage of total points you've earned. Learn more here. You can also Leave a review to share your experience working on this issue.
đ§âđģ Repo maintainers: How'd the contributor do? Leave a review to share your experience working with them.