genome-nexus / g2s

A standalone component to provide mappings between protein sequence positions and PDB 3D protein structure models
GNU Affero General Public License v3.0
7 stars 9 forks source link

add page parameters to api endpoints #53

Open jjgao opened 5 years ago

jjgao commented 5 years ago

We need an api to determine whether alignments exists at all for a given transcript so that we don't have to pull all alignments just to determine that.

After discussion, we would like to add pagination pagination similar to what we do in cBioPortal API.

An empty list should be return if no alignments in the result.

Please add the following parameters similar to cBioPortal endpoints:

image

If it's too much work to add to all, please start with /api/alignments/{id_type}/{id} which is used by cBioPortal.

juexinwang commented 5 years ago

I will start working on that.

jjgao commented 5 years ago

Thanks, @juexinwang. We are discussing whether it's better to create the new endpoint or just add pagination to the api in the #genomenexus channel on slack.

jjgao commented 5 years ago

@juexinwang I updated the issue description above. Please let me know if you have any questions.