-
Notifications
You must be signed in to change notification settings - Fork 5
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Refactoring of /rest/info and /rest/releases? #182
Comments
Dear @ramiromagno, Thank you for your suggestions. As general remarks, the aim of the endpoint Suggestion 1The Suggestion 2As I wrote it above, we view the Suggestion 3It makes sense to have a dedicated endpoint listing the different REST API versions and their changelogs. Note that the changelog is already available in the https://www.pgscatalog.org/rest page (under REST API version changelog). Although it would make sense to have it in the same way as the
I hope this makes sense. Best regards, |
Thank you Laurent for taking the time to explain. Makes perfect sense! |
Hi PGS Catalog team,
This is not an issue/bug but more of a question or feature request.
I noticed you had included a few new endpoints, some of which requested by me. Thank you so much, really appreciated!
Regarding the new
/rest/info
may I leave a few suggestions?Suggestion 1
You've probably thought about this, but still here are my five cents. I think it would be nice to leave the
/rest/info
endpoint only with details about the software side of the REST API, and the/rest/release/
endpoint reserved only for data related info.So this would imply removing this JSON element from the
/rest/info
response:and add extra fields in the
/rest/release
response by including also the number of traits, and perhaps the number of sample sets. I understand that in/rest/release
you were providing the increments in new entities whereas in/rest/info
you are giving the totals. I think it would be nice to stick to increments, as we can always add them together to get the total at a given point in time.In the R package quincunx, the main table resulting from a request to
/rest/release/all
looks like:So it would be nice to have in addition, as I said, the
n_efo
(number of new traits) andn_pss
(number of new sample sets) migrated from the response from/rest/info
.Suggestion 2
Also move the
citation
andterms_of_use
to the response from/rest/release
. Don't you think it belongs here more than in/rest/info/
?Suggestion 3
It would be nice to provide a few extra endpoints under
/rest/info
, namely:/rest/info/all
for all REST API versions (this would be the most useful of the endpoints here suggested, because, as of now, I can only see that latest changes to the API, and oftentimes it would be nice to review the changelog over a longer period of time; otherwise, I am left with no other alternative than checking the GitHub repository and revise the commit history... which is not very efficient.)/rest/info/{release_date}
, analogous to/rest/release/{release_date}
/rest/info/{version}
, e.g.,/rest/info/1.7
So in its final form, the JSON from
/rest/info
would be simply an array of:Again, all in all, thanks for the terrific work! These are just some ideas, and are not really that important aspects of the REST API.
The text was updated successfully, but these errors were encountered: