Skip to content
v1.2.1

Redocly Museum API

Imaginary, but delightful Museum API for interacting with museum services and information. Built with love by Redocly.

Contact

Servers

https://redocly.com/_mock/docs/openapi/museum-api

Operations

Operational information about the museum.


ID: getMuseumHours

Get museum hours

GET
/museum-hours

Get upcoming museum operating hours.

Authorizations

MuseumPlaceholderAuth
TypeHTTP (basic)

Parameters

Query Parameters

startDate

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

Typestring
Example2023-02-23
formatdate
page

Page number to retrieve.

Typeinteger
Example2
default1
limit

Number of days per page.

Typeinteger
Example15
default10
maximum30

Responses

Success.
application/json
JSON
[
{
"date": "2023-09-11",
"timeOpen": "09:00",
"timeClose": "18:00"
},
{
"date": "2023-09-12",
"timeOpen": "09:00",
"timeClose": "18:00"
},
{
"date": "2023-09-13",
"timeOpen": "09:00",
"timeClose": "18:00"
},
{
"date": "2023-09-14",
"timeOpen": "09:00",
"timeClose": "18:00"
},
{
"date": "2023-09-15",
"timeOpen": "10:00",
"timeClose": "16:00"
},
{
"date": "2023-09-18",
"timeOpen": "09:00",
"timeClose": "18:00"
},
{
"date": "2023-09-19",
"timeOpen": "09:00",
"timeClose": "18:00"
},
{
"date": "2023-09-20",
"timeOpen": "09:00",
"timeClose": "18:00"
},
{
"date": "2023-09-21",
"timeOpen": "09:00",
"timeClose": "18:00"
},
{
"date": "2023-09-22",
"timeOpen": "10:00",
"timeClose": "16:00"
}
]

Samples

Bruno
get {
  url: https://redocly.com/_mock/docs/openapi/museum-api/museum-hours?startDate=2023-02-23&page=2&limit=15
}

headers {
  Content-Type: application/json
}
Bruno
get {
  url: https://redocly.com/_mock/docs/openapi/museum-api/museum-hours?startDate=2023-02-23&page=2&limit=15
}

headers {
  Content-Type: application/json
}
cURL
curl -X GET \
'https://redocly.com/_mock/docs/openapi/museum-api/museum-hours?startDate=2023-02-23&page=2&limit=15' \
 -H "Content-Type: application/json"
JavaScript
fetch('https://redocly.com/_mock/docs/openapi/museum-api/museum-hours?startDate=2023-02-23&page=2&limit=15', {headers:{'Content-Type':'application/json'}})
  .then(response => response.json())
  .then(data => console.log(data));
PHP
<?php
$url = 'https://redocly.com/_mock/docs/openapi/museum-api/museum-hours';
$method = 'GET';
$headers = [
    'Content-Type' => 'application/json',
];
$query = http_build_query([
    'startDate' => '2023-02-23',
    'page' => '2',
    'limit' => '15',
]);

$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $url . '?' . $query);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_CUSTOMREQUEST, $method);
curl_setopt($ch, CURLOPT_HTTPHEADER, $headers);

$response = curl_exec($ch);
curl_close($ch);

echo $response;
?>
Python
import requests

url = 'https://redocly.com/_mock/docs/openapi/museum-api/museum-hours'
params = {
    'startDate': '2023-02-23',
    'page': 2,
    'limit': 15
}
headers = {
    'Content-Type': 'application/json'
}

response = requests.get(url, params=params, headers=headers)
print(response.json())

Events


ID: listSpecialEvents

List special events

GET
/special-events

Return a list of upcoming special events at the museum.

Authorizations

MuseumPlaceholderAuth
TypeHTTP (basic)

Parameters

Query Parameters

startDate

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

Typestring
Example2023-02-23
formatdate
endDate

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

Typestring
Example2023-04-18
formatdate
page

Page number to retrieve.

Typeinteger
Example2
default1
limit

Number of days per page.

Typeinteger
Example15
default10
maximum30

Responses

Success.
application/json
JSON
[
{
"eventId": "f3e0e76e-e4a8-466e-ab9c-ae36c15b8e97",
"name": "Sasquatch Ballet",
"location": "Seattle... probably",
"eventDescription": "They're big, they're hairy, but they're also graceful. Come learn how the biggest feet can have the lightest touch.",
"dates": [
"2023-12-15",
"2023-12-22"
],
"price": 40
},
{
"eventId": "2f14374a-9c65-4ee5-94b7-fba66d893483",
"name": "Solar Telescope Demonstration",
"location": "Far from the sun.",
"eventDescription": "Look at the sun without going blind!",
"dates": [
"2023-09-07",
"2023-09-14"
],
"price": 50
},
{
"eventId": "6aaa61ba-b2aa-4868-b803-603dbbf7bfdb",
"name": "Cook like a Caveman",
"location": "Fire Pit on East side",
"eventDescription": "Learn to cook on an open flame.",
"dates": [
"2023-11-10",
"2023-11-17",
"2023-11-24"
],
"price": 5
},
{
"eventId": "602b75e1-5696-4ab8-8c7a-f9e13580f910",
"name": "Underwater Basket Weaving",
"location": "Rec Center Pool next door.",
"eventDescription": "Learn to weave baskets underwater.",
"dates": [
"2023-09-12",
"2023-09-15"
],
"price": 15
},
{
"eventId": "dad4bce8-f5cb-4078-a211-995864315e39",
"name": "Mermaid Treasure Identification and Analysis",
"location": "Room Sea-12",
"eventDescription": "Join us as we review and classify a rare collection of 20 thingamabobs, gadgets, gizmos, whoosits, and whatsits — kindly donated by Ariel.",
"dates": [
"2023-09-05",
"2023-09-08"
],
"price": 30
},
{
"eventId": "6744a0da-4121-49cd-8479-f8cc20526495",
"name": "Time Traveler Tea Party",
"location": "Temporal Tearoom",
"eventDescription": "Sip tea with important historical figures.",
"dates": [
"2023-11-18",
"2023-11-25",
"2023-12-02"
],
"price": 60
},
{
"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",
"2023-10-30",
"2023-10-31"
],
"price": 45
},
{
"eventId": "9d90d29a-2af5-4206-97d9-9ea9ceadcb78",
"name": "Llama Street Art Through the Ages",
"location": "Auditorium",
"eventDescription": "Llama street art?! Alpaca my bags -- let's go!",
"dates": [
"2023-10-29",
"2023-10-30",
"2023-10-31"
],
"price": 45
},
{
"eventId": "a3c7b2c4-b5fb-4ef7-9322-00a919864957",
"name": "The Great Parrot Debate",
"location": "Outdoor Amphitheatre",
"eventDescription": "See leading parrot minds discuss important geopolitical issues.",
"dates": [
"2023-11-03",
"2023-11-10"
],
"price": 35
},
{
"eventId": "b92d46b7-4c5d-422b-87a5-287767e26f29",
"name": "Eat a Bunch of Corn",
"location": "Cafeteria",
"eventDescription": "We accidentally bought too much corn. Please come eat it.",
"dates": [
"2023-11-10",
"2023-11-17",
"2023-11-24"
],
"price": 5
}
]

Samples

Bruno
get {
  url: https://redocly.com/_mock/docs/openapi/museum-api/special-events?startDate=2023-02-23&endDate=2023-04-18&page=2&limit=15
}

headers {
  Content-Type: application/json
}
Bruno
get {
  url: https://redocly.com/_mock/docs/openapi/museum-api/special-events?startDate=2023-02-23&endDate=2023-04-18&page=2&limit=15
}

headers {
  Content-Type: application/json
}
cURL
curl -X GET \
'https://redocly.com/_mock/docs/openapi/museum-api/special-events?startDate=2023-02-23&endDate=2023-04-18&page=2&limit=15' \
 -H "Content-Type: application/json"
JavaScript
fetch('https://redocly.com/_mock/docs/openapi/museum-api/special-events?startDate=2023-02-23&endDate=2023-04-18&page=2&limit=15', {headers:{'Content-Type':'application/json'}})
  .then(response => response.json())
  .then(data => console.log(data));
PHP
<?php
$url = 'https://redocly.com/_mock/docs/openapi/museum-api/special-events';
$method = 'GET';
$headers = [
    'Content-Type' => 'application/json',
];
$query = http_build_query([
    'startDate' => '2023-02-23',
    'endDate' => '2023-04-18',
    'page' => '2',
    'limit' => '15',
]);

$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $url . '?' . $query);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_CUSTOMREQUEST, $method);
curl_setopt($ch, CURLOPT_HTTPHEADER, $headers);

$response = curl_exec($ch);
curl_close($ch);

echo $response;
?>
Python
import requests

url = 'https://redocly.com/_mock/docs/openapi/museum-api/special-events'
params = {
    'startDate': '2023-02-23',
    'endDate': '2023-04-18',
    'page': 2,
    'limit': 15
}
headers = {
    'Content-Type': 'application/json'
}

response = requests.get(url, params=params, headers=headers)
print(response.json())

ID: createSpecialEvent

Create special events

POST
/special-events

Creates a new special event for the museum.

Authorizations

MuseumPlaceholderAuth
TypeHTTP (basic)

Request Body

JSON
{
"name": "Mermaid Treasure Identification and Analysis",
"location": "Under the seaaa 🦀 🎶 🌊.",
"eventDescription": "Join us as we review and classify a rare collection of 20 thingamabobs, gadgets, gizmos, whoosits, and whatsits, kindly donated by Ariel.",
"dates": [
"2023-09-05",
"2023-09-08"
],
"price": 0
}

Responses

Created.
application/json
JSON
{
"eventId": "dad4bce8-f5cb-4078-a211-995864315e39",
"name": "Mermaid Treasure Identification and Analysis",
"location": "Under the seaaa 🦀 🎶 🌊.",
"eventDescription": "Join us as we review and classify a rare collection of 20 thingamabobs, gadgets, gizmos, whoosits, and whatsits, kindly donated by Ariel.",
"dates": [
"2023-09-05",
"2023-09-08"
],
"price": 30
}

Samples

Bruno
post {
  url: https://redocly.com/_mock/docs/openapi/museum-api/special-events
}

headers {
  Content-Type: application/json
}
Bruno
post {
  url: https://redocly.com/_mock/docs/openapi/museum-api/special-events
}

headers {
  Content-Type: application/json
}
cURL
curl -X POST \
'https://redocly.com/_mock/docs/openapi/museum-api/special-events' \
 -H "Content-Type: application/json"
JavaScript
fetch('https://redocly.com/_mock/docs/openapi/museum-api/special-events', {method:'POST',headers:{'Content-Type':'application/json'}})
  .then(response => response.json())
  .then(data => console.log(data));
PHP
<?php
$url = 'https://redocly.com/_mock/docs/openapi/museum-api/special-events';
$method = 'POST';
$headers = [
    'Content-Type' => 'application/json',
];

$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $url);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_CUSTOMREQUEST, $method);
curl_setopt($ch, CURLOPT_HTTPHEADER, $headers);

$response = curl_exec($ch);
curl_close($ch);

echo $response;
?>
Python
import requests

url = 'https://redocly.com/_mock/docs/openapi/museum-api/special-events'

headers = {
    'Content-Type': 'application/json'
}

response = requests.post(url, headers=headers)
print(response.json())

ID: getSpecialEvent

Get special event

GET
/special-events/{eventId}

Get details about a special event.

Authorizations

MuseumPlaceholderAuth
TypeHTTP (basic)

Parameters

Path Parameters

eventId*

Identifier for a special event.

Typestring
Required
Exampledad4bce8-f5cb-4078-a211-995864315e39
formatuuid

Responses

Success.
application/json
JSON
{
"eventId": "6744a0da-4121-49cd-8479-f8cc20526495",
"name": "Time Traveler Tea Party",
"location": "Temporal Tearoom",
"eventDescription": "Sip tea with important historical figures.",
"dates": [
"2023-11-18",
"2023-11-25",
"2023-12-02"
],
"price": 60
}

Samples

Bruno
get {
  url: https://redocly.com/_mock/docs/openapi/museum-api/special-events/dad4bce8-f5cb-4078-a211-995864315e39
}

headers {
  Content-Type: application/json
}
Bruno
get {
  url: https://redocly.com/_mock/docs/openapi/museum-api/special-events/dad4bce8-f5cb-4078-a211-995864315e39
}

headers {
  Content-Type: application/json
}
cURL
curl -X GET \
'https://redocly.com/_mock/docs/openapi/museum-api/special-events/dad4bce8-f5cb-4078-a211-995864315e39' \
 -H "Content-Type: application/json"
JavaScript
fetch('https://redocly.com/_mock/docs/openapi/museum-api/special-events/dad4bce8-f5cb-4078-a211-995864315e39', {headers:{'Content-Type':'application/json'}})
  .then(response => response.json())
  .then(data => console.log(data));
PHP
<?php
$url = 'https://redocly.com/_mock/docs/openapi/museum-api/special-events/dad4bce8-f5cb-4078-a211-995864315e39';
$method = 'GET';
$headers = [
    'Content-Type' => 'application/json',
];

$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $url);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_CUSTOMREQUEST, $method);
curl_setopt($ch, CURLOPT_HTTPHEADER, $headers);

$response = curl_exec($ch);
curl_close($ch);

echo $response;
?>
Python
import requests

url = 'https://redocly.com/_mock/docs/openapi/museum-api/special-events/dad4bce8-f5cb-4078-a211-995864315e39'

headers = {
    'Content-Type': 'application/json'
}

response = requests.get(url, headers=headers)
print(response.json())

ID: deleteSpecialEvent

Delete special event

DELETE
/special-events/{eventId}

Delete a special event from the collection. Allows museum to cancel planned events.

Authorizations

MuseumPlaceholderAuth
TypeHTTP (basic)

Parameters

Path Parameters

eventId*

Identifier for a special event.

Typestring
Required
Exampledad4bce8-f5cb-4078-a211-995864315e39
formatuuid

Responses

Success - no content.

Samples

Bruno
delete {
  url: https://redocly.com/_mock/docs/openapi/museum-api/special-events/dad4bce8-f5cb-4078-a211-995864315e39
}

headers {
  Content-Type: application/json
}
Bruno
delete {
  url: https://redocly.com/_mock/docs/openapi/museum-api/special-events/dad4bce8-f5cb-4078-a211-995864315e39
}

headers {
  Content-Type: application/json
}
cURL
curl -X DELETE \
'https://redocly.com/_mock/docs/openapi/museum-api/special-events/dad4bce8-f5cb-4078-a211-995864315e39' \
 -H "Content-Type: application/json"
JavaScript
fetch('https://redocly.com/_mock/docs/openapi/museum-api/special-events/dad4bce8-f5cb-4078-a211-995864315e39', {method:'DELETE',headers:{'Content-Type':'application/json'}})
  .then(response => response.json())
  .then(data => console.log(data));
PHP
<?php
$url = 'https://redocly.com/_mock/docs/openapi/museum-api/special-events/dad4bce8-f5cb-4078-a211-995864315e39';
$method = 'DELETE';
$headers = [
    'Content-Type' => 'application/json',
];

$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $url);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_CUSTOMREQUEST, $method);
curl_setopt($ch, CURLOPT_HTTPHEADER, $headers);

$response = curl_exec($ch);
curl_close($ch);

echo $response;
?>
Python
import requests

url = 'https://redocly.com/_mock/docs/openapi/museum-api/special-events/dad4bce8-f5cb-4078-a211-995864315e39'

headers = {
    'Content-Type': 'application/json'
}

response = requests.delete(url, headers=headers)
print(response.json())

ID: updateSpecialEvent

Update special event

PATCH
/special-events/{eventId}

Update the details of a special event.

Authorizations

MuseumPlaceholderAuth
TypeHTTP (basic)

Parameters

Path Parameters

eventId*

Identifier for a special event.

Typestring
Required
Exampledad4bce8-f5cb-4078-a211-995864315e39
formatuuid

Request Body

JSON
{
"location": "On the beach.",
"price": 15
}

Responses

Success.
application/json
JSON
{
"eventId": "dad4bce8-f5cb-4078-a211-995864315e39",
"name": "Mermaid Treasure Identification and Analysis",
"location": "On the beach.",
"eventDescription": "Join us as we review and classify a rare collection of 20 thingamabobs, gadgets, gizmos, whoosits, and whatsits, kindly donated by Ariel.",
"dates": [
"2023-09-05",
"2023-09-08"
],
"price": 15
}

Samples

Bruno
patch {
  url: https://redocly.com/_mock/docs/openapi/museum-api/special-events/dad4bce8-f5cb-4078-a211-995864315e39
}

headers {
  Content-Type: application/json
}
Bruno
patch {
  url: https://redocly.com/_mock/docs/openapi/museum-api/special-events/dad4bce8-f5cb-4078-a211-995864315e39
}

headers {
  Content-Type: application/json
}
cURL
curl -X PATCH \
'https://redocly.com/_mock/docs/openapi/museum-api/special-events/dad4bce8-f5cb-4078-a211-995864315e39' \
 -H "Content-Type: application/json"
JavaScript
fetch('https://redocly.com/_mock/docs/openapi/museum-api/special-events/dad4bce8-f5cb-4078-a211-995864315e39', {method:'PATCH',headers:{'Content-Type':'application/json'}})
  .then(response => response.json())
  .then(data => console.log(data));
PHP
<?php
$url = 'https://redocly.com/_mock/docs/openapi/museum-api/special-events/dad4bce8-f5cb-4078-a211-995864315e39';
$method = 'PATCH';
$headers = [
    'Content-Type' => 'application/json',
];

$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $url);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_CUSTOMREQUEST, $method);
curl_setopt($ch, CURLOPT_HTTPHEADER, $headers);

$response = curl_exec($ch);
curl_close($ch);

echo $response;
?>
Python
import requests

url = 'https://redocly.com/_mock/docs/openapi/museum-api/special-events/dad4bce8-f5cb-4078-a211-995864315e39'

headers = {
    'Content-Type': 'application/json'
}

response = requests.patch(url, headers=headers)
print(response.json())

Tickets

Museum tickets for general entrance or special events.


ID: buyMuseumTickets

Buy museum tickets

POST
/tickets

Purchase museum tickets for general entry or special events.

Authorizations

MuseumPlaceholderAuth
TypeHTTP (basic)

Request Body

JSON
{
"ticketType": "general",
"ticketDate": "2023-09-07",
"email": "todd@example.com"
}

Responses

Created.
application/json
JSON
{
"message": "Museum general entry ticket purchased",
"ticketId": "382c0820-0530-4f4b-99af-13811ad0f17a",
"ticketType": "general",
"ticketDate": "2023-09-07",
"confirmationCode": "ticket-general-e5e5c6-dce78"
}

Samples

Bruno
post {
  url: https://redocly.com/_mock/docs/openapi/museum-api/tickets
}

headers {
  Content-Type: application/json
}
Bruno
post {
  url: https://redocly.com/_mock/docs/openapi/museum-api/tickets
}

headers {
  Content-Type: application/json
}
cURL
curl -X POST \
'https://redocly.com/_mock/docs/openapi/museum-api/tickets' \
 -H "Content-Type: application/json"
JavaScript
fetch('https://redocly.com/_mock/docs/openapi/museum-api/tickets', {method:'POST',headers:{'Content-Type':'application/json'}})
  .then(response => response.json())
  .then(data => console.log(data));
PHP
<?php
$url = 'https://redocly.com/_mock/docs/openapi/museum-api/tickets';
$method = 'POST';
$headers = [
    'Content-Type' => 'application/json',
];

$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $url);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_CUSTOMREQUEST, $method);
curl_setopt($ch, CURLOPT_HTTPHEADER, $headers);

$response = curl_exec($ch);
curl_close($ch);

echo $response;
?>
Python
import requests

url = 'https://redocly.com/_mock/docs/openapi/museum-api/tickets'

headers = {
    'Content-Type': 'application/json'
}

response = requests.post(url, headers=headers)
print(response.json())

ID: getTicketCode

Get ticket QR code

GET
/tickets/{ticketId}/qr

Return an image of your ticket with scannable QR code. Used for event entry.

Authorizations

MuseumPlaceholderAuth
TypeHTTP (basic)

Parameters

Path Parameters

ticketId*

Identifier for a ticket to a museum event. Used to generate ticket image.

Typestring
Required
Examplea54a57ca-36f8-421b-a6b4-2e8f26858a4c
formatuuid

Responses

Scannable event ticket in image format.
image/png
JSON
"string"

Samples

Bruno
get {
  url: https://redocly.com/_mock/docs/openapi/museum-api/tickets/a54a57ca-36f8-421b-a6b4-2e8f26858a4c/qr
}

headers {
  Content-Type: application/json
}
Bruno
get {
  url: https://redocly.com/_mock/docs/openapi/museum-api/tickets/a54a57ca-36f8-421b-a6b4-2e8f26858a4c/qr
}

headers {
  Content-Type: application/json
}
cURL
curl -X GET \
'https://redocly.com/_mock/docs/openapi/museum-api/tickets/a54a57ca-36f8-421b-a6b4-2e8f26858a4c/qr' \
 -H "Content-Type: application/json"
JavaScript
fetch('https://redocly.com/_mock/docs/openapi/museum-api/tickets/a54a57ca-36f8-421b-a6b4-2e8f26858a4c/qr', {headers:{'Content-Type':'application/json'}})
  .then(response => response.json())
  .then(data => console.log(data));
PHP
<?php
$url = 'https://redocly.com/_mock/docs/openapi/museum-api/tickets/a54a57ca-36f8-421b-a6b4-2e8f26858a4c/qr';
$method = 'GET';
$headers = [
    'Content-Type' => 'application/json',
];

$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $url);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_CUSTOMREQUEST, $method);
curl_setopt($ch, CURLOPT_HTTPHEADER, $headers);

$response = curl_exec($ch);
curl_close($ch);

echo $response;
?>
Python
import requests

url = 'https://redocly.com/_mock/docs/openapi/museum-api/tickets/a54a57ca-36f8-421b-a6b4-2e8f26858a4c/qr'

headers = {
    'Content-Type': 'application/json'
}

response = requests.get(url, headers=headers)
print(response.json())

Powered by VitePress OpenAPI