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:
|
properties:
|
||||||
name:
|
name:
|
||||||
type: string
|
type: string
|
||||||
required: true
|
|
||||||
cards:
|
cards:
|
||||||
type: array
|
type: array
|
||||||
items:
|
items:
|
||||||
$ref: '#/components/schemas/card_constraint'
|
$ref: '#/components/schemas/card_constraint'
|
||||||
|
required:
|
||||||
|
- name
|
||||||
text/csv:
|
text/csv:
|
||||||
schema:
|
schema:
|
||||||
type: array
|
type: array
|
||||||
|
@ -280,6 +281,12 @@ paths:
|
||||||
schema:
|
schema:
|
||||||
$ref: '#/components/schemas/deck'
|
$ref: '#/components/schemas/deck'
|
||||||
/api/decks/{deck_id}:
|
/api/decks/{deck_id}:
|
||||||
|
parameters:
|
||||||
|
- in: path
|
||||||
|
name: deck_id
|
||||||
|
schema:
|
||||||
|
type: integer
|
||||||
|
required: true
|
||||||
get:
|
get:
|
||||||
summary: Retrieve deck
|
summary: Retrieve deck
|
||||||
tags:
|
tags:
|
||||||
|
@ -303,6 +310,12 @@ paths:
|
||||||
summary: Find cards in collection
|
summary: Find cards in collection
|
||||||
tags:
|
tags:
|
||||||
- Decks
|
- Decks
|
||||||
|
parameters:
|
||||||
|
- in: path
|
||||||
|
name: deck_id
|
||||||
|
schema:
|
||||||
|
type: integer
|
||||||
|
required: true
|
||||||
responses:
|
responses:
|
||||||
'200':
|
'200':
|
||||||
description: Cards
|
description: Cards
|
||||||
|
|
Loading…
Reference in a new issue