@gravitee/ui-policy-studio-angular 1.4.4-design-studio-angular-65923df → 1.5.0-design-studio-angular-part2-ed6a516

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.
Files changed (183) hide show
  1. package/bundles/gravitee-ui-policy-studio-angular-testing.umd.js +5728 -0
  2. package/bundles/gravitee-ui-policy-studio-angular-testing.umd.js.map +1 -0
  3. package/bundles/gravitee-ui-policy-studio-angular.umd.js +4589 -36
  4. package/bundles/gravitee-ui-policy-studio-angular.umd.js.map +1 -1
  5. package/esm2015/lib/gio-policy-studio.component.js +157 -0
  6. package/esm2015/lib/gio-policy-studio.module.js +60 -0
  7. package/esm2015/lib/models/flow/ConfigurationSchema.fixture.js +25 -0
  8. package/esm2015/lib/models/flow/ConfigurationSchema.js +2 -0
  9. package/esm2015/lib/models/flow/OrganizationFlowConfiguration.fixture.js +7 -0
  10. package/esm2015/lib/models/flow/OrganizationFlowConfiguration.js +2 -0
  11. package/esm2015/lib/models/flow/PlatformFlowSchema.fixture.js +69 -0
  12. package/esm2015/lib/models/flow/PlatformFlowSchema.js +17 -0
  13. package/esm2015/lib/models/flow/index.js +19 -0
  14. package/esm2015/lib/models/flow/testing.js +19 -0
  15. package/esm2015/lib/models/index.js +21 -0
  16. package/esm2015/lib/models/json.js +2 -0
  17. package/esm2015/lib/models/policy/PolicyDocumentation.fixture.js +218 -0
  18. package/esm2015/lib/models/policy/PolicyDocumentation.js +2 -0
  19. package/esm2015/lib/models/policy/PolicyListItem.fixture.js +15 -0
  20. package/esm2015/lib/models/policy/PolicyListItem.js +2 -0
  21. package/esm2015/lib/models/policy/PolicySchema.fixture.js +5 -0
  22. package/esm2015/lib/models/policy/PolicySchema.js +2 -0
  23. package/esm2015/lib/models/policy/index.js +19 -0
  24. package/esm2015/lib/models/policy/testing.js +19 -0
  25. package/esm2015/lib/models/resource/ResourceDocumentation.fixture.js +70 -0
  26. package/esm2015/lib/models/resource/ResourceDocumentation.js +2 -0
  27. package/esm2015/lib/models/resource/ResourceListItem.fixture.js +12 -0
  28. package/esm2015/lib/models/resource/ResourceListItem.js +2 -0
  29. package/esm2015/lib/models/resource/index.js +18 -0
  30. package/esm2015/lib/models/resource/testing.js +18 -0
  31. package/esm2015/lib/models/spel/Grammar.fixture.js +3693 -0
  32. package/esm2015/lib/models/spel/Grammar.js +17 -0
  33. package/esm2015/lib/models/spel/index.js +17 -0
  34. package/esm2015/lib/models/spel/testing.js +17 -0
  35. package/esm2015/lib/services/flow.abstract.service.js +3 -0
  36. package/esm2015/lib/services/flow.service.fixture.js +37 -0
  37. package/esm2015/lib/services/index.js +20 -0
  38. package/esm2015/lib/services/policy.abstract.service.js +3 -0
  39. package/esm2015/lib/services/policy.service.fixture.js +41 -0
  40. package/esm2015/lib/services/resource.abstract.service.js +3 -0
  41. package/esm2015/lib/services/resource.service.fixture.js +34 -0
  42. package/esm2015/lib/services/spel.abstract.service.js +3 -0
  43. package/esm2015/lib/services/spel.service.fixture.js +34 -0
  44. package/esm2015/public-api.js +5 -4
  45. package/esm2015/testing/gravitee-ui-policy-studio-angular-testing.js +5 -0
  46. package/esm2015/testing/lib/models/flow/ConfigurationSchema.fixture.js +25 -0
  47. package/esm2015/testing/lib/models/flow/ConfigurationSchema.js +2 -0
  48. package/esm2015/testing/lib/models/flow/OrganizationFlowConfiguration.fixture.js +7 -0
  49. package/esm2015/testing/lib/models/flow/OrganizationFlowConfiguration.js +2 -0
  50. package/esm2015/testing/lib/models/flow/PlatformFlowSchema.fixture.js +69 -0
  51. package/esm2015/testing/lib/models/flow/PlatformFlowSchema.js +17 -0
  52. package/esm2015/testing/lib/models/flow/index.js +19 -0
  53. package/esm2015/testing/lib/models/flow/testing.js +19 -0
  54. package/esm2015/testing/lib/models/json.js +2 -0
  55. package/esm2015/testing/lib/models/policy/PolicyDocumentation.fixture.js +218 -0
  56. package/esm2015/testing/lib/models/policy/PolicyDocumentation.js +2 -0
  57. package/esm2015/testing/lib/models/policy/PolicyListItem.fixture.js +15 -0
  58. package/esm2015/testing/lib/models/policy/PolicyListItem.js +2 -0
  59. package/esm2015/testing/lib/models/policy/PolicySchema.fixture.js +5 -0
  60. package/esm2015/testing/lib/models/policy/PolicySchema.js +2 -0
  61. package/esm2015/testing/lib/models/policy/index.js +19 -0
  62. package/esm2015/testing/lib/models/policy/testing.js +19 -0
  63. package/esm2015/testing/lib/models/resource/ResourceDocumentation.fixture.js +70 -0
  64. package/esm2015/testing/lib/models/resource/ResourceDocumentation.js +2 -0
  65. package/esm2015/testing/lib/models/resource/ResourceListItem.fixture.js +12 -0
  66. package/esm2015/testing/lib/models/resource/ResourceListItem.js +2 -0
  67. package/esm2015/testing/lib/models/resource/index.js +18 -0
  68. package/esm2015/testing/lib/models/resource/testing.js +18 -0
  69. package/esm2015/testing/lib/models/spel/Grammar.fixture.js +3693 -0
  70. package/esm2015/testing/lib/models/spel/Grammar.js +17 -0
  71. package/esm2015/testing/lib/models/spel/index.js +17 -0
  72. package/esm2015/testing/lib/models/spel/testing.js +17 -0
  73. package/esm2015/testing/lib/models/testing.js +20 -0
  74. package/esm2015/testing/lib/services/flow.abstract.service.js +3 -0
  75. package/esm2015/testing/lib/services/flow.service.fixture.js +37 -0
  76. package/esm2015/testing/lib/services/policy.abstract.service.js +3 -0
  77. package/esm2015/testing/lib/services/policy.service.fixture.js +41 -0
  78. package/esm2015/testing/lib/services/resource.abstract.service.js +3 -0
  79. package/esm2015/testing/lib/services/resource.service.fixture.js +34 -0
  80. package/esm2015/testing/lib/services/spel.abstract.service.js +3 -0
  81. package/esm2015/testing/lib/services/spel.service.fixture.js +34 -0
  82. package/esm2015/testing/lib/services/testing.js +20 -0
  83. package/esm2015/testing/public-testing-api.js +19 -0
  84. package/esm2015/testing/testing/index.js +17 -0
  85. package/esm2015/testing/testing/stories-resources/apim-definition.json +405 -0
  86. package/esm2015/testing/testing/stories-resources/apim-flow.json +54 -0
  87. package/esm2015/testing/testing/stories-resources/apim-policies.json +486 -0
  88. package/esm2015/testing/testing/stories-resources/apim-property-providers.json +39 -0
  89. package/esm2015/testing/testing/stories-resources/apim-resource-types.json +187 -0
  90. package/esm2015/testing/testing/stories-resources/index.js +26 -0
  91. package/fesm2015/gravitee-ui-policy-studio-angular-testing.js +5699 -0
  92. package/fesm2015/gravitee-ui-policy-studio-angular-testing.js.map +1 -0
  93. package/fesm2015/gravitee-ui-policy-studio-angular.js +4588 -25
  94. package/fesm2015/gravitee-ui-policy-studio-angular.js.map +1 -1
  95. package/lib/gio-policy-studio.component.d.ts +79 -0
  96. package/lib/gio-policy-studio.module.d.ts +8 -0
  97. package/lib/models/flow/ConfigurationSchema.d.ts +2 -0
  98. package/lib/models/flow/ConfigurationSchema.fixture.d.ts +2 -0
  99. package/lib/models/flow/OrganizationFlowConfiguration.d.ts +3 -0
  100. package/lib/models/flow/OrganizationFlowConfiguration.fixture.d.ts +2 -0
  101. package/lib/models/flow/PlatformFlowSchema.d.ts +2 -0
  102. package/lib/models/flow/PlatformFlowSchema.fixture.d.ts +2 -0
  103. package/lib/models/flow/index.d.ts +3 -0
  104. package/lib/models/flow/testing.d.ts +3 -0
  105. package/lib/models/index.d.ts +5 -0
  106. package/lib/models/json.d.ts +3 -0
  107. package/lib/models/policy/PolicyDocumentation.d.ts +1 -0
  108. package/lib/models/policy/PolicyDocumentation.fixture.d.ts +2 -0
  109. package/lib/models/policy/PolicyListItem.d.ts +13 -0
  110. package/lib/models/policy/PolicyListItem.fixture.d.ts +2 -0
  111. package/lib/models/policy/PolicySchema.d.ts +1 -0
  112. package/lib/models/policy/PolicySchema.fixture.d.ts +2 -0
  113. package/lib/models/policy/index.d.ts +3 -0
  114. package/lib/models/policy/testing.d.ts +3 -0
  115. package/lib/models/resource/ResourceDocumentation.d.ts +1 -0
  116. package/lib/models/resource/ResourceDocumentation.fixture.d.ts +2 -0
  117. package/lib/models/resource/ResourceListItem.d.ts +8 -0
  118. package/lib/models/resource/ResourceListItem.fixture.d.ts +2 -0
  119. package/lib/models/resource/index.d.ts +2 -0
  120. package/lib/models/resource/testing.d.ts +2 -0
  121. package/lib/models/spel/Grammar.d.ts +2 -0
  122. package/lib/models/spel/Grammar.fixture.d.ts +2 -0
  123. package/lib/models/spel/index.d.ts +1 -0
  124. package/lib/models/spel/testing.d.ts +1 -0
  125. package/lib/services/flow.abstract.service.d.ts +7 -0
  126. package/lib/services/flow.service.fixture.d.ts +11 -0
  127. package/lib/services/index.d.ts +4 -0
  128. package/lib/services/policy.abstract.service.d.ts +14 -0
  129. package/lib/services/policy.service.fixture.d.ts +13 -0
  130. package/lib/services/resource.abstract.service.d.ts +11 -0
  131. package/lib/services/resource.service.fixture.d.ts +10 -0
  132. package/lib/services/spel.abstract.service.d.ts +5 -0
  133. package/lib/services/spel.service.fixture.d.ts +9 -0
  134. package/package.json +5 -2
  135. package/public-api.d.ts +4 -3
  136. package/testing/gravitee-ui-policy-studio-angular-testing.d.ts +5 -0
  137. package/testing/lib/models/flow/ConfigurationSchema.d.ts +2 -0
  138. package/testing/lib/models/flow/ConfigurationSchema.fixture.d.ts +2 -0
  139. package/testing/lib/models/flow/OrganizationFlowConfiguration.d.ts +3 -0
  140. package/testing/lib/models/flow/OrganizationFlowConfiguration.fixture.d.ts +2 -0
  141. package/testing/lib/models/flow/PlatformFlowSchema.d.ts +2 -0
  142. package/testing/lib/models/flow/PlatformFlowSchema.fixture.d.ts +2 -0
  143. package/testing/lib/models/flow/index.d.ts +3 -0
  144. package/testing/lib/models/flow/testing.d.ts +3 -0
  145. package/testing/lib/models/json.d.ts +3 -0
  146. package/testing/lib/models/policy/PolicyDocumentation.d.ts +1 -0
  147. package/testing/lib/models/policy/PolicyDocumentation.fixture.d.ts +2 -0
  148. package/testing/lib/models/policy/PolicyListItem.d.ts +13 -0
  149. package/testing/lib/models/policy/PolicyListItem.fixture.d.ts +2 -0
  150. package/testing/lib/models/policy/PolicySchema.d.ts +1 -0
  151. package/testing/lib/models/policy/PolicySchema.fixture.d.ts +2 -0
  152. package/testing/lib/models/policy/index.d.ts +3 -0
  153. package/testing/lib/models/policy/testing.d.ts +3 -0
  154. package/testing/lib/models/resource/ResourceDocumentation.d.ts +1 -0
  155. package/testing/lib/models/resource/ResourceDocumentation.fixture.d.ts +2 -0
  156. package/testing/lib/models/resource/ResourceListItem.d.ts +8 -0
  157. package/testing/lib/models/resource/ResourceListItem.fixture.d.ts +2 -0
  158. package/testing/lib/models/resource/index.d.ts +2 -0
  159. package/testing/lib/models/resource/testing.d.ts +2 -0
  160. package/testing/lib/models/spel/Grammar.d.ts +2 -0
  161. package/testing/lib/models/spel/Grammar.fixture.d.ts +2 -0
  162. package/testing/lib/models/spel/index.d.ts +1 -0
  163. package/testing/lib/models/spel/testing.d.ts +1 -0
  164. package/testing/lib/models/testing.d.ts +4 -0
  165. package/testing/lib/services/flow.abstract.service.d.ts +7 -0
  166. package/testing/lib/services/flow.service.fixture.d.ts +11 -0
  167. package/testing/lib/services/policy.abstract.service.d.ts +14 -0
  168. package/testing/lib/services/policy.service.fixture.d.ts +13 -0
  169. package/testing/lib/services/resource.abstract.service.d.ts +11 -0
  170. package/testing/lib/services/resource.service.fixture.d.ts +10 -0
  171. package/testing/lib/services/spel.abstract.service.d.ts +5 -0
  172. package/testing/lib/services/spel.service.fixture.d.ts +9 -0
  173. package/testing/lib/services/testing.d.ts +4 -0
  174. package/testing/package.json +10 -0
  175. package/testing/public-testing-api.d.ts +3 -0
  176. package/testing/testing/index.d.ts +1 -0
  177. package/testing/testing/stories-resources/index.d.ts +592 -0
  178. package/esm2015/lib/ui-policy-studio-angular.component.js +0 -30
  179. package/esm2015/lib/ui-policy-studio-angular.module.js +0 -32
  180. package/esm2015/lib/ui-policy-studio-angular.service.js +0 -29
  181. package/lib/ui-policy-studio-angular.component.d.ts +0 -5
  182. package/lib/ui-policy-studio-angular.module.d.ts +0 -7
  183. 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
+ }