_TriviaFrontend is a frontend that provides 5 trivia's from the TriviaAPI backend server with questions from the OpenTriviaDB client.
- send request to /questions endpoint
- receive 5 trivias
- post submitted answer to /getanswer in the following JSON structure:
{
"question": "What year is it?",
"submitted_answer": "2021"
}
✨Magic ✨
- receive back answer-result & correct answer:
{
"correct_answer": "2021",
"answered_correct": true
}
This frontend project is part of a bigger project which includes API that serves this frontend.
none
Free Software :D