rescued-animals-platform/adoption-service

An administrator can update animal characteristics

Closed this issue · 0 comments

As an administrator
I want to update an animal's characteristics
So that I can correct mistakes or add characteristics after I've created them

Acceptance criteria

Given an animal with characteristics
When an administrator updates the characteristics (Http method PUT)
Then a 200 ok response is returned with the updated characteristics

Given an animal with characteristics
When an administrator updates the characteristics (Http method PUT)
And an error occurs while updating the characteristics
Then a 503 service unavailable response is returned

Given an animal with characteristics
When an administrator updates the characteristics (Http method PUT)
And the new characteristics contain invalid values
Then a 400 bad request response is returned with details of the invalid fields