mirror of
https://github.com/TeamPiped/OpenAPI.git
synced 2024-08-14 23:56:55 +00:00
Add more information.
This commit is contained in:
parent
911b8ffb2a
commit
61850e3844
1 changed files with 23 additions and 3 deletions
26
swagger.yaml
26
swagger.yaml
|
@ -94,7 +94,7 @@ paths:
|
||||||
tags:
|
tags:
|
||||||
- channel
|
- channel
|
||||||
- unauthenticated
|
- unauthenticated
|
||||||
summary: Gets Channel Information
|
summary: Gets Channel Information from ID.
|
||||||
operationId: channelInfoId
|
operationId: channelInfoId
|
||||||
description: |
|
description: |
|
||||||
Gets all available Channel information about a channel.
|
Gets all available Channel information about a channel.
|
||||||
|
@ -125,7 +125,7 @@ paths:
|
||||||
tags:
|
tags:
|
||||||
- channel
|
- channel
|
||||||
- unauthenticated
|
- unauthenticated
|
||||||
summary: Gets Channel Information
|
summary: Gets Channel Information from name.
|
||||||
operationId: channelInfoName
|
operationId: channelInfoName
|
||||||
description: |
|
description: |
|
||||||
Gets all available Channel information about a channel.
|
Gets all available Channel information about a channel.
|
||||||
|
@ -155,7 +155,7 @@ paths:
|
||||||
tags:
|
tags:
|
||||||
- channel
|
- channel
|
||||||
- unauthenticated
|
- unauthenticated
|
||||||
summary: Gets Channel Information
|
summary: Gets Channel Information from username.
|
||||||
operationId: channelInfoUsername
|
operationId: channelInfoUsername
|
||||||
description: |
|
description: |
|
||||||
Gets all available Channel information about a channel.
|
Gets all available Channel information about a channel.
|
||||||
|
@ -382,6 +382,7 @@ paths:
|
||||||
type: array
|
type: array
|
||||||
items:
|
items:
|
||||||
type: string
|
type: string
|
||||||
|
pattern: "^[a-zA-Z0-9_-]{24}$"
|
||||||
example:
|
example:
|
||||||
- UCs6KfncB4OV6Vug4o_bzijg
|
- UCs6KfncB4OV6Vug4o_bzijg
|
||||||
- UClcE-kVhqyiHCcjYwcpfj9w
|
- UClcE-kVhqyiHCcjYwcpfj9w
|
||||||
|
@ -681,6 +682,10 @@ components:
|
||||||
- title
|
- title
|
||||||
- url
|
- url
|
||||||
properties:
|
properties:
|
||||||
|
type:
|
||||||
|
type: string
|
||||||
|
description: The type of the stream item. Always stream.
|
||||||
|
example: stream
|
||||||
duration:
|
duration:
|
||||||
type: integer
|
type: integer
|
||||||
description: The duration of the video in seconds.
|
description: The duration of the video in seconds.
|
||||||
|
@ -718,6 +723,13 @@ components:
|
||||||
views:
|
views:
|
||||||
type: integer
|
type: integer
|
||||||
description: The number of views the video has.
|
description: The number of views the video has.
|
||||||
|
isShort:
|
||||||
|
type: boolean
|
||||||
|
description: Whether or not the video is a short video.
|
||||||
|
shortDescription:
|
||||||
|
type: string
|
||||||
|
description: The short description of the video.
|
||||||
|
nullable: true
|
||||||
StreamsPage:
|
StreamsPage:
|
||||||
type: object
|
type: object
|
||||||
properties:
|
properties:
|
||||||
|
@ -814,6 +826,10 @@ components:
|
||||||
ChannelItem:
|
ChannelItem:
|
||||||
type: object
|
type: object
|
||||||
properties:
|
properties:
|
||||||
|
type:
|
||||||
|
type: string
|
||||||
|
description: The type of the channel item. Always channel.
|
||||||
|
example: channel
|
||||||
description:
|
description:
|
||||||
type: string
|
type: string
|
||||||
description: The description of the channel.
|
description: The description of the channel.
|
||||||
|
@ -838,6 +854,10 @@ components:
|
||||||
PlaylistItem:
|
PlaylistItem:
|
||||||
type: object
|
type: object
|
||||||
properties:
|
properties:
|
||||||
|
type:
|
||||||
|
type: string
|
||||||
|
description: The type of the playlist item. Always playlist.
|
||||||
|
example: playlist
|
||||||
name:
|
name:
|
||||||
type: string
|
type: string
|
||||||
description: The name of the playlist.
|
description: The name of the playlist.
|
||||||
|
|
Loading…
Reference in a new issue