Documentation Index
Fetch the complete documentation index at: https://dos.dzaleka.com/llms.txt
Use this file to discover all available pages before exploring further.
GET /api/events
Retrieve a list of all events in Dzaleka Refugee Camp.Query Parameters
This endpoint does not require any query parameters.Response Format
Status of the API response (“success” or “error”)
Total number of events returned
Container for the events data
Array of event objects
Unique identifier for the event
Collection name (“events”)
Event title
Event description
Event start date and time (ISO 8601 format)
Event end date (YYYY-MM-DD)
Event location (e.g., “Online”, “Dzaleka Community Center”)
Event category (e.g., “Zoom Meeting”, “Workshop”, “Conference”)
URL to event image
Whether the event is featured
Name of the organizing entity
Event status (“upcoming”, “ongoing”, “past”)
Array of tag strings
Error Responses
“error”
Error message description
Detailed error information
200- Success429- Rate limit exceeded (60 requests per minute)500- Internal server error
Rate Limiting
All API endpoints are rate-limited to 60 requests per minute per IP address. Rate limit headers are included in responses:X-RateLimit-Limit: Maximum requests per windowX-RateLimit-Remaining: Remaining requests in current windowX-RateLimit-Reset: Timestamp when the rate limit resetsRetry-After: Seconds to wait before retrying (only on 429 responses)
Example Request
Example Response
POST /api/events
Retrieve events data with optional metadata and statistics.Request Body
Response Format
Same as GET endpoint, with optional additional fields:Example Request
Example Response
Implementation
The Events API is implemented using thecreateGetHandler and createPostHandler utility functions from src/utils/api-utils.ts:118.
Source code: src/pages/api/events.ts:5