mirror of
https://github.com/advplyr/audiobookshelf.git
synced 2026-07-12 20:31:36 +00:00
Add: author search region for matching
This commit is contained in:
parent
f32ef3d01c
commit
37d029e01a
3 changed files with 30 additions and 8 deletions
|
|
@ -279,6 +279,8 @@ paths:
|
|||
$ref: '#/components/schemas/authorSearchName'
|
||||
asin:
|
||||
$ref: '../objects/entities/Author.yaml#/components/schemas/authorAsin'
|
||||
region:
|
||||
$ref: '../schemas.yaml#/components/schemas/region'
|
||||
responses:
|
||||
'200':
|
||||
description: matchAuthorById OK
|
||||
|
|
|
|||
|
|
@ -357,14 +357,18 @@
|
|||
"content": {
|
||||
"application/json": {
|
||||
"schema": {
|
||||
"oneOf": [
|
||||
{
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"q": {
|
||||
"$ref": "#/components/schemas/authorSearchName"
|
||||
},
|
||||
"asin": {
|
||||
"$ref": "#/components/schemas/authorAsin"
|
||||
},
|
||||
{
|
||||
"$ref": "#/components/schemas/authorSearchName"
|
||||
"region": {
|
||||
"$ref": "#/components/schemas/region"
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -591,9 +595,14 @@
|
|||
"content": {
|
||||
"application/json": {
|
||||
"schema": {
|
||||
"type": "array",
|
||||
"items": {
|
||||
"$ref": "#/components/schemas/authorExpanded"
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"authors": {
|
||||
"type": "array",
|
||||
"items": {
|
||||
"$ref": "#/components/schemas/authorExpanded"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -1348,6 +1357,12 @@
|
|||
"type": "string",
|
||||
"example": "Terry Goodkind"
|
||||
},
|
||||
"region": {
|
||||
"description": "The region used to search.",
|
||||
"type": "string",
|
||||
"example": "us",
|
||||
"default": "us"
|
||||
},
|
||||
"libraryName": {
|
||||
"description": "The name of the library.",
|
||||
"type": "string",
|
||||
|
|
|
|||
|
|
@ -55,3 +55,8 @@ components:
|
|||
type: boolean
|
||||
example: true
|
||||
default: false
|
||||
region:
|
||||
description: The region used to search.
|
||||
type: string
|
||||
example: 'us'
|
||||
default: 'us'
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue