For reference Click Package Index ("the store") already has a title
field. It is returned by default in the details and search endpoints:


$ curl -s 
'https://search.apps.ubuntu.com/api/v1/snaps/search?q=ubuntu-clock-app&size=1' 
-H 'X-Ubuntu-Series: 16' | jq .
{
  "_embedded": {
    "clickindex:package": [
      {
        "publisher": "Ubuntu Core App Developers",
        "ratings_average": 0,
        "name": "ubuntu-clock-app.ubuntucoredev",
        "package_name": "ubuntu-clock-app",
        "title": "Clock",
        "icon_url": 
"https://myapps.developer.ubuntu.com/site_media/appmedia/2016/03/icon_1.png";,
        "price": 0,
        "summary": "Ubuntu Clock application for the Unity desktop",
        "content": "application",
        "alias": "ubuntu-clock-app",
        "version": "3.6+snap3",
        "_links": {
          "self": {
            "href": 
"https://search.apps.ubuntu.com/api/v1/snaps/details/ubuntu-clock-app";
          }
        },
        "architecture": [
          "amd64"
        ],
        "prices": {},
        "plugs": [
          "opengl",
          "unity7"
        ],
        "snap_id": "vjQhIxU28Zszo6iEjbbrmosRqSpBq4GD",
        "slots": [],
        "revision": 5
      }
    ]


And snapd 2.21 at least requests it explicitly:


[14/Feb/2017:06:57:57 +0000] "GET 
/api/v1/snaps/search?confinement=strict%2Cclassic&fields=anon_download_url%2Carchitecture%2Cchannel%2Cdownload_sha3_384%2Csummary%2Cdescription%2Cdeltas%2Cbinary_filesize%2Cdownload_url%2Cepoch%2Cicon_url%2Clast_updated%2Cpackage_name%2Cprices%2Cpublisher%2Cratings_average%2Crevision%2Cscreenshot_urls%2Csnap_id%2Csupport_url%2Ctitle%2Ccontent%2Cversion%2Corigin%2Cdeveloper_id%2Cprivate%2Cconfinement&q=appear.in
 HTTP/1.1" 200 2454 "-" "snapd/2.21 (series 16; classic) ubuntu/16.04 (amd64)"


I'd have to check where the value for that field is coming from though - 
whether it's automatically extracted from somewhere or provided by the 
developer in the web UI.

-- 
You received this bug notification because you are a member of Ubuntu
Desktop Bugs, which is subscribed to gnome-software in Ubuntu.
https://bugs.launchpad.net/bugs/1663060

Title:
  Add a title field to snap metadata

To manage notifications about this bug go to:
https://bugs.launchpad.net/developer-portal/+bug/1663060/+subscriptions

-- 
desktop-bugs mailing list
desktop-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/desktop-bugs

Reply via email to