Charcoal-SE / metasmoke

Web dashboard for SmokeDetector.
https://metasmoke.erwaysoftware.com
Creative Commons Zero v1.0 Universal
43 stars 34 forks source link

Simple API that dumps statistics for all reasons #496

Closed iBug closed 6 years ago

iBug commented 6 years ago

Maybe a Data Explorer query can do that, but I want an API that's accessible via a URL that dumps all reasons and their data, including title, weight, total/tp/fp/naa count, in a program-friendly interface (JSON or CSV or whatever program-parse-able).

ArtOfCode- commented 6 years ago

Is there a reason that a Data Explorer query's download-as-CSV doesn't work for what you're thinking?

iBug commented 6 years ago

@ArtOfCode- It would have been great had it not required logging in (and probably a Core role).

I wrote a simple (and satisfactory) one and this is the link I'm trying to download.

iBug commented 6 years ago

Answer:

GET https://metasmoke.erwaysoftware.com/api/v2.0/reasons?key=$KEY