reactome / analysis-service

A RESTful API to access pathway analysis tools
https://reactome.org/AnalysisService/
4 stars 3 forks source link

POST /identifiers/form curl example error #2

Open dvklopfenstein opened 5 years ago

dvklopfenstein commented 5 years ago

Thank you very much for your excellent tools and providing multiple ways to access the Reactome data.

SUMMARY:

I am running the POST /identifiers/for example using the UniProt example data downloaded into a local file.

The curl command "Execute" provides is:

image

Trying the curl command:

$ curl -X POST "https://reactome.org/AnalysisService/identifiers/form?interactors=false&pageSize=20&page=1&sortBy=ENTITIES_PVALUE&order=ASC&resource=TOTAL&pValue=1&includeDisease=true" -H  "accept: application/json" -H  "content-type: multipart/form-data"

Produces this Error:

{"code":400,"reason":"Bad Request","messages":["Could not parse multipart servlet request; nested exception is org.apache.commons.fileupload.FileUploadException: the request was rejected because no multipart boundary was found"]}

QUESTIONS

  1. The file containing the IDs is "UniProt.txt" and is stored on my PC locally. I do not see "UniProt.txt" anywhere in the curl example. Should the filename be there? If yes, what is the format of the filename in the curl command?

  2. Can you provide a curl example using a local file which runs, so I can mimic it?

Thank you again for the great tool set and for an amazing database.

DV