Skip to content
New issue

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

MarshalWithUrl merging custom link inside data #338

Open
nikhilatshaw opened this issue Dec 10, 2020 · 2 comments
Open

MarshalWithUrl merging custom link inside data #338

nikhilatshaw opened this issue Dec 10, 2020 · 2 comments

Comments

@nikhilatshaw
Copy link

How can I achieve response in the following manner
{
"links":{
"self":
}
"data":[
...
]
}

whenever I implemented GetCustomUrl link is being created inside data. Is there any way to achieve this

@richard-rance
Copy link

As far as I can tell only pagination links are supported at the top level unless you implement your own LinksResponder type and return an instance of it. I was looking for the self link recently as well.

@nikhilatshaw
Copy link
Author

nikhilatshaw commented Dec 12, 2020 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants