-
-
Notifications
You must be signed in to change notification settings - Fork 748
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Adding HATEOAS support for data relation fields #1186
Comments
I like it. Feel free to provide a PR if you feel like doing it. |
I changed the title from "embedded fields" to "data relation fields" because some of the embedded fields are embedded 'strongly-typed' dictionaries. Besides, all the data relation fields defined in the schema will apply to the hateoas support, not just the fields in the query url's embedded argument. Hope this will make it more clear. |
Addressed by #1204 |
@nicolaiarocci I have used the field as 'id' for the referenced collection instead of default '_id'. What should be the end-point query like: |
Hi,
I think it would be useful to add a reference sort of thing to the returned embedded field, if we want the user to navigate.
In https://eve-demo.herokuapp.com/ demo there are two domains -- works and people.
For now when we visit https://eve-demo.herokuapp.com/works, the embedded owner field in each of returned resource is just an objectid string with no href.
Expected Behavior
visit https://eve-demo.herokuapp.com/works
visit https://eve-demo.herokuapp.com/works?embedded={%22owner%22:1}
Actual Behavior
visit https://eve-demo.herokuapp.com/works
visit https://eve-demo.herokuapp.com/works?embedded={%22owner%22:1}
Environment
The text was updated successfully, but these errors were encountered: