Skip to content

Merge get_xxx and get_all_xxx methods #5

Description

@hbredin

I think it would simplify the client (from user perspective) to merge get_xxx and get_all_xxx methods (where xxx can be user, group, corpus, etc...)

Example for user methods

def get_user(self, user_id=None):
    route = 'user'
    if user_id is not None:
        route = route + '/' + user_id
    return self.get(route)

@juandelamontana @clbarras what do you think?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions