Actually it seems the icon code works as expected, just that all the snaps I looked at to check haven't yet updated to the 16-series way of doing it.
The icon for a snap goes in meta/gui/icon.*, in which case it gets picked up automatically:
http snapd:///v2/snaps/http HTTP/1.1 200 OK Content-Length: 334 Content-Type: application/json Date: Thu, 02 Jun 2016 14:22:25 GMT
{ "result": { "description": "", "developer": "", "icon": "/v2/icons/http/icon", "id": "", "install-date": "2016-06-02T15:15:14+01:00", "installed-size": 0, "name": "http", "resource": "/v2/snaps/http", "revision": 100001, "status": "active", "summary": "HTTPie in a snap", "type": "app", "version": "4.6692016091" }, "status": "OK", "status-code": 200, "type": "sync" }
(that one is sideloaded, because the one in the store has it in the wrong place still).
Actually it seems the icon code works as expected, just that all the snaps I looked at to check haven't yet updated to the 16-series way of doing it.
The icon for a snap goes in meta/gui/icon.*, in which case it gets picked up automatically:
http snapd:/ //v2/snaps/ http
HTTP/1.1 200 OK
Content-Length: 334
Content-Type: application/json
Date: Thu, 02 Jun 2016 14:22:25 GMT
{
"description" : "",
"developer" : "", http/icon" ,
"install- date": "2016-06- 02T15:15: 14+01:00" ,
"installed- size": 0,
"result": {
"icon": "/v2/icons/
"id": "",
"name": "http",
"resource": "/v2/snaps/http",
"revision": 100001,
"status": "active",
"summary": "HTTPie in a snap",
"type": "app",
"version": "4.6692016091"
},
"status": "OK",
"status-code": 200,
"type": "sync"
}
(that one is sideloaded, because the one in the store has it in the wrong place still).