logo

API

API usage idea:

  1. create account
  2. get API token from your account
  3. use API token to perform actions
Remember to always include HTTP_API_KEY={your_api_key} either in your URL or in POST/PUT/DELETE request parameters

Basic API operations:

tRNA:

List of entries: GET: http://tpsic.igcz.poznan.pl/trna/api-list/?format=json (NO API REQUIRED)
or:
http://tpsic.igcz.poznan.pl/trna/trna-entry/?HTTP_API_KEY={your_api_key}
Add entry: POST: http://tpsic.igcz.poznan.pl/trna/trna-entry/
Edit entry: PUT http://tpsic.igcz.poznan.pl/trna/trna-entry/
Delete entry: DELETE http://tpsic.igcz.poznan.pl/trna/trna-entry/
Fields: name (string), sequence (string, this is sequence with modifications), flat_sequence (string, this is sequence without modifications), secondary_structure (string, dot-bracket format), coding_aa (string, 3-letter code), anticodon_sequence (string), organism (int, reference to taxonomy entry), trna_type (int, CYTOPLASMATIC = 0; MITOCHONDRIAL = 1; PLASTYDE = 2; VIRAL = 3), pdb_ids (string, comma separated values)

Publication:

Add entry: POST: http://tpsic.igcz.poznan.pl/trna/add-publication/
Delete entry: DELETE: http://tpsic.igcz.poznan.pl/trna/publication-entry/
Fields: pubmed_id(string), trna(int)

Taxonomy:

List of entries: GET: http://tpsic.igcz.poznan.pl/trna/taxonomy-entry/?HTTP_API_KEY={your_api_key}
Add entry: POST: http://tpsic.igcz.poznan.pl/trna/taxonomy-entry/
Fields: name(string)