-
-
Notifications
You must be signed in to change notification settings - Fork 39
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
Multi-Link API #203
Multi-Link API #203
Conversation
Can we provide the ability to fetch multiple links based on a set of link names? |
|
||
return link_obj | ||
|
||
def get(self, name, default=None, getclass=False, getlink=False, track_order=False, **kwds): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The description for "name" seems incorrect.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
For methods that aren't intended to be called outside the class, let's prepend with "_".
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think the description for name-only operation is accurate - it makes a _getitem_
call, returning the item that the link points to if it exists, or default
if it doesn't.
Done, see "Retrieve a set of links by name" section in |
Adds support for the multi-link operations added in HSDS 0.9.0.
group.get()
now acceptsmarker
,limit
,follow_links
, andpattern
parameters, and targets theGET_Links
endpoint if no link names are provided.group.__delitem__
andgroup.__setitem__
support removing and creating multiple links in one request, if a list of link names is provided.