Rack Application for getting json response of users from the database for a given user
-
Make a database named "testdb" in Postgresql consisting of user table with field name and email(unique) eg:
name email User1 [email protected] User3 [email protected] User2 [email protected] User2 [email protected] User3 [email protected] User2 [email protected] User3 [email protected] -
Start localhost "http://localhost:9595/" and add username and password as demo .
-
After succesfull login hit "http://localhost:9595/getusers?name=User3" API and will see the json response for the User3 consisting of name and email of all the users named User3.