Closed jurcello closed 5 years ago
Does it follow JSON:API specification or is it another format? If it's JSON:API the implementation for the server is incorrect, the spec states the id and type properties are mandatory.
It doesn't follow that specification. The point is that there are a lot of api's that doesn't adhere to the JSON:API specification. If support for that kind of API's should be possible, than resource creation has to be moved to a location where the resource type is known.
Discussed offline:
Will be part of the 1.2 release
Some api's like django rest framework don't include the resource type in the returned data by default. At this moment it is therefore not possible to create the proper responseNormalizer. In my opinion the responseNormalizer should return items where the minimum required structure is data and an id.