mirror of
				https://github.com/TeamPiped/OpenAPI.git
				synced 2024-08-14 23:56:55 +00:00 
			
		
		
		
	Add unauthenticated feed definition.
This commit is contained in:
		
							parent
							
								
									26788736c1
								
							
						
					
					
						commit
						0182192d90
					
				
					 1 changed files with 36 additions and 0 deletions
				
			
		
							
								
								
									
										36
									
								
								swagger.yaml
									
										
									
									
									
								
							
							
						
						
									
										36
									
								
								swagger.yaml
									
										
									
									
									
								
							| 
						 | 
					@ -339,6 +339,42 @@ paths:
 | 
				
			||||||
            application/json:
 | 
					            application/json:
 | 
				
			||||||
              schema:
 | 
					              schema:
 | 
				
			||||||
                $ref: "#/components/schemas/ExceptionError"
 | 
					                $ref: "#/components/schemas/ExceptionError"
 | 
				
			||||||
 | 
					  /feed/unauthenticated:
 | 
				
			||||||
 | 
					    get:
 | 
				
			||||||
 | 
					      tags:
 | 
				
			||||||
 | 
					        - unauthenticated
 | 
				
			||||||
 | 
					      summary: Generate a feed while unauthenticated, from a list of channelIds.
 | 
				
			||||||
 | 
					      operationId: feedUnauthenticated
 | 
				
			||||||
 | 
					      description: |
 | 
				
			||||||
 | 
					        Generates a user feed while unauthenticated.
 | 
				
			||||||
 | 
					      parameters:
 | 
				
			||||||
 | 
					        - in: query
 | 
				
			||||||
 | 
					          name: channels
 | 
				
			||||||
 | 
					          description: A list of channelIds to generate a feed from.
 | 
				
			||||||
 | 
					          required: true
 | 
				
			||||||
 | 
					          explode: false
 | 
				
			||||||
 | 
					          schema:
 | 
				
			||||||
 | 
					            type: array
 | 
				
			||||||
 | 
					            items:
 | 
				
			||||||
 | 
					              type: string
 | 
				
			||||||
 | 
					            example:
 | 
				
			||||||
 | 
					              - UCs6KfncB4OV6Vug4o_bzijg
 | 
				
			||||||
 | 
					              - UClcE-kVhqyiHCcjYwcpfj9w
 | 
				
			||||||
 | 
					      responses:
 | 
				
			||||||
 | 
					        "200":
 | 
				
			||||||
 | 
					          description: The video items from the feed.
 | 
				
			||||||
 | 
					          content:
 | 
				
			||||||
 | 
					            application/json:
 | 
				
			||||||
 | 
					              schema:
 | 
				
			||||||
 | 
					                type: array
 | 
				
			||||||
 | 
					                items:
 | 
				
			||||||
 | 
					                  $ref: "#/components/schemas/StreamItem"
 | 
				
			||||||
 | 
					        "500":
 | 
				
			||||||
 | 
					          description: Server Side exception
 | 
				
			||||||
 | 
					          content:
 | 
				
			||||||
 | 
					            application/json:
 | 
				
			||||||
 | 
					              schema:
 | 
				
			||||||
 | 
					                $ref: "#/components/schemas/ExceptionError"
 | 
				
			||||||
components:
 | 
					components:
 | 
				
			||||||
  schemas:
 | 
					  schemas:
 | 
				
			||||||
    Regions:
 | 
					    Regions:
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue