get.json 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. {
  2. "operationId": "getStreams",
  3. "summary": "Get all streams",
  4. "tags": ["Streams"],
  5. "security": [
  6. {
  7. "BearerAuth": ["streams"]
  8. }
  9. ],
  10. "parameters": [
  11. {
  12. "in": "query",
  13. "name": "expand",
  14. "description": "Expansions",
  15. "schema": {
  16. "type": "string",
  17. "enum": ["owner", "certificate"]
  18. }
  19. }
  20. ],
  21. "responses": {
  22. "200": {
  23. "description": "200 response",
  24. "content": {
  25. "application/json": {
  26. "examples": {
  27. "default": {
  28. "value": [
  29. {
  30. "id": 1,
  31. "created_on": "2024-10-09T02:33:45.000Z",
  32. "modified_on": "2024-10-09T02:33:45.000Z",
  33. "owner_user_id": 1,
  34. "incoming_port": 9090,
  35. "forwarding_host": "router.internal",
  36. "forwarding_port": 80,
  37. "tcp_forwarding": true,
  38. "udp_forwarding": false,
  39. "meta": {
  40. "nginx_online": true,
  41. "nginx_err": null
  42. },
  43. "enabled": true,
  44. "certificate_id": 0
  45. }
  46. ]
  47. }
  48. },
  49. "schema": {
  50. "$ref": "../../../components/stream-list.json"
  51. }
  52. }
  53. }
  54. }
  55. }
  56. }