get.json 1.1 KB

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