Fetch cat data from thecatapi.com and store it.
-
Rails version
>= 5.1.4
-
Ruby version
>= 2.4.1
Bundle gem dependencies
$ bundle install
Database creation and initialization
$ bundle exec rake db:create
$ bundle exec rake db:migrate
Start the server
$ rails server
GET cats from thecatapi.com and store it
On Postman or a web browser
http://localhost:3000/cat
GET an history of all stored cat API responses
http://localhost:3000/history
MIT