Improved the definition of the GET /series endpoint for the OpenAPI specification document in the library target.
This commit is contained in:
@@ -149,10 +149,14 @@ paths:
|
|||||||
style: form
|
style: form
|
||||||
/amiiboseries:
|
/amiiboseries:
|
||||||
get:
|
get:
|
||||||
description: Get a list of all the Amiibo series available in the database.
|
|
||||||
operationId: getAmiiboSeries
|
|
||||||
tags:
|
tags:
|
||||||
- Amiibo
|
- Amiibo
|
||||||
|
summary: Get the amiibo series.
|
||||||
|
description: |
|
||||||
|
Get a list of all the Amiibo series available in the database.
|
||||||
|
|
||||||
|
Please refer to [the documentation of the endpoint](https://www.amiiboapi.com/docs/#series) for further information.
|
||||||
|
operationId: getAmiiboSeries
|
||||||
parameters:
|
parameters:
|
||||||
- $ref: '#/components/parameters/Key'
|
- $ref: '#/components/parameters/Key'
|
||||||
description: A key of an amiibo series to include in the response.
|
description: A key of an amiibo series to include in the response.
|
||||||
@@ -160,11 +164,15 @@ paths:
|
|||||||
description: A name of an amiibo series key to include in the response.
|
description: A name of an amiibo series key to include in the response.
|
||||||
responses:
|
responses:
|
||||||
'200':
|
'200':
|
||||||
$ref: '#/components/responses/SuccessTuple'
|
description: Successful response returning an object that contains one or more amiibo series.
|
||||||
|
content:
|
||||||
|
application/json:
|
||||||
|
schema:
|
||||||
|
$ref: '#/components/schemas/AmiiboSeriesWrapper'
|
||||||
'400':
|
'400':
|
||||||
description: An amiibo series bad request.
|
$ref: '#/components/responses/BadRequest'
|
||||||
'404':
|
'404':
|
||||||
description: An amiibo series not found.
|
$ref: '#/components/responses/NotFound'
|
||||||
'500':
|
'500':
|
||||||
description: Service is not available.
|
description: Service is not available.
|
||||||
/character:
|
/character:
|
||||||
@@ -412,6 +420,16 @@ components:
|
|||||||
description: A release date for North America, if any.
|
description: A release date for North America, if any.
|
||||||
type: string
|
type: string
|
||||||
format: date-time
|
format: date-time
|
||||||
|
AmiiboSeries:
|
||||||
|
description: A type that represents an amiibo series.
|
||||||
|
allOf:
|
||||||
|
- $ref: '#/components/schemas/Tuple'
|
||||||
|
- type: object
|
||||||
|
properties:
|
||||||
|
key:
|
||||||
|
description: A key of an amiibo series.
|
||||||
|
name:
|
||||||
|
description: A name of an amiibo series.
|
||||||
AmiiboType:
|
AmiiboType:
|
||||||
description: A type that represents an amiibo type.
|
description: A type that represents an amiibo type.
|
||||||
allOf:
|
allOf:
|
||||||
@@ -497,11 +515,21 @@ components:
|
|||||||
items:
|
items:
|
||||||
description: A list if `Amiibo` instance.
|
description: A list if `Amiibo` instance.
|
||||||
$ref: '#/components/schemas/Amiibo'
|
$ref: '#/components/schemas/Amiibo'
|
||||||
|
AmiiboSeriesList:
|
||||||
|
description: A type that represents a list of amiibo series.
|
||||||
|
type: array
|
||||||
|
items:
|
||||||
|
$ref: '#/components/schemas/AmiiboSeries'
|
||||||
AmiiboTypeList:
|
AmiiboTypeList:
|
||||||
description: A type that represents a list of amiibo types.
|
description: A type that represents a list of amiibo types.
|
||||||
type: array
|
type: array
|
||||||
items:
|
items:
|
||||||
$ref: '#/components/schemas/AmiiboType'
|
$ref: '#/components/schemas/AmiiboType'
|
||||||
|
GameCharacterList:
|
||||||
|
description: A type that represents a list of game characters.
|
||||||
|
type: array
|
||||||
|
items:
|
||||||
|
$ref: '#/components/schemas/GameCharacter'
|
||||||
GameSeriesList:
|
GameSeriesList:
|
||||||
description: A type that represents a list of game series.
|
description: A type that represents a list of game series.
|
||||||
type: array
|
type: array
|
||||||
@@ -517,6 +545,17 @@ components:
|
|||||||
- $ref: '#/components/schemas/AmiiboList'
|
- $ref: '#/components/schemas/AmiiboList'
|
||||||
required:
|
required:
|
||||||
- amiibo
|
- amiibo
|
||||||
|
AmiiboSeriesWrapper:
|
||||||
|
description: A type that wraps either one or a list of amiibo series.
|
||||||
|
type: object
|
||||||
|
properties:
|
||||||
|
amiibo:
|
||||||
|
description: A container that have one or more amiibo series.
|
||||||
|
oneOf:
|
||||||
|
- $ref: '#/components/schemas/AmiiboSeries'
|
||||||
|
- $ref: '#/components/schemas/AmiiboSeriesList'
|
||||||
|
required:
|
||||||
|
- amiibo
|
||||||
AmiiboTypeWrapper:
|
AmiiboTypeWrapper:
|
||||||
description: A type that wraps either one or a list of amiibo types.
|
description: A type that wraps either one or a list of amiibo types.
|
||||||
type: object
|
type: object
|
||||||
|
|||||||
Reference in New Issue
Block a user