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

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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!