-
Notifications
You must be signed in to change notification settings - Fork 2
/
input8.javascript.json
85 lines (85 loc) · 2.66 KB
/
input8.javascript.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
{
"name": "JavascriptProxy",
"profile": "default",
"description": "This input file gets 3 different javascript resource files from a local dir, a remote https address, and a string. Then 3 javascript policies are added to the preRequest flow for each file.",
"endpoints": [
{
"name": "default",
"basePath": "/js",
"target": {
"name": "default",
"properties":{
"io.timeout.millis": "20000",
"connect.timeout.millis": "3000"
},
"url": "https://httpbin.org",
"headers": {
"Accept-Encoding": "gzip,deflate"
}
},
"extensionSteps": [
{
"type": "resourceFiles",
"name": "RS-JavascriptFiles",
"flowRunPoints": [],
"files": {
"jsc/helloWorld1.js": "./test/data/input8.javascript.js",
"jsc/helloWorld2.js": "https://raw.githubusercontent.com/apigee/apigee-templater/main/module/test/data/input8.javascript.js",
"jsc/helloWorld3.js": "print('hello world 3!');\nprint('hello world 3!');"
}
},
{
"name": "JS-RunScript-1",
"flowRunPoints": [{
"name": "preRequest",
"runPoints": ["preRequest"]
}],
"properties": {
"Javascript": {
"_attributes": {
"name": "JS-RunScript-1"
},
"DisplayName": "JS-RunScript-1",
"Properties": {},
"ResourceURL": "jsc://helloWorld1.js"
}
}
},
{
"name": "JS-RunScript-2",
"flowRunPoints": [{
"name": "preRequest",
"runPoints": ["preRequest"]
}],
"properties": {
"Javascript": {
"_attributes": {
"name": "JS-RunScript-2"
},
"DisplayName": "JS-RunScript-2",
"Properties": {},
"ResourceURL": "jsc://helloWorld2.js"
}
}
},
{
"name": "JS-RunScript-3",
"flowRunPoints": [{
"name": "preRequest",
"runPoints": ["preRequest"]
}],
"properties": {
"Javascript": {
"_attributes": {
"name": "JS-RunScript-3"
},
"DisplayName": "JS-RunScript-3",
"Properties": {},
"ResourceURL": "jsc://helloWorld3.js"
}
}
}
]
}
]
}