Method: JSONAPI::Exceptions::KeyNotIncludedInURL#errors

Defined in:
lib/jsonapi/exceptions.rb

#errorsObject



194
195
196
197
198
199
# File 'lib/jsonapi/exceptions.rb', line 194

def errors
  [JSONAPI::Error.new(code: JSONAPI::KEY_NOT_INCLUDED_IN_URL,
                        status: :bad_request,
                        title: 'Key is not included in URL',
                        detail: "The URL does not support the key #{key}")]
end