Skip to content

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.


Get museum hours​

GET
/museum-hours

Get upcoming museum operating hours.

Authorizations​

MuseumPlaceholderAuth
Type
HTTP (basic)

Parameters​

Query Parameters

startDate

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

Type
string
Example"2023-02-23"
Format
"date"
page

Page number to retrieve.

Type
integer
Example2
Default
1
limit

Number of days per page.

Type
integer
Example15
Default
10
Maximum
30

Responses​

Success.

application/json

List of museum operating hours for a date range.

Date the operating hours apply to.

Format"date"

Time the museum opens on a specific date. Uses 24 hour time format (HH:mm).

Pattern"^([01]\\d|2[0-3]):?([0-5]\\d)$"

Time the museum closes on a specific date. Uses 24 hour time format (HH:mm).

Pattern"^([01]\\d|2[0-3]):?([0-5]\\d)$"

Playground​

Authorization
Variables
Key
Value

Samples​


List special events​

GET
/special-events

Return a list of upcoming special events at the museum.

Authorizations​

MuseumPlaceholderAuth
Type
HTTP (basic)

Parameters​

Query Parameters

startDate

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

Type
string
Example"2023-02-23"
Format
"date"
endDate

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

Type
string
Example"2023-04-18"
Format
"date"
page

Page number to retrieve.

Type
integer
Example2
Default
1
limit

Number of days per page.

Type
integer
Example15
Default
10
Maximum
30

Responses​

Success.

application/json

List of upcoming special events.

Identifier for a special event.

Format"uuid"

Name of the special event.

Location where the special event is held.

Description of the special event.

List of planned dates for the special event.

Price of a ticket for the special event.

Format"float"

Playground​

Authorization
Variables
Key
Value

Samples​


Create special events​

POST
/special-events

Creates a new special event for the museum.

Authorizations​

MuseumPlaceholderAuth
Type
HTTP (basic)

Request Body​

application/json

Identifier for a special event.

Format"uuid"

Name of the special event.

Location where the special event is held.

Description of the special event.

List of planned dates for the special event.

Price of a ticket for the special event.

Format"float"

Responses​

Created.

application/json

Identifier for a special event.

Format"uuid"

Name of the special event.

Location where the special event is held.

Description of the special event.

List of planned dates for the special event.

Price of a ticket for the special event.

Format"float"

Playground​

Authorization
Body

Samples​


Get special event​

GET
/special-events/{eventId}

Get details about a special event.

Authorizations​

MuseumPlaceholderAuth
Type
HTTP (basic)

Parameters​

Path Parameters

eventId*

Identifier for a special event.

Type
string
Required
Example"dad4bce8-f5cb-4078-a211-995864315e39"
Format
"uuid"

Responses​

Success.

application/json

Identifier for a special event.

Format"uuid"

Name of the special event.

Location where the special event is held.

Description of the special event.

List of planned dates for the special event.

Price of a ticket for the special event.

Format"float"

Playground​

Authorization
Variables
Key
Value

Samples​


Delete special event​

DELETE
/special-events/{eventId}

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

Authorizations​

MuseumPlaceholderAuth
Type
HTTP (basic)

Parameters​

Path Parameters

eventId*

Identifier for a special event.

Type
string
Required
Example"dad4bce8-f5cb-4078-a211-995864315e39"
Format
"uuid"

Responses​

Success - no content.

Playground​

Authorization
Variables
Key
Value

Samples​


Update special event​

PATCH
/special-events/{eventId}

Update the details of a special event.

Authorizations​

MuseumPlaceholderAuth
Type
HTTP (basic)

Parameters​

Path Parameters

eventId*

Identifier for a special event.

Type
string
Required
Example"dad4bce8-f5cb-4078-a211-995864315e39"
Format
"uuid"

Request Body​

application/json

Name of the special event.

Location where the special event is held.

Description of the special event.

List of planned dates for the special event.

Price of a ticket for the special event.

Format"float"

Responses​

Success.

application/json

Identifier for a special event.

Format"uuid"

Name of the special event.

Location where the special event is held.

Description of the special event.

List of planned dates for the special event.

Price of a ticket for the special event.

Format"float"

Playground​

Authorization
Variables
Key
Value
Body

Samples​


Tickets​

Museum tickets for general entrance or special events.


Buy museum tickets​

POST
/tickets

Purchase museum tickets for general entry or special events.

Authorizations​

MuseumPlaceholderAuth
Type
HTTP (basic)

Request Body​

application/json

Data to purchase a ticket.

Email address for ticket purchaser.

Format"email"

Unique identifier for museum ticket. Generated when purchased.

Format"uuid"

Date when this ticket can be used for museum entry.

Format"date"

Type of ticket being purchased. Use general for regular museum entry and event for tickets to special events.

Valid values"event""general"

Unique identifier for a special event. Required if purchasing tickets for the museum's special events.

Format"uuid"

Responses​

Created.

application/json

Details for a museum ticket after a successful purchase.

Unique identifier for museum ticket. Generated when purchased.

Format"uuid"

Date when this ticket can be used for museum entry.

Format"date"

Type of ticket being purchased. Use general for regular museum entry and event for tickets to special events.

Valid values"event""general"

Unique identifier for a special event. Required if purchasing tickets for the museum's special events.

Format"uuid"

Confirmation message after a ticket purchase.

Unique confirmation code used to verify ticket purchase.

Playground​

Authorization
Body

Samples​


Get ticket QR code​

GET
/tickets/{ticketId}/qr

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

Authorizations​

MuseumPlaceholderAuth
Type
HTTP (basic)

Parameters​

Path Parameters

ticketId*

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

Type
string
Required
Example"a54a57ca-36f8-421b-a6b4-2e8f26858a4c"
Format
"uuid"

Responses​

Scannable event ticket in image format.

image/png

Image of a ticket with a QR code used for museum or event entry.

Format"binary"

Playground​

Authorization
Variables
Key
Value

Samples​


Powered by VitePress OpenAPI