Skip to content

[LOCKLITE-114] Document the Next Auth API routes#70

Merged
vbetsch merged 14 commits intodevelopfrom
api/docs/114-next-auth
Aug 5, 2025
Merged

[LOCKLITE-114] Document the Next Auth API routes#70
vbetsch merged 14 commits intodevelopfrom
api/docs/114-next-auth

Conversation

@vbetsch
Copy link
Owner

@vbetsch vbetsch commented Aug 5, 2025

No description provided.

@vbetsch vbetsch requested a review from Copilot August 5, 2025 21:25
@vbetsch vbetsch self-assigned this Aug 5, 2025
@vbetsch vbetsch added documentation Improvements or additions to documentation api About endpoints and services labels Aug 5, 2025
@notion-workspace
Copy link

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR updates business error code references throughout the codebase and adds comprehensive Swagger documentation for Next Auth API routes. The changes support better API documentation and refactor error handling to use consistent enum naming.

Key changes:

  • Refactored business error code enum from BusinessErrorCodeEnumDto to BusinessErrorCodeEnum and updated all references
  • Added new DTO types for authentication-related API responses (session, providers, CSRF token, sign-in payload)
  • Added comprehensive Swagger documentation for all Next Auth API endpoints

Reviewed Changes

Copilot reviewed 14 out of 14 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
src/modules/shared/errors/business-error-code.enum.ts Renamed enum from BusinessErrorCodeEnumDto to BusinessErrorCodeEnum
src/modules/shared/errors/business-error.ts Updated import and type references to use the renamed enum
src/modules/shared/dto/output/errors/http.error.dto.ts Updated import and type reference for consistency
src/modules/api/errors/business/vaults/*.error.ts Updated imports and enum references in vault error classes
src/modules/shared/dto/output/body/*.dto.ts Added new DTO types for auth API responses with Swagger documentation
src/modules/shared/dto/models/provider.model.dto.ts Added provider model DTO with Swagger schema
src/modules/shared/dto/input/payloads/sign-in.payload.dto.ts Added sign-in payload DTO with Swagger documentation
src/modules/shared/dto/input/payloads/create-vault.payload.dto.ts Added password format specification to secret field
src/app/api/vaults/route.ts Changed Swagger description to summary for better documentation
src/app/api/vaults/[id]/route.ts Changed Swagger description to summary for consistency
src/app/api/auth/[...nextauth]/route.ts Added comprehensive Swagger documentation for all Next Auth API endpoints

@vbetsch vbetsch merged commit 8aec3b7 into develop Aug 5, 2025
4 checks passed
@vbetsch vbetsch deleted the api/docs/114-next-auth branch August 5, 2025 21:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

api About endpoints and services documentation Improvements or additions to documentation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants