Closed EricGraham7 closed 2 years ago
Need from HTML: HTML needs to send values for date, time, and rating the items sent can be empty, (in fact most of the time there will be some empty) but they should still be sent. for example, in the login POST, it sends an email, but if the user provided no email, it would be empty. This is ok.
Return to HTML: Same as GET home, except will be sorted by the attribute in question
As a user, I want to be able to sort the list of all recipes according to their ratings, and other applicable attributes.
User acceptance criteria: After I select the element I want to sort by (i.e rating), the API call should return to the sort.ejs page a JSON object allowing the page to display all the recipes, with the ones having the highest rating first