Skip to main page content
U.S. flag

An official website of the United States government

Dot gov

The .gov means it’s official.
Federal government websites often end in .gov or .mil. Before sharing sensitive information, make sure you’re on a federal government site.

Https

The site is secure.
The https:// ensures that you are connecting to the official website and that any information you provide is encrypted and transmitted securely.

Access keys NCBI Homepage MyNCBI Homepage Main Content Main Navigation
. 2018 Dec 13;14(12):e1006542.
doi: 10.1371/journal.pcbi.1006542. eCollection 2018 Dec.

Eleven quick tips to build a usable REST API for life sciences

Affiliations

Eleven quick tips to build a usable REST API for life sciences

Aleksandra Tarkowska et al. PLoS Comput Biol. .
No abstract available

PubMed Disclaimer

Conflict of interest statement

The authors have declared that no competing interests exist.

Figures

Fig 1
Fig 1. A command line example of the proteins API.
A Unix command line using the cURL tool to request information about proteins from the Proteins API in JSON format for human. API, application programming interface; JSON, JavaScript Object Notation.
Fig 2
Fig 2. An example of search against HMMER REST API.
(A) Search is initialised by POSTing a JSON document with a protein sequence encoded in FASTA format. The client receives a UUID in response. (B) This is used in the second and third queries to retrieve results using GET. (C) The ticket is removed using DELETE. API, application programming interface; JSON, JavaScript Object Notation; REST, representational state transfer; UUID, universally unique identifier.
Fig 3
Fig 3. Methods of encoding links into a REST API response.
(A) An example query to the Ontology Lookup Service for all available ontologies. The response lists links to access the first, previous, next, and last pages (including supplementary metadata) of the entire collection. (B) An example query to the Proteins REST API to retrieve all sequences in FASTA format. Links are encoded in the Link HTTP response header to be parsed by a client. API, application programming interface; HTTP, hypertext transfer protocol; REST, representational state transfer.

References

    1. Rigden DJ, Fernández XM. The 2018 Nucleic Acids Research database issue and the online molecular biology database collection. Nucleic Acids Res. 2018. January 4;46(D1):D1–7. 10.1093/nar/gkx1235 - DOI - PMC - PubMed
    1. Wilkinson MD, Dumontier M, Aalbersberg IJ, Appleton G, Axton M, Baak A, et al. The FAIR Guiding Principles for scientific data management and stewardship. Scientific Data. 2016. March 15;3:160018 10.1038/sdata.2016.18 - DOI - PMC - PubMed
    1. Fielding RT. Architectural Styles and the Design of Network-based Software Architectures. 2000. 324 p.
    1. Richardson L, Amundsen M, Ruby S. RESTful Web APIs: Services for a Changing World. “O’Reilly Media, Inc; ”; 2013. 406 p.
    1. Leach PJ, Berners-Lee T, Mogul JC, Masinter L, Fielding RT, Gettys J. Hypertext Transfer Protocol—HTTP/1.1. 1999 Jun; Available from: https://tools.ietf.org/html/rfc2616. [cited 2018 Jan 20].

Publication types

MeSH terms