-
Notifications
You must be signed in to change notification settings - Fork 12
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
Non-Generated WEBKNOSSOS API Client #948
Conversation
…ibs into manual-client
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.
Great stuff 👍 I like that the glue code got much more readable due to the better typing (which is obviously awesome in itself).
I left some small comments. Other than that, I stumbled a bit about the naming of the methods in the client. Simply retrieving something is named à la folder_tree()
(without "get" or "fetch") and updating something is dataset_team_update
(instead of update_team_for_dataset
). You probably tried to keep the names as close as possible to the routes and only added the verbs when the method is not GET? I think, it's fine, since this layer is only a thin abstraction used by the actual model classes. Still wanted to write my thoughts down for the record..
Thanks for taking the time to read through this! I see your point concerning the api method naming. Most names are close to what the generated client had. However, the names may not be ideal, and currently they are kind of mixed. I think there are two possible ways to design the names:
Most routes currently use approach 2. Depending on your opinion I could now either iron the rest out by adapting this domain first approach (originally introduced by jonathan) for the remaining few methods, or I could use the verb-first approach (with or without "get"). What do you think? |
I'm fine with either way as long as it is consistent (also I'd add a comment to the module which explains the naming). So, feel free to go for (2). |
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.
🎉
* remove openapi-python-client as it is unused since #948 * remove obsolete note about auto-generated client in contributors md * upgrade typer to 0.12.3
Description:
Issues:
Todos:
--