Skip to content

sadeed12345/internal

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

m2c-biomechanics-backend


Login

/user/login

Endpoint:

Method: POST
Type: RAW
URL: http://localhost:6091/user/login
Description: Here user will provide valid email address and password to login

Body:

{
"email":"a.nazir@gmail.com",
"password":"abcd"
}

**_Sample Response:_**

```js
{
    "userId": 4,
    "email": "a.nazir@gmail.com",
    "status": true,
    "createdDate": "2022-08-12T08:24:30.672Z"
}

Status Code: 200


/user/register

Endpoint:

Method: POST
Type: RAW
URL: http://localhost:6091/user/register
Description: Here user will provide valid email address and password with AtLeast 6 characters in length contain at least 1 small case, 1 Upper case and at least 1 number or special character

Body:

{
"email":"a.nazirr@gmail.com",
"password":"aaaaaA1"
}

**_Sample Response:_**

```js
{
    "userId": 4,
    "email": "a.nazir@gmail.com",
    "message": "Success"
}

Status Code: 200


User

/user/logout

Endpoint:

Method: POST
Type: RAW
URL: http://localhost:6091/user/logout
Description: Client session will expire when this api call and user logout from system

Body:

{
	"loggedUserId":4
}

**_Sample Response:_**

```js
{
    "message": "Success"
}

Status Code: 200


Back to top

Made with ♥

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published