more generic
This commit is contained in:
parent
a90562469e
commit
0cccbc04ec
18
backend.yml
18
backend.yml
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user