Flat records
9. Events
Eight fictional school and community events. These fixed sample dates are not an actual calendar.
Endpoint
GET https://api.mydcts.org/events
Returns an array of eight flat objects as application/json. Public access; no account or API key. No query parameters.
Fields
| Field | Type | Description |
|---|---|---|
id | number | Event ID. |
title | string | Event title. |
date | string | Fixed sample date in YYYY-MM-DD format. |
location | string | Fictional venue. |
category | string | Arts, Games, Sports, Technology, or Community. |
Sample response
[
{
"id": 1,
"title": "Art Night",
"date": "2026-10-02",
"location": "Maple School Gallery",
"category": "Arts"
},
{
"id": 2,
"title": "Community Game and Puzzle Exchange",
"date": "2026-10-06",
"location": "Cedar Community Center",
"category": "Games"
},
{
"id": 3,
"title": "Fall Soccer Meetup",
"date": "2026-10-10",
"location": "Pine Park Field",
"category": "Sports"
},
{
"id": 4,
"title": "Student Film Festival and Animation Showcase",
"date": "2026-10-14",
"location": "Maple School Auditorium",
"category": "Arts"
},
{
"id": 5,
"title": "Robotics Demo",
"date": "2026-10-17",
"location": "Cedar Library",
"category": "Technology"
},
{
"id": 6,
"title": "Neighborhood Trail Cleanup and Picnic",
"date": "2026-10-21",
"location": "Pine Park Pavilion",
"category": "Community"
},
{
"id": 7,
"title": "Coding Club Open House",
"date": "2026-10-24",
"location": "Maple School Lab",
"category": "Technology"
},
{
"id": 8,
"title": "Book Swap",
"date": "2026-10-28",
"location": "Cedar Library",
"category": "Community"
}
]Fetch example
fetch("https://api.mydcts.org/events")
.then(response => {
if (!response.ok) throw new Error("Request failed: " + response.status);
return response.json();
})
.then(data => console.log(data))
.catch(error => console.error(error.message));Request behavior
GET returns data; HEAD returns headers; OPTIONS returns 204. Data stays fixed. Browser requests from VS Code Live Server and other origins are supported.
200 Success · 400 Query parameters are not supported · 405 Write method not allowed