add auth and coord update endpoint
This commit is contained in:
parent
b22bf714cc
commit
730fc1213d
79
backend.yml
79
backend.yml
@ -18,6 +18,8 @@ paths:
|
|||||||
get:
|
get:
|
||||||
tags:
|
tags:
|
||||||
- backend
|
- backend
|
||||||
|
security:
|
||||||
|
- bearerAuth: []
|
||||||
summary: Get all users
|
summary: Get all users
|
||||||
operationId: getall
|
operationId: getall
|
||||||
responses:
|
responses:
|
||||||
@ -40,6 +42,8 @@ paths:
|
|||||||
- backend
|
- backend
|
||||||
summary: Get a user with a name
|
summary: Get a user with a name
|
||||||
operationId: getauser
|
operationId: getauser
|
||||||
|
security:
|
||||||
|
- bearerAuth: []
|
||||||
parameters:
|
parameters:
|
||||||
- name: username
|
- name: username
|
||||||
in: path
|
in: path
|
||||||
@ -65,6 +69,8 @@ paths:
|
|||||||
- backend
|
- backend
|
||||||
summary: Delete a user
|
summary: Delete a user
|
||||||
operationId: deleteuser
|
operationId: deleteuser
|
||||||
|
security:
|
||||||
|
- bearerAuth: []
|
||||||
parameters:
|
parameters:
|
||||||
- name: username
|
- name: username
|
||||||
in: path
|
in: path
|
||||||
@ -90,6 +96,8 @@ paths:
|
|||||||
- backend
|
- backend
|
||||||
summary: Modifies a user
|
summary: Modifies a user
|
||||||
operationId: modifyUser
|
operationId: modifyUser
|
||||||
|
security:
|
||||||
|
- bearerAuth: []
|
||||||
parameters:
|
parameters:
|
||||||
- name: username
|
- name: username
|
||||||
in: path
|
in: path
|
||||||
@ -192,6 +200,8 @@ paths:
|
|||||||
post:
|
post:
|
||||||
tags:
|
tags:
|
||||||
- backend
|
- backend
|
||||||
|
security:
|
||||||
|
- bearerAuth: []
|
||||||
summary: Creates an ingest resource
|
summary: Creates an ingest resource
|
||||||
operationId: createIngest
|
operationId: createIngest
|
||||||
requestBody:
|
requestBody:
|
||||||
@ -212,6 +222,8 @@ paths:
|
|||||||
post:
|
post:
|
||||||
tags:
|
tags:
|
||||||
- backend
|
- backend
|
||||||
|
security:
|
||||||
|
- bearerAuth: []
|
||||||
summary: Creates a restream resource
|
summary: Creates a restream resource
|
||||||
operationId: createRestream
|
operationId: createRestream
|
||||||
requestBody:
|
requestBody:
|
||||||
@ -232,6 +244,8 @@ paths:
|
|||||||
post:
|
post:
|
||||||
tags:
|
tags:
|
||||||
- backend
|
- backend
|
||||||
|
security:
|
||||||
|
- bearerAuth: []
|
||||||
summary: Creates a encode resource
|
summary: Creates a encode resource
|
||||||
operationId: createEncode
|
operationId: createEncode
|
||||||
requestBody:
|
requestBody:
|
||||||
@ -252,6 +266,8 @@ paths:
|
|||||||
get:
|
get:
|
||||||
tags:
|
tags:
|
||||||
- backend
|
- backend
|
||||||
|
security:
|
||||||
|
- bearerAuth: []
|
||||||
summary: Gets all streamer resources
|
summary: Gets all streamer resources
|
||||||
operationId: getResource
|
operationId: getResource
|
||||||
responses:
|
responses:
|
||||||
@ -267,6 +283,8 @@ paths:
|
|||||||
delete:
|
delete:
|
||||||
tags:
|
tags:
|
||||||
- backend
|
- backend
|
||||||
|
security:
|
||||||
|
- bearerAuth: []
|
||||||
summary: Deletes a streamer resource
|
summary: Deletes a streamer resource
|
||||||
operationId: deleteResource
|
operationId: deleteResource
|
||||||
parameters:
|
parameters:
|
||||||
@ -293,6 +311,8 @@ paths:
|
|||||||
get:
|
get:
|
||||||
tags:
|
tags:
|
||||||
- backend
|
- backend
|
||||||
|
security:
|
||||||
|
- bearerAuth: []
|
||||||
summary: Gets a streamer resource
|
summary: Gets a streamer resource
|
||||||
operationId: getAResource
|
operationId: getAResource
|
||||||
parameters:
|
parameters:
|
||||||
@ -320,6 +340,8 @@ paths:
|
|||||||
put:
|
put:
|
||||||
tags:
|
tags:
|
||||||
- backend
|
- backend
|
||||||
|
security:
|
||||||
|
- bearerAuth: []
|
||||||
summary: Modifies an ingest resource
|
summary: Modifies an ingest resource
|
||||||
operationId: editIngest
|
operationId: editIngest
|
||||||
requestBody:
|
requestBody:
|
||||||
@ -354,6 +376,8 @@ paths:
|
|||||||
put:
|
put:
|
||||||
tags:
|
tags:
|
||||||
- backend
|
- backend
|
||||||
|
security:
|
||||||
|
- bearerAuth: []
|
||||||
summary: Modifies a restream resource
|
summary: Modifies a restream resource
|
||||||
operationId: editRestream
|
operationId: editRestream
|
||||||
requestBody:
|
requestBody:
|
||||||
@ -388,6 +412,8 @@ paths:
|
|||||||
put:
|
put:
|
||||||
tags:
|
tags:
|
||||||
- backend
|
- backend
|
||||||
|
security:
|
||||||
|
- bearerAuth: []
|
||||||
summary: Modifies an encode resource
|
summary: Modifies an encode resource
|
||||||
operationId: editEncode
|
operationId: editEncode
|
||||||
requestBody:
|
requestBody:
|
||||||
@ -410,7 +436,43 @@ paths:
|
|||||||
content:
|
content:
|
||||||
application/json:
|
application/json:
|
||||||
schema:
|
schema:
|
||||||
$ref: '#/components/schemas/EncodeObjectParameters'
|
$ref: '#/components/schemas/StreamerObjectData'
|
||||||
|
404:
|
||||||
|
description: ID not found
|
||||||
|
content:
|
||||||
|
application/json:
|
||||||
|
schema:
|
||||||
|
$ref: '#/components/schemas/ApiResponse'
|
||||||
|
|
||||||
|
/api/objects/streamerobjects/coordmodify/{id}:
|
||||||
|
put:
|
||||||
|
tags:
|
||||||
|
- backend
|
||||||
|
security:
|
||||||
|
- bearerAuth: []
|
||||||
|
summary: Modifies a resource coords
|
||||||
|
operationId: editCoords
|
||||||
|
requestBody:
|
||||||
|
content:
|
||||||
|
application/json:
|
||||||
|
schema:
|
||||||
|
$ref: '#/components/schemas/CoordParameters'
|
||||||
|
required: true
|
||||||
|
parameters:
|
||||||
|
- name: id
|
||||||
|
in: path
|
||||||
|
description: ID of a resource
|
||||||
|
required: true
|
||||||
|
schema:
|
||||||
|
type: string
|
||||||
|
format: uuid
|
||||||
|
responses:
|
||||||
|
200:
|
||||||
|
description: Streamer resource data
|
||||||
|
content:
|
||||||
|
application/json:
|
||||||
|
schema:
|
||||||
|
$ref: '#/components/schemas/StreamerObjectData'
|
||||||
404:
|
404:
|
||||||
description: ID not found
|
description: ID not found
|
||||||
content:
|
content:
|
||||||
@ -581,3 +643,18 @@ components:
|
|||||||
type: string
|
type: string
|
||||||
message:
|
message:
|
||||||
type: string
|
type: string
|
||||||
|
CoordParameters:
|
||||||
|
required:
|
||||||
|
- x
|
||||||
|
- y
|
||||||
|
type: object
|
||||||
|
properties:
|
||||||
|
x:
|
||||||
|
type: integer
|
||||||
|
y:
|
||||||
|
type: integer
|
||||||
|
securitySchemes:
|
||||||
|
bearerAuth:
|
||||||
|
type: http
|
||||||
|
scheme: bearer
|
||||||
|
bearerFormat: JWT
|
Loading…
Reference in New Issue
Block a user