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

Handle HATEOAS-style Links #3

Open
mmalone opened this issue Sep 2, 2009 · 0 comments
Open

Handle HATEOAS-style Links #3

mmalone opened this issue Sep 2, 2009 · 0 comments

Comments

@mmalone
Copy link
Contributor

mmalone commented Sep 2, 2009

There's no easy way to define a Link field that corresponds to a URL (or some link structure) in a message from a remote server. The current fields.Link implementation allows you to construct a link programmatically to a remote object of a particular type and return that object on attribute access, but doesn't include that object (or a link to it) in the serialized dictionary after calling to_dict(), which is not ideal. A quick fix would be to serialize the entire linked object, but that's also problematic since it would force us to follow all links during serialization.

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

1 participant