#846 and #847 made it possible to access deleted resources from the Dioptra REST API. Resources accessed by directly by id are now returned instead of returning an error. It should also be possible to view the snapshot history of the deleted resource.
Update the following endpoints to return snapshots. Ensure the deleted bool is being set properly in the responses.
/<resource>/{id}/snapshots
/<resource>/{id}/snapshots/{snapshotId}
The showDeleted flag should NOT be used for the "get all" endpoint since it is nested under /resource/{id}.
This should only be implemented for Resources that have a repository implemented (queue/plugin-param/experiment.
New tests should be written to ensure snapshots of a deleted resource can be retrieved.
#846 and #847 made it possible to access deleted resources from the Dioptra REST API. Resources accessed by directly by
idare now returned instead of returning an error. It should also be possible to view the snapshot history of the deleted resource.Update the following endpoints to return snapshots. Ensure the
deletedbool is being set properly in the responses./<resource>/{id}/snapshots/<resource>/{id}/snapshots/{snapshotId}The
showDeletedflag should NOT be used for the "get all" endpoint since it is nested under/resource/{id}.This should only be implemented for Resources that have a repository implemented (queue/plugin-param/experiment.
New tests should be written to ensure snapshots of a deleted resource can be retrieved.