@gravitee/ui-policy-studio-angular 1.5.0 → 1.6.0-design-studio-angular-part3-d5922a4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bundles/gravitee-ui-policy-studio-angular-testing.umd.js +5728 -0
- package/bundles/gravitee-ui-policy-studio-angular-testing.umd.js.map +1 -0
- package/bundles/gravitee-ui-policy-studio-angular.umd.js +4592 -36
- package/bundles/gravitee-ui-policy-studio-angular.umd.js.map +1 -1
- package/esm2015/lib/gio-policy-studio.component.js +161 -0
- package/esm2015/lib/gio-policy-studio.module.js +60 -0
- package/esm2015/lib/models/flow/ConfigurationSchema.fixture.js +25 -0
- package/esm2015/lib/models/flow/ConfigurationSchema.js +2 -0
- package/esm2015/lib/models/flow/OrganizationFlowConfiguration.fixture.js +7 -0
- package/esm2015/lib/models/flow/OrganizationFlowConfiguration.js +2 -0
- package/esm2015/lib/models/flow/PlatformFlowSchema.fixture.js +69 -0
- package/esm2015/lib/models/flow/PlatformFlowSchema.js +17 -0
- package/esm2015/lib/models/flow/index-testing.js +19 -0
- package/esm2015/lib/models/flow/index.js +19 -0
- package/esm2015/lib/models/index.js +21 -0
- package/esm2015/lib/models/json.js +2 -0
- package/esm2015/lib/models/policy/PolicyDocumentation.fixture.js +218 -0
- package/esm2015/lib/models/policy/PolicyDocumentation.js +2 -0
- package/esm2015/lib/models/policy/PolicyListItem.fixture.js +15 -0
- package/esm2015/lib/models/policy/PolicyListItem.js +2 -0
- package/esm2015/lib/models/policy/PolicySchema.fixture.js +5 -0
- package/esm2015/lib/models/policy/PolicySchema.js +2 -0
- package/esm2015/lib/models/policy/index-testing.js +19 -0
- package/esm2015/lib/models/policy/index.js +19 -0
- package/esm2015/lib/models/resource/ResourceDocumentation.fixture.js +70 -0
- package/esm2015/lib/models/resource/ResourceDocumentation.js +2 -0
- package/esm2015/lib/models/resource/ResourceListItem.fixture.js +12 -0
- package/esm2015/lib/models/resource/ResourceListItem.js +2 -0
- package/esm2015/lib/models/resource/index-testing.js +18 -0
- package/esm2015/lib/models/resource/index.js +18 -0
- package/esm2015/lib/models/spel/Grammar.fixture.js +3693 -0
- package/esm2015/lib/models/spel/Grammar.js +17 -0
- package/esm2015/lib/models/spel/index-testing.js +17 -0
- package/esm2015/lib/models/spel/index.js +17 -0
- package/esm2015/lib/services/flow.abstract.service.js +3 -0
- package/esm2015/lib/services/flow.service.fixture.js +37 -0
- package/esm2015/lib/services/index.js +20 -0
- package/esm2015/lib/services/policy.abstract.service.js +3 -0
- package/esm2015/lib/services/policy.service.fixture.js +41 -0
- package/esm2015/lib/services/resource.abstract.service.js +3 -0
- package/esm2015/lib/services/resource.service.fixture.js +34 -0
- package/esm2015/lib/services/spel.abstract.service.js +3 -0
- package/esm2015/lib/services/spel.service.fixture.js +34 -0
- package/esm2015/public-api.js +5 -4
- package/esm2015/testing/gravitee-ui-policy-studio-angular-testing.js +5 -0
- package/esm2015/testing/lib/models/flow/ConfigurationSchema.fixture.js +25 -0
- package/esm2015/testing/lib/models/flow/ConfigurationSchema.js +2 -0
- package/esm2015/testing/lib/models/flow/OrganizationFlowConfiguration.fixture.js +7 -0
- package/esm2015/testing/lib/models/flow/OrganizationFlowConfiguration.js +2 -0
- package/esm2015/testing/lib/models/flow/PlatformFlowSchema.fixture.js +69 -0
- package/esm2015/testing/lib/models/flow/PlatformFlowSchema.js +17 -0
- package/esm2015/testing/lib/models/flow/index-testing.js +19 -0
- package/esm2015/testing/lib/models/flow/index.js +19 -0
- package/esm2015/testing/lib/models/index-testing.js +20 -0
- package/esm2015/testing/lib/models/json.js +2 -0
- package/esm2015/testing/lib/models/policy/PolicyDocumentation.fixture.js +218 -0
- package/esm2015/testing/lib/models/policy/PolicyDocumentation.js +2 -0
- package/esm2015/testing/lib/models/policy/PolicyListItem.fixture.js +15 -0
- package/esm2015/testing/lib/models/policy/PolicyListItem.js +2 -0
- package/esm2015/testing/lib/models/policy/PolicySchema.fixture.js +5 -0
- package/esm2015/testing/lib/models/policy/PolicySchema.js +2 -0
- package/esm2015/testing/lib/models/policy/index-testing.js +19 -0
- package/esm2015/testing/lib/models/policy/index.js +19 -0
- package/esm2015/testing/lib/models/resource/ResourceDocumentation.fixture.js +70 -0
- package/esm2015/testing/lib/models/resource/ResourceDocumentation.js +2 -0
- package/esm2015/testing/lib/models/resource/ResourceListItem.fixture.js +12 -0
- package/esm2015/testing/lib/models/resource/ResourceListItem.js +2 -0
- package/esm2015/testing/lib/models/resource/index-testing.js +18 -0
- package/esm2015/testing/lib/models/resource/index.js +18 -0
- package/esm2015/testing/lib/models/spel/Grammar.fixture.js +3693 -0
- package/esm2015/testing/lib/models/spel/Grammar.js +17 -0
- package/esm2015/testing/lib/models/spel/index-testing.js +17 -0
- package/esm2015/testing/lib/models/spel/index.js +17 -0
- package/esm2015/testing/lib/services/flow.abstract.service.js +3 -0
- package/esm2015/testing/lib/services/flow.service.fixture.js +37 -0
- package/esm2015/testing/lib/services/index-testing.js +20 -0
- package/esm2015/testing/lib/services/policy.abstract.service.js +3 -0
- package/esm2015/testing/lib/services/policy.service.fixture.js +41 -0
- package/esm2015/testing/lib/services/resource.abstract.service.js +3 -0
- package/esm2015/testing/lib/services/resource.service.fixture.js +34 -0
- package/esm2015/testing/lib/services/spel.abstract.service.js +3 -0
- package/esm2015/testing/lib/services/spel.service.fixture.js +34 -0
- package/esm2015/testing/public-testing-api.js +19 -0
- package/esm2015/testing/testing/index.js +17 -0
- package/esm2015/testing/testing/stories-resources/apim-definition.json +405 -0
- package/esm2015/testing/testing/stories-resources/apim-flow.json +54 -0
- package/esm2015/testing/testing/stories-resources/apim-policies.json +486 -0
- package/esm2015/testing/testing/stories-resources/apim-property-providers.json +39 -0
- package/esm2015/testing/testing/stories-resources/apim-resource-types.json +187 -0
- package/esm2015/testing/testing/stories-resources/index.js +26 -0
- package/fesm2015/gravitee-ui-policy-studio-angular-testing.js +5699 -0
- package/fesm2015/gravitee-ui-policy-studio-angular-testing.js.map +1 -0
- package/fesm2015/gravitee-ui-policy-studio-angular.js +4592 -25
- package/fesm2015/gravitee-ui-policy-studio-angular.js.map +1 -1
- package/lib/gio-policy-studio.component.d.ts +85 -0
- package/lib/gio-policy-studio.module.d.ts +8 -0
- package/lib/models/flow/ConfigurationSchema.d.ts +2 -0
- package/lib/models/flow/ConfigurationSchema.fixture.d.ts +2 -0
- package/lib/models/flow/OrganizationFlowConfiguration.d.ts +3 -0
- package/lib/models/flow/OrganizationFlowConfiguration.fixture.d.ts +2 -0
- package/lib/models/flow/PlatformFlowSchema.d.ts +2 -0
- package/lib/models/flow/PlatformFlowSchema.fixture.d.ts +2 -0
- package/lib/models/flow/index-testing.d.ts +3 -0
- package/lib/models/flow/index.d.ts +3 -0
- package/lib/models/index.d.ts +5 -0
- package/lib/models/json.d.ts +3 -0
- package/lib/models/policy/PolicyDocumentation.d.ts +1 -0
- package/lib/models/policy/PolicyDocumentation.fixture.d.ts +2 -0
- package/lib/models/policy/PolicyListItem.d.ts +13 -0
- package/lib/models/policy/PolicyListItem.fixture.d.ts +2 -0
- package/lib/models/policy/PolicySchema.d.ts +1 -0
- package/lib/models/policy/PolicySchema.fixture.d.ts +2 -0
- package/lib/models/policy/index-testing.d.ts +3 -0
- package/lib/models/policy/index.d.ts +3 -0
- package/lib/models/resource/ResourceDocumentation.d.ts +1 -0
- package/lib/models/resource/ResourceDocumentation.fixture.d.ts +2 -0
- package/lib/models/resource/ResourceListItem.d.ts +8 -0
- package/lib/models/resource/ResourceListItem.fixture.d.ts +2 -0
- package/lib/models/resource/index-testing.d.ts +2 -0
- package/lib/models/resource/index.d.ts +2 -0
- package/lib/models/spel/Grammar.d.ts +2 -0
- package/lib/models/spel/Grammar.fixture.d.ts +2 -0
- package/lib/models/spel/index-testing.d.ts +1 -0
- package/lib/models/spel/index.d.ts +1 -0
- package/lib/services/flow.abstract.service.d.ts +7 -0
- package/lib/services/flow.service.fixture.d.ts +11 -0
- package/lib/services/index.d.ts +4 -0
- package/lib/services/policy.abstract.service.d.ts +14 -0
- package/lib/services/policy.service.fixture.d.ts +13 -0
- package/lib/services/resource.abstract.service.d.ts +11 -0
- package/lib/services/resource.service.fixture.d.ts +10 -0
- package/lib/services/spel.abstract.service.d.ts +5 -0
- package/lib/services/spel.service.fixture.d.ts +9 -0
- package/package.json +5 -2
- package/public-api.d.ts +4 -3
- package/testing/gravitee-ui-policy-studio-angular-testing.d.ts +5 -0
- package/testing/lib/models/flow/ConfigurationSchema.d.ts +2 -0
- package/testing/lib/models/flow/ConfigurationSchema.fixture.d.ts +2 -0
- package/testing/lib/models/flow/OrganizationFlowConfiguration.d.ts +3 -0
- package/testing/lib/models/flow/OrganizationFlowConfiguration.fixture.d.ts +2 -0
- package/testing/lib/models/flow/PlatformFlowSchema.d.ts +2 -0
- package/testing/lib/models/flow/PlatformFlowSchema.fixture.d.ts +2 -0
- package/testing/lib/models/flow/index-testing.d.ts +3 -0
- package/testing/lib/models/flow/index.d.ts +3 -0
- package/testing/lib/models/index-testing.d.ts +4 -0
- package/testing/lib/models/json.d.ts +3 -0
- package/testing/lib/models/policy/PolicyDocumentation.d.ts +1 -0
- package/testing/lib/models/policy/PolicyDocumentation.fixture.d.ts +2 -0
- package/testing/lib/models/policy/PolicyListItem.d.ts +13 -0
- package/testing/lib/models/policy/PolicyListItem.fixture.d.ts +2 -0
- package/testing/lib/models/policy/PolicySchema.d.ts +1 -0
- package/testing/lib/models/policy/PolicySchema.fixture.d.ts +2 -0
- package/testing/lib/models/policy/index-testing.d.ts +3 -0
- package/testing/lib/models/policy/index.d.ts +3 -0
- package/testing/lib/models/resource/ResourceDocumentation.d.ts +1 -0
- package/testing/lib/models/resource/ResourceDocumentation.fixture.d.ts +2 -0
- package/testing/lib/models/resource/ResourceListItem.d.ts +8 -0
- package/testing/lib/models/resource/ResourceListItem.fixture.d.ts +2 -0
- package/testing/lib/models/resource/index-testing.d.ts +2 -0
- package/testing/lib/models/resource/index.d.ts +2 -0
- package/testing/lib/models/spel/Grammar.d.ts +2 -0
- package/testing/lib/models/spel/Grammar.fixture.d.ts +2 -0
- package/testing/lib/models/spel/index-testing.d.ts +1 -0
- package/testing/lib/models/spel/index.d.ts +1 -0
- package/testing/lib/services/flow.abstract.service.d.ts +7 -0
- package/testing/lib/services/flow.service.fixture.d.ts +11 -0
- package/testing/lib/services/index-testing.d.ts +4 -0
- package/testing/lib/services/policy.abstract.service.d.ts +14 -0
- package/testing/lib/services/policy.service.fixture.d.ts +13 -0
- package/testing/lib/services/resource.abstract.service.d.ts +11 -0
- package/testing/lib/services/resource.service.fixture.d.ts +10 -0
- package/testing/lib/services/spel.abstract.service.d.ts +5 -0
- package/testing/lib/services/spel.service.fixture.d.ts +9 -0
- package/testing/package.json +10 -0
- package/testing/public-testing-api.d.ts +3 -0
- package/testing/testing/index.d.ts +1 -0
- package/testing/testing/stories-resources/index.d.ts +592 -0
- package/esm2015/lib/ui-policy-studio-angular.component.js +0 -30
- package/esm2015/lib/ui-policy-studio-angular.module.js +0 -32
- package/esm2015/lib/ui-policy-studio-angular.service.js +0 -29
- package/lib/ui-policy-studio-angular.component.d.ts +0 -5
- package/lib/ui-policy-studio-angular.module.d.ts +0 -7
- package/lib/ui-policy-studio-angular.service.d.ts +0 -6
|
@@ -0,0 +1,405 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "My API",
|
|
3
|
+
"version": "1",
|
|
4
|
+
"flow-mode": "best_match",
|
|
5
|
+
"flows": [
|
|
6
|
+
{
|
|
7
|
+
"name": "All",
|
|
8
|
+
"condition": "",
|
|
9
|
+
"enabled": true,
|
|
10
|
+
"methods": ["GET", "HEAD", "POST", "PUT", "DELETE", "CONNECT", "OPTIONS", "TRACE", "PATCH"],
|
|
11
|
+
"path-operator": {
|
|
12
|
+
"path": "/",
|
|
13
|
+
"operator": "STARTS_WITH"
|
|
14
|
+
},
|
|
15
|
+
"pre": [
|
|
16
|
+
{
|
|
17
|
+
"policy": "rate-limit",
|
|
18
|
+
"name": "Rate Limit",
|
|
19
|
+
"enabled": true,
|
|
20
|
+
"description": "Step description",
|
|
21
|
+
"configuration": {
|
|
22
|
+
"rate": {
|
|
23
|
+
"limit": 10,
|
|
24
|
+
"periodTime": 1,
|
|
25
|
+
"periodTimeUnit": "MINUTES"
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
},
|
|
29
|
+
{
|
|
30
|
+
"policy": "api-key",
|
|
31
|
+
"name": "Check API Key",
|
|
32
|
+
"enabled": true,
|
|
33
|
+
"description": "Step description",
|
|
34
|
+
"configuration": {
|
|
35
|
+
"propagateApiKey": true
|
|
36
|
+
}
|
|
37
|
+
},
|
|
38
|
+
{
|
|
39
|
+
"policy": "policy-http-callout",
|
|
40
|
+
"name": "HTTP Callout",
|
|
41
|
+
"enabled": true,
|
|
42
|
+
"description": "Step description",
|
|
43
|
+
"configuration": {}
|
|
44
|
+
}
|
|
45
|
+
],
|
|
46
|
+
"post": [
|
|
47
|
+
{
|
|
48
|
+
"policy": "url-rewriting",
|
|
49
|
+
"name": "URL Rewriting",
|
|
50
|
+
"enabled": true,
|
|
51
|
+
"description": "Description of the URL Rewriting Gravitee Policy",
|
|
52
|
+
"configuration": {}
|
|
53
|
+
},
|
|
54
|
+
{
|
|
55
|
+
"policy": "xml-json",
|
|
56
|
+
"name": "XML to JSON",
|
|
57
|
+
"enabled": true,
|
|
58
|
+
"description": "Step description",
|
|
59
|
+
"configuration": {}
|
|
60
|
+
}
|
|
61
|
+
]
|
|
62
|
+
},
|
|
63
|
+
{
|
|
64
|
+
"name": "",
|
|
65
|
+
"path-operator": {
|
|
66
|
+
"path": "/products",
|
|
67
|
+
"operator": "EQUALS"
|
|
68
|
+
},
|
|
69
|
+
"enabled": false,
|
|
70
|
+
"methods": ["POST", "PUT"],
|
|
71
|
+
"condition": "",
|
|
72
|
+
"pre": [
|
|
73
|
+
{
|
|
74
|
+
"policy": "xml-json",
|
|
75
|
+
"name": "XML to JSON",
|
|
76
|
+
"enabled": true,
|
|
77
|
+
"description": "Step description",
|
|
78
|
+
"configuration": {}
|
|
79
|
+
}
|
|
80
|
+
],
|
|
81
|
+
"post": [
|
|
82
|
+
{
|
|
83
|
+
"policy": "json-to-xml",
|
|
84
|
+
"name": "JSON to XML",
|
|
85
|
+
"enabled": true,
|
|
86
|
+
"description": "Step description",
|
|
87
|
+
"configuration": {}
|
|
88
|
+
}
|
|
89
|
+
]
|
|
90
|
+
},
|
|
91
|
+
{
|
|
92
|
+
"name": "",
|
|
93
|
+
"path-operator": {
|
|
94
|
+
"path": "/products",
|
|
95
|
+
"operator": "STARTS_WITH"
|
|
96
|
+
},
|
|
97
|
+
"enabled": true,
|
|
98
|
+
"methods": ["GET"],
|
|
99
|
+
"condition": "",
|
|
100
|
+
"pre": [
|
|
101
|
+
{
|
|
102
|
+
"policy": "transform-queryparams",
|
|
103
|
+
"name": "Transform Query Parameters",
|
|
104
|
+
"description": "Description of the Transform Query Parameters Policy",
|
|
105
|
+
"enabled": true,
|
|
106
|
+
"configuration": {}
|
|
107
|
+
},
|
|
108
|
+
{
|
|
109
|
+
"policy": "url-rewriting",
|
|
110
|
+
"name": "URL Rewriting",
|
|
111
|
+
"enabled": true,
|
|
112
|
+
"description": "Description of the URL Rewriting Gravitee Policy",
|
|
113
|
+
"configuration": {}
|
|
114
|
+
}
|
|
115
|
+
],
|
|
116
|
+
"post": [
|
|
117
|
+
{
|
|
118
|
+
"policy": "json-to-xml",
|
|
119
|
+
"name": "JSON to XML",
|
|
120
|
+
"enabled": true,
|
|
121
|
+
"description": "Step description",
|
|
122
|
+
"configuration": {}
|
|
123
|
+
}
|
|
124
|
+
]
|
|
125
|
+
}
|
|
126
|
+
],
|
|
127
|
+
"plans": [
|
|
128
|
+
{
|
|
129
|
+
"id": "p-1",
|
|
130
|
+
"name": "Free plan",
|
|
131
|
+
"flows": [
|
|
132
|
+
{
|
|
133
|
+
"name": "All",
|
|
134
|
+
"enabled": true,
|
|
135
|
+
"methods": ["GET", "HEAD", "POST", "PUT", "DELETE", "CONNECT", "OPTIONS", "TRACE", "PATCH"],
|
|
136
|
+
"path-operator": {
|
|
137
|
+
"path": "/",
|
|
138
|
+
"operator": "STARTS_WITH"
|
|
139
|
+
},
|
|
140
|
+
"condition": "",
|
|
141
|
+
"pre": [
|
|
142
|
+
{
|
|
143
|
+
"policy": "rate-limit",
|
|
144
|
+
"name": "Rate Limit",
|
|
145
|
+
"enabled": true,
|
|
146
|
+
"description": "Step description",
|
|
147
|
+
"configuration": {
|
|
148
|
+
"rate": {
|
|
149
|
+
"limit": 10,
|
|
150
|
+
"periodTime": 1,
|
|
151
|
+
"periodTimeUnit": "MINUTES"
|
|
152
|
+
}
|
|
153
|
+
}
|
|
154
|
+
},
|
|
155
|
+
{
|
|
156
|
+
"policy": "api-key",
|
|
157
|
+
"name": "Check API Key",
|
|
158
|
+
"enabled": true,
|
|
159
|
+
"description": "Step description",
|
|
160
|
+
"configuration": {
|
|
161
|
+
"propagateApiKey": true
|
|
162
|
+
}
|
|
163
|
+
},
|
|
164
|
+
{
|
|
165
|
+
"policy": "transform-headers",
|
|
166
|
+
"name": "Add HTTP headers",
|
|
167
|
+
"enabled": true,
|
|
168
|
+
"description": "Step description",
|
|
169
|
+
"configuration": {
|
|
170
|
+
"add-headers": "...."
|
|
171
|
+
}
|
|
172
|
+
}
|
|
173
|
+
],
|
|
174
|
+
"post": [
|
|
175
|
+
{
|
|
176
|
+
"policy": "url-rewriting",
|
|
177
|
+
"name": "URL Rewriting",
|
|
178
|
+
"enabled": true,
|
|
179
|
+
"description": "Description of the URL Rewriting Gravitee Policy",
|
|
180
|
+
"configuration": {}
|
|
181
|
+
},
|
|
182
|
+
{
|
|
183
|
+
"policy": "xml-json",
|
|
184
|
+
"name": "XML to JSON",
|
|
185
|
+
"enabled": true,
|
|
186
|
+
"description": "Step description",
|
|
187
|
+
"configuration": {}
|
|
188
|
+
}
|
|
189
|
+
]
|
|
190
|
+
},
|
|
191
|
+
{
|
|
192
|
+
"name": "",
|
|
193
|
+
"path-operator": {
|
|
194
|
+
"path": "/free",
|
|
195
|
+
"operator": "STARTS_WITH"
|
|
196
|
+
},
|
|
197
|
+
"enabled": true,
|
|
198
|
+
"methods": ["POST", "PUT"],
|
|
199
|
+
"condition": "",
|
|
200
|
+
"pre": [
|
|
201
|
+
{
|
|
202
|
+
"policy": "xml-json",
|
|
203
|
+
"name": "XML to JSON",
|
|
204
|
+
"enabled": true,
|
|
205
|
+
"description": "Step description",
|
|
206
|
+
"configuration": {}
|
|
207
|
+
}
|
|
208
|
+
],
|
|
209
|
+
"post": [
|
|
210
|
+
{
|
|
211
|
+
"policy": "json-to-xml",
|
|
212
|
+
"name": "JSON to XML",
|
|
213
|
+
"enabled": true,
|
|
214
|
+
"description": "Step description",
|
|
215
|
+
"configuration": {}
|
|
216
|
+
}
|
|
217
|
+
]
|
|
218
|
+
},
|
|
219
|
+
{
|
|
220
|
+
"name": "",
|
|
221
|
+
"path-operator": {
|
|
222
|
+
"path": "/free",
|
|
223
|
+
"operator": "EQUALS"
|
|
224
|
+
},
|
|
225
|
+
"enabled": true,
|
|
226
|
+
"methods": ["GET"],
|
|
227
|
+
"condition": "",
|
|
228
|
+
"pre": [
|
|
229
|
+
{
|
|
230
|
+
"policy": "transform-queryparams",
|
|
231
|
+
"name": "Transform Query Parameters",
|
|
232
|
+
"enabled": true,
|
|
233
|
+
"description": "Description of the Transform Query Parameters Policy",
|
|
234
|
+
"configuration": {}
|
|
235
|
+
},
|
|
236
|
+
{
|
|
237
|
+
"policy": "url-rewriting",
|
|
238
|
+
"name": "URL Rewriting",
|
|
239
|
+
"enabled": true,
|
|
240
|
+
"description": "Description of the URL Rewriting Gravitee Policy",
|
|
241
|
+
"configuration": {}
|
|
242
|
+
}
|
|
243
|
+
],
|
|
244
|
+
"post": [
|
|
245
|
+
{
|
|
246
|
+
"policy": "json-to-xml",
|
|
247
|
+
"name": "JSON to XML",
|
|
248
|
+
"enabled": true,
|
|
249
|
+
"description": "Step description",
|
|
250
|
+
"configuration": {}
|
|
251
|
+
}
|
|
252
|
+
]
|
|
253
|
+
}
|
|
254
|
+
]
|
|
255
|
+
},
|
|
256
|
+
{
|
|
257
|
+
"id": "p-2",
|
|
258
|
+
"name": "Premium plan",
|
|
259
|
+
"flows": [
|
|
260
|
+
{
|
|
261
|
+
"name": "",
|
|
262
|
+
"path-operator": {
|
|
263
|
+
"path": "/premium",
|
|
264
|
+
"operator": "STARTS_WITH"
|
|
265
|
+
},
|
|
266
|
+
"methods": [],
|
|
267
|
+
"condition": "",
|
|
268
|
+
"enabled": true,
|
|
269
|
+
"pre": [
|
|
270
|
+
{
|
|
271
|
+
"policy": "rate-limit",
|
|
272
|
+
"name": "Rate Limit",
|
|
273
|
+
"enabled": true,
|
|
274
|
+
"description": "Step description",
|
|
275
|
+
"configuration": {
|
|
276
|
+
"rate": {
|
|
277
|
+
"limit": 10,
|
|
278
|
+
"periodTime": 1,
|
|
279
|
+
"periodTimeUnit": "MINUTES"
|
|
280
|
+
}
|
|
281
|
+
}
|
|
282
|
+
},
|
|
283
|
+
{
|
|
284
|
+
"policy": "api-key",
|
|
285
|
+
"name": "Check API Key",
|
|
286
|
+
"enabled": true,
|
|
287
|
+
"description": "Step description",
|
|
288
|
+
"configuration": {
|
|
289
|
+
"propagateApiKey": true
|
|
290
|
+
}
|
|
291
|
+
},
|
|
292
|
+
{
|
|
293
|
+
"policy": "transform-headers",
|
|
294
|
+
"name": "Add HTTP headers",
|
|
295
|
+
"enabled": true,
|
|
296
|
+
"description": "Step description",
|
|
297
|
+
"configuration": {
|
|
298
|
+
"add-headers": "...."
|
|
299
|
+
}
|
|
300
|
+
}
|
|
301
|
+
],
|
|
302
|
+
"post": [
|
|
303
|
+
{
|
|
304
|
+
"policy": "url-rewriting",
|
|
305
|
+
"name": "URL Rewriting",
|
|
306
|
+
"enabled": true,
|
|
307
|
+
"description": "Description of the URL Rewriting Gravitee Policy",
|
|
308
|
+
"configuration": {}
|
|
309
|
+
},
|
|
310
|
+
{
|
|
311
|
+
"policy": "xml-json",
|
|
312
|
+
"name": "XML to JSON",
|
|
313
|
+
"enabled": true,
|
|
314
|
+
"description": "Step description",
|
|
315
|
+
"configuration": {}
|
|
316
|
+
}
|
|
317
|
+
]
|
|
318
|
+
},
|
|
319
|
+
{
|
|
320
|
+
"name": "Api 1",
|
|
321
|
+
"enabled": true,
|
|
322
|
+
"methods": ["POST", "PUT"],
|
|
323
|
+
"condition": "",
|
|
324
|
+
"pre": [
|
|
325
|
+
{
|
|
326
|
+
"policy": "xml-json",
|
|
327
|
+
"name": "XML to JSON",
|
|
328
|
+
"enabled": true,
|
|
329
|
+
"description": "Step description",
|
|
330
|
+
"configuration": {}
|
|
331
|
+
}
|
|
332
|
+
],
|
|
333
|
+
"post": [
|
|
334
|
+
{
|
|
335
|
+
"policy": "json-to-xml",
|
|
336
|
+
"name": "JSON to XML",
|
|
337
|
+
"enabled": true,
|
|
338
|
+
"description": "Step description",
|
|
339
|
+
"configuration": {}
|
|
340
|
+
}
|
|
341
|
+
]
|
|
342
|
+
},
|
|
343
|
+
{
|
|
344
|
+
"name": "Api 2",
|
|
345
|
+
"enabled": true,
|
|
346
|
+
"methods": ["GET"],
|
|
347
|
+
"condition": "",
|
|
348
|
+
"pre": [
|
|
349
|
+
{
|
|
350
|
+
"policy": "transform-queryparams",
|
|
351
|
+
"name": "Transform Query Parameters",
|
|
352
|
+
"enabled": true,
|
|
353
|
+
"description": "Description of the Transform Query Parameters Policy",
|
|
354
|
+
"configuration": {}
|
|
355
|
+
},
|
|
356
|
+
{
|
|
357
|
+
"policy": "url-rewriting",
|
|
358
|
+
"name": "URL Rewriting",
|
|
359
|
+
"enabled": true,
|
|
360
|
+
"description": "Description of the URL Rewriting Gravitee Policy",
|
|
361
|
+
"configuration": {}
|
|
362
|
+
}
|
|
363
|
+
],
|
|
364
|
+
"post": [
|
|
365
|
+
{
|
|
366
|
+
"policy": "json-to-xml",
|
|
367
|
+
"name": "JSON to XML",
|
|
368
|
+
"enabled": true,
|
|
369
|
+
"description": "Step description",
|
|
370
|
+
"configuration": {}
|
|
371
|
+
}
|
|
372
|
+
]
|
|
373
|
+
}
|
|
374
|
+
]
|
|
375
|
+
}
|
|
376
|
+
],
|
|
377
|
+
"resources": [
|
|
378
|
+
{
|
|
379
|
+
"type": "cache",
|
|
380
|
+
"enabled": true,
|
|
381
|
+
"name": "my-cache",
|
|
382
|
+
"configuration": {
|
|
383
|
+
"timeToIdleSeconds": 0,
|
|
384
|
+
"timeToLiveSeconds": 0,
|
|
385
|
+
"maxEntriesLocalHeap": 1000
|
|
386
|
+
}
|
|
387
|
+
}
|
|
388
|
+
],
|
|
389
|
+
"properties": [
|
|
390
|
+
{
|
|
391
|
+
"key": "property.1",
|
|
392
|
+
"value": "Value 1"
|
|
393
|
+
},
|
|
394
|
+
{
|
|
395
|
+
"key": "property.2",
|
|
396
|
+
"value": "Value 2",
|
|
397
|
+
"encryptable": true,
|
|
398
|
+
"encrypted": true
|
|
399
|
+
},
|
|
400
|
+
{
|
|
401
|
+
"key": "property.3",
|
|
402
|
+
"value": "Value 3"
|
|
403
|
+
}
|
|
404
|
+
]
|
|
405
|
+
}
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
{
|
|
2
|
+
"type": "object",
|
|
3
|
+
"id": "apim",
|
|
4
|
+
"properties": {
|
|
5
|
+
"name": {
|
|
6
|
+
"title": "Name",
|
|
7
|
+
"description": "The name of flow. If empty, the name will be generated with the path and methods",
|
|
8
|
+
"type": "string"
|
|
9
|
+
},
|
|
10
|
+
"path-operator": {
|
|
11
|
+
"type": "object",
|
|
12
|
+
"title": "Path",
|
|
13
|
+
"properties": {
|
|
14
|
+
"operator": {
|
|
15
|
+
"title": "Operator path",
|
|
16
|
+
"description": "The operator path",
|
|
17
|
+
"type": "string",
|
|
18
|
+
"enum": ["EQUALS", "STARTS_WITH"],
|
|
19
|
+
"default": "STARTS_WITH",
|
|
20
|
+
"x-schema-form": {
|
|
21
|
+
"titleMap": {
|
|
22
|
+
"EQUALS": "Equals",
|
|
23
|
+
"STARTS_WITH": "Starts with"
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
},
|
|
27
|
+
"path": {
|
|
28
|
+
"title": "Path",
|
|
29
|
+
"description": "The path of flow (must start by /)",
|
|
30
|
+
"type": "string",
|
|
31
|
+
"pattern": "^/",
|
|
32
|
+
"default": "/"
|
|
33
|
+
}
|
|
34
|
+
},
|
|
35
|
+
"required": ["path", "operator"]
|
|
36
|
+
},
|
|
37
|
+
"methods": {
|
|
38
|
+
"title": "Methods",
|
|
39
|
+
"description": "The HTTP methods of flow (ALL if empty)",
|
|
40
|
+
"type": "array",
|
|
41
|
+
"items": {
|
|
42
|
+
"type": "string",
|
|
43
|
+
"enum": ["CONNECT", "DELETE", "GET", "HEAD", "OPTIONS", "PATCH", "POST", "PUT", "TRACE"]
|
|
44
|
+
}
|
|
45
|
+
},
|
|
46
|
+
"condition": {
|
|
47
|
+
"title": "Condition",
|
|
48
|
+
"description": "The extra condition of flow",
|
|
49
|
+
"type": "string"
|
|
50
|
+
}
|
|
51
|
+
},
|
|
52
|
+
"required": [],
|
|
53
|
+
"disabled": []
|
|
54
|
+
}
|