This repository contains the Zoho Catalyst backend implementation for the TriviaX Flutter Quiz Application.
It provides secure serverless APIs to dynamically add and retrieve quiz questions using Zoho Catalyst Data Store and Catalyst SDK.
Fetch all quiz questions from Catalyst Data Store:
https://triviax-914572827.development.catalystserverless.com/server/getTriviaXQuestions/execute
Insert a new quiz question into Catalyst Data Store:
https://triviax-914572827.development.catalystserverless.com/server/addTriviaXQuestion/execute
zcat/
│
├── functions/
│ ├── addTriviaXQuestion/
│ │ └── index.js
│ │
│ └── getTriviaXQuestions/
│ └── index.js
│
├── assets/
│ ├── datastore.png
│ └── schema.png
│
├── catalyst.json
└── README.md
Table Name: QuizQuestions
This table stores quiz questions and answer options.
- question (text)
- option1 (text)
- option2 (text)
- option3 (text)
- option4 (text)
- correct (int)
Adds a new quiz question to Catalyst Data Store.
Input parameters:
question
option1
option2
option3
option4
correct_option
Output:
status: success
Fetches all quiz questions from Catalyst Data Store.
Output example:
{
"output": [
{
"question": "What is 2 + 2?",
"option1": "5",
"option2": "4",
"option3": "8",
"option4": "3",
"correct_option": 2
}
]
}
- Zoho Catalyst
- Catalyst Serverless Functions
- Catalyst SDK (NodeJS)
- Catalyst Data Store
- REST API Integration
- Flutter Backend Integration
The Flutter application connects to these Catalyst APIs to:
- Add quiz questions dynamically
- Fetch quiz questions in real time
- Store quiz data securely in the cloud
- Enable scalable backend architecture

