Implemented endpoint to delete all captures
This commit is contained in:
parent
1e08972b86
commit
904703b581
3 changed files with 18 additions and 1 deletions
|
|
@ -307,7 +307,12 @@ class CaptureListAPI(MicroscopeView):
|
|||
|
||||
.. :quickref: Capture collection; Delete all captures
|
||||
"""
|
||||
return jsonify({"error": "not yet implemented"})
|
||||
for image in self.microscope.camera.images:
|
||||
image.delete()
|
||||
|
||||
captures = [image.metadata for image in self.microscope.camera.images]
|
||||
|
||||
return jsonify(captures)
|
||||
|
||||
def post(self):
|
||||
"""
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue