Use of rails-api for this application