Redocly Museum API
Imaginary, but delightful Museum API for interacting with museum services and information. Built with love by Redocly.
Contact
Terms of Service
https://redocly.com/subscription-agreement/Servers
Operations
Operational information about the museum.
Operations
Get museum hours
Get upcoming museum operating hours.
Authorizations
Parameters
Query Parameters
Starting date to retrieve future operating hours from. Defaults to today's date.
2023-02-23
date
Page number to retrieve.
2
1
Number of days per page.
15
10
30
Responses
Samples
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
}
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 -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"
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
$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;
?>
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
Special events hosted by the museum.
List special events
Return a list of upcoming special events at the museum.
Authorizations
Parameters
Query Parameters
Starting date to retrieve future operating hours from. Defaults to today's date.
2023-02-23
date
End of a date range to retrieve special events for. Defaults to 7 days after startDate
.
2023-04-18
date
Page number to retrieve.
2
1
Number of days per page.
15
10
30
Responses
Samples
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
}
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 -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"
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
$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;
?>
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())
Create special events
Creates a new special event for the museum.
Authorizations
Request Body
Responses
Samples
post {
url: https://redocly.com/_mock/docs/openapi/museum-api/special-events
}
headers {
Content-Type: application/json
}
post {
url: https://redocly.com/_mock/docs/openapi/museum-api/special-events
}
headers {
Content-Type: application/json
}
curl -X POST \
'https://redocly.com/_mock/docs/openapi/museum-api/special-events' \
-H "Content-Type: application/json"
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
$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;
?>
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())
Get special event
Get details about a special event.
Authorizations
Parameters
Path Parameters
Identifier for a special event.
dad4bce8-f5cb-4078-a211-995864315e39
uuid
Responses
Samples
get {
url: https://redocly.com/_mock/docs/openapi/museum-api/special-events/dad4bce8-f5cb-4078-a211-995864315e39
}
headers {
Content-Type: application/json
}
get {
url: https://redocly.com/_mock/docs/openapi/museum-api/special-events/dad4bce8-f5cb-4078-a211-995864315e39
}
headers {
Content-Type: application/json
}
curl -X GET \
'https://redocly.com/_mock/docs/openapi/museum-api/special-events/dad4bce8-f5cb-4078-a211-995864315e39' \
-H "Content-Type: application/json"
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
$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;
?>
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())
Delete special event
Delete a special event from the collection. Allows museum to cancel planned events.
Authorizations
Parameters
Path Parameters
Identifier for a special event.
dad4bce8-f5cb-4078-a211-995864315e39
uuid
Responses
Samples
delete {
url: https://redocly.com/_mock/docs/openapi/museum-api/special-events/dad4bce8-f5cb-4078-a211-995864315e39
}
headers {
Content-Type: application/json
}
delete {
url: https://redocly.com/_mock/docs/openapi/museum-api/special-events/dad4bce8-f5cb-4078-a211-995864315e39
}
headers {
Content-Type: application/json
}
curl -X DELETE \
'https://redocly.com/_mock/docs/openapi/museum-api/special-events/dad4bce8-f5cb-4078-a211-995864315e39' \
-H "Content-Type: application/json"
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
$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;
?>
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())
Update special event
Update the details of a special event.
Authorizations
Parameters
Path Parameters
Identifier for a special event.
dad4bce8-f5cb-4078-a211-995864315e39
uuid
Request Body
Responses
Samples
patch {
url: https://redocly.com/_mock/docs/openapi/museum-api/special-events/dad4bce8-f5cb-4078-a211-995864315e39
}
headers {
Content-Type: application/json
}
patch {
url: https://redocly.com/_mock/docs/openapi/museum-api/special-events/dad4bce8-f5cb-4078-a211-995864315e39
}
headers {
Content-Type: application/json
}
curl -X PATCH \
'https://redocly.com/_mock/docs/openapi/museum-api/special-events/dad4bce8-f5cb-4078-a211-995864315e39' \
-H "Content-Type: application/json"
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
$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;
?>
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.
Buy museum tickets
Purchase museum tickets for general entry or special events.
Authorizations
Request Body
Responses
Samples
post {
url: https://redocly.com/_mock/docs/openapi/museum-api/tickets
}
headers {
Content-Type: application/json
}
post {
url: https://redocly.com/_mock/docs/openapi/museum-api/tickets
}
headers {
Content-Type: application/json
}
curl -X POST \
'https://redocly.com/_mock/docs/openapi/museum-api/tickets' \
-H "Content-Type: application/json"
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
$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;
?>
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())
Get ticket QR code
Return an image of your ticket with scannable QR code. Used for event entry.
Authorizations
Parameters
Path Parameters
Identifier for a ticket to a museum event. Used to generate ticket image.
a54a57ca-36f8-421b-a6b4-2e8f26858a4c
uuid
Responses
string
Samples
get {
url: https://redocly.com/_mock/docs/openapi/museum-api/tickets/a54a57ca-36f8-421b-a6b4-2e8f26858a4c/qr
}
headers {
Content-Type: application/json
}
get {
url: https://redocly.com/_mock/docs/openapi/museum-api/tickets/a54a57ca-36f8-421b-a6b4-2e8f26858a4c/qr
}
headers {
Content-Type: application/json
}
curl -X GET \
'https://redocly.com/_mock/docs/openapi/museum-api/tickets/a54a57ca-36f8-421b-a6b4-2e8f26858a4c/qr' \
-H "Content-Type: application/json"
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
$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;
?>
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())