Skip to content
qtipee edited this page Apr 13, 2020 · 4 revisions

API

A route containing a * defines an authenticated route ; a user must be logged in to access it.

Route Method Parameters Description
/ GET Home page, i.e. quick/advanced searches + highlighted samples
/search POST Search form Returns the sample search results page.
/sample GET <int:sample_id> Returns the sample detailed page associated to the ID.
/sample* PATCH Sample update form Updates a sample.
/download GET <int:sample_id> Returns the sample file associated to the ID (for download).
/user GET <int:user_id> Returns the user profile page associated to the ID.
/profile* GET Returns the upload user profile form.
/profile* PATCH User update form Updates a user profile
/upload* GET Returns the upload sample form.
/upload* POST Upload sample form Uploads a sample file.
/login POST Login form User login
/logout* POST Logout form User logout
/signup GET Returns the sign up form.
/signup POST Sign up form Creates a new user.
/likes* GET Returns the user liked samples.
/like* POST Like form Likes a sample.
/comment* POST Comment form Comments a sample.
Clone this wiki locally