diff --git a/client/api-docs/frequency-list.html b/client/api-docs/frequency-list.html index ad34759a..3f1c8835 100644 --- a/client/api-docs/frequency-list.html +++ b/client/api-docs/frequency-list.html @@ -139,14 +139,29 @@
+ At least one of subcategory
and alternateSubcategory
must be specified; otherwise, an empty
+ array is returned.
+
subcategory
: string
- required
+ default: undefined
+ alternateSubcategory
,
+ questions matching both fields are included.
+ alternateubcategory
: string
+ default: undefined
subcategory
,
+ questions matching both fields are included.
questionType
: "tossup" | "bonus" | "all"
+ default: "all"
+ "tossup"
- only tossups"bonus"
- only bonuses"all"
- both tossups and bonusescaseSensitive
: boolean
+ default: false
+ exactPhrase
: boolean
@@ -261,10 +270,9 @@ undefined
then all categories are allowed.undefined
then all categories are allowed / match this field.string
if there is only 1 category.default: undefined
undefined
then all subcategories are allowed.string
if there is only 1 subcategory."History"
and the "Biology"
+ categories
AND
+ subcategories
field.
+ "History"
category and the "Biology"
and "Chemistry"
subcategories will return no questions.alternateSubcategories
: string | string[]
+ default: undefined
+ categories
AND
+ subcategories
AND alternateSubcategories
fields.
+ alternateSubcategories
.
+ "Science"
category and the "Biology"
+ and "Other Science"
subcategories and the "Math"
alternate subcategory
+ will return questions in both Biology and Math, since Biology questions don't have alternate
+ subcategories.
+ maxReturnLength
: number
diff --git a/client/api-docs/random-bonus.html b/client/api-docs/random-bonus.html
index a1222204..a00a8d3d 100644
--- a/client/api-docs/random-bonus.html
+++ b/client/api-docs/random-bonus.html
@@ -155,38 +155,66 @@ categories
: string[] | string
+ categories
: string | string[]
default: undefined
undefined
then all categories are allowed.undefined
then all categories are allowed / match this field.string
if there is only 1 category.subcategories
: string[] | string
+ subcategories
: string | string[]
default: undefined
undefined
then all subcategories are allowed.string
if there is only 1 subcategory."History"
and the "Biology"
+ categories
AND
+ subcategories
field.
+ "History"
category and the "Biology"
and "Chemistry"
subcategories will return no questions.alternateSubcategories
: string | string[]
+ default: undefined
+ categories
AND
+ subcategories
AND alternateSubcategories
fields.
+ alternateSubcategories
.
+ "Science"
category and the "Biology"
+ and "Other Science"
subcategories and the "Math"
alternate subcategory
+ will return questions in both Biology and Math, since Biology questions don't have alternate
+ subcategories.
+ number
: number
diff --git a/client/api-docs/random-tossup.html b/client/api-docs/random-tossup.html
index 88476588..cb3da189 100644
--- a/client/api-docs/random-tossup.html
+++ b/client/api-docs/random-tossup.html
@@ -155,38 +155,66 @@ categories
: string[] | string
+ categories
: string | string[]
default: undefined
undefined
then all categories are allowed.undefined
then all categories are allowed / match this field.string
if there is only 1 category.subcategories
: string[] | string
+ subcategories
: string | string[]
default: undefined
undefined
then all subcategories are allowed.string
if there is only 1 subcategory."History"
and the "Biology"
+ categories
AND
+ subcategories
field.
+ "History"
category and the "Biology"
and "Chemistry"
subcategories will return no questions.alternateSubcategories
: string | string[]
+ default: undefined
+ categories
AND
+ subcategories
AND alternateSubcategories
fields.
+ alternateSubcategories
.
+ "Science"
category and the "Biology"
+ and "Other Science"
subcategories and the "Math"
alternate subcategory
+ will return questions in both Biology and Math, since Biology questions don't have alternate
+ subcategories.
+ number
: number
diff --git a/client/api-docs/schemas.html b/client/api-docs/schemas/index.html
similarity index 60%
rename from client/api-docs/schemas.html
rename to client/api-docs/schemas/index.html
index 9ab44704..bb102027 100644
--- a/client/api-docs/schemas.html
+++ b/client/api-docs/schemas/index.html
@@ -139,7 +139,7 @@ Tossup
-
+
Tossup
question
: string
question_sanitized
: string
+ answer
: string
- optional
answer
: string
+ answer_sanitized
: string
Tossup
optional
packet
: string
- packetName
: string
+ The alternate subcategory of the question. This only exists for the following category: Literature; and for the
+ following subcategories: Other Science, Other Fine Arts, Social Science.
set
: string
+ packet
: object
setName
: string
- setYear
: number
- _id
: string
+ name
: string
+ number
: number
+ packetNumber
: number
+ set
: object
_id
: string
+ name
: string
+ year
: number
+ standard
: boolean
+ questionNumber
: number
+ number
: number
Tossup
Bonus
-
+
Bonus
leadin
: string
parts
: [string, string, string]
+ leadin_sanitized
: string
answers
: [string, string, string]
- optional
+ parts
: string[]
answers
: [string, string, string]
+ parts_sanitized
: string[]
parts
.category
: string
+ answers
: string[]
subcategory
: string
+ The answerlines, formatted with HTML. This should have the same length as parts
, but a few bonuses
+ have errors where this is not the case.
alternate_subcategory
: string
- optional
- answers_sanitized
: string[]
answers
.packet
: string
+ category
: string
packetName
: string
+ subcategory
: string
set
: string
+ alternate_subcategory
: string
+ optional
setName
: string
+ The alternate subcategory of the question. This only exists for the following category: Literature; and for the
+ following subcategories: Other Science, Other Fine Arts, Social Science.
setYear
: number
+ packet
: object
_id
: string
+ name
: string
+ number
: number
+ packetNumber
: number
+ set
: object
_id
: string
+ name
: string
+ year
: number
+ standard
: boolean
+ questionNumber
: number
+ number
: number
Bonus