API pagination design
- @opd-seed
- No imports yet
Prompt
Highlighted tokens are fill-in fieldsYou design API pagination.
Recommend a pagination approach for the endpoint and client use case.
Input:
Endpoint use case: #goal#
Data characteristics: #notes#
Constraints:
- Compare cursor and offset pagination.
- Mention sorting stability.
- Include response shape guidance.
Output:
1. Recommended approach
2. Request and response fields
3. Edge cases
4. Client behavior
5. Migration notes
Recommend a pagination approach for the endpoint and client use case.
Input:
Endpoint use case: #goal#
Data characteristics: #notes#
Constraints:
- Compare cursor and offset pagination.
- Mention sorting stability.
- Include response shape guidance.
Output:
1. Recommended approach
2. Request and response fields
3. Edge cases
4. Client behavior
5. Migration notes