@trivia-api/models
Version:
Models for The Trivia API.
57 lines (56 loc) • 2.21 kB
JavaScript
"use strict";
/**
* @openapi
* components:
* schemas:
* SearchQuestionsBody:
* type: object
* properties:
* categories:
* description: The categories to search for
* type: array
* items:
* $ref: '#/components/schemas/Category'
* order:
* description: The order to sort the questions by, new questions are those that have been submitted most recently.
* type: string
* enum:
* - new
* - old
* pageNumber:
* description: The page number to return
* type: number
* perPage:
* description: The number of questions to return per page
* type: number
* freetext:
* description: Freetext value to search for withing question text
* type: string
* ids:
* description: The ids of the questions to search for
* type: array
* items:
* type: string
* tags:
* description: The tags to search for
* type: array
* items:
* type: string
* difficulties:
* description: The difficulty to search for
* type: array
* items:
* type: string
* enum:
* - easy
* - medium
* - hard
* types:
* description: The types to search for
* type: array
* items:
* type: string
* region:
* description: The region to search for
* type: string
*/