Creating a REST API with Rails and using MySQL as a database.
-
For more details of the code you can visit:(http://localhost:3000/api/v1/users/1/facts)
-
This code is running smoothly.
-
First run the server, then use the following URLs to get the output
- For Details of the numbers of Users(http://localhost:3000/api/v1/users)
- For Details about the facts(http://localhost:3000/api/v1/facts)