Skip to content

Latest commit

 

History

History
17 lines (13 loc) · 661 Bytes

remove-owner-property.md

File metadata and controls

17 lines (13 loc) · 661 Bytes

Remove Owner Property

Success cases

  1. ✅ Receives a DELETE request on route /api/owners/properties/{propertyId}
  2. ✅ Validates if the request was made by an owner
  3. ✅ Validates that propertyId has been provided
  4. ✅ Validates that the propertyId field is an ObjectId
  5. ✅ Returns 204

Exceptions

  1. ✅ Returns error 404 if the API does not exist
  2. ✅ Returns error 401 if the user is not an owner
  3. ✅ Returns error 400 if propertyId is not provided
  4. ✅ Returns error 400 if propertyId field is not an ObjectId
  5. ✅ Returns error 500 if get an error when trying to remove the property