...
This setting enables / disables the endpoint. If disabled, requests wont be forwarded to the target. Instead, a HTTP status code 503
(Service Unavailbale) will be send as response to the caller.
Mocked
If this is enabled, the request wont be forwarded to the target. Instead a mock response will be returned. This can be used for testing for example. Here is an example of such a reponse:
Code Block |
---|
{
"path": "invoice/123",
"headers": {
"authorization": [
"Basic ZGo2ZWxvcGVyMTpeeXZlaa9wZXIxcHdk"
],
"accept": [
"*/*"
],
"host": [
"localhost:8080"
]
},
"method": "GET",
"targetUri": "http://myservice:8080/invoice/123",
"body": ""
}
|
Weight
In case two pattern match the same request, this parameter indicates which endpoint has highest priority. The one with highest weight number wins in this case.
...
Only single file upload is supported. The file will be forwarded as byte array in the message to the queue. The Content-Type
header of the request will be set to the Content-Type
header of the message.
Mock
If this target is selected, the request wont be forwarded to any real target. It will be dropped and a mock response will be returned. This can be used for testing or during development in case the endpoint is not ready yet. The JSON value to return by the mock can be configured.
Auth
This toggle enables authentication for this endpoint: If enabled, it will be checked wether a valid Authorization
header exists in request and whether the authentication in it is valid. This can be a Bearer token, a Basic (username and password) auth or any other supported authorization value.
...