jsmestad / jsonapi-consumer

Client framework for consuming JSONAPI services in Ruby
https://github.com/jsmestad/jsonapi-consumer
Apache License 2.0
94 stars 18 forks source link

Top level key must be named 'data' #10

Closed danelowe closed 9 years ago

danelowe commented 9 years ago

Refer,

http://jsonapi.org/format/#document-structure-top-level

https://github.com/json-api/json-api/pull/341/files#diff-26e38355b69056b0db1c2b1c612241b2R70

For legacy support, one could then put the following on their base resource class:

def self.json_key
  path
end
danelowe commented 9 years ago

Oops, totally forgot about specs on that one...