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: 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