Imaginary, but delightful Museum API for interacting with museum services and information. Built with love by Redocly.
Redocly Museum API (1.2.1)
Download OpenAPI description
Overview
Languages
Servers
Mock server
https://vlad.redocly.xyz/_mock/apis/museum/openapi
https://redocly.com/_mock/docs/openapi/museum-api
- Mock serverhttps://vlad.redocly.xyz/_mock/apis/museum/openapi/tickets
- https://redocly.com/_mock/docs/openapi/museum-api/tickets
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X GET \
-u <username>:<password> \
'https://vlad.redocly.xyz/_mock/apis/museum/openapi/tickets?page=2&limit=15'Response
application/json
[ { "ticketId": "a54a57ca-36f8-421b-a6b4-2e8f26858a4c", "ticketDate": "2023-10-29", "ticketType": "event", "eventId": "3be6453c-03eb-4357-ae5a-984a0e574a54" } ]
Bodyapplication/jsonrequired
Type of ticket being purchased. Use general for regular museum entry and event for tickets to special events.
Enum"event""general"
- Mock serverhttps://vlad.redocly.xyz/_mock/apis/museum/openapi/tickets
- https://redocly.com/_mock/docs/openapi/museum-api/tickets
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X POST \
-u <username>:<password> \
https://vlad.redocly.xyz/_mock/apis/museum/openapi/tickets \
-H 'Content-Type: application/json' \
-d '{
"ticketType": "general",
"ticketDate": "2023-09-07",
"email": "todd@example.com"
}'Response
application/json
{ "message": "Museum general entry ticket purchased", "ticketId": "382c0820-0530-4f4b-99af-13811ad0f17a", "ticketType": "general", "ticketDate": "2023-09-07", "confirmationCode": "ticket-general-e5e5c6-dce78" }
- Mock serverhttps://vlad.redocly.xyz/_mock/apis/museum/openapi/tickets/{ticketId}/pkpass
- https://redocly.com/_mock/docs/openapi/museum-api/tickets/{ticketId}/pkpass
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X GET \
-u <username>:<password> \
https://vlad.redocly.xyz/_mock/apis/museum/openapi/tickets/a54a57ca-36f8-421b-a6b4-2e8f26858a4c/pkpassResponse
application/json
{ "eventName": "Museum admission", "date": "2023-10-29", "time": "09:00", "ticketId": "a54a57ca-36f8-421b-a6b4-2e8f26858a4c" }