Page MenuHomePhabricator

๐Ÿ“œ Provide data of all item's descriptions
Closed, ResolvedPublic5 Estimated Story Points

Description

GET /entities/items/{item_id}/descriptions

The respective successful responses should present the relevant data in a structure being a subset of the response of GET /entities/items/{item_id}

Cases to consider:

  • if {item_id} is a redirect, the API should generate a 308 response redirecting to a respective path on the redirect target
  • if {item_id} does not exist, the API should generate a 404 response { "code": "item-not-found", "message": "Could not find an item with the ID: {item_id}" }
  • if {item_id} is not a valid item ID, the API should generate a 400 response { "code": "invalid-item-id", "message": "Not a valid item ID: {item_id}"}

Related Objects

Event Timeline

Silvan_WMDE set the point value for this task to 5.Jan 25 2023, 10:47 AM

๐Ÿ“œ Task breakdown notes:

Outstanding decisions:

  • Should UseCaseErrorException and ItemRedirectException extend Exception or LogicException? Should these extend our own base exception class?
Ollie.Shotton_WMDE renamed this task from Provide data of all item's descriptions to ๐Ÿ“œ Provide data of all item's descriptions.Jan 31 2023, 4:56 PM

looks all good - thank you and well done!