navidrome/api/resources/track.yml

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

33 lines
948 B
YAML
Raw Permalink Normal View History

2023-04-09 17:50:04 -04:00
get:
summary: Retrieve an individual track
operationId: getTrack
parameters:
2023-05-22 20:45:18 -04:00
- $ref: '../parameters/query/includeForTracks.yml'
2023-04-09 17:50:04 -04:00
- name: trackId
in: path
description: The unique identifier of the track
required: true
schema:
type: string
responses:
'200':
description: A track object
content:
application/vnd.api+json:
schema:
type: object
required: [data]
properties:
data:
$ref: '../schemas/Track.yml'
2023-05-23 18:36:38 -04:00
included:
2023-05-23 19:47:00 -04:00
description: Included resources, as requested by the `include` query parameter
2023-05-23 18:36:38 -04:00
type: array
items:
$ref: '../schemas/IncludedResource.yml'
2023-04-09 17:50:04 -04:00
'403':
$ref: '../responses/NotAuthorized.yml'
2023-04-09 17:50:04 -04:00
'404':
$ref: '../responses/NotFound.yml'
2023-04-09 17:50:04 -04:00
'500':
$ref: '../responses/InternalServerError.yml'