forked from project-flogo/contrib
-
Notifications
You must be signed in to change notification settings - Fork 0
/
descriptor.json
97 lines (97 loc) · 2.22 KB
/
descriptor.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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
{
"name": "flogo-rest",
"type": "flogo:trigger",
"version": "0.10.0",
"title": "Receive HTTP Message",
"description": "Simple REST Trigger",
"homepage": "https://github.com/project-flogo/contrib/tree/master/trigger/rest",
"settings": [
{
"name": "port",
"type": "int",
"required": true,
"description": "The port to listen on"
},
{
"name":"enableTLS",
"type":"boolean",
"description": "Enable TLS on the server"
},
{
"name": "certFile",
"type":"string",
"description": "The path to PEM encoded server certificate"
},
{
"name": "keyFile",
"type":"string",
"description": "The path to PEM encoded server key"
}
],
"output": [
{
"name": "pathParams",
"type": "params",
"description": "The path parameters (e.g., 'id' in http://.../pet/:id/name )"
},
{
"name": "queryParams",
"type": "params",
"description": "The query parameters (e.g., 'id' in http://.../pet?id=someValue )"
},
{
"name": "headers",
"type": "params",
"description": "The HTTP header parameters"
},
{
"name": "method",
"type": "string",
"description": "The HTTP method used"
},
{
"name": "content",
"type": "any",
"description": "The content of the request"
}
],
"reply": [
{
"name": "code",
"type": "int",
"description": "The http code to reply with"
},
{
"name": "data",
"type": "any",
"description": "The data to reply with"
},
{
"name": "headers",
"type": "params",
"description": "The HTTP response headers"
},
{
"name": "cookies",
"type": "array",
"description": "The response cookies, adds `Set-Cookie` headers"
}
],
"handler": {
"settings": [
{
"name": "method",
"type": "string",
"required" : true,
"allowed" : ["GET", "POST", "PUT", "PATCH", "DELETE"],
"description": "The HTTP method (ie. GET,POST,PUT,PATCH or DELETE)"
},
{
"name": "path",
"type": "string",
"required" : true,
"description": "The resource path"
}
]
}
}