You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
90 lines
1.9 KiB
90 lines
1.9 KiB
{
|
|
"version": 2,
|
|
"extra_config": {
|
|
"github_com/devopsfaith/krakend-gologging": {
|
|
"level": "INFO",
|
|
"prefix": "[KRAKEND]",
|
|
"syslog": false,
|
|
"stdout": true,
|
|
"format": "default"
|
|
}
|
|
},
|
|
"timeout": "3000ms",
|
|
"cache_ttl": "300s",
|
|
"output_encoding": "json",
|
|
"name": "docker-flask-mongodb-example",
|
|
"endpoints": [
|
|
{
|
|
"endpoint": "/random",
|
|
"method": "GET",
|
|
"extra_config": {},
|
|
"output_encoding": "string",
|
|
"concurrent_calls": 1,
|
|
"querystring_params": [
|
|
"lower",
|
|
"upper"
|
|
],
|
|
"backend": [
|
|
{
|
|
"url_pattern": "/random",
|
|
"encoding": "string",
|
|
"sd": "static",
|
|
"extra_config": {},
|
|
"method": "GET",
|
|
"host": [
|
|
"http://web-random:5000"
|
|
],
|
|
"disable_host_sanitize": false
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"endpoint": "/users",
|
|
"method": "GET",
|
|
"extra_config": {},
|
|
"output_encoding": "string",
|
|
"concurrent_calls": 1,
|
|
"querystring_params": [
|
|
"limit",
|
|
"offset"
|
|
],
|
|
"backend": [
|
|
{
|
|
"url_pattern": "/users",
|
|
"encoding": "string",
|
|
"sd": "static",
|
|
"extra_config": {},
|
|
"method": "GET",
|
|
"host": [
|
|
"http://web-users:5000"
|
|
],
|
|
"disable_host_sanitize": false
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"endpoint": "/random",
|
|
"method": "PUT",
|
|
"output_encoding": "string",
|
|
"extra_config": {},
|
|
"querystring_params": [
|
|
"lower",
|
|
"upper"
|
|
],
|
|
"backend": [
|
|
{
|
|
"url_pattern": "/random",
|
|
"encoding": "string",
|
|
"sd": "static",
|
|
"method": "PUT",
|
|
"extra_config": {},
|
|
"host": [
|
|
"http://web-random:5000"
|
|
],
|
|
"disable_host_sanitize": false
|
|
}
|
|
]
|
|
}
|
|
],
|
|
"disable_rest": false
|
|
}
|