mirror of
https://github.com/navidrome/navidrome.git
synced 2026-11-23 10:29:46 +01:00
Add includes for /tracks
This commit is contained in:
parent
90c2d7d1cf
commit
4507895d58
10 changed files with 321 additions and 58 deletions
|
|
@ -20,6 +20,10 @@ get:
|
|||
properties:
|
||||
data:
|
||||
$ref: '../schemas/Track.yml'
|
||||
included:
|
||||
type: array
|
||||
items:
|
||||
$ref: '../schemas/IncludedResource.yml'
|
||||
'403':
|
||||
$ref: '../responses/NotAuthorized.yml'
|
||||
'404':
|
||||
|
|
|
|||
|
|
@ -31,6 +31,10 @@ get:
|
|||
$ref: '../schemas/PaginationLinks.yml'
|
||||
meta:
|
||||
$ref: '../schemas/PaginationMeta.yml'
|
||||
included:
|
||||
type: array
|
||||
items:
|
||||
$ref: '../schemas/IncludedResource.yml'
|
||||
'400':
|
||||
$ref: '../responses/BadRequest.yml'
|
||||
'403':
|
||||
|
|
|
|||
|
|
@ -6,3 +6,5 @@ properties:
|
|||
bio:
|
||||
type: string
|
||||
description: A short biography of the artist
|
||||
required:
|
||||
- name
|
||||
|
|
|
|||
|
|
@ -1,5 +1,6 @@
|
|||
oneOf:
|
||||
- $ref: './Track.yml'
|
||||
- $ref: './Album.yml'
|
||||
- $ref: './Artist.yml'
|
||||
discriminator:
|
||||
propertyName: type
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue