Beware malformed PC2 URL queries

7 views
Skip to first unread message

Igo R

unread,
Feb 24, 2016, 3:19:47 PM2/24/16
to pathway-commons-announcements
Dear Pathway Commons web service users (www.pathwaycommons.org/pc2/ ; commands: /get and /graph)!

Please do NOT do like:
/get?uri=ICAM1,C9,C1S,C7 or /graph?source=ICAM1,C9,C1S,C7&kind=...

The correct way is:
/get?uri=ICAM1&uri=C9&uri=C1S&uri=C7 or /graph?source=ICAM1&source=C9&source=C1S&source=C7&kind=...
- i.e., you have to send an array of strings as the value for 'source', 'uri', or 'targer' parameter!

(This is actually documented at http://www.pathwaycommons.org/pc2/home#graph)

Cheers,
Igor R.
UofT @PathwayCommons #pathwaycommons

Igo R

unread,
Mar 15, 2016, 12:34:04 AM3/15/16
to pathway-commons-announcements
Next and future (v8) PC2 web api will support both "uri=A&uri=B..." and "uri=A,B,.." style (same for 'source', 'target' parameters that accept an array of ID/name/URIs)!
Reply all
Reply to author
Forward
0 new messages