wiki:RestApi

REST API - RFC

Note that this page is still mostly a placeholder to start some iterative process about a REST API.

ssm suggested having a REST API for interaction on IRC:

GET http://munin.example.com/api/v1/host/foo.example.com/service/myplugin/config/…

The format feels like:

http://munin.example.com/api/v1/host/$HOSTNAME/service/$PLUGIN_NAME/config/

Steve

I don't really like that `clean url`_ format. It looks very pleasant at first, but it will not be helpful since you have to parse every parameter yourself. So it feels a lot like NIH.

?

Why not use plain old HTTP url encoding ? These have a lot of proven parsers. And Google also uses them, so it cannot be completely wrong :-)

I propose something like that instead:

http://munin.mm0.eu/api?v=1&group=example.com;webservers&host=www1&service=cpu&op=config

With a GET to fetch the config of the cpu plugin on

2.2

The 2.2 will be read-only (GET).

2.4

The read-write part will be part of 2.4, via POST (or PUT).

Docutils System Messages

?
Last modified at 2014-03-01T09:27:21+01:00 Last modified on 2014-03-01T09:27:21+01:00