Fix spec paths

This commit is contained in:
Deluan 2023-05-14 10:23:06 -04:00 committed by Deluan
parent 250b6dbb33
commit 3c0f23e3f2
8 changed files with 74 additions and 74 deletions

View File

@ -2,7 +2,7 @@ get:
summary: Retrieve an individual album
operationId: getAlbum
parameters:
- $ref: '#/components/parameters/include'
- $ref: '../spec.yml#/components/parameters/include'
- name: albumId
in: path
description: The unique identifier of the album
@ -19,10 +19,10 @@ get:
required: [data]
properties:
data:
$ref: '#/components/schemas/Album'
$ref: '../spec.yml#/components/schemas/Album'
'403':
$ref: '#/components/responses/NotAuthorized'
$ref: '../spec.yml#/components/responses/NotAuthorized'
'404':
$ref: '#/components/responses/NotFound'
$ref: '../spec.yml#/components/responses/NotFound'
'500':
$ref: '#/components/responses/InternalServerError'
$ref: '../spec.yml#/components/responses/InternalServerError'

View File

@ -2,18 +2,18 @@ get:
summary: Retrieve a list of albums
operationId: getAlbums
parameters:
- $ref: '#/components/parameters/pageLimit'
- $ref: '#/components/parameters/pageOffset'
- $ref: '#/components/parameters/filterEquals'
- $ref: '#/components/parameters/filterContains'
- $ref: '#/components/parameters/filterLessThan'
- $ref: '#/components/parameters/filterLessOrEqual'
- $ref: '#/components/parameters/filterGreaterThan'
- $ref: '#/components/parameters/filterGreaterOrEqual'
- $ref: '#/components/parameters/filterStartsWith'
- $ref: '#/components/parameters/filterEndsWith'
- $ref: '#/components/parameters/sort'
- $ref: '#/components/parameters/include'
- $ref: '../spec.yml#/components/parameters/pageLimit'
- $ref: '../spec.yml#/components/parameters/pageOffset'
- $ref: '../spec.yml#/components/parameters/filterEquals'
- $ref: '../spec.yml#/components/parameters/filterContains'
- $ref: '../spec.yml#/components/parameters/filterLessThan'
- $ref: '../spec.yml#/components/parameters/filterLessOrEqual'
- $ref: '../spec.yml#/components/parameters/filterGreaterThan'
- $ref: '../spec.yml#/components/parameters/filterGreaterOrEqual'
- $ref: '../spec.yml#/components/parameters/filterStartsWith'
- $ref: '../spec.yml#/components/parameters/filterEndsWith'
- $ref: '../spec.yml#/components/parameters/sort'
- $ref: '../spec.yml#/components/parameters/include'
responses:
'200':
description: A list of albums
@ -26,14 +26,14 @@ get:
data:
type: array
items:
$ref: '#/components/schemas/Album'
$ref: '../spec.yml#/components/schemas/Album'
links:
$ref: '#/components/schemas/PaginationLinks'
$ref: '../spec.yml#/components/schemas/PaginationLinks'
meta:
$ref: '#/components/schemas/PaginationMeta'
$ref: '../spec.yml#/components/schemas/PaginationMeta'
'400':
$ref: '#/components/responses/BadRequest'
$ref: '../spec.yml#/components/responses/BadRequest'
'403':
$ref: '#/components/responses/NotAuthorized'
$ref: '../spec.yml#/components/responses/NotAuthorized'
'500':
$ref: '#/components/responses/InternalServerError'
$ref: '../spec.yml#/components/responses/InternalServerError'

View File

@ -2,7 +2,7 @@ get:
summary: Retrieve an individual artist
operationId: getArtist
parameters:
- $ref: '#/components/parameters/include'
- $ref: '../spec.yml#/components/parameters/include'
- name: artistId
in: path
description: The unique identifier of the artist
@ -19,10 +19,10 @@ get:
required: [data]
properties:
data:
$ref: '#/components/schemas/Artist'
$ref: '../spec.yml#/components/schemas/Artist'
'403':
$ref: '#/components/responses/NotAuthorized'
$ref: '../spec.yml#/components/responses/NotAuthorized'
'404':
$ref: '#/components/responses/NotFound'
$ref: '../spec.yml#/components/responses/NotFound'
'500':
$ref: '#/components/responses/InternalServerError'
$ref: '../spec.yml#/components/responses/InternalServerError'

View File

@ -2,18 +2,18 @@ get:
summary: Retrieve a list of artists
operationId: getArtists
parameters:
- $ref: '#/components/parameters/pageLimit'
- $ref: '#/components/parameters/pageOffset'
- $ref: '#/components/parameters/filterEquals'
- $ref: '#/components/parameters/filterContains'
- $ref: '#/components/parameters/filterLessThan'
- $ref: '#/components/parameters/filterLessOrEqual'
- $ref: '#/components/parameters/filterGreaterThan'
- $ref: '#/components/parameters/filterGreaterOrEqual'
- $ref: '#/components/parameters/filterStartsWith'
- $ref: '#/components/parameters/filterEndsWith'
- $ref: '#/components/parameters/sort'
- $ref: '#/components/parameters/include'
- $ref: '../spec.yml#/components/parameters/pageLimit'
- $ref: '../spec.yml#/components/parameters/pageOffset'
- $ref: '../spec.yml#/components/parameters/filterEquals'
- $ref: '../spec.yml#/components/parameters/filterContains'
- $ref: '../spec.yml#/components/parameters/filterLessThan'
- $ref: '../spec.yml#/components/parameters/filterLessOrEqual'
- $ref: '../spec.yml#/components/parameters/filterGreaterThan'
- $ref: '../spec.yml#/components/parameters/filterGreaterOrEqual'
- $ref: '../spec.yml#/components/parameters/filterStartsWith'
- $ref: '../spec.yml#/components/parameters/filterEndsWith'
- $ref: '../spec.yml#/components/parameters/sort'
- $ref: '../spec.yml#/components/parameters/include'
responses:
'200':
description: A list of artists
@ -26,14 +26,14 @@ get:
data:
type: array
items:
$ref: '#/components/schemas/Artist'
$ref: '../spec.yml#/components/schemas/Artist'
links:
$ref: '#/components/schemas/PaginationLinks'
$ref: '../spec.yml#/components/schemas/PaginationLinks'
meta:
$ref: '#/components/schemas/PaginationMeta'
$ref: '../spec.yml#/components/schemas/PaginationMeta'
'400':
$ref: '#/components/responses/BadRequest'
$ref: '../spec.yml#/components/responses/BadRequest'
'403':
$ref: '#/components/responses/NotAuthorized'
$ref: '../spec.yml#/components/responses/NotAuthorized'
'500':
$ref: '#/components/responses/InternalServerError'
$ref: '../spec.yml#/components/responses/InternalServerError'

View File

@ -11,8 +11,8 @@ get:
required: [data]
properties:
data:
$ref: '#/components/schemas/ServerInfo'
$ref: '../spec.yml#/components/schemas/ServerInfo'
'403':
$ref: '#/components/responses/NotAuthorized'
$ref: '../spec.yml#/components/responses/NotAuthorized'
'500':
$ref: '#/components/responses/InternalServerError'
$ref: '../spec.yml#/components/responses/InternalServerError'

View File

@ -2,7 +2,7 @@ get:
summary: Retrieve an individual track
operationId: getTrack
parameters:
- $ref: '#/components/parameters/include'
- $ref: '../spec.yml#/components/parameters/include'
- name: trackId
in: path
description: The unique identifier of the track
@ -19,10 +19,10 @@ get:
required: [data]
properties:
data:
$ref: '#/components/schemas/Track'
$ref: '../spec.yml#/components/schemas/Track'
'403':
$ref: '#/components/responses/NotAuthorized'
$ref: '../spec.yml#/components/responses/NotAuthorized'
'404':
$ref: '#/components/responses/NotFound'
$ref: '../spec.yml#/components/responses/NotFound'
'500':
$ref: '#/components/responses/InternalServerError'
$ref: '../spec.yml#/components/responses/InternalServerError'

View File

@ -2,18 +2,18 @@ get:
summary: Get a list of tracks
operationId: getTracks
parameters:
- $ref: '#/components/parameters/pageLimit'
- $ref: '#/components/parameters/pageOffset'
- $ref: '#/components/parameters/filterEquals'
- $ref: '#/components/parameters/filterContains'
- $ref: '#/components/parameters/filterLessThan'
- $ref: '#/components/parameters/filterLessOrEqual'
- $ref: '#/components/parameters/filterGreaterThan'
- $ref: '#/components/parameters/filterGreaterOrEqual'
- $ref: '#/components/parameters/filterStartsWith'
- $ref: '#/components/parameters/filterEndsWith'
- $ref: '#/components/parameters/sort'
- $ref: '#/components/parameters/include'
- $ref: '../spec.yml#/components/parameters/pageLimit'
- $ref: '../spec.yml#/components/parameters/pageOffset'
- $ref: '../spec.yml#/components/parameters/filterEquals'
- $ref: '../spec.yml#/components/parameters/filterContains'
- $ref: '../spec.yml#/components/parameters/filterLessThan'
- $ref: '../spec.yml#/components/parameters/filterLessOrEqual'
- $ref: '../spec.yml#/components/parameters/filterGreaterThan'
- $ref: '../spec.yml#/components/parameters/filterGreaterOrEqual'
- $ref: '../spec.yml#/components/parameters/filterStartsWith'
- $ref: '../spec.yml#/components/parameters/filterEndsWith'
- $ref: '../spec.yml#/components/parameters/sort'
- $ref: '../spec.yml#/components/parameters/include'
responses:
'200':
description: A list of tracks
@ -26,14 +26,14 @@ get:
data:
type: array
items:
$ref: '#/components/schemas/Track'
$ref: '../spec.yml#/components/schemas/Track'
links:
$ref: '#/components/schemas/PaginationLinks'
$ref: '../spec.yml#/components/schemas/PaginationLinks'
meta:
$ref: '#/components/schemas/PaginationMeta'
$ref: '../spec.yml#/components/schemas/PaginationMeta'
'400':
$ref: '#/components/responses/BadRequest'
$ref: '../spec.yml#/components/responses/BadRequest'
'403':
$ref: '#/components/responses/NotAuthorized'
$ref: '../spec.yml#/components/responses/NotAuthorized'
'500':
$ref: '#/components/responses/InternalServerError'
$ref: '../spec.yml#/components/responses/InternalServerError'

View File

@ -300,7 +300,7 @@ components:
type: object
properties:
meta:
$ref: #/components/schemas/ArtistMetaObject
$ref: '#/components/schemas/ArtistMetaObject'
data:
$ref: '#/components/schemas/ResourceObject'
required:
@ -423,7 +423,7 @@ components:
type: object
properties:
meta:
$ref: #/components/schemas/ArtistMetaObject
$ref: '#/components/schemas/ArtistMetaObject'
data:
$ref: '#/components/schemas/ResourceObject'
required: