Open Athari opened 6 years ago
Hi! Thanks for the suggestion. Do they have a public API?
@paulmelnikow Like I said, they have:
I emailed them asking about public API for data which is available in the form of the badge, but didn't receive a reply.
We do have code to parse the svg badges.
For a user, would there be an advantage of our badge over theirs?
@paulmelnikow Their badge provides no options like text, icon, colors etc. I rely on data URIs to generate pretty badges, so I miss icon option in particular. (Before you ask — yes, I did spend a couple of hours generating heavily optimized icon PNGs for every service. 😆)
For a user, would there be an advantage of our badge over theirs?
A few minor customization options would be welcome for consistency's sake. I enjoy the flat-square
style, which isn't available with FOSSA's existing badges.
This is a response that should result in a green/passing badge. But I've no idea which key is relevant and also haven't found a documentation. Have asked the support, will update the comment if I get an answer.
I guess it's the unresolved_issue_count
field that determines whether a scan is passing.
I'm willing to contribute a pr if this solution is acceptable.
FOSSA.io provides scanning of FOSS licenses of the project and its dependencies. It supports generating shields itself, but they're limited (no options like on shields.io). Example:
https://app.fossa.io/api/projects/git%2Bgithub.com%2FAthari%2FCsConsoleFormat.svg
![]()
https://app.fossa.io/api/projects/git%2Bgithub.com%2FAthari%2FCsConsoleFormat.svg?type=shield
There's API, but it's only available for paying Enterprise customers. However, the SVG badge itself can be parsed, I guess.
👋
FOSSA.io provides scanning of FOSS licenses of the project and its dependencies. It supports generating shields itself, but they're limited (no options like on shields.io). Example:
https://app.fossa.io/api/projects/git%2Bgithub.com%2FAthari%2FCsConsoleFormat.svg
https://app.fossa.io/api/projects/git%2Bgithub.com%2FAthari%2FCsConsoleFormat.svg?type=shield
There's API, but it's only available for paying Enterprise customers. However, the SVG badge itself can be parsed, I guess.