Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: implemented post api for user details #238

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

MahendraDani
Copy link
Contributor

Related Issue

Closes: #212

Description of Changes

  • Created a POST API for user Details

API Reference

Route Method Use
/users POST To create a new user and add its details

Features of API

  • Checks if the new user's email already exists in database, if it exists then returns 400 status code.
  • If the email is new, then the password of the user is hashed and then the user is saved in database.

Checklist:

  • My code adheres to the established style guidelines of this project.
  • I have conducted a self-review of my code.
  • I have included comments in areas that may be difficult to understand.
  • I have made corresponding updates to the project documentation.
  • My changes have not introduced any new warnings.

Screenshots

The following screen recording shows the working of API by making a request on route http://localhost:3000/users POST.

carbonops_fix_users.mp4

Please provide any necessary screenshots to illustrate the changes made.

@vercel
Copy link

vercel bot commented Jul 28, 2023

Someone is attempting to deploy a commit to a Personal Account owned by @SrijanShovit on Vercel.

@SrijanShovit first needs to authorize it.

Copy link
Owner

@SrijanShovit SrijanShovit left a comment

Choose a reason for hiding this comment

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

Hello MahendraDani, thanks for rising a Pull request, your contribution is valuable to us. The maintainers will review this Pull Request and provide feedback as soon as possible. Keep the great work up!

@MahendraDani
Copy link
Contributor Author

@shreya024 Once this PR is merged I will raise a PR for #211.

@vercel
Copy link

vercel bot commented Jul 29, 2023

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
carbonops-v2 ❌ Failed (Inspect) Jul 29, 2023 4:53pm

@MahendraDani
Copy link
Contributor Author

@shreya024 Are there any changes required?

@shreya024
Copy link
Collaborator

@shreya024 Are there any changes required?

Yeah @MahendraDani solve the vercel errors

@MahendraDani
Copy link
Contributor Author

@shreya024 would you please send the error log?

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

Successfully merging this pull request may close these issues.

User Details API
3 participants