We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
As found by @emil-nasso in #20 when visiting the following example url: ?path=/users/2/relationships/contacts, the data member doesn't show up:
?path=/users/2/relationships/contacts
data
{ "links": { "related": "/?path=/users/2/contacts", "self": "/?path=/users/2/relationships/contacts" } }
However, when including the relationship in question: ?path=/users/1/relationships/contacts&include=contacts it will be visible:
?path=/users/1/relationships/contacts&include=contacts
{ "links": { "related": "/?path=/users/1/contacts", "self": "/?path=/users/1/relationships/contacts" }, "data": [ { "type": "contact", "id": "100" }, { "type": "contact", "id": "101" }, { "type": "contact", "id": "102" } ], "included": [ { "type": "contact", "id": "100", "links": { "self": "/?path=/contacts/100" }, "attributes": { "phone": "+123456789" } }, { "type": "contact", "id": "101", "links": { "self": "/?path=/contacts/101" }, "attributes": { "email": "john.doe@example.com" } }, { "type": "contact", "id": "102", "links": { "self": "/?path=/contacts/102" }, "attributes": { "email": "secret.doe@example.com" } } ] }
The text was updated successfully, but these errors were encountered:
Fixed in this commit: 1aef043
Sorry, something went wrong.
relationships
kocsismate
No branches or pull requests
As found by @emil-nasso in #20 when visiting the following example url:
?path=/users/2/relationships/contacts
, thedata
member doesn't show up:However, when including the relationship in question:
?path=/users/1/relationships/contacts&include=contacts
it will be visible:The text was updated successfully, but these errors were encountered: