uses rails-api gem to create api for app