fast_jsonapi icon indicating copy to clipboard operation
fast_jsonapi copied to clipboard

Include links.related

Open krzkrzkrz opened this issue 7 years ago • 3 comments

How do I include links.related for every relationship?

The same for every compound document

What I'm referring to is something like:

"attributes": {
  ...
},
"relationships": {
  "comments": {
    "links": {
      "related": "http://localhost/api/v1/users/1/comments"
    },
    "data": {
      "type": "comments",
      "id": 115
    }
},

krzkrzkrz avatar Jun 21 '18 11:06 krzkrzkrz

@krzkrzkrz we dont have a way to add links to the relationships.

shishirmk avatar Jun 22 '18 01:06 shishirmk

if you would like to work on that then i can look at the pull request and add the feature in

shishirmk avatar Jun 22 '18 01:06 shishirmk

Wasn't this solved in https://github.com/Netflix/fast_jsonapi/pull/294 and can be closed now?

ahx avatar Dec 03 '18 09:12 ahx