v2

latestOpenAPI 3.1.0MITraw.githubusercontent.com2025-12-2382523.3 KB
Events

List special events

Return a list of upcoming special events at the museum.

get/special-events

Query parameters

startDatestring date
Example:2023-02-23

Start date to retrieve future operating hours from. Defaults to today's date.

endDatestring date
Example:2023-04-18

End of a date range to retrieve special events for. Defaults to 7 days after startDate.

pageinteger
Example:2

Page number to retrieve.

limitinteger
Example:15

Number of days per page.

Response

Success.

eventIdstring uuid required

Identifier for a special event.

namestring required

Name of the special event.

locationstring required

Location where the special event is held.

eventDescriptionstring required

Description of the special event.

datesDate[] required

List of planned dates for the special event.

pricenumber float required

Price of a ticket for the special event.

Example response

[
  {
    "eventId": "3be6453c-03eb-4357-ae5a-984a0e574a54",
    "name": "Pirate Coding Workshop",
    "location": "Computer Room",
    "eventDescription": "Captain Blackbeard shares his love of the C...language. And possibly Arrrrr (R lang).",
    "dates": [
      "2023-10-29"
    ],
    "price": 25
  }
]