Create a REST handler and any other necessary associated code (extension.json entry, helper classes, etc.) for the POST lists/teardown endpoint.
- endpoint implemented
- tests created
- tests pass
Endpoint summary:
Opt out from using reading lists.
Endpoint description:
Deletes all data. User needs to opt in again before being able to do anything.
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
ApiReadingListsTeardown
ApiReadingListsSetupAndTeardownTest
Parameters:
name | source | required | type | example | default | possible values | description |
csrf_token | query | yes | string | f63c343876da566045e6b59c4532450559c828d3+\\ | N/A | N/A | The CRSF edit token provided by the MediaWiki API |
Error Response
#/components/schemas/problem per API.md and draft-nottingham-http-problem
Success Response
json object