[07:55:53] <_joe_> moritzm: debmonitor has an api, so that I can fetch its data in json format? [07:56:04] <_joe_> or volans if he's around ofc :D [08:00:21] * volans is around, initializing memory [08:00:44] there's no specific API for queries, what do you want to build? [08:01:31] quick answer is no because we didn't have any use for it, but it should be pretty easy to add any needed endpoint [08:01:53] _joe_: ^^^ [08:02:41] <_joe_> I'm thinking in the context of using debmonitor as a backend for image security update management [08:03:01] <_joe_> and I was thinking of playing with it a bit, but this is ok as well [08:06:52] so, the debmonitor pages have more metadata info than a REST API would in a single endpoint probably [08:07:21] <_joe_> say I want the list of packages with security updates for a specific host [08:07:34] <_joe_> that doesn't sound as a very complex api response [08:07:50] we don't track (yet) security updates :) [08:07:58] <_joe_> uh we don't? [08:08:15] we have a plan, but was deemed secondary when developed [08:08:38] <_joe_> eheh ok [08:08:39] and we didn't want to implement servermon's way that is deemed not accurate enough [08:08:56] I've spoke with john about this last week [08:08:57] we do track security updates ofc, but what Riccardo meant is that no packages are flagged as security updates in debmonitor [08:09:12] <_joe_> yeah I got as much [08:09:22] lol [08:09:36] servermon used the heuristic that if it comes in from security.debian.org it's a security issue [08:09:41] but there's plenty of grey areas [08:10:03] so the correct fix is to parse the data from the Debian Security Tracker instead (which has the precise data) [08:10:23] <_joe_> so basically I want curl -H 'Accept: application/json' https://debmonitor.wikimedia.org/hosts/acmechief1001.eqiad.wmnet to give me something meaningful back :) [08:11:03] _joe_: sure, but just /hosts/foo or that should be just metadata of the host, and then /hosts/foo/packages should return the list of packages? [08:11:21] <_joe_> I wanted to KISS for you [08:11:27] <_joe_> just another view of the same data [08:14:58] the other option is to use django-rest-framework, for context [08:15:34] depending how extended this api should be going forward