refactor: next-for-review api refactor with multiple parameters for filtering
API Issue Template
Title (semantic)
refactor(api): Updated next-for-review to fetch the records based on parameter based filters.
Description
Get the next record(s) for review.
This endpoint can operate in two modes:
- Proofreading mode (proof_reading=True): identifies records that have pages (segments) that have not been proofread.
- Random mode (proof_reading=False): fetches records randomly with optional filters.
Filters:
- Excludes user's own records.
- Optional language and media type filtering.
- Random selection from the available records.
Checklist
-
Code follows project API guidelines. -
Tests for API endpoints are included and passing. -
API documentation is updated (if applicable). -
Performance considerations have been addressed.
Related Issue(s)
Closes #83 (closed)
Edited by Surya Manoj Pentakota
