We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
get_xxx
get_all_xxx
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...)
xxx
user
group
corpus
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?
The text was updated successfully, but these errors were encountered:
Yes I think we could also simplified these routes :
get_user(id_user=<id_user>) -> return one user get_user() -> return a list of users idem for other resources
get_all_media_of_a_corpus -> get_media(id_corpus = <id_corpus>) get_media -> get_media(id_media = <id_media>) idem for layer and annotation
get_ACL_of_a_corpus -> get_corpus(id_corpus = <id_corpus>) return ACL if the user is the OWNER of the ressource
update_user_ACL_of_a_corpus -> update_ACL_of_a_corpus(id_corpus = <id_corpus>, id_user = <id_user>) idem for corpus/group, layer/user and layer/group
Sorry, something went wrong.
No branches or pull requests
I think it would simplify the client (from user perspective) to merge
get_xxx
andget_all_xxx
methods (wherexxx
can beuser
,group
,corpus
, etc...)Example for
user
methods@juandelamontana @clbarras what do you think?
The text was updated successfully, but these errors were encountered: