snapd REST API documentation

2017-02-21 Thread Robert Ancell
Hi all, I've spent some time updating the snapd REST API documentation for snapd [1]. It should be now pretty comprehensive. If you've looked at these docs in the past and found information missing, please look again. (Of course, if you're directly using this API please consider the Go library wi

Out of date documentation on snapcraft.io

2016-12-14 Thread Robert Ancell
I was reading http://snapcraft.io/docs/reference/plugins/common and getting confused why the "prime" property wouldn't work. Turns out this documentation is out of date - it's now called "snap" (or was always called?). The documentation was fixed in the git branch in commit 211e8e5b. How do these

Re: snapd-glib 1.3 released

2016-11-15 Thread Robert Ancell
On Mon, Nov 14, 2016 at 10:44 PM Zygmunt Krynicki < zygmunt.kryni...@canonical.com> wrote: > Speaking about releases, we have a dedicated list for announcing releases, > the snapcraft-relea...@snapcraft.io list. > Could you please cross-send your future release announcements? > > I wasn't aware of

snapd-glib 1.3 released

2016-11-13 Thread Robert Ancell
Overview of changes in snapd-glib 1.3 * Use new payment API (now stable). * Add API to get plug/slot attributes. * Add API for create user API. * Add async version of snapd_client_connect_sync(). * Fix crash when fail to connect to snapd. * Don't fail assertion if attempt t

Removing a snap without using sudo or using /v2/login

2016-09-21 Thread Robert Ancell
Hi all, There's an open bug for gnome-software about how you can't remove a snap without first logging in with your Ubuntu One credentials [1]. However, if you use the command line you can easily do this using 'sudo snap remove foo'. There are a number of cases where it makes sense to be able to

Re: non-free

2016-09-18 Thread Robert Ancell
Correct, snapd doesn't provide any license information currently and GNOME Software defaults to interpreting this as propietary. The bug tracking this is: https://bugs.launchpad.net/bugs/167 On Mon, Sep 19, 2016 at 11:06 AM Sergio Schvezov < sergio.schve...@canonical.com> wrote: > El sábado,

Re: Announcing snapd-glib

2016-08-25 Thread Robert Ancell
I blogged an introduction to snapd-glib: http://bobthegnome.blogspot.co.nz/2016/08/introducing-snapd-glib.html On Fri, Aug 19, 2016 at 2:33 PM Robert Ancell wrote: > Hi all, > > At the Heidelberg sprint we decided to create a library that would allow > GLib based projects to more e

Announcing snapd-glib

2016-08-18 Thread Robert Ancell
Hi all, At the Heidelberg sprint we decided to create a library that would allow GLib based projects to more easily access snapd and reduce duplication across these projects. I've got the first cut of this done, meet snapd-glib! - On Launchpad [1] - Implements all [2] of the snapd REST API [3].

snapd events API

2016-08-16 Thread Robert Ancell
Hi, I've been trying to access snapd events using the REST API [1] and I'm not able to get it working. When I do the websocket upgrade I send something like this: GET /v2/events HTTP/1.1 Host: Upgrade: websocket Connection: Upgrade Sec-WebSocket-Key: ... Sec-WebSocket-Version: 13 And snapd just