Snapshot api not fully documented

Hi,

i noticed that the part to create a snapshot and restore it is not documented in the snapd rest api: Snapd REST API.

Is there any reason for that?
We use the api POST /v2/snapshots in a similar way as the snap client: https://github.com/snapcore/snapd/blob/b1e9734ba1e3a397c6942b4b8dea570fdd118373/client/snapshot.go#L216

No reason, the snapshot API and the import/export parts were developed at different points in time, and the former didn’t get documented. We should add to our to-dos to document it properly.

2 Likes

We have now expanded the snapshot API documentation.

2 Likes