- Notifications
You must be signed in to change notification settings - Fork302
-
I'need to create an arbitrary link at top-level link, like the 'self' o the pagination related but I don't see an option for that. In the docs there are the ResourceRelatedField and their variants but they actually renders under 'relationships' topleve key. |
BetaWas this translation helpful?Give feedback.
All reactions
Replies: 1 comment 1 reply
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
-
Actually, there are three places where links can occur.
Hope this clarifies what is possible in terms of custom links. |
BetaWas this translation helpful?Give feedback.
All reactions
-
Hi, thanks for the explanation. I was talking about 2nd case, links in the resource, but in my case is only for a particular endpoint. I was thinking on adding an extra field to or something like that, rewriting build_json_resource_obj seems excesive to my particular case. I currently using a normal field thats returns an url to avoid the issue by now. Maybe if I found some extra time I could think into something better. |
BetaWas this translation helpful?Give feedback.