Hi Narendra Kumar,
The Sign in Post API is ready.
This will be pushed to Dev Servers tomorrow. Meanwhile, as per discussion with Swapnil, merge the code at your end and test after the code is deployed tomorrow.
API URL [POST]: http://localhost:64597/Users/auth
Parameters to send :
{
"userName" : "DMSUSER",
"Password" : "Password@321"
}
After login, redirect to Review and sign page.
Sample responses:
The sample response for Success :
{ "id": 1, "userName": "DMSUSER", "password": null, "token": "Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1bmlxdWVfbmFtZSI6IjEiLCJuYmYiOjE1NDUxMzgzNzQsImV4cCI6MTU0NTc0MzE3NCwiaWF0IjoxNTQ1MTM4Mzc0fQ.3wCbVdcp0SHyNMHbG559dPNZda4e5qSDWODNAJ0Pp7E", "firstName": "DMSUserFirstname", "lastName": "DMSLastname" }
Sample response for User not found:
{ "status": "error", "message": "User does not exists.", "errorLevel": "Error", "code": 404, "description": "User does not exists." }
Sample response for incorrect details :
{ "status": "error", "message": "Username or password is incorrect", "errorLevel": "Error", "code": 404, "description": "Username or password is incorrect" }
CC: Swapnil Pandhare
Hi Samir and Swapnil Pandhare,
Is login API ready? If yes, Please share the details with me, so that I can fetch the token and other data from API.
CC - Ramya Tantry , Nandkumar Prabhakar Karlekar