Note: per my comment on this task, API Platform decided to not make any changes to ReadingListRepository as part of the Reading List REST Interface effort. I therefore closed this task as declined, in favor of T349156: Reading List REST Interface: create a way to use ReadingListRepository within REST API handlers
The Reading Lists extension uses a ReadingListRepository class to manage database access. As we prepare to implement MediaWiki REST API endpoints to replace the current combination of RESTBase + Action API endpoints, we should review this class to see if any changes would be helpful.
- examine ReadingListRepository class to ensure it follows current best practices, and see if there are any opportunities for improvement to make it more useful in MediaWiki REST API handlers
- review current Reading List extension Action API modules to see if there is anything in them that should be moved into ReadingListRepository (so that it can be shared with the upcoming MediaWiki REST API endpoints)
- review ReadingListRepository tests to ensure sufficient coverage, and to look for any ways to improve current testing
- release/deploy any changes made
Be aware that the ReadingListRepository, by its own description, is "a DAO class for reading lists.". It should remain focused on data access. Any code in the Action API handlers that is purely logic and not data access can be factored out separately rather than moved into ReadingListRepository (a separate subtask will be created for this).
See the associated Miro board for endpoint map.
See parent task T336693: Re-implement reading lists REST interface outside RESTbase for context and details.