Download OpenAPI specification:Download
WSGateway configuration REST Api Spec
Local
Your server url
[- {
- "id": "string",
- "path": "/ws/chat",
- "settings": {
- "backendParallelism": 8,
- "heartbeatIntervalInSeconds": 15,
- "heartbeatMaxMissingPingFrames": 3
}, - "authentication": {
- "mode": "none"
}, - "filters": {
- "whitelistIps": [
- "127.0.0.1"
], - "whitelistHosts": [
- "my.rest.api.com"
], - "blacklistHosts": [
- "my.rest.api.com"
], - "blacklistIps": [
- "127.0.0.1"
]
}, - "routes": [
- {
- "type": "connect",
- "name": "Connect Route",
- "backends": [
- {
- "type": "kafka",
- "destination": "https:my.rest.api.com",
- "readTimeoutInMillis": 1500,
- "connectTimeoutInMillis": 200,
- "additionalHeaders": { },
- "topic": "my.kafka.topic",
- "bootstrapServers": "localhost:9092",
- "acks": "1",
- "retriesNr": 1
}
], - "expression": {
- "and": [
- {
- "or": [
- {
- "matches": {
- "path": "$.a",
- "value": "a"
}
}, - {
- "gte": {
- "path": "$.b",
- "value": 8
}
}
]
}, - {
- "equal": {
- "path": "$.b",
- "value": "b"
}
}
]
}
}
]
}
]All configuration details used by Gateway for one endpoint
| path required | string [ 2 .. 255 ] characters ^(?!\/api\/internal).* The url path used to by the user to establish a WebSocket connection |
| settings | object General settings used used by the gateway |
| authentication | object Authentification details |
| filters | object |
| routes | Array of objects (Route) <= 255 items A set of routes |
Successful operation
Bad Request
Unauthorized
Internal Server Error
Local
Your server url
{- "id": "string",
- "path": "/ws/chat",
- "settings": {
- "backendParallelism": 8,
- "heartbeatIntervalInSeconds": 15,
- "heartbeatMaxMissingPingFrames": 3
}, - "authentication": {
- "mode": "none"
}, - "filters": {
- "whitelistIps": [
- "127.0.0.1"
], - "whitelistHosts": [
- "my.rest.api.com"
], - "blacklistHosts": [
- "my.rest.api.com"
], - "blacklistIps": [
- "127.0.0.1"
]
}, - "routes": [
- {
- "type": "connect",
- "name": "Connect Route",
- "backends": [
- {
- "type": "kafka",
- "destination": "https:my.rest.api.com",
- "readTimeoutInMillis": 1500,
- "connectTimeoutInMillis": 200,
- "additionalHeaders": { },
- "topic": "my.kafka.topic",
- "bootstrapServers": "localhost:9092",
- "acks": "1",
- "retriesNr": 1
}
], - "expression": {
- "and": [
- {
- "or": [
- {
- "matches": {
- "path": "$.a",
- "value": "a"
}
}, - {
- "gte": {
- "path": "$.b",
- "value": 8
}
}
]
}, - {
- "equal": {
- "path": "$.b",
- "value": "b"
}
}
]
}
}
]
}Get single endoint
| endpointId required | string Id of the endpoint |
Successful operation
Unauthorized
The specified resource was not found
Internal Server Error
Local
Your server url
{- "id": "string",
- "path": "/ws/chat",
- "settings": {
- "backendParallelism": 8,
- "heartbeatIntervalInSeconds": 15,
- "heartbeatMaxMissingPingFrames": 3
}, - "authentication": {
- "mode": "none"
}, - "filters": {
- "whitelistIps": [
- "127.0.0.1"
], - "whitelistHosts": [
- "my.rest.api.com"
], - "blacklistHosts": [
- "my.rest.api.com"
], - "blacklistIps": [
- "127.0.0.1"
]
}, - "routes": [
- {
- "type": "connect",
- "name": "Connect Route",
- "backends": [
- {
- "type": "kafka",
- "destination": "https:my.rest.api.com",
- "readTimeoutInMillis": 1500,
- "connectTimeoutInMillis": 200,
- "additionalHeaders": { },
- "topic": "my.kafka.topic",
- "bootstrapServers": "localhost:9092",
- "acks": "1",
- "retriesNr": 1
}
], - "expression": {
- "and": [
- {
- "or": [
- {
- "matches": {
- "path": "$.a",
- "value": "a"
}
}, - {
- "gte": {
- "path": "$.b",
- "value": 8
}
}
]
}, - {
- "equal": {
- "path": "$.b",
- "value": "b"
}
}
]
}
}
]
}Update an endpoint
| endpointId required | string Id of the endpoint |
All configuration details used by Gateway for one endpoint
| path required | string [ 2 .. 255 ] characters ^(?!\/api\/internal).* The url path used to by the user to establish a WebSocket connection |
| settings | object General settings used used by the gateway |
| authentication | object Authentification details |
| filters | object |
| routes | Array of objects (Route) <= 255 items A set of routes |
Successful operation
Invalid endpoint
Unauthorized
The specified resource was not found
Internal Server Error
Local
Your server url
{- "id": "string",
- "path": "/ws/chat",
- "settings": {
- "backendParallelism": 8,
- "heartbeatIntervalInSeconds": 15,
- "heartbeatMaxMissingPingFrames": 3
}, - "authentication": {
- "mode": "none"
}, - "filters": {
- "whitelistIps": [
- "127.0.0.1"
], - "whitelistHosts": [
- "my.rest.api.com"
], - "blacklistHosts": [
- "my.rest.api.com"
], - "blacklistIps": [
- "127.0.0.1"
]
}, - "routes": [
- {
- "type": "connect",
- "name": "Connect Route",
- "backends": [
- {
- "type": "kafka",
- "destination": "https:my.rest.api.com",
- "readTimeoutInMillis": 1500,
- "connectTimeoutInMillis": 200,
- "additionalHeaders": { },
- "topic": "my.kafka.topic",
- "bootstrapServers": "localhost:9092",
- "acks": "1",
- "retriesNr": 1
}
], - "expression": {
- "and": [
- {
- "or": [
- {
- "matches": {
- "path": "$.a",
- "value": "a"
}
}, - {
- "gte": {
- "path": "$.b",
- "value": 8
}
}
]
}, - {
- "equal": {
- "path": "$.b",
- "value": "b"
}
}
]
}
}
]
}Delete endpoint by id
| endpointId required | string Id of the endpoint |
Successful operation
Unauthorized
The specified resource was not found
Internal Server Error
Local
Your server url
{- "status": "Bad Request",
- "errorType": "ConstraintViolation",
- "message": "Some Exception Mesage",
- "timestamp": 1582454804000,
- "errors": [
- "Property endpoint.path can not be null"
]
}Send a json event to the end user through the websocket connection
| connectionId required | string Websocket connection id |
The json event to be sent
successful operation
Bad Request
Unauthorized
Internal Server Error
Local
Your server url
{ }{- "status": "Bad Request",
- "errorType": "ConstraintViolation",
- "message": "Some Exception Mesage",
- "timestamp": 1582454804000,
- "errors": [
- "Property endpoint.path can not be null"
]
}| id | string |
| path required | string [ 2 .. 255 ] characters ^(?!\/api\/internal).* The url path used to by the user to establish a WebSocket connection |
| settings | object General settings used used by the gateway |
| authentication | object Authentification details |
| filters | object |
| routes | Array of objects (Route) <= 255 items A set of routes |
{- "id": "string",
- "path": "/ws/chat",
- "settings": {
- "backendParallelism": 8,
- "heartbeatIntervalInSeconds": 15,
- "heartbeatMaxMissingPingFrames": 3
}, - "authentication": {
- "mode": "none"
}, - "filters": {
- "whitelistIps": [
- "127.0.0.1"
], - "whitelistHosts": [
- "my.rest.api.com"
], - "blacklistHosts": [
- "my.rest.api.com"
], - "blacklistIps": [
- "127.0.0.1"
]
}, - "routes": [
- {
- "type": "connect",
- "name": "Connect Route",
- "backends": [
- {
- "type": "kafka",
- "destination": "https:my.rest.api.com",
- "readTimeoutInMillis": 1500,
- "connectTimeoutInMillis": 200,
- "additionalHeaders": { },
- "topic": "my.kafka.topic",
- "bootstrapServers": "localhost:9092",
- "acks": "1",
- "retriesNr": 1
}
], - "expression": {
- "and": [
- {
- "or": [
- {
- "matches": {
- "path": "$.a",
- "value": "a"
}
}, - {
- "gte": {
- "path": "$.b",
- "value": 8
}
}
]
}, - {
- "equal": {
- "path": "$.b",
- "value": "b"
}
}
]
}
}
]
}| type required | string Enum: "connect" "disconnect" "default" "custom" Type of the route |
| name required | string [ 4 .. 255 ] characters The name of the route. Within an endpoint pair (name, type) is unique |
| backends | Array of objects <= 10 items Set of http and kafka backends to forward inbound events for current route |
| expression | object Nullable Expression to be evaluated against the inbound event. For custom routes the expression is mandatory |
{- "type": "connect",
- "name": "Connect Route",
- "backends": [
- {
- "type": "kafka",
- "destination": "https:my.rest.api.com",
- "readTimeoutInMillis": 1500,
- "connectTimeoutInMillis": 200,
- "additionalHeaders": { },
- "topic": "my.kafka.topic",
- "bootstrapServers": "localhost:9092",
- "acks": "1",
- "retriesNr": 1
}
], - "expression": {
- "and": [
- {
- "or": [
- {
- "matches": {
- "path": "$.a",
- "value": "a"
}
}, - {
- "gte": {
- "path": "$.b",
- "value": 8
}
}
]
}, - {
- "equal": {
- "path": "$.b",
- "value": "b"
}
}
]
}
}| status | string Http status code phrase |
| errorType | string Type of the error |
| message | string Message error |
| timestamp | integer Timestamp in milliseconds when error occurred |
| errors | Array of strings List of aditional erorr messages(causes) |
{- "status": "Bad Request",
- "errorType": "ConstraintViolation",
- "message": "Some Exception Mesage",
- "timestamp": 1582454804000,
- "errors": [
- "Property endpoint.path can not be null"
]
}