2018-05-22 22:14:17 +00:00
|
|
|
## Sample snap data
|
|
|
|
|
2018-05-30 21:54:07 +00:00
|
|
|
This directory contains canned responses from snapd's /v2/find endpoint that
|
|
|
|
can be shown in the SnapList view by passing the --snaps-from-examples flag to
|
|
|
|
subiquity-tui (instead of waiting on your local snapd and network). It was
|
|
|
|
generated something like this:
|
2018-05-22 22:14:17 +00:00
|
|
|
|
|
|
|
```
|
2018-05-30 21:54:07 +00:00
|
|
|
$ curl --silent --unix-socket /var/run/snapd.socket a/v2/find?section=server | jq . > find-output.json
|
|
|
|
$ for x in $(cat find-output.json | jq -r '.result | .[].name'); do curl --silent --unix-socket /var/run/snapd.socket a/v2/find?name=$x | jq . > info-$x.json; done
|
2018-05-22 22:14:17 +00:00
|
|
|
```
|