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.
72 lines
1.8 KiB
72 lines
1.8 KiB
{
|
|
"id": 1234567890987,
|
|
"provider_key": "provider-key",
|
|
"services": [
|
|
{
|
|
"id": 654321,
|
|
"backend_version": "1",
|
|
"proxy": {
|
|
"api_backend": "http://127.0.0.1:8081",
|
|
"hostname_rewrite": "echo",
|
|
"hosts": [
|
|
"localhost",
|
|
"127.0.0.1"
|
|
],
|
|
"backend": {
|
|
"endpoint": "http://127.0.0.1:8081",
|
|
"host": "backend"
|
|
},
|
|
"auth_user_key": "user_key",
|
|
"credentials_location": "query",
|
|
"policy_chain": [
|
|
{
|
|
"name": "apicast.policy.apicast"
|
|
},
|
|
{
|
|
"name": "apicast.policy.phase_logger"
|
|
},
|
|
{
|
|
"name": "custom.logger.verbose",
|
|
"configuration": {
|
|
"syslog_host": "127.0.0.1.xip.io",
|
|
"syslog_port": "1601",
|
|
"syslog_protocol": "tcp",
|
|
"payload_encoding": "base64"
|
|
}
|
|
}
|
|
],
|
|
"proxy_rules": [
|
|
{
|
|
"http_method": "GET",
|
|
"pattern": "/",
|
|
"metric_system_name": "hits",
|
|
"delta": 1,
|
|
"parameters": [],
|
|
"querystring_parameters": {}
|
|
},{
|
|
"http_method": "POST",
|
|
"pattern": "/",
|
|
"metric_system_name": "hits",
|
|
"delta": 1,
|
|
"parameters": [],
|
|
"querystring_parameters": {}
|
|
},{
|
|
"http_method": "PUT",
|
|
"pattern": "/",
|
|
"metric_system_name": "hits",
|
|
"delta": 1,
|
|
"parameters": [],
|
|
"querystring_parameters": {}
|
|
},{
|
|
"http_method": "DELETE",
|
|
"pattern": "/",
|
|
"metric_system_name": "hits",
|
|
"delta": 1,
|
|
"parameters": [],
|
|
"querystring_parameters": {}
|
|
}
|
|
]
|
|
}
|
|
}
|
|
]
|
|
}
|
|
|