Building JSON APIhttps://www.digitalocean.com/community/tutorials/build-a-restful-json-api-with-rails-5-part-one