api for fitrecord built with rails-api