-
-
Notifications
You must be signed in to change notification settings - Fork 29
/
post-request-schema.json
53 lines (53 loc) · 1.72 KB
/
post-request-schema.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
{
"$schema": "http://json-schema.org/draft-07/schema",
"type": "object",
"title": "The POST request schema",
"default": {},
"examples": [
{
"args": ["hello", "world"],
"timeout": 60,
"force_unique_key": true,
"callback_context": {
"read_result_from": "/path/to/saved/file",
"force_success": true
}
}
],
"required": [],
"properties": {
"args": {
"type": "array",
"title": "Arguments that will be appended to the base command",
"default": [],
"examples": [
["hello", "world"],
["@inputfile", "@someotherfile"]
]
},
"timeout": {
"type": "integer",
"title": "subprocess timeout in seconds",
"description": "Maximum timeout after which subprocess fails if not already complete.",
"default": 3600
},
"force_unique_key": {
"type": "boolean",
"title": "Flag to enable/disable internal rate limiting mechanism",
"description": "By default, the key is the SHA1 sum of the command + args POSTed to the API. This is done as a rate limiting measure so as to prevent multiple jobs with same parameters, if one such job is already running. If force_unique_key is set to true, the API will bypass this default behaviour and a psuedorandom key will be returned instead",
"default": false
},
"callback_context": {
"type": "object",
"title": "Additional context for user defined callback function",
"description": "This object will be passed as the first argument of user-defined callback function",
"default": {},
"examples": [
{
"read_result_from": "/path/to/saved/file",
"force_success": true
}
]
}
}
}