-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathkrakend.json
56 lines (56 loc) · 1.9 KB
/
krakend.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
{
"cache_ttl": 3600,
"endpoints": [
{
"backend": [
{
"extra_config": {
"github.com/devopsfaith/krakend-martian": {
"fifo.Group": {
"aggregateErrors": true,
"modifiers": [
{
"querystring.MarvelModifier": {
"private": "your Marvel api private key",
"public": "your Marvel api public key",
"scope": [
"request"
]
}
}
],
"scope": [
"request",
"response"
]
}
}
},
"host": [
"http://gateway.marvel.com"
],
"url_pattern": "/v1/public/characters?name={name}",
"whitelist": [
"data.results",
"attributionHTML"
],
"mapping": { "data": "characters"}
}
],
"endpoint": "/character/{name}",
"method": "GET"
}
],
"extra_config": {
"github_com/devopsfaith/krakend-gologging": {
"level": "INFO",
"prefix": "[KRAKEND]",
"stdout": true,
"syslog": false
}
},
"name": "My lovely gateway",
"port": 8080,
"timeout": "3s",
"version": 2
}