-
Notifications
You must be signed in to change notification settings - Fork 3
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
Decide how faithful we want to be to the API #3
Comments
I agree! I have a question for this specific example - there are three options for querying projects:
So would we then have 3 functions, specifically:
Where 2 & 3 would take some |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
If we want to be strict about having exact 1 to 1 mappings with the API, we should have
list_projects()
that callsGET /projects
, andget_project()
that callsGET /projects/project-id
The latter isn't that useful for data science, since I suspect you'll actually want to retrieve lots of projects at once to compare. I suggest instead having a higher level
get_projects()
that can return multiple projects at once. I think the pattern is:The text was updated successfully, but these errors were encountered: