-
Notifications
You must be signed in to change notification settings - Fork 4
Sign Up Documentation
siddharthakonakanchi edited this page Dec 5, 2017
·
1 revision
This page enables the user to sign up to GatMeetUp Page
This is a POST method which enables to store details into the users table.This method also searches if the user is already existing .If the user already exists it returns a message that already an user exists with a given email id Upon success the counter value is incremented which is a four digit value and inserted into the database
/users/signup
GET
| Key | Description | Type | Required |
|---|---|---|---|
| Email Id of user | String | Yes | |
| password | User's password | String | Yes |
Status codes: 200,400,501
Example:
code: 200 OK
Table Name: users
| Key | Description | Type | Required |
|---|---|---|---|
| name | User Name | String | Yes |
| Email ID of the user | String | Yes | |
| location | Current location of the user | String | No |
| hometown | Hometown of the user | String | No |
| language | Language preferences | String | Yes |
| birthday | Date of birth of user | String | Yes |
| gender | Gender of user | String | No |
| bio | Short biography about the user | String | No |
| password | Encrypted password | String | Yes |
- Input
Details of User, Date in Calender Format andPasswordminimum of 6 length. - Click on Sign Up Button
Encryption : In order to store password in database and to provide security we are using encryption and decryption algorithms so passwords remain hidden More information can be obtained from https://www.npmjs.com/package/bcryptjs