You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The other operations are just normal POST parameters
Create project:
POST /command/core/create-project-from-upload
You can set project options with parameter options in JSON string. For example
POST /command/core/create-project-from-upload?options={"encoding":"UTF-8","separator":",","ignoreLines":-1,"headerLines":1,"skipDataLines":0,"limit":-1,"storeBlankRows":true,"guessCellValueTypes":false,"processQuotes":true,"storeBlankCellsAsNulls":true,"includeFileSources":false}
Pass some expression (GREL or otherwise) to the server where it will be executed on selected columns and the result returned.
Parameters:
cellIndex: [column]
The cell/column you wish to execute the expression on.
expression: [language]:[expression]
The expression to execute. The language can either be grel, jython or clojure. Example: grel:value.toLowercase()
project: [project_id]
The project id to execute the expression on.
repeat: [repeat]
A boolean value (true/false) indicating whether or not this command should be repeated multiple times. A repeated command will be executed until the result of the current iteration equals the result of the previous iteration.
repeatCount: [repeatCount]
The maximum amount of times a command will be repeated.
Response:
On success:
{
"code": "ok",
"results" : [result_array]
}
The result array will hold up to ten results, depending on how many rows there are in the project that was specified by the [project_id] parameter. Each result is the string that would be put in the cell if the GREL command was executed on that cell. Note that any expression that would return an array or JSon object will be jsonized, although the output can differ slightly from the jsonize() function.