ponder-lab / Imperative-DL-Study-Web-App

0 stars 0 forks source link

Endpoints #24

Closed khatchad closed 3 years ago

khatchad commented 3 years ago

http://app/commits Lists an HTML table of all commits, regardless of round and other criteria.

http://app/commits?round=1 Filter commits by round

http://app/commits/5 Commit details of commit with ID 5

http://app/bug_fixes Lists an HTML table of all bug fixes, regardless of round and other criteria. Should include the round (@tatianacv has the SQL for this).

http://app/bug_fixes?round=1 Filter bug fixes by round

http://app/bug_fixes/5 All categorizations for bug fix with ID 5 (see #22)

http://app/categorizations Show all categorizations regardless of user. Should be disabled for now until we get the roles working. In other words, no one can access this endpoint yet. It should return a 404.

http://app/categorizations?user=5 Categorizations made by the user with ID 5. Note that the currently logged in user can only access their own categorizations. As such, if the current user has ID 5, this endpoint works. Otherwise, it returns a 404. That means that the menu in the home page needs to dynamically populate this link with the ID of the currently logged in user.

khatchad commented 3 years ago
tatianacv commented 3 years ago

Fixed in commit 7830dd3bf07041ac633e650086a0bafc93dc7bcc