REST service with no explicit URL?

Hi

I have used several time the REST service to query websites when the query was explicitely included in the URL. In these case, it was simply for me to incorporate my query in a URL with a String Manipulator and make the request.
Now I am trying to query a website (SwissADME) for chemicals (reported as SMILES). This time the query (that should be copy-pasted in the “Enter a SMILES here” clipboard) (e.g. c1cccc1) does not appear in the url. I am not sure how to make this kind of query in KNIME.
I suspect I should use a POST service node, but I am not sure how to create properly the body request.

Thanks for any kind of suggestion!

Mirko

Mirko-

You may be better off trying to get what you need using the underlying APIs that swissadme is using to construct it’s site. I really don’t know how you could interact with this website directly. Here is the documentation for MolConverter, for instance: https://disco.chemaxon.com/products/madfast/latest/doc/enunciate/resource_MolConverter.html

It will tell you whether you need a get or post request and the parameter information you need to pass. If you scroll down to the computational methods on this page: https://www.ncbi.nlm.nih.gov/pmc/articles/PMC5335600/ you’ll see a brief description of the APIs being used. You can easily do both the Get and Post requests in Knime.

Adriane

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.