more generic
This commit is contained in:
parent
a90562469e
commit
0cccbc04ec
18
backend.yml
18
backend.yml
@ -129,27 +129,27 @@ paths:
|
|||||||
schema:
|
schema:
|
||||||
$ref: '#/components/schemas/List'
|
$ref: '#/components/schemas/List'
|
||||||
|
|
||||||
/api/tracks/{trackid}:
|
/api/item/{itemid}:
|
||||||
get:
|
get:
|
||||||
tags:
|
tags:
|
||||||
- backend
|
- backend
|
||||||
summary: Gets a track from a List
|
summary: Gets data of an item
|
||||||
operationId: getTrack
|
operationId: getItem
|
||||||
parameters:
|
parameters:
|
||||||
- name: trackid
|
- name: itemid
|
||||||
in: path
|
in: path
|
||||||
description: ID of a track
|
description: ID of an item
|
||||||
required: true
|
required: true
|
||||||
schema:
|
schema:
|
||||||
type: string
|
type: string
|
||||||
format: uuid
|
format: uuid
|
||||||
responses:
|
responses:
|
||||||
200:
|
200:
|
||||||
description: Track data
|
description: Item data
|
||||||
content:
|
content:
|
||||||
application/json:
|
application/json:
|
||||||
schema:
|
schema:
|
||||||
$ref: '#/components/schemas/Track'
|
$ref: '#/components/schemas/Item'
|
||||||
|
|
||||||
components:
|
components:
|
||||||
schemas:
|
schemas:
|
||||||
@ -191,8 +191,8 @@ components:
|
|||||||
itemlist:
|
itemlist:
|
||||||
type: array
|
type: array
|
||||||
items:
|
items:
|
||||||
$ref: '#/components/schemas/Track'
|
$ref: '#/components/schemas/Item'
|
||||||
Track:
|
Item:
|
||||||
required:
|
required:
|
||||||
- id
|
- id
|
||||||
- title
|
- title
|
||||||
|
Loading…
Reference in New Issue
Block a user