-
Notifications
You must be signed in to change notification settings - Fork 83
/
Copy pathRoutingEntry.json
100 lines (100 loc) · 3.09 KB
/
RoutingEntry.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
98
99
100
{
"$schema": "http://json-schema.org/draft-04/schema#",
"id": "RoutingEntry.json",
"title": "RoutingEntry",
"description": "Okapi proxy routing entry",
"type": "object",
"additionalProperties": false,
"properties": {
"methods": {
"description": "List of methods GET, POST,.. * (for all)",
"type": "array",
"items": {
"type": "string"
}
},
"pathPattern": {
"description": "Path pattern match. * matches any path. {x} matches one or more characters but not slash",
"type": "string"
},
"path": {
"description": "Path prefix match",
"type": "string"
},
"rewritePath": {
"description": "Rewrite path. e.g. have filter rewrite '/*' to '/events/*'",
"type": "string"
},
"phase": {
"description": "If given, may be auth, pre or post",
"type": "string"
},
"level": {
"description": "Processing level. Default is 50 (handlers)",
"type": "string"
},
"type": {
"description": "Proxy handling. One of: request-response, request-only, headers, redirect, system, internal, request-response-1.0. The default is request-response",
"type": "string"
},
"redirectPath": {
"description": "If given, path that we internally redirect to",
"type": "string"
},
"unit": {
"description": "Delay unit",
"type": "string"
},
"delay": {
"description": "Delay between calls; a value of zero disables timer",
"type": "string"
},
"schedule": {
"description": "Timer schedule using cron-utils",
"type": "object",
"additionalProperties": false,
"properties": {
"cron": {
"description": "crontab specification",
"type": "string"
},
"zone": {
"description": "time zone (UTC is the default); See https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/time/ZoneId.html",
"type": "string"
}
}
},
"permissionsRequired": {
"description": "Required permissions for this entry",
"type": ["array", "null"],
"items": {
"type": "string"
}
},
"permissionsDesired": {
"description": "Desired permissions for this entry",
"type": ["array", "null"],
"items": {
"type": "string"
}
},
"modulePermissions": {
"description": "Module permissions for this entry",
"type": ["array", "null"],
"items": {
"type": "string"
}
},
"permissionsRequiredTenant": {
"description": "Required permissions that replace permissionsRequired when the user is authenticated and either the tenant matches each {tenantId} in pathPattern or pathPattern doesn't contain {tenantId}",
"type": "array",
"items": {
"type": "string"
}
},
"delegateCORS": {
"description": "Okapi handles CORS by default. Set to true to delegate CORS handling to the module. This only applies to calls made via /_/invoke/tenant/<tid>/<path>. No OPTIONS entry in the methods array is needed for this.",
"type": "boolean"
}
}
}