Rebuilt pagination. The usage of pagination here is by specifiying the page number in the params, it would give us a certain set of 20. To prevent duplicates and assist, I have pre-ordered the submissions by descending similarity by default
Related Issue
This is a part of #324
Motivation and Context
Added pagination functionality to reduce the amount of queries
How Has This Been Tested?
Tested in Postman for usability. The following is the url used:
http://localhost:3000/api/v1/assignments/:assignment_id/submission_similarities?threshold=0&page=20
Screenshots (if appropriate):
Types of changes
[x] Bug fix (non-breaking change which fixes an issue)
[x] New feature (non-breaking change which adds functionality)
[ ] Breaking change (fix or feature that would cause existing functionality to change)
Checklist:
[x] My code follows the code style of this project.
[ ] My change requires a change to the documentation.
Description
Rebuilt pagination. The usage of pagination here is by specifiying the page number in the params, it would give us a certain set of 20. To prevent duplicates and assist, I have pre-ordered the submissions by descending similarity by default
Related Issue
This is a part of #324
Motivation and Context
Added pagination functionality to reduce the amount of queries
How Has This Been Tested?
Tested in Postman for usability. The following is the url used:
http://localhost:3000/api/v1/assignments/:assignment_id/submission_similarities?threshold=0&page=20
Screenshots (if appropriate):
Types of changes
Checklist: