Skip to content

Conversation

@bhuvanh66
Copy link

ℹ️ Issue

Closes 53

📝 Description

Added a create users endpoint to /users in backend. This endpoint uses email, firstName, lastName, phone, role to create a user. I also had to modify the userService create function to not use the preset id and to have the phone field. I created unit tests for the user controller and user service to test the user routes.

✔️ Verification

I tested my route using Jest and created a sample user. I ran all of my tests and they passed.

🏕️ (Optional) Future Work / Notes

I had to slightly change the authController and sign_updto to include the phone field in order to pass the tests, since the create function in the userService was altered.

@Juwang110 Juwang110 self-requested a review October 5, 2025 13:32
Copy link

@Juwang110 Juwang110 left a comment

Choose a reason for hiding this comment

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

Overall looks good, just requires some refactoring, nice work!

@bhuvanh66 bhuvanh66 requested a review from Juwang110 October 29, 2025 04:18
Copy link

@Juwang110 Juwang110 left a comment

Choose a reason for hiding this comment

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

lgtm

Copy link
Collaborator

@sam-schu sam-schu left a comment

Choose a reason for hiding this comment

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

LGTM!!

@bhuvanh66 bhuvanh66 merged commit 29f9eb4 into main Nov 11, 2025
@bhuvanh66 bhuvanh66 deleted the BH/ssf-53-create-user-endpoint branch November 11, 2025 23:52
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.

4 participants