-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathswagger.yml
51 lines (47 loc) · 1.48 KB
/
swagger.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
openapi: '3.0.3'
info:
title: Chrome Screen Recorder AAPI
version: '1.0'
description: |-
** This is the documentation for the API of a Chrome screen Recording extension
contact:
name: Osamuyi
email: [email protected]
servers:
- url: http://localhost:3500
description: development
- url: https://pear-uninterested-caterpillar.cyclic.cloud
description: production
paths:
/start-record:
post:
summary: Returns the videoId to the user
description: The video model is created in the database, and the Id is returned to the frontend, where the id will be used to identify subsequent request to the server
responses:
'200':
description: A JSON object containing the newly created videId is sent
content:
application/json:
schema:
type: object
properties:
videoId:
type: object
format: mongooseString
example: '651b2dbf5db65907cbfa09a0'
status:
type: integer
example: 200
'500':
description: Something went wrong
content:
application/json:
schema:
type: object
properties:
message:
type: object
format: string
example: 'Something went wrong'
/video-chunks/{id}:
post: