lib/berkshelf/api/endpoint/v1.rb in berkshelf-api-1.1.1 vs lib/berkshelf/api/endpoint/v1.rb in berkshelf-api-1.2.0.rc1

- old
+ new

@@ -1,10 +1,10 @@ module Berkshelf::API module Endpoint class V1 < Endpoint::Base helpers Berkshelf::API::Mixin::Services version 'v1', using: :header, vendor: 'berkshelf' - format :json + default_format :json rescue_from Grape::Exceptions::Validation do |e| body = JSON.generate({status: e.status, message: e.message, param: e.param}) rack_response(body, e.status, "Content-type" => "application/json") end