How to use our RESTFull APIs

We offer RESTFull APIs for some of our services. However, currently, only Sense the Moment has this feature enabled.

Using the GET protocol, you just need to include the sequence after the last slash:

http://portoreports.com/api/stm/<SEQUENCE>

For instance, if you want to run the sequence “WILLIAMFARIASP”, you need to run http://portoreports.com/api/stm/WILLIAMFARIASP. You should get the following JSON as result:

{"success":1, "1":{"score":0.63485344605918}}

Using the POST protocol, you need to pass the fasta file with the element name ‘file’ and then you should get a JSON with multiple entries:

{"success":1,"1":{"score":"0.18667964985098"},"2":{"score":"0.63485344605918"}}

If you want to submit multiple sequences using the RESTFull API, we recommend the POST protocol, because freewha could block your IP address, avoiding unintentional SYN flood .

Leave a Reply

Your email address will not be published. Required fields are marked *