Managing base and other snappy apps

Jamie Strandboge jamie at
Wed Jul 29 12:45:40 UTC 2015

On 07/29/2015 07:34 AM, Sergio Schvezov wrote:
> On Tue, Jul 28, 2015 at 03:01:06PM -0700, Eystein Måløy Stenberg wrote:
>> Thanks!
>> I see webdm has references to "snappy's packages api", e.g. in
>> webdm/snappy/handlers.go it says
>> // MakeMuxer sets up the handlers multiplexing to handle requests against
>> snappy's
>> // packages api
>> func (h *Handler) MakeMuxer(prefix string) http.Handler {
>> ..
>> Is this API something that is part of a base installation of snappy or
>> webdm itself? Is it intended to be used by other snaps than webdm, and if
>> so, is it documented?
> o
> That API is available when using Go and I would recommend not using it,
> more so if targeting multiple releases as trunk == rolling features
> which may break on stable.
>> The reason I'm asking is that I'm wondering what I should build my
>> framework snap on top of for doing package operations.
>> I have no problems using the snappy CLI, but I just wanted to check if
>> there is a "more official" (e.g. http API) method first.
> You can start out with the REST api
> This API will indeed change and is under redesign to be part of the OS
> itself and not webdm.
This is also a better route to go because the current webdm security policy is
not something that other apps should base their work on (it is there temporarily
until the REST api is in place).

Jamie Strandboge       

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: OpenPGP digital signature
URL: <>

More information about the snappy-devel mailing list