Search API doesn't return featured snaps as documented

Bug #1733661 reported by Robin Winslow
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Snap Store Server
Triaged
Low
Unassigned

Bug Description

The snap search API at https://api.snapcraft.io/api/v1/snaps/search doesn't work as documented.

The documentation (at https://search.apps.ubuntu.com/docs/#id5) says:

> In the special case that section param is present but empty, a search for globally featured will be performed:

I took this to mean that:

$ curl "https://api.snapcraft.io/api/v1/snaps/search?section="

Should return the same list of featured snaps as:

$ snap find

Instead, it returns a much longer list.

To get the actual list of featured snaps, as returned by `snap find`, I need to call:

$ curl "https://api.snapcraft.io/api/v1/snaps/search?confinement=strict,classic&q=&section=featured"

This does not match the documentation.

Revision history for this message
Celso Providelo (cprov) wrote :

The referred documentation needs update.

tags: added: snapfind
Changed in snapstore:
status: New → Confirmed
tags: added: doc search
Celso Providelo (cprov)
tags: removed: snapfind
William Grant (wgrant)
Changed in snapstore-server:
importance: Undecided → Low
status: Confirmed → Triaged
tags: added: trivial
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.