-
Notifications
You must be signed in to change notification settings - Fork 198
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
/crate/:crate/latest/builds.json strips the .json suffix #170
Comments
Hi! Just wanted to mention again that a JSON endpoint with build info would be really helpful! I'd be happy to help design a schema based on the other endpoints you have, if it would be helpful! |
@paulmelnikow What are you looking for from the JSON API? What info do you need that builds.json doesn't currently provide? Do you want to be able to get the info from the latest version? https://docs.rs/crate/cargo/latest/builds.json doesn't currently work (it strips the JSON suffix), but I consider that a bug and I'd be happy to fix it. |
For context, builds.json is a mostly undocumented feature I wish we didn't have, we introduced it so crates.io knows whether it can link to docs.rs (i.e. whether the build succeeded). I don't mind expanding that endpoint to be more useful, but I don't want to introduce other endpoints if possible. |
Putting my Shields hat on... I do think this would suffice for the use case. IIUC the only option available today would require a badge be pinned to a specific version which would be of limited use, whereas being able to have a badge that dynamically reflected the build status for the latest version of a crate seems like it'd be useful for folks. |
This may be useful for external badge services like shields.io.
See also: badges/shields#1382
The text was updated successfully, but these errors were encountered: