Closed lironesamoun closed 4 years ago
I'm fetching users and my response so far is the following :
type: "users", id: "1", attributes: { name: "myname", email: "name@domain", }, relationships: { roles: { data: [ { type: "roles", id: "9" } ], links: { self: "http://127.0.0.1:8000/api/v1/users/1/relationships/roles", related: "http://127.0.0.1:8000/api/v1/users/1/roles" } } }, links: { self: "http://127.0.0.1:8000/api/v1/users/1" } },
How is it possible to include in my relationship data, the attribute ? Like
roles: { data: [ { type: "roles", id: "9" name : "Admin" } ],
I'm not sure, I saw that info on the doc if it's possible to do that or not.
Thank in advance
Duplicate of #523
Closing, see https://github.com/cloudcreativity/laravel-json-api/issues/523#issuecomment-658840713
I'm fetching users and my response so far is the following :
How is it possible to include in my relationship data, the attribute ? Like
I'm not sure, I saw that info on the doc if it's possible to do that or not.
Thank in advance