mirror of
				https://github.com/TeamPiped/OpenAPI.git
				synced 2024-08-14 23:56:55 +00:00 
			
		
		
		
	Add channels nextpage route.
This commit is contained in:
		
							parent
							
								
									a903ff779f
								
							
						
					
					
						commit
						c37755d68a
					
				
					 1 changed files with 52 additions and 0 deletions
				
			
		
							
								
								
									
										52
									
								
								swagger.yaml
									
										
									
									
									
								
							
							
						
						
									
										52
									
								
								swagger.yaml
									
										
									
									
									
								
							| 
						 | 
					@ -164,6 +164,41 @@ paths:
 | 
				
			||||||
            application/json:
 | 
					            application/json:
 | 
				
			||||||
              schema:
 | 
					              schema:
 | 
				
			||||||
                $ref: "#/components/schemas/ExceptionError"
 | 
					                $ref: "#/components/schemas/ExceptionError"
 | 
				
			||||||
 | 
					  /nextpage/channel/{channelId}:
 | 
				
			||||||
 | 
					    get:
 | 
				
			||||||
 | 
					      tags:
 | 
				
			||||||
 | 
					        - unauthenticated
 | 
				
			||||||
 | 
					      summary: Gets more channel videos
 | 
				
			||||||
 | 
					      operationId: channelNextPage
 | 
				
			||||||
 | 
					      description: |
 | 
				
			||||||
 | 
					        Gets more channel videos.
 | 
				
			||||||
 | 
					      parameters:
 | 
				
			||||||
 | 
					        - in: path
 | 
				
			||||||
 | 
					          name: channelId
 | 
				
			||||||
 | 
					          description: The channel ID of the YouTube channel you want to get more videos from.
 | 
				
			||||||
 | 
					          required: true
 | 
				
			||||||
 | 
					          example: UCs6KfncB4OV6Vug4o_bzijg
 | 
				
			||||||
 | 
					          schema:
 | 
				
			||||||
 | 
					            type: string
 | 
				
			||||||
 | 
					        - in: query
 | 
				
			||||||
 | 
					          name: nextpage
 | 
				
			||||||
 | 
					          description: The next page token to get more videos from.
 | 
				
			||||||
 | 
					          required: true
 | 
				
			||||||
 | 
					          schema:
 | 
				
			||||||
 | 
					            type: string
 | 
				
			||||||
 | 
					      responses:
 | 
				
			||||||
 | 
					        "200":
 | 
				
			||||||
 | 
					          description: The information about the channel.
 | 
				
			||||||
 | 
					          content:
 | 
				
			||||||
 | 
					            application/json:
 | 
				
			||||||
 | 
					              schema:
 | 
				
			||||||
 | 
					                $ref: "#/components/schemas/StreamsPage"
 | 
				
			||||||
 | 
					        "500":
 | 
				
			||||||
 | 
					          description: Server Side exception
 | 
				
			||||||
 | 
					          content:
 | 
				
			||||||
 | 
					            application/json:
 | 
				
			||||||
 | 
					              schema:
 | 
				
			||||||
 | 
					                $ref: "#/components/schemas/ExceptionError"
 | 
				
			||||||
components:
 | 
					components:
 | 
				
			||||||
  schemas:
 | 
					  schemas:
 | 
				
			||||||
    Regions:
 | 
					    Regions:
 | 
				
			||||||
| 
						 | 
					@ -437,13 +472,19 @@ components:
 | 
				
			||||||
        title:
 | 
					        title:
 | 
				
			||||||
          type: string
 | 
					          type: string
 | 
				
			||||||
          description: The title of the video.
 | 
					          description: The title of the video.
 | 
				
			||||||
 | 
					        uploaded:
 | 
				
			||||||
 | 
					          type: integer
 | 
				
			||||||
 | 
					          description: The date in unix epoch the video was uploaded.
 | 
				
			||||||
        uploadedDate:
 | 
					        uploadedDate:
 | 
				
			||||||
          type: string
 | 
					          type: string
 | 
				
			||||||
          example: 3 months ago
 | 
					          example: 3 months ago
 | 
				
			||||||
          description: The relative date the video was uploaded on.
 | 
					          description: The relative date the video was uploaded on.
 | 
				
			||||||
 | 
					          deprecated: true
 | 
				
			||||||
 | 
					          nullable: true
 | 
				
			||||||
        uploaderAvatar:
 | 
					        uploaderAvatar:
 | 
				
			||||||
          type: string
 | 
					          type: string
 | 
				
			||||||
          description: The avatar of the channel of the video.
 | 
					          description: The avatar of the channel of the video.
 | 
				
			||||||
 | 
					          nullable: true
 | 
				
			||||||
        uploaderName:
 | 
					        uploaderName:
 | 
				
			||||||
          type: string
 | 
					          type: string
 | 
				
			||||||
          description: The name of the channel of the video.
 | 
					          description: The name of the channel of the video.
 | 
				
			||||||
| 
						 | 
					@ -459,6 +500,17 @@ components:
 | 
				
			||||||
        views:
 | 
					        views:
 | 
				
			||||||
          type: integer
 | 
					          type: integer
 | 
				
			||||||
          description: The number of views the video has.
 | 
					          description: The number of views the video has.
 | 
				
			||||||
 | 
					    StreamsPage:
 | 
				
			||||||
 | 
					      type: object
 | 
				
			||||||
 | 
					      properties:
 | 
				
			||||||
 | 
					        relatedStreams:
 | 
				
			||||||
 | 
					          type: array
 | 
				
			||||||
 | 
					          items:
 | 
				
			||||||
 | 
					            $ref: "#/components/schemas/StreamItem"
 | 
				
			||||||
 | 
					        nextpage:
 | 
				
			||||||
 | 
					          type: string
 | 
				
			||||||
 | 
					          nullable: true
 | 
				
			||||||
 | 
					          description: The parameter used to get the next page of this page.
 | 
				
			||||||
    ExceptionError:
 | 
					    ExceptionError:
 | 
				
			||||||
      required:
 | 
					      required:
 | 
				
			||||||
        - error
 | 
					        - error
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue