Description: If event_id is provided, show a confirmation for the event. If event_id is not provided, show a form to enter the event code.
Method: POST
Request Body: event_code (required if event_id is not provided)
Description: Validate the event code or event_id. If valid, create a row in the attendance table for the user and event.
/admin/events Endpoint
Method: GET
Description: Show a UI listing all current events with a button to create a new event.
Method: POST
Request Body: Details for the new event (e.g., name, date, etc.)
Description: Create a new event.
/admin/event/{id} Endpoint
Method: GET
Description: Show event details and settings. Allow setting event code, opening/closing attendance, setting counts toward total, setting event type, viewing members in the event, and removing members from the event.
Method: PATCH
URL Parameters: id (event ID)
Request Body: Partial update data (e.g., event_code, attendance_status, counts_toward_total, event_type)
/attendance
Endpointevent_id
(optional)event_id
is provided, show a confirmation for the event. Ifevent_id
is not provided, show a form to enter the event code.event_code
(required ifevent_id
is not provided)event_id
. If valid, create a row in the attendance table for the user and event./admin/events
Endpoint/admin/event/{id}
Endpointid
(event ID)event_code
,attendance_status
,counts_toward_total
,event_type
)id
(event ID)member_id
id
(event ID)member_id
Database