Page MenuHomePhabricator

๐ŸŸช Create a simple implementation of GET /entities/items/{item_id}
Closed, ResolvedPublic8 Estimated Story Points

Description

See 2020 REST API schema proposal: https://wmde.github.io/wikibase-rest-api-proposal/#/items/get_entities_items__entity_id_

BDD
As an API user
GIVEN I want to retrieve data about the item
WHEN I make a GET request to /entities/items/{item_id}
THEN I receive 200 HTTP response from the API
AND response contains full serialization of the item following the specification
AND headers of the response include the headers as defined in the specification

Acceptance criteria:

Not included in this story:

  • Filtering data fields to be included in the response (_fields paramater): T302055
  • Conditional 304 responses (If-Modified-Since and If-None-Match parameters): T302060
  • Mediawiki user authentication
  • 404 response given non existing/incorrect Item ID: T302065

Notes:

  • an estimate assumes the boiler plate set up has been completed: T302268
  • Estimate based on assumption MW REST API framework can be used and endpoints can be added to it

Event Timeline

WMDE-leszek set the point value for this task to 8.

Task breakdown:

Ollie.Shotton_WMDE renamed this task from Create a simple implementation of GET /entities/items/{item_id} to ๐ŸŸช Create a simple implementation of GET /entities/items/{item_id}.Feb 22 2022, 3:18 PM