-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathkrakend.plugin.json
62 lines (62 loc) · 1.34 KB
/
krakend.plugin.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
{
"version": 3,
"port": 8080,
"$schema": "http://www.krakend.io/schema/v3.json",
"name": "KrakenD request and response modifier demo",
"host": [
"https://api.github.com"
],
"plugin": {
"pattern": ".so",
"folder": "plugins/"
},
"endpoints": [
{
"endpoint": "/github/orgs/{org}",
"backend": [
{
"url_pattern": "/orgs/{org}",
"allow": [
"avatar_url",
"blog",
"followers"
],
"mapping": {
"blog": "website"
},
"group": "org",
"extra_config": {
"plugin/req-resp-modifier": {
"name": [
"krakend-debugger-request",
"krakend-debugger-response"
]
}
}
},
{
"url_pattern": "/orgs/{org}/repos",
"mapping": {
"collection": "repos"
},
"is_collection": true,
"extra_config": {
"plugin/req-resp-modifier": {
"name": [
"krakend-debugger-request",
"krakend-debugger-response"
]
}
}
}
],
"extra_config": {
"plugin/req-resp-modifier": {
"name": [
"krakend-debugger"
]
}
}
}
]
}