-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathkrakend.json
More file actions
37 lines (37 loc) · 788 Bytes
/
krakend.json
File metadata and controls
37 lines (37 loc) · 788 Bytes
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
{
"version": 2,
"plugin": {
"pattern": ".so",
"folder": "./"
},
"extra_config": {
"github_com/devopsfaith/krakend/transport/http/server/handler": {
"name": "headerModPlugin",
"attachuserid": "rsc"
}
},
"timeout": "3000ms",
"cache_ttl": "300s",
"output_encoding": "json",
"name": "CoolUserService",
"endpoints": [
{
"endpoint": "api/get-user/{userId}",
"method": "GET",
"extra_config": {},
"output_encoding": "json",
"concurrent_calls": 1,
"headers_to_pass": [
"X-Friend-User"
],
"querystring_params": [],
"backend": [
{
"method": "GET",
"host": [ "https://api.github.com" ],
"url_pattern": "/users/{userId}"
}
]
}
]
}