glygener / glygen-issues

Repository for public GlyGen tickets
GNU General Public License v3.0
0 stars 0 forks source link

Implement dynamic list tables backend #1706

Open ReneRanzinger opened 1 month ago

ReneRanzinger commented 1 month ago

Based on the decision in #1704 and #1705 implement the backend API for the list pages. Depending on #1705 this may also include a webserive that provides the frontend with all available columns (based on #1704).

Dependencies

Blocker for

sujeetvkulkarni commented 3 hours ago

@rykahsay List api with user selected column JSON:

https://api.glygen.org/glycan/list?query={"id":"a7e4068d39c1f9c017cb6f3c069e6ea5",
"offset":1,
"sort":"hit_score",
"limit":20,
"order":"desc",
"filters":[{"id":"by_organism","operator":"OR","selected":["Rat"]}],
"columns":["glycan_id", "glycan_image", "monoisotopic_mass", "no_of_sugars", "no_of_glycoproteins"]
}

Frontend will send list of user selected column ids it has received from list_init api and backend will send these columns along with mandatory/immutable columns as response. sort option also should support these column ids. Similar changes will apply for protein/list and supersearch/list (site list) apis.