get.json 1.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  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": ["access_list", "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": 0,
  38. "udp_forwarding": 0,
  39. "meta": {
  40. "nginx_online": true,
  41. "nginx_err": null
  42. },
  43. "enabled": 1
  44. }
  45. ]
  46. }
  47. },
  48. "schema": {
  49. "$ref": "../../../components/stream-list.json"
  50. }
  51. }
  52. }
  53. }
  54. }
  55. }