Add: author search region for matching

This commit is contained in:
Nicholas Wallace 2024-05-19 01:33:00 +00:00
parent f32ef3d01c
commit 37d029e01a
3 changed files with 30 additions and 8 deletions

View file

@ -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

View file

@ -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",

View file

@ -55,3 +55,8 @@ components:
type: boolean
example: true
default: false
region:
description: The region used to search.
type: string
example: 'us'
default: 'us'