Create a REST handler and any other necessary associated code (extension.json entry, helper classes, etc.) for the GET lists/{id}/entries endpoint.
Endpoint summary: Get all entries of a given list.
Endpoint description: Returns pages contained by the given list. Might be truncated and include a continuation token. List must belong to current user and request must be authenticated with a MediaWiki session cookie. Stability: unstable
Associated RESTBase code getListEntries (code) lists.yaml (spec+forwarding) lists.js (tests)
The RESTBase code appears intended to hydrate the Action API response with summary values. However, these summary values are not used by the Mobile Apps, do not appear in the Open API spec, and don't appear in the actual production responses. They therefore do not need to be included in the reimplementation.
Associated Action API code ApiQueryReadingListEntries ApiQueryReadingListEntriesTest
Parameters:
Error Response
#/components/schemas/problem per API.md and draft-nottingham-http-problem
Success Response
Response Headers
This endpoints has additional response headers specified in the RESTBase code:
headers: { 'content-type': 'application/json; charset=utf-8;' + 'profile="https://www.mediawiki.org/wiki/Specs/Lists/0.1"', 'cache-control': 'max-age=0, s-maxage=0' },
Change 988736 had a related patch set uploaded (by BPirkle; author: BPirkle):
[mediawiki/extensions/ReadingLists@master] REST Handlers for managing reading lists entries
https://gerrit.wikimedia.org/r/988736
Change 988736 merged by jenkins-bot: