I’m just curious if there is a public API that people can leverage to maybe perform searches, installs, etc (if say one was so inclined to leverage on a desktop app). Generally what the snap command does.
I have read references to the store API but had not yet found the documentation through google searches, or on docs.snapcraft.io.
Additionally I’d recommend, if you’re tinkering with snapd, that you set SNAPD_DEBUG=1 and SNAPD_DEBUG_HTTP=3 either in /etc/environment, or dropping a systemd snippet in /etc/systemd/system/snapd.service.d/.
In the docs, one of the first things is states is:
“You can interface with snapd on any Ubuntu Core system using its REST API.”
When they are “core” - does this also include a traditional Ubuntu install?
Thank you.
EDIT - I beleive this will work for any Ubuntu system as the curl -sS --unix-socket /run/snapd.socket http://localhost/v2/system-info | jq seems to work without issue.