API based on https://codelation.com/blog/rails-restful-api-just-add-water