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,24 +254,25 @@ paths:
|
|||
properties:
|
||||
name:
|
||||
type: string
|
||||
required: true
|
||||
cards:
|
||||
type: array
|
||||
items:
|
||||
$ref: '#/components/schemas/card_constraint'
|
||||
required:
|
||||
- name
|
||||
text/csv:
|
||||
schema:
|
||||
type: array
|
||||
items:
|
||||
$ref: '#/components/schemas/card_constraint'
|
||||
example: |-
|
||||
Name,Quantity,Set Code,Collector Number
|
||||
"Sol Ring",1,CMR,472
|
||||
example: |-
|
||||
Name,Quantity,Set Code,Collector Number
|
||||
"Sol Ring",1,CMR,472
|
||||
text/plain:
|
||||
schema:
|
||||
type: string
|
||||
example: |-
|
||||
1 Sol Ring (CMR) 472
|
||||
example: |-
|
||||
1 Sol Ring (CMR) 472
|
||||
responses:
|
||||
'200':
|
||||
description: Deck created
|
||||
|
@ -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