rescued-animals-platform/adoption-service

Put pictures that can't be deleted in quarantine

Opened this issue · 0 comments

Depends on #40

As an administrator
I want to update an animal's primary picture
So that I can change the picture after I've created it

Acceptance criteria

Given an animal with a primary picture
And an administrator updates the primary picture (Http method PUT)
And the new picture was successfully saved in the repository
When an error occurs while deleting the old picture from the repository
Then the old picture is placed in quarantine for future deletion
And a 200 ok response is returned with the updated primary picture