Silvan_WMDE created this task.
Silvan_WMDE added projects: Wikidata, Wikibase Product Platform (Sprint 2).
TASK DESCRIPTION
WHEN I request GET /entities/items/{item_id}
AND provide the _fields parameter containing allowed field names
THEN I get 200 HTTP response
AND response contains serialization of the item data following the
specification, including ID and only the fields I have requested
AND headers of the response include the headers as defined in the
specification
**Task Breakdown Notes:**
- in the RouteHandler, construct the GetItemRequest object based on both the
ItemId and the `_fields` request parameter
- in the GetItem use case, filter the itemSerialization based on the
`_fields` from the GetItemRequest
- create a new `GetItemFieldsFilter` object that filters the
itemSerialization based on requested fields
- since it is an array, the filtered ItemSerialization can still be passed
into GetItemResult
TASK DETAIL
https://phabricator.wikimedia.org/T303919
EMAIL PREFERENCES
https://phabricator.wikimedia.org/settings/panel/emailpreferences/
To: Silvan_WMDE
Cc: WMDE-leszek, Aklapper, Ollie.Shotton_WMDE, Silvan_WMDE, Astuthiodit_1,
karapayneWMDE, Invadibot, maantietaja, Akuckartz, Nandana, Lahi, Gq86,
GoranSMilovanovic, QZanden, LawExplorer, _jensen, rosalieper, Scott_WUaS,
Wikidata-bugs, aude, Lydia_Pintscher, Mbch331
_______________________________________________
Wikidata-bugs mailing list -- [email protected]
To unsubscribe send an email to [email protected]