aler9 4 years ago
parent
commit
555865f598
  1. 17
      index.html
  2. 75
      openapi.yaml

17
index.html

File diff suppressed because one or more lines are too long

75
openapi.yaml

@ -182,6 +182,7 @@ components: @@ -182,6 +182,7 @@ components:
source:
oneOf:
- $ref: '#/components/schemas/PathSourceRTSPSession'
- $ref: '#/components/schemas/PathSourceRTSPSSession'
- $ref: '#/components/schemas/PathSourceRTMPConn'
sourceReady:
type: boolean
@ -190,6 +191,7 @@ components: @@ -190,6 +191,7 @@ components:
items:
oneOf:
- $ref: '#/components/schemas/PathReaderRTSPSession'
- $ref: '#/components/schemas/PathReaderRTSPSSession'
- $ref: '#/components/schemas/PathReaderRTMPConn'
- $ref: '#/components/schemas/PathReaderHLSMuxer'
@ -202,6 +204,15 @@ components: @@ -202,6 +204,15 @@ components:
id:
type: string
PathSourceRTSPSSession:
type: object
properties:
type:
type: string
enum: [rtspssession]
id:
type: string
PathSourceRTMPConn:
type: object
properties:
@ -220,6 +231,15 @@ components: @@ -220,6 +231,15 @@ components:
id:
type: string
PathReaderRTSPSSession:
type: object
properties:
type:
type: string
enum: [rtspssession]
id:
type: string
PathReaderRTMPConn:
type: object
properties:
@ -241,12 +261,27 @@ components: @@ -241,12 +261,27 @@ components:
properties:
remoteAddr:
type: string
state:
type: string
enum: [idle, read, publish]
RTSPSSession:
type: object
properties:
remoteAddr:
type: string
state:
type: string
enum: [idle, read, publish]
RTMPConn:
type: object
properties:
remoteAddr:
type: string
state:
type: string
enum: [idle, read, publish]
paths:
/v1/config/get:
@ -415,6 +450,46 @@ paths: @@ -415,6 +450,46 @@ paths:
'500':
description: internal server error.
/v1/rtspssessions/list:
get:
operationId: rtspsSessionsList
summary: returns all active RTSPS sessions.
description: ''
responses:
'200':
description: the request was successful.
content:
application/json:
schema:
items:
type: object
additionalProperties:
$ref: '#/components/schemas/RTSPSSession'
'400':
description: invalid request.
'500':
description: internal server error.
/v1/rtspssessions/kick/{id}:
post:
operationId: rtspsSessionsKick
summary: kicks out a RTSPS session from the server.
description: ''
parameters:
- name: id
in: path
required: true
description: the ID of the session.
schema:
type: string
responses:
'200':
description: the request was successful.
'400':
description: invalid request.
'500':
description: internal server error.
/v1/rtmpconns/list:
get:
operationId: rtmpConnsList

Loading…
Cancel
Save