{"openapi":"3.1.0","info":{"title":"Public adventure editions","version":"1.0.0","description":"Current and future published adventure editions for this website. No reservations, bookings, remaining places, customers or payment credentials are exposed."},"servers":[{"url":"/"}],"paths":{"/api/public/adventures":{"get":{"operationId":"listPublicAdventureEditions","summary":"Read current and future editions, entry-option prices and configured maximum capacities","description":"Tenant comes from the website hostname. Date filters select overlapping editions. Entry-option prices are not inferred to be per person. Unknown values are null. Total is the number of edition records, not booked teams or places.","security":[],"parameters":[{"name":"page","in":"query","schema":{"type":"integer","minimum":1,"maximum":10000,"default":1}},{"name":"limit","in":"query","schema":{"type":"integer","minimum":1,"maximum":100,"default":25}},{"name":"from","in":"query","description":"Inclusive date, YYYY-MM-DD","schema":{"type":"string","format":"date"}},{"name":"to","in":"query","description":"Inclusive date, YYYY-MM-DD","schema":{"type":"string","format":"date"}},{"name":"adventure","in":"query","description":"Published adventure page slug, for example rickshaw-run-india","schema":{"type":"string","maxLength":200}}],"responses":{"200":{"description":"Published editions","content":{"application/json":{"schema":{"type":"object","required":["version","asOf","scope","data","pagination"],"properties":{"version":{"const":1},"asOf":{"type":"string","format":"date-time"},"scope":{"const":"current_and_future_published_editions"},"priceBasis":{"type":"string"},"data":{"type":"array","items":{"$ref":"#/components/schemas/Edition"}},"pagination":{"type":"object","properties":{"page":{"type":"integer"},"limit":{"type":"integer"},"total":{"type":"integer","description":"Number of edition records"}}}}}}}},"400":{"description":"Unsupported or invalid query parameter"},"404":{"description":"No public site is mapped to this hostname"},"405":{"description":"Only GET and HEAD are allowed"},"429":{"description":"Rate limit exceeded; honour Retry-After"},"503":{"description":"Catalogue temporarily unavailable"}}}}},"components":{"schemas":{"Edition":{"type":"object","additionalProperties":false,"properties":{"editionId":{"type":"integer"},"name":{"type":"string"},"adventure":{"type":"string"},"path":{"type":"string"},"markdownPath":{"type":"string"},"updatedAt":{"type":["string","null"]},"bookingPath":{"type":"string","description":"Existing signup or application URL for this edition. Navigate here; do not create a payment or reservation."},"bookingNote":{"type":"string"},"dates":{"type":"object","properties":{"start":{"type":"string","format":"date"},"end":{"type":["string","null"],"format":"date"},"timeZone":{"type":["string","null"],"description":"Venue IANA timezone when configured"}}},"locations":{"type":"object","properties":{"start":{"type":["string","null"]},"finish":{"type":["string","null"]}}},"options":{"type":"array","items":{"type":"object","additionalProperties":false,"properties":{"name":{"type":["string","null"]},"price":{"type":"object","additionalProperties":false,"properties":{"amount":{"type":"number","minimum":0},"currency":{"type":"string","pattern":"^[A-Z]{3}$"},"basis":{"const":"entry_option"}}},"maxTeams":{"type":["integer","null"],"description":"Configured option capacity, not remaining places"},"minTeamMembers":{"type":["integer","null"]},"maxTeamMembers":{"type":["integer","null"]}}}}}}}}}