Events API

GET Get All Events /api/events

Retrieves a list of all published events.

GET Get Event by ID /api/events/:id

Get details of a specific event.

GET Search Events by Location /api/events/location/search

Search for events by location name.

GET Search Events by Month /api/events/month/search

Search for events by month number (1-12).

GET Get Event Capacity /api/events/:id/capacity

Get capacity information for an event.

GET Get My Events /api/events/byorganizer/list

Get events organized by the logged-in user (requires login).

PATCH Publish Event /api/events/:id/publish

Publish an event to make it publicly visible.

POST Create New Event /api/events

Create a new event (requires login & form submission).

PUT Update Event /api/events/:id

Update an existing event.

API Response

// API response will appear here

Tips

  • Event creation requires login
  • Events must be published to be visible to all users
  • Service cost is calculated automatically
  • Event registration capacity is determined at creation time