API Usage
/question
- URL: /api/question
- Default: the default return is a random question
- Options:
- id(int): the question with the specified id
- value(int): a random question of the specified value
- category(string): a random question from the specified category
- airdate(string): a random question from the specified air date
- year(int): a random question from the specified year
- month(int): a random question from the specified month
- day(int): a random question from the specified day
Example: https://trivia.connorsmyth.com/api/question/?id=6
Example: https://trivia.connorsmyth.com/api/question/?value=200&category=music
/questions
- URL: /api/questions
- Default: the default return is a group of 100 questions starting with an id of 1 and ending with an id of 100
- Options:
- value(int): all questions of the specified value
- category(string): all questions from the specified category
- airdate(string): all questions from the specified air date
- year(int): all questions from the specified year
- month(int): all questions from the specified month
- day(int): all questions from the specified day
- offset(int): all questions starting from a specified offset number
- quantity(int): limit the number of questions that can be returned
Example: https://trivia.connorsmyth.com/api/questions/?value=200&category=sports
/question/today
- URL: /api/question/today
- Default: the default return is a random question that aired on today's date from any year
- Options:
- value(int): a random question from today's date of the specified value
- category(string): a random question from today's date from the specified category
/questions/today
- URL: /api/questions/today
- Default: the default all questions that aired on today's date from any year
- Options:
- value(int): all questions from today's date of the specified value
- category(string): all questions from today's date from the specified category