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