feat: improve API documentation and OpenAPI specification#2901
feat: improve API documentation and OpenAPI specification#2901Arpita2919 wants to merge 1 commit into
Conversation
GSSoC Label Checklist 🏷️@Priyanshu-byte-coder — please apply the appropriate labels before merging: Difficulty (pick one):
Quality (optional):
Validation (required to score):
|
|
Hey @Priyanshu-byte-coder, please review and merge it. |
|
Hi @maintainers, I've addressed the requested issue and completed the implementation. The changes are documentation-only and include comprehensive updates to the API documentation to better reflect the current implementation. I have also reviewed the changes to ensure they are consistent with the existing project structure. All relevant checks have passed on my side, and the PR is ready for review. When you have time, could you please review and merge this PR if everything looks good? If any changes are required, I'd be happy to make them. Thank you for your time and feedback! |
Summary
This PR improves the project's API documentation by auditing the existing implementation and updating the documentation to accurately reflect the current API. It enhances both the OpenAPI specification and the developer-facing documentation with request/response schemas, authentication details, error handling, and usage examples.
Closes #2871
Type of Change
What Changed
api.mdto provide accurate and comprehensive API documentation.openapi.yamlto match the current API implementation with complete endpoint definitions.src/app/api/metrics/,src/app/api/goals/,src/app/api/user/, and other public API routes as needed.How to Test
api.mdand verify that all documented endpoints match the current implementation.openapi.yamlspecification using Swagger Editor or the project's/api-docsendpoint.Expected result:
Screenshots / Recordings
Not applicable (Documentation-only changes).
Checklist
console.log, debug code, or commented-out blocksnpm run lintpasses locally (not applicable for documentation-only changes if lint is not configured for docs)npm run type-check) (not applicable if no source code was modified)Accessibility (UI changes only)
Not applicable.
Additional Context
This PR contains documentation-only changes and does not modify application logic, API behavior, or runtime functionality. The goal is to improve developer experience by providing complete and accurate API documentation that stays aligned with the current implementation.