Page MenuHomePhabricator

🟪️ Create an initial implementation of GET /entities/items/{item_id}/statements
Closed, ResolvedPublic8 Estimated Story Points

Description

As an developer I want to get all statements of an item so I can show the data in my app

  • return a json representation of the statements as returned by the /entities/items/<item_id> endpoint
  • error handling:
    • 400 - invalid item ID
    • 404 - item not found
    • 500 - unexpected

Link to Proposed API spec

Not included in this story

Related Objects

Event Timeline

Jakob_WMDE set the point value for this task to 8.Apr 28 2022, 10:40 AM

Task breakdown notes:

Jakob_WMDE renamed this task from Create an initial implementation of GET /entities/items/{item_id}/statements to 🟪️ Create an initial implementation of GET /entities/items/{item_id}/statements.Apr 29 2022, 2:35 PM

Change 788368 had a related patch set uploaded (by Silvan Heintze; author: Silvan Heintze):

[mediawiki/extensions/Wikibase@master] REST: Add new statements section to OpenAPI spec

https://gerrit.wikimedia.org/r/788368

Change 788368 had a related patch set uploaded (by Silvan Heintze; author: Silvan Heintze):

Sorry, wrong ticket number, pls ignore. Will change the Bug: reference to T307235