Create a REST handler and any other necessary associated code (extension.json entry, helper classes, etc.) for the GET lists/pages endpoint.
- endpoint implemented
- tests created
- tests pass
Endpoint summary:
Get lists of the current user which contain a given page.
Endpoint description:
Request must be authenticated with a MediaWiki session cookie.
Stability: unstable
Associated RESTBase code
lists.yaml (spec+forwarding)
lists.js (tests)
Associated Action API code
ApiQueryReadingLists.php
ApiQueryReadingListsTest
Parameters:
name | source | required | type | example | default | possible values | description |
project | path | yes | string | https://en.wikipedia.org | N/A | N/A | Domain of the wiki containing the page. |
title | path | yes | string | Barack_Obama | N/A | N/A | Title of the page containing the page, in database format. |
next | query | no | string | N/A | N/A | Continuation parameter from previous request | |
Error Response
#/components/schemas/problem per API.md and draft-nottingham-http-problem
Success Response
value | type | description |
lists | array: list_read | |
next | string | Continuation token |
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