nilportugues / php-json-api

JSON API transformer outputting valid (PSR-7) API Responses.
http://nilportugues.com
MIT License
70 stars 35 forks source link

[Example] Comments should be in relationship under the data source #37

Closed nilportugues closed 9 years ago

nilportugues commented 9 years ago

There's no relationship between the Comment in the array and the Post resource.

Should appear under relationships, as "comments", inside an array containing the relationship data.

nilportugues commented 9 years ago

Fixed https://github.com/nilportugues/jsonapi-transformer/commit/60c51d1cc9bccfea4d7ec2c57a3695ad2213cbc3

nilportugues commented 9 years ago

Apparently "links" property under relationships for arrayed resources are missing :(

nilportugues commented 9 years ago

Now it's fixed.

https://github.com/nilportugues/jsonapi-transformer/commit/94489b7b3189a165dd7a6d363657cd5f375fae9d