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
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
Playground
Authorization
Variables
Samples
curl 'https://redocly.com/_mock/docs/openapi/museum-api/museum-hours?startDate=2023-02-23&page=2&limit=15' \ --header 'Authorization: Basic MuseumPlaceholderAuth' \ --header 'Content-Type: application/json'
fetch('https://redocly.com/_mock/docs/openapi/museum-api/museum-hours?startDate=2023-02-23&page=2&limit=15', {
headers: {
Authorization: 'Basic MuseumPlaceholderAuth',
'Content-Type': 'application/json'
}
})
$ch = curl_init("https://redocly.com/_mock/docs/openapi/museum-api/museum-hours?startDate=2023-02-23&page=2&limit=15");
curl_setopt($ch, CURLOPT_HTTPHEADER, ['Authorization: Basic MuseumPlaceholderAuth', 'Content-Type: application/json']);
curl_exec($ch);
curl_close($ch);
requests.get(
"https://redocly.com/_mock/docs/openapi/museum-api/museum-hours",
headers={
"Authorization": "Basic MuseumPlaceholderAuth",
"Content-Type": "application/json"
},
params={
"startDate": "2023-02-23",
"page": 2,
"limit": 15
}
)
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
Playground
Authorization
Variables
Samples
curl 'https://redocly.com/_mock/docs/openapi/museum-api/special-events?startDate=2023-02-23&endDate=2023-04-18&page=2&limit=15' \ --header 'Authorization: Basic MuseumPlaceholderAuth' \ --header '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: {
Authorization: 'Basic MuseumPlaceholderAuth',
'Content-Type': 'application/json'
}
})
$ch = curl_init("https://redocly.com/_mock/docs/openapi/museum-api/special-events?startDate=2023-02-23&endDate=2023-04-18&page=2&limit=15");
curl_setopt($ch, CURLOPT_HTTPHEADER, ['Authorization: Basic MuseumPlaceholderAuth', 'Content-Type: application/json']);
curl_exec($ch);
curl_close($ch);
requests.get(
"https://redocly.com/_mock/docs/openapi/museum-api/special-events",
headers={
"Authorization": "Basic MuseumPlaceholderAuth",
"Content-Type": "application/json"
},
params={
"startDate": "2023-02-23",
"endDate": "2023-04-18",
"page": 2,
"limit": 15
}
)
Create special events
Creates a new special event for the museum.
Authorizations
Request Body
Responses
Playground
Authorization
Body
Samples
curl https://redocly.com/_mock/docs/openapi/museum-api/special-events \ --request POST \ --header 'Authorization: Basic MuseumPlaceholderAuth' \ --header 'Content-Type: application/json' \ --data '{ "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 }'
fetch('https://redocly.com/_mock/docs/openapi/museum-api/special-events', {
method: 'POST',
headers: {
Authorization: 'Basic MuseumPlaceholderAuth',
'Content-Type': 'application/json'
},
body: JSON.stringify({
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
})
})
$ch = curl_init("https://redocly.com/_mock/docs/openapi/museum-api/special-events");
curl_setopt($ch, CURLOPT_POST, true);
curl_setopt($ch, CURLOPT_HTTPHEADER, ['Authorization: Basic MuseumPlaceholderAuth', 'Content-Type: application/json']);
curl_setopt($ch, CURLOPT_POSTFIELDS, json_encode([
'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
]));
curl_exec($ch);
curl_close($ch);
requests.post(
"https://redocly.com/_mock/docs/openapi/museum-api/special-events",
headers={
"Authorization": "Basic MuseumPlaceholderAuth",
"Content-Type": "application/json"
},
json={
"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
}
)
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
Playground
Authorization
Variables
Samples
curl https://redocly.com/_mock/docs/openapi/museum-api/special-events/dad4bce8-f5cb-4078-a211-995864315e39 \ --header 'Authorization: Basic MuseumPlaceholderAuth' \ --header 'Content-Type: application/json'
fetch('https://redocly.com/_mock/docs/openapi/museum-api/special-events/dad4bce8-f5cb-4078-a211-995864315e39', {
headers: {
Authorization: 'Basic MuseumPlaceholderAuth',
'Content-Type': 'application/json'
}
})
$ch = curl_init("https://redocly.com/_mock/docs/openapi/museum-api/special-events/dad4bce8-f5cb-4078-a211-995864315e39");
curl_setopt($ch, CURLOPT_HTTPHEADER, ['Authorization: Basic MuseumPlaceholderAuth', 'Content-Type: application/json']);
curl_exec($ch);
curl_close($ch);
requests.get(
"https://redocly.com/_mock/docs/openapi/museum-api/special-events/dad4bce8-f5cb-4078-a211-995864315e39",
headers={
"Authorization": "Basic MuseumPlaceholderAuth",
"Content-Type": "application/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
Playground
Authorization
Variables
Samples
curl https://redocly.com/_mock/docs/openapi/museum-api/special-events/dad4bce8-f5cb-4078-a211-995864315e39 \ --request DELETE \ --header 'Authorization: Basic MuseumPlaceholderAuth' \ --header 'Content-Type: application/json'
fetch('https://redocly.com/_mock/docs/openapi/museum-api/special-events/dad4bce8-f5cb-4078-a211-995864315e39', {
method: 'DELETE',
headers: {
Authorization: 'Basic MuseumPlaceholderAuth',
'Content-Type': 'application/json'
}
})
$ch = curl_init("https://redocly.com/_mock/docs/openapi/museum-api/special-events/dad4bce8-f5cb-4078-a211-995864315e39");
curl_setopt($ch, CURLOPT_HTTPHEADER, ['Authorization: Basic MuseumPlaceholderAuth', 'Content-Type: application/json']);
curl_exec($ch);
curl_close($ch);
requests.delete(
"https://redocly.com/_mock/docs/openapi/museum-api/special-events/dad4bce8-f5cb-4078-a211-995864315e39",
headers={
"Authorization": "Basic MuseumPlaceholderAuth",
"Content-Type": "application/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
Playground
Authorization
Variables
Body
Samples
curl https://redocly.com/_mock/docs/openapi/museum-api/special-events/dad4bce8-f5cb-4078-a211-995864315e39 \ --request PATCH \ --header 'Authorization: Basic MuseumPlaceholderAuth' \ --header 'Content-Type: application/json' \ --data '{ "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 }'
fetch('https://redocly.com/_mock/docs/openapi/museum-api/special-events/dad4bce8-f5cb-4078-a211-995864315e39', {
method: 'PATCH',
headers: {
Authorization: 'Basic MuseumPlaceholderAuth',
'Content-Type': 'application/json'
},
body: JSON.stringify({
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
})
})
$ch = curl_init("https://redocly.com/_mock/docs/openapi/museum-api/special-events/dad4bce8-f5cb-4078-a211-995864315e39");
curl_setopt($ch, CURLOPT_HTTPHEADER, ['Authorization: Basic MuseumPlaceholderAuth', 'Content-Type: application/json']);
curl_setopt($ch, CURLOPT_POSTFIELDS, json_encode([
'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
]));
curl_exec($ch);
curl_close($ch);
requests.patch(
"https://redocly.com/_mock/docs/openapi/museum-api/special-events/dad4bce8-f5cb-4078-a211-995864315e39",
headers={
"Authorization": "Basic MuseumPlaceholderAuth",
"Content-Type": "application/json"
},
json={
"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
}
)
Buy museum tickets
Purchase museum tickets for general entry or special events.
Authorizations
Request Body
Responses
Playground
Authorization
Body
Samples
curl https://redocly.com/_mock/docs/openapi/museum-api/tickets \ --request POST \ --header 'Authorization: Basic MuseumPlaceholderAuth' \ --header 'Content-Type: application/json' \ --data '{ "email": "museum-lover@example.com", "ticketId": "a54a57ca-36f8-421b-a6b4-2e8f26858a4c", "ticketDate": "2023-10-29", "ticketType": "string", "eventId": "3be6453c-03eb-4357-ae5a-984a0e574a54" }'
fetch('https://redocly.com/_mock/docs/openapi/museum-api/tickets', {
method: 'POST',
headers: {
Authorization: 'Basic MuseumPlaceholderAuth',
'Content-Type': 'application/json'
},
body: JSON.stringify({
email: 'museum-lover@example.com',
ticketId: 'a54a57ca-36f8-421b-a6b4-2e8f26858a4c',
ticketDate: '2023-10-29',
ticketType: 'string',
eventId: '3be6453c-03eb-4357-ae5a-984a0e574a54'
})
})
$ch = curl_init("https://redocly.com/_mock/docs/openapi/museum-api/tickets");
curl_setopt($ch, CURLOPT_POST, true);
curl_setopt($ch, CURLOPT_HTTPHEADER, ['Authorization: Basic MuseumPlaceholderAuth', 'Content-Type: application/json']);
curl_setopt($ch, CURLOPT_POSTFIELDS, json_encode([
'email' => 'museum-lover@example.com',
'ticketId' => 'a54a57ca-36f8-421b-a6b4-2e8f26858a4c',
'ticketDate' => '2023-10-29',
'ticketType' => 'string',
'eventId' => '3be6453c-03eb-4357-ae5a-984a0e574a54'
]));
curl_exec($ch);
curl_close($ch);
requests.post(
"https://redocly.com/_mock/docs/openapi/museum-api/tickets",
headers={
"Authorization": "Basic MuseumPlaceholderAuth",
"Content-Type": "application/json"
},
json={
"email": "museum-lover@example.com",
"ticketId": "a54a57ca-36f8-421b-a6b4-2e8f26858a4c",
"ticketDate": "2023-10-29",
"ticketType": "string",
"eventId": "3be6453c-03eb-4357-ae5a-984a0e574a54"
}
)
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
Playground
Authorization
Variables
Samples
curl https://redocly.com/_mock/docs/openapi/museum-api/tickets/a54a57ca-36f8-421b-a6b4-2e8f26858a4c/qr \ --header 'Authorization: Basic MuseumPlaceholderAuth' \ --header 'Content-Type: application/json'
fetch('https://redocly.com/_mock/docs/openapi/museum-api/tickets/a54a57ca-36f8-421b-a6b4-2e8f26858a4c/qr', {
headers: {
Authorization: 'Basic MuseumPlaceholderAuth',
'Content-Type': 'application/json'
}
})
$ch = curl_init("https://redocly.com/_mock/docs/openapi/museum-api/tickets/a54a57ca-36f8-421b-a6b4-2e8f26858a4c/qr");
curl_setopt($ch, CURLOPT_HTTPHEADER, ['Authorization: Basic MuseumPlaceholderAuth', 'Content-Type: application/json']);
curl_exec($ch);
curl_close($ch);
requests.get(
"https://redocly.com/_mock/docs/openapi/museum-api/tickets/a54a57ca-36f8-421b-a6b4-2e8f26858a4c/qr",
headers={
"Authorization": "Basic MuseumPlaceholderAuth",
"Content-Type": "application/json"
}
)