Skip to content

BE013 – Register Endpoint Refactor#85

Open
Diya223287452 wants to merge 7 commits into
mainfrom
be013-diya
Open

BE013 – Register Endpoint Refactor#85
Diya223287452 wants to merge 7 commits into
mainfrom
be013-diya

Conversation

@Diya223287452
Copy link
Copy Markdown
Collaborator

Ticket

BE013 – Register Endpoint Refactor

Description

This PR refactors the register endpoint to improve validation handling, standardise API responses, and better align the endpoint with backend architecture principles.

Work Completed

  • Added reusable register validation utility
  • Added email format validation
  • Added password validation
  • Added required field validation
  • Standardised success and error response structure
  • Added proper HTTP status codes
  • Improved error handling and response consistency
  • Refactored backend structure into controllers, routes, validators, and utils

Validation Cases Tested

  • Successful registration
  • Missing required fields
  • Invalid email format
  • Duplicate email registration
  • Validation error responses

Result

The register endpoint is now more maintainable, reusable, scalable, and aligned with backend API best practices.

image image image image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant