-
Notifications
You must be signed in to change notification settings - Fork 382
Fix /api/repos/move documentation in api.md
#1095
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
Conversation
Related to huggingface/huggingface_hub#1813. In `/api/repos/move`, we (I? 😄) forgot to mention the `type` parameter to specify the repo type. cc @enzostvs you would have to update the API Playground as well to add this parameter. Thanks in advance!
|
The documentation is not available anymore as the PR was closed or merged. |
docs/hub/api.md
Outdated
| "fromRepo" : "namespace/repo_name", | ||
| "toRepo" : "namespace2/repo_name2" | ||
| "toRepo" : "namespace2/repo_name2", | ||
| "type": "dataset", |
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.
In the other examples, "type":"type" instead of a specific type like dataset. I wonder if it might be better to just leave it as type to signal that it can also be a model or space?
| "type": "dataset", | |
| "type": "type", |
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.
Good catch. I've pushed a new commit (8ee8745) to align how we are setting this. I prefer to have "type": "model" as an example and explain in words what are the possible values.
stevhliu
left a comment
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.
LGTM! 👍
|
Great, thanks for reviewing :) |
Related to huggingface/huggingface_hub#1813.
In
/api/repos/move, we (I? 😄) forgot to mention thetypeparameter to specify the repo type.cc @enzostvs you would have to update the API Playground as well to add this parameter. Thanks in advance!
EDIT: see PR documentation here