bounswe / bounswe2022group4

6 stars 3 forks source link

Backend: Search Application - Implement Sorting Option to Reorder Posts by Their Properties #556

Closed oguzhantok closed 1 year ago

oguzhantok commented 1 year ago

Description: 1.2.1.4. The system shall provide a sorting option that reorders posts by their posted date. 1.2.1.5. The system shall provide a sort option that reorders posts by their number of comments. 1.2.1.6. The system shall provide a sort option that reorders posts by their number of upvotes. These three elements of the requirements will be developed. With the help of this implementation, users can sort posts by create date, last update date, comment count and upvote count. The endpoint I will develop is as follows:

GET /api/search/sort?type={input}&count={input}

type values will be: create_date, update_date, comment_count, and upvote_count

Deadline: 09.12.2022 23.59

oguzhantok commented 1 year ago

Implemetation is finished as expected. See related pull request!