Task Request multipart form‐data - cytoscape/cytoscape-web GitHub Wiki
NOTE: Not implemented yet
Method | POST |
Path | / |
Request Header | Content-Type: multipart/form-data |
Return Code | Success: 202 (Accepted) Error: 400 (Bad Request) or 500 (Internal Server Error) |
Request Body:
------exampleBoundary
Content-Disposition: form-data; name="metadata"; filename="metadata.json"
Content-Type: application/json
{
"parameters": {
"<Parameter display Name>": "value1",
"param2": "fileid" // Additional parameters
},
"data": "cx2" // Data object constructed according to the selectedData attribute
}
------exampleBoundary
Content-Disposition: form-data; name="fileid"; filename="foo.tsv"
Content-Type: text/tab-separated-values
id feature1 feature2
item1 0.12 0.98
item2 0.34 0.76
------exampleBoundary--
Structure of POST content
There should be a file with name metadata that contains the JSON in format matching Task Request metadata.
NOTE: Any parameters that take a file as input should have the value set to the name of the file within the content. In example above the file foo.tsv
has name fileid
and is set as the value for param2