Correct errors in the deck api spec
This commit is contained in:
parent
04ad554d3c
commit
86675016c4
1 changed files with 19 additions and 6 deletions
|
@ -254,11 +254,12 @@ paths:
|
|||
properties:
|
||||
name:
|
||||
type: string
|
||||
required: true
|
||||
cards:
|
||||
type: array
|
||||
items:
|
||||
$ref: '#/components/schemas/card_constraint'
|
||||
required:
|
||||
- name
|
||||
text/csv:
|
||||
schema:
|
||||
type: array
|
||||
|
@ -280,6 +281,12 @@ paths:
|
|||
schema:
|
||||
$ref: '#/components/schemas/deck'
|
||||
/api/decks/{deck_id}:
|
||||
parameters:
|
||||
- in: path
|
||||
name: deck_id
|
||||
schema:
|
||||
type: integer
|
||||
required: true
|
||||
get:
|
||||
summary: Retrieve deck
|
||||
tags:
|
||||
|
@ -303,6 +310,12 @@ paths:
|
|||
summary: Find cards in collection
|
||||
tags:
|
||||
- Decks
|
||||
parameters:
|
||||
- in: path
|
||||
name: deck_id
|
||||
schema:
|
||||
type: integer
|
||||
required: true
|
||||
responses:
|
||||
'200':
|
||||
description: Cards
|
||||
|
|
Loading…
Reference in a new issue