mirror of
				https://github.com/advplyr/audiobookshelf.git
				synced 2025-10-27 11:18:14 +01:00 
			
		
		
		
	Update custom metadata provider schema
This commit is contained in:
		
							parent
							
								
									1b2cf50633
								
							
						
					
					
						commit
						d488b17869
					
				@ -1,15 +1,16 @@
 | 
				
			|||||||
openapi: 3.0.0
 | 
					openapi: 3.0.0
 | 
				
			||||||
 | 
					
 | 
				
			||||||
servers:
 | 
					servers:
 | 
				
			||||||
  - url: https://example.com
 | 
					  - url: https://example.com
 | 
				
			||||||
    description: Local server
 | 
					    description: Local server
 | 
				
			||||||
 | 
					
 | 
				
			||||||
info:
 | 
					info:
 | 
				
			||||||
 | 
					  title: Custom Metadata Provider
 | 
				
			||||||
 | 
					  version: 0.1.0
 | 
				
			||||||
  license:
 | 
					  license:
 | 
				
			||||||
    name: MIT
 | 
					    name: MIT
 | 
				
			||||||
    url: https://opensource.org/licenses/MIT
 | 
					    url: https://opensource.org/licenses/MIT
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    
 | 
					 | 
				
			||||||
  title: Custom Metadata Provider
 | 
					 | 
				
			||||||
  version: 0.1.0
 | 
					 | 
				
			||||||
security:
 | 
					security:
 | 
				
			||||||
  - api_key: []
 | 
					  - api_key: []
 | 
				
			||||||
 | 
					
 | 
				
			||||||
@ -20,7 +21,8 @@ paths:
 | 
				
			|||||||
      operationId: search
 | 
					      operationId: search
 | 
				
			||||||
      summary: Search for books
 | 
					      summary: Search for books
 | 
				
			||||||
      security:
 | 
					      security:
 | 
				
			||||||
        -  api_key: []
 | 
					        - api_key: []
 | 
				
			||||||
 | 
					
 | 
				
			||||||
      parameters:
 | 
					      parameters:
 | 
				
			||||||
        - name: query
 | 
					        - name: query
 | 
				
			||||||
          in: query
 | 
					          in: query
 | 
				
			||||||
@ -32,6 +34,7 @@ paths:
 | 
				
			|||||||
          required: false
 | 
					          required: false
 | 
				
			||||||
          schema:
 | 
					          schema:
 | 
				
			||||||
            type: string
 | 
					            type: string
 | 
				
			||||||
 | 
					
 | 
				
			||||||
      responses:
 | 
					      responses:
 | 
				
			||||||
        "200":
 | 
					        "200":
 | 
				
			||||||
          description: OK
 | 
					          description: OK
 | 
				
			||||||
@ -72,9 +75,17 @@ paths:
 | 
				
			|||||||
                  error:
 | 
					                  error:
 | 
				
			||||||
                    type: string
 | 
					                    type: string
 | 
				
			||||||
components:
 | 
					components:
 | 
				
			||||||
 | 
					  securitySchemes:
 | 
				
			||||||
 | 
					    api_key:
 | 
				
			||||||
 | 
					      type: apiKey
 | 
				
			||||||
 | 
					      name: AUTHORIZATION
 | 
				
			||||||
 | 
					      in: header
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  schemas:
 | 
					  schemas:
 | 
				
			||||||
    BookMetadata:
 | 
					    BookMetadata:
 | 
				
			||||||
      type: object
 | 
					      type: object
 | 
				
			||||||
 | 
					      required:
 | 
				
			||||||
 | 
					        - title
 | 
				
			||||||
      properties:
 | 
					      properties:
 | 
				
			||||||
        title:
 | 
					        title:
 | 
				
			||||||
          type: string
 | 
					          type: string
 | 
				
			||||||
@ -110,26 +121,20 @@ components:
 | 
				
			|||||||
        series:
 | 
					        series:
 | 
				
			||||||
          type: array
 | 
					          type: array
 | 
				
			||||||
          items:
 | 
					          items:
 | 
				
			||||||
            type: object
 | 
					            $ref: "#/components/schemas/SeriesMetadata"
 | 
				
			||||||
            properties:
 | 
					 | 
				
			||||||
              series:
 | 
					 | 
				
			||||||
                type: string
 | 
					 | 
				
			||||||
                required: true
 | 
					 | 
				
			||||||
              sequence:
 | 
					 | 
				
			||||||
                type: number
 | 
					 | 
				
			||||||
                format: int64
 | 
					 | 
				
			||||||
        language:
 | 
					        language:
 | 
				
			||||||
          type: string
 | 
					          type: string
 | 
				
			||||||
        duration:
 | 
					        duration:
 | 
				
			||||||
          type: number
 | 
					          type: integer
 | 
				
			||||||
          format: int64
 | 
					          format: int64
 | 
				
			||||||
          description: Duration in seconds
 | 
					          description: Duration in seconds
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    SeriesMetadata:
 | 
				
			||||||
 | 
					      type: object
 | 
				
			||||||
      required:
 | 
					      required:
 | 
				
			||||||
        -  title
 | 
					        - series
 | 
				
			||||||
  securitySchemes:
 | 
					      properties:
 | 
				
			||||||
    api_key:
 | 
					        series:
 | 
				
			||||||
      type: apiKey
 | 
					          type: string
 | 
				
			||||||
      name: AUTHORIZATION
 | 
					        sequence:
 | 
				
			||||||
      in: header
 | 
					          type: string
 | 
				
			||||||
        
 | 
					 | 
				
			||||||
          
 | 
					 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
		Reference in New Issue
	
	Block a user