WING-NUS / SSID

Student Submission Integrity Diagnosis
18 stars 23 forks source link

Pagination #369

Closed mengyewgau closed 8 months ago

mengyewgau commented 11 months ago

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):

Screenshot from 2023-10-30 14-28-11

Types of changes

Checklist: