rails new my_albums --api --skip-action-cable --skip-sprockets
cd my_albums
bundle
rails g scaffold Album title:string released:string
rake db:migrate
Insert some data:
curl -X POST localhost:3000/albums -H "Content-Type: application/json" \
--data '{"title":"Houses Of The Holy","released":"March 28, 1973"}'