Correct errors in the deck api spec

This commit is contained in:
Correl Roush 2024-02-21 17:54:48 -05:00
parent 04ad554d3c
commit 86675016c4

View file

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