-
Notifications
You must be signed in to change notification settings - Fork 636
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
Add an HTTP API reference, if stable #741
Comments
I'm trying to do it. WIP of the reference here: https://github.com/hcpl/crates.io-http-api-reference. Some questions popped up:
|
Related: #731
I'm not sure what you mean by "any changes of the crate or only version updates"; what changes are on crates.io that aren't version updates right now? The best way to see what following a crate means, I think, is to follow some crates and then go to your dashboard at https://crates.io/dashboard. The "Latest updates" section is for the crates you're following.
I actually have no idea; I left a note in the code to remind me to investigate the history of it someday :) Let me know if you figure it out!
Yes, they are exactly like PyPI classifiers/categories, and I modeled /category_slugs after https://pypi.python.org/pypi?%3Aaction=list_classifiers specifically. That page contains the tokens that crate authors specify in their Cargo.toml in order to put their crates in categories. There's a little bit of documentation here and some history on the implementation of the feature here. Please let me know if you have any other questions! This will be great to have, thank you!! |
Thank you for linking, didn't know that. Should have looked at A-docs issues first!
Updates in Web UI, best crates per period, recent dramatic changes of downloads (i.e. being trending and profitable to check out), etc. Granted, version update is one of the important reasons to be notified, but crates are not everything there.
Then I should make a note to finish some libraries (at last!) so that I had a reason to register and publish something! :D
Well, the function Briefly looking at it I found an $ curl 'https://crates.io/api/v1/versions?ids%5B%5D=0.1.0'
$ curl 'https://crates.io/api/v1/versions?ids%5B%5D=libc'
$ curl 'https://crates.io/api/v1/versions?ids%5B%5D=1&ids=%5B%5D=1.0&ids=%5B%5D=1.0.0' returned just So in the end, my assumption is that
This means that Thank you for your answer too! |
Would an OpenAPI spec be helpful for this? I've started one, and I think I have defined most of the endpoints that are relevant to external registry users. https://gist.github.com/iinuwa/20169f7609d86f5b630c5a4b1c7269d1 If this works, maybe this could be hosted at |
For now, there is this repo where you can grep up to date API in form of router paths and
params.get
(orquery.get
or maybe something else I haven't seen) which access keyword parameters, but this is not acceptable for everyday use.Since there can be use cases where you need to retrieve data from crates.io, consider adding a reference page somewhere for an easy access.
The text was updated successfully, but these errors were encountered: