You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
annotations: gets the list of annotations for the given pdb id
entries: gets all entries in a given databank and state (PRESENT, VALID, etc)
There are two generic use cases for the API:
Allow other services to update whynot when an entry is missing by providing the annotation. This would primarily be used by the databank update scripts. It has the knock on effect that whynot wouldn't need to crawl and annotate itself anymore, which performs poorly and often lags behind the real state of the databanks.
Allow humans to manually update entries. Currently this is done by placing files in a comment and uncomment folder on the server, which is not ideal.
I also think this is a good opportunity to standardise the API using a hypermedia format like JSON-API and consolidate the API endpoints.
To Do
Consider security implications. How exposed is the API?
Propose endpoints
The text was updated successfully, but these errors were encountered:
Currently the API only provides two functions:
There are two generic use cases for the API:
comment
anduncomment
folder on the server, which is not ideal.I also think this is a good opportunity to standardise the API using a hypermedia format like JSON-API and consolidate the API endpoints.
To Do
The text was updated successfully, but these errors were encountered: