more generic

This commit is contained in:
Torma Kristóf 2020-11-26 05:50:58 +01:00
parent a90562469e
commit 0cccbc04ec

View File

@ -129,27 +129,27 @@ paths:
schema:
$ref: '#/components/schemas/List'
/api/tracks/{trackid}:
/api/item/{itemid}:
get:
tags:
- backend
summary: Gets a track from a List
operationId: getTrack
summary: Gets data of an item
operationId: getItem
parameters:
- name: trackid
- name: itemid
in: path
description: ID of a track
description: ID of an item
required: true
schema:
type: string
format: uuid
responses:
200:
description: Track data
description: Item data
content:
application/json:
schema:
$ref: '#/components/schemas/Track'
$ref: '#/components/schemas/Item'
components:
schemas:
@ -191,8 +191,8 @@ components:
itemlist:
type: array
items:
$ref: '#/components/schemas/Track'
Track:
$ref: '#/components/schemas/Item'
Item:
required:
- id
- title