Skip to content
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

JSON web API #8

Closed
rugk opened this issue Mar 10, 2019 · 2 comments
Closed

JSON web API #8

rugk opened this issue Mar 10, 2019 · 2 comments

Comments

@rugk
Copy link

rugk commented Mar 10, 2019

You support generating badges, but a more general web API with JSON output or so would be nice.

The use case is that this can then be used in shields, which also has different badge styles etc. See issue badges/shields#2731.

@XAMPPRocky
Copy link
Owner

Thank you for your issue! I have now implemented this in tokei.rs if you change your Accept HTTP header to application/json you will receive JSON data. The files seem to be currently missing in production, but work locally so you can't use that info yet but that will be fixed soon.

@XAMPPRocky
Copy link
Owner

The bugs mentioned have since been fixed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants