Dear @neomerx ,
I'am using the old version of limoncello-shot for our project. Now, when get /posts/1,it returns:
{
"data": {
"type": "posts",
"id": "1",
"attributes": {},
"relationships": {
"comments": {
"data": []
}
},
"links": {
"self": "http://localhost:8888/posts/1"
}
}
}
I am wondering if i can return other "hasMany" relationship links in the links node,like “comments” part as below:
{
"data": {
"type": "posts",
"id": "1",
"attributes": {//hide
},
"relationships": {
"comments": {
"data": []
}
},
"links": {
"self": "http://localhost:8888/posts/1",
"comments": "http://localhost:8888/posts/1/comments",
}
Thanks very much!
Dear @neomerx ,
I'am using the old version of limoncello-shot for our project. Now, when get /posts/1,it returns:
{
"data": {
"type": "posts",
"id": "1",
"attributes": {},
"relationships": {
"comments": {
"data": []
}
},
"links": {
"self": "http://localhost:8888/posts/1"
}
}
}
I am wondering if i can return other "hasMany" relationship links in the links node,like “comments” part as below:
{
"data": {
"type": "posts",
"id": "1",
"attributes": {//hide
},
"relationships": {
"comments": {
"data": []
}
},
"links": {
"self": "http://localhost:8888/posts/1",
"comments": "http://localhost:8888/posts/1/comments",
}
Thanks very much!