forked from eshaan7/Flask-Shell2HTTP
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpost-request-schema.json
More file actions
46 lines (46 loc) · 1.18 KB
/
post-request-schema.json
File metadata and controls
46 lines (46 loc) · 1.18 KB
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
{
"$schema": "http://json-schema.org/draft-07/schema",
"type": "object",
"title": "The POST request schema",
"default": {},
"examples": [
{
"args": ["hello", "world"],
"timeout": 60,
"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
},
"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
}
]
}
}
}