Snappy capability types and attributes

John Lenton john.lenton at canonical.com
Tue Nov 17 16:32:53 UTC 2015


On 17 November 2015 at 15:11, Zygmunt Krynicki
<zygmunt.krynicki at canonical.com> wrote:
> 2. The second reason is that REST API is currently not something you
> can directly access. For most intents and purposes it's not "public"

This isn't exactly true, though; all you need is something that knows
how to talk http over a unix socket. e.g.,


$ sudo snappy install http.chipaca
[progress bars happen]
$ sudo http.GET snapd:///1.0
HTTP/1.1 200 OK
Content-Length: 136
Content-Type: application/json
Date: Tue, 17 Nov 2015 16:32:33 GMT

{
    "result": {
        "api_compat": "0",
        "default_channel": "edge",
        "flavor": "core",
        "release": "rolling"
    },
    "status": "OK",
    "status_code": 200,
    "type": "sync"
}



More information about the snappy-devel mailing list