Created
November 4, 2024 16:14
-
-
Save sedkis/f21884037d50b377eee88606bbd3b7d7 to your computer and use it in GitHub Desktop.
Tyk Streams Examples
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"info": { | |
"title": "test", | |
"version": "1.0.0" | |
}, | |
"openapi": "3.0.3", | |
"servers": [ | |
{ | |
"url": "http://localhost:8080/test/" | |
} | |
], | |
"x-tyk-streaming": { | |
"streams": { | |
"Bar": { | |
"input": { | |
"http_client": { | |
"stream": { | |
"codec": "delim:\n\n", | |
"enabled": true, | |
"reconnect": true | |
}, | |
"url": "http://echo-server:8080/.sse" | |
} | |
}, | |
"output": { | |
"broker": { | |
"outputs": [ | |
{ | |
"http_server": { | |
"ws_path": "/barbaz" | |
} | |
}, | |
{ | |
"stdout": { | |
"codec": "lines" | |
} | |
} | |
], | |
"pattern": "fan_out" | |
} | |
} | |
}, | |
"Foo": { | |
"input": { | |
"http_server": { | |
"path": "/post" | |
}, | |
"label": "example_generator_input" | |
}, | |
"output": { | |
"http_server": { | |
"ws_path": "/subscribe" | |
}, | |
"label": "example_websocket_output" | |
} | |
} | |
} | |
}, | |
"security": [], | |
"paths": {}, | |
"components": { | |
"securitySchemes": {} | |
}, | |
"x-tyk-api-gateway": { | |
"info": { | |
"dbId": "6728eaf607dbf10001f2b34c", | |
"id": "fb930532d12c4f007131d07746598fd7", | |
"orgId": "6728eac707dbf10001f2b348", | |
"name": "test", | |
"state": { | |
"active": true, | |
"internal": false | |
} | |
}, | |
"middleware": { | |
"global": { | |
"contextVariables": { | |
"enabled": true | |
}, | |
"trafficLogs": { | |
"enabled": true | |
} | |
} | |
}, | |
"server": { | |
"listenPath": { | |
"strip": true, | |
"value": "/test/" | |
} | |
}, | |
"upstream": { | |
"url": "http://httpbin.org/" | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment