Last Updated: February 25, 2016
·
552
· hindenbug

Defaulting API format to JSON

In order to make the default format for all the API response as JSON:

namespace :api, defaults => { format: :json } do
end