Page MenuHomePhabricator

🟪 Create a response body for retrieving a single item
Closed, ResolvedPublic

Description

  • use the following existing classes and services to get information for the body:
    • Itemto be retrieved by the data access service
    • WikibaseRepo.EntityLookup to retrieve the item
    • ItemSerializer to create an array that is included in the DTO returned by the usecase (which is not the response itself...)
  • create a response with a body

Event Timeline

Change 765306 had a related patch set uploaded (by Ollie Shotton; author: Ollie Shotton):

[mediawiki/extensions/Wikibase@master] REST: First getItem happy path

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

Change 765306 merged by jenkins-bot:

[mediawiki/extensions/Wikibase@master] REST: First getItem happy path

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

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

[mediawiki/extensions/Wikibase@master] Rename GetItemResponse to GetItemResult

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

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

[mediawiki/extensions/Wikibase@master] Add ItemSerializer to rename claims to statments

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

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

[mediawiki/extensions/Wikibase@master] Add first integration test for GetItem

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

Change 766151 merged by jenkins-bot:

[mediawiki/extensions/Wikibase@master] REST: Rename GetItemResponse to GetItemResult

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

Change 766152 merged by jenkins-bot:

[mediawiki/extensions/Wikibase@master] REST: Add custom ItemSerializer

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

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

[mediawiki/extensions/Wikibase@master] REST: Use GetItem use case in RouteHandler

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

Change 766153 merged by jenkins-bot:

[mediawiki/extensions/Wikibase@master] REST: Add first integration test for GetItem

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

Change 767198 merged by jenkins-bot:

[mediawiki/extensions/Wikibase@master] REST: Use GetItem use case in RouteHandler

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

WMDE-leszek claimed this task.