get.json 1.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. {
  2. "operationId": "getStream",
  3. "summary": "Get a Stream",
  4. "tags": ["Streams"],
  5. "security": [
  6. {
  7. "BearerAuth": ["streams"]
  8. }
  9. ],
  10. "parameters": [
  11. {
  12. "in": "path",
  13. "name": "streamID",
  14. "schema": {
  15. "type": "integer",
  16. "minimum": 1
  17. },
  18. "required": true,
  19. "example": 2
  20. }
  21. ],
  22. "responses": {
  23. "200": {
  24. "description": "200 response",
  25. "content": {
  26. "application/json": {
  27. "examples": {
  28. "default": {
  29. "value": {
  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. "schema": {
  49. "$ref": "../../../../components/stream-object.json"
  50. }
  51. }
  52. }
  53. }
  54. }
  55. }