Please enable JavaScript.
Coggle requires JavaScript to display documents.
Quiz Tool, Events - Coggle Diagram
Quiz Tool
Users
Properties
Name
Email
Phone
Event ID
User ID
Current Organization
Methods
GET: /users
Get all users
GET: /users/{id}
Get a single user
POST: /users
Register a user
Questions
Properties
Event ID
Question ID
Description
Question Options
Option Description
Option ID
isCorrect
Question Type
Single Select/Multi Select
Methods
GET: /questions
With filter for eventID
GET: /questions/{id}
With Admin Auth Token gives isCorrect as well otherwise only gives options
POST: /questions
PUT: /questions/{id}
PATCH: /questions/{id}
DELETE: /questions/{id}
User Responses
Properties
User ID
Responses
Question ID
Response Option IDs
Score
Methods
POST: /users/{id}/responses
Body will contain the question & option id and returns the score
Events
Properties
Event ID
Event Year
Event Name
Event Location
isActive
Event Logo
Methods
POST: /events
Creates a new event
PATCH: /events/{ID}
Make event Active inActive
DELETE: /events/{ID}
Delete an event
PUT: /events/{ID}
Edits an event
GET: /events/{ID}
Get an event details
GET: /events
Get all active events