Question: 1.) create a login API - post method that users require to send email ID & password to login API. 2.) Create an array of
1.) create a login API - post method that users require to send email ID & password to login API. 2.) Create an array of users in the login API with the user's email and password. 3.) Validate if the user exists in the array of users. If the user exists; send 200 response code with Username if the user is not found, send a 404 response code. I 1.) create a login API - post method that users require to send email ID & password to login API. 2.) Create an array of users in the login API with the user's email and password. 3.) Validate if the user exists in the array of users. If the user exists; send 200 response code with Username if the user is not found, send a 404 response code
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
