{"items":[{"type":"link","label":"Train Travel API","link":"/catalog/api-showdown/api-hub/train-travel/openapi","routeSlug":"/catalog/api-showdown/api-hub/train-travel/openapi","content":{"contentType":"overview","meta":{"name":"Train Travel API"},"children":[{"nodeType":"container","panels":[{"title":"Download OpenAPI description","titleTranslationKey":"download.description.title","children":[{"kind":"download","label":"openapi.json","url":"/_bundle/catalog/api-showdown/api-hub/Train Travel/openapi.json?download"},{"kind":"download","label":"openapi.yaml","url":"/_bundle/catalog/api-showdown/api-hub/Train Travel/openapi.yaml?download"}]},{"title":"Overview","titleTranslationKey":"info.title","children":[{"kind":"externallink","title":"URL","titleTranslationKey":"info.contact.url","label":"https://example.com/support","url":"https://example.com/support"},{"kind":"email","title":"Train Support","email":"support@example.com","label":"support@example.com","withCopyButton":true,"copyContent":"support@example.com"},{"kind":"attribute","title":"License","titleTranslationKey":"info.license","label":"CC-BY-NC-SA-4.0","value":"CC-BY-NC-SA-4.0"}]},{"title":"Languages","titleTranslationKey":"languages.title","children":[{"kind":"languages","options":[{"key":"curl","title":"curl","lang":"curl"},{"key":"javascript","title":"JavaScript","lang":"JavaScript"},{"key":"node","title":"Node.js","lang":"Node.js"},{"key":"python","title":"Python","lang":"Python"},{"key":"java","title":"Java","lang":"Java"},{"key":"csharp","title":"C#","lang":"C#"},{"key":"php","title":"PHP","lang":"PHP"},{"key":"go","title":"Go","lang":"Go"},{"key":"ruby","title":"Ruby","lang":"Ruby"},{"key":"r","title":"R","lang":"R"},{"key":"payload","title":"Payload","lang":"Payload"}]}]},{"title":"Servers","titleTranslationKey":"servers.title","children":[{"kind":"servers","servers":[{"url":"/_mock/catalog/api-showdown/api-hub/train-travel/openapi","description":"Mock server","isMockServer":true},{"url":"https://api.example.com","description":"Production"}],"mode":"default"}]}],"children":[{"nodeType":"overview-section-wrapper","children":[{"nodeType":"header","level":1,"label":"Train Travel API (1.0.0)","showPageActions":true},{"nodeType":"overview-section-wrapper","children":[{"nodeType":"markdoc","content":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"API for finding and booking train trips across Europe."},"children":[]}]}]},{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"This API was created by "},"children":[]},{"$$mdtype":"Node","type":"link","inline":true,"attributes":{"href":"https://bump.sh/"},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Bump.sh"},"children":[]}]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" for the entire OpenAPI"},"children":[]},{"$$mdtype":"Node","type":"softbreak","inline":true,"attributes":{},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"community, for educational and demonstrative purposes."},"children":[]}]}]}]}],"sectionId":"/catalog/api-showdown/api-hub/train-travel/openapi"}],"sectionId":"/catalog/api-showdown/api-hub/train-travel/openapi"}]}]}},{"type":"group","label":"Stations","link":"/catalog/api-showdown/api-hub/train-travel/openapi/stations","routeSlug":"/catalog/api-showdown/api-hub/train-travel/openapi/stations","items":[{"label":"Get a list of train stations","deprecated":false,"httpVerb":"get","isAdditionalOperation":false,"isWebhook":false,"type":"link","link":"/catalog/api-showdown/api-hub/train-travel/openapi/stations/get-stations","routeSlug":"/catalog/api-showdown/api-hub/train-travel/openapi/stations/get-stations","metadata":{"seo":{"title":"Get a list of train stations","description":"Returns a list of all train stations in the system."}},"content":{"contentType":"item","itemVariant":"httpItem","meta":{"sourceId":"get-stations","name":"Get a list of train stations","isWebhook":false,"pointer":"/paths/~1stations/get","hasSamples":false},"children":[{"nodeType":"container","children":[{"nodeType":"header","level":2,"label":"Get a list of train stations","isWebhook":false,"showPageActions":true}],"panels":[]},{"nodeType":"container","children":[{"nodeType":"header","level":4,"label":"Request","labelTranslationKey":"request","deepLinkSuffix":"request"},{"nodeType":"markdoc","content":"Returns a list of all train stations in the system."},{"nodeType":"security","requirements":[{"schemes":[{"name":"OAuth2","scopes":["read"],"type":"oauth2","description":"OAuth 2.0 authorization code following RFC8725 best practices.","flows":{"authorizationCode":{"authorizationUrl":"https://example.com/oauth/authorize","tokenUrl":"https://example.com/oauth/token","scopes":{"read":"Read access","write":"Write access"}}}}]}]}],"panels":[{"children":[{"kind":"code-sample","source":{"kind":"code-sample","operationType":"http","method":"GET","path":"/stations","servers":[{"url":"/_mock/catalog/api-showdown/api-hub/train-travel/openapi","description":"Mock server","isMockServer":true},{"url":"https://api.example.com","description":"Production"}],"parameters":{"path":[],"query":[],"querystring":[],"header":[],"cookie":[]},"security":[{"schemes":[{"id":"OAuth2","type":"oauth2","flows":{"authorizationCode":{"authorizationUrl":"https://example.com/oauth/authorize","tokenUrl":"https://example.com/oauth/token","scopes":{"read":"Read access","write":"Write access"}}}}],"scopes":["read"]}],"responseCodes":["200","400","401","403","429","500"],"pointer":"/stations","href":"stations/get-stations","openApiOperationId":"get-stations","summary":"Get a list of train stations"},"isWebhook":false,"hideReplay":false,"servers":[{"url":"/_mock/catalog/api-showdown/api-hub/train-travel/openapi","description":"Mock server","isMockServer":true},{"url":"https://api.example.com","description":"Production"}],"examples":[]}]}]},{"nodeType":"container","children":[{"nodeType":"header","level":4,"label":"Responses","labelTranslationKey":"responses","deepLinkSuffix":"responses"},{"nodeType":"item-content","variant":"responses","responses":[{"code":"200","description":"A list of train stations","mediaType":"application/json","mediaTypes":["application/json","application/xml"],"mediaTypeContent":{"application/json":{"schemaId":"schema_124","exampleIds":["paths/~1stations/get/responses/200/content/application~1json/example"]},"application/xml":{"schemaId":"schema_125"}},"schemaId":"schema_124","exampleIds":["paths/~1stations/get/responses/200/content/application~1json/example"],"headers":{"RateLimit":{"$ref":"#/components/headers/RateLimit"}},"headerSchemaId":"schema_126"},{"code":"400","description":"Bad Request","mediaType":"application/problem+json","mediaTypes":["application/problem+json","application/problem+xml"],"mediaTypeContent":{"application/problem+json":{"schemaId":"components/schemas/Problem","exampleIds":["paths/~1stations/get/responses/400/content/application~1problem+json/example"]},"application/problem+xml":{"schemaId":"components/schemas/Problem","exampleIds":["paths/~1stations/get/responses/400/content/application~1problem+xml/example"]}},"schemaId":"components/schemas/Problem","exampleIds":["paths/~1stations/get/responses/400/content/application~1problem+json/example"],"headers":{"RateLimit":{"$ref":"#/components/headers/RateLimit"}},"headerSchemaId":"schema_126"},{"code":"401","description":"Unauthorized","mediaType":"application/problem+json","mediaTypes":["application/problem+json","application/problem+xml"],"mediaTypeContent":{"application/problem+json":{"schemaId":"components/schemas/Problem","exampleIds":["paths/~1stations/get/responses/401/content/application~1problem+json/example"]},"application/problem+xml":{"schemaId":"components/schemas/Problem","exampleIds":["paths/~1stations/get/responses/401/content/application~1problem+xml/example"]}},"schemaId":"components/schemas/Problem","exampleIds":["paths/~1stations/get/responses/401/content/application~1problem+json/example"],"headers":{"RateLimit":{"$ref":"#/components/headers/RateLimit"}},"headerSchemaId":"schema_126"},{"code":"403","description":"Forbidden","mediaType":"application/problem+json","mediaTypes":["application/problem+json","application/problem+xml"],"mediaTypeContent":{"application/problem+json":{"schemaId":"components/schemas/Problem","exampleIds":["paths/~1stations/get/responses/403/content/application~1problem+json/example"]},"application/problem+xml":{"schemaId":"components/schemas/Problem","exampleIds":["paths/~1stations/get/responses/403/content/application~1problem+xml/example"]}},"schemaId":"components/schemas/Problem","exampleIds":["paths/~1stations/get/responses/403/content/application~1problem+json/example"],"headers":{"RateLimit":{"$ref":"#/components/headers/RateLimit"}},"headerSchemaId":"schema_126"},{"code":"429","description":"Too Many Requests","mediaType":"application/problem+json","mediaTypes":["application/problem+json","application/problem+xml"],"mediaTypeContent":{"application/problem+json":{"schemaId":"components/schemas/Problem","exampleIds":["paths/~1stations/get/responses/429/content/application~1problem+json/example"]},"application/problem+xml":{"schemaId":"components/schemas/Problem","exampleIds":["paths/~1stations/get/responses/429/content/application~1problem+xml/example"]}},"schemaId":"components/schemas/Problem","exampleIds":["paths/~1stations/get/responses/429/content/application~1problem+json/example"],"headers":{"RateLimit":{"$ref":"#/components/headers/RateLimit"},"Retry-After":{"$ref":"#/components/headers/Retry-After"}},"headerSchemaId":"schema_127"},{"code":"500","description":"Internal Server Error","mediaType":"application/problem+json","mediaTypes":["application/problem+json","application/problem+xml"],"mediaTypeContent":{"application/problem+json":{"schemaId":"components/schemas/Problem","exampleIds":["paths/~1stations/get/responses/500/content/application~1problem+json/example"]},"application/problem+xml":{"schemaId":"components/schemas/Problem","exampleIds":["paths/~1stations/get/responses/500/content/application~1problem+xml/example"]}},"schemaId":"components/schemas/Problem","exampleIds":["paths/~1stations/get/responses/500/content/application~1problem+json/example"],"headers":{"RateLimit":{"$ref":"#/components/headers/RateLimit"}},"headerSchemaId":"schema_126"}],"pointer":"/paths/~1stations/get/responses"}],"panels":[{"children":[{"kind":"response","headerTitle":"Response","responseCodes":[{"code":"200","schemaId":"schema_124","exampleIds":["paths/~1stations/get/responses/200/content/application~1json/example"],"mediaTypes":["application/json","application/xml"],"mediaTypeContent":{"application/json":{"schemaId":"schema_124","exampleIds":["paths/~1stations/get/responses/200/content/application~1json/example"]},"application/xml":{"schemaId":"schema_125"}}},{"code":"400","schemaId":"components/schemas/Problem","exampleIds":["paths/~1stations/get/responses/400/content/application~1problem+json/example"],"mediaTypes":["application/problem+json","application/problem+xml"],"mediaTypeContent":{"application/problem+json":{"schemaId":"components/schemas/Problem","exampleIds":["paths/~1stations/get/responses/400/content/application~1problem+json/example"]},"application/problem+xml":{"schemaId":"components/schemas/Problem","exampleIds":["paths/~1stations/get/responses/400/content/application~1problem+xml/example"]}}},{"code":"401","schemaId":"components/schemas/Problem","exampleIds":["paths/~1stations/get/responses/401/content/application~1problem+json/example"],"mediaTypes":["application/problem+json","application/problem+xml"],"mediaTypeContent":{"application/problem+json":{"schemaId":"components/schemas/Problem","exampleIds":["paths/~1stations/get/responses/401/content/application~1problem+json/example"]},"application/problem+xml":{"schemaId":"components/schemas/Problem","exampleIds":["paths/~1stations/get/responses/401/content/application~1problem+xml/example"]}}},{"code":"403","schemaId":"components/schemas/Problem","exampleIds":["paths/~1stations/get/responses/403/content/application~1problem+json/example"],"mediaTypes":["application/problem+json","application/problem+xml"],"mediaTypeContent":{"application/problem+json":{"schemaId":"components/schemas/Problem","exampleIds":["paths/~1stations/get/responses/403/content/application~1problem+json/example"]},"application/problem+xml":{"schemaId":"components/schemas/Problem","exampleIds":["paths/~1stations/get/responses/403/content/application~1problem+xml/example"]}}},{"code":"429","schemaId":"components/schemas/Problem","exampleIds":["paths/~1stations/get/responses/429/content/application~1problem+json/example"],"mediaTypes":["application/problem+json","application/problem+xml"],"mediaTypeContent":{"application/problem+json":{"schemaId":"components/schemas/Problem","exampleIds":["paths/~1stations/get/responses/429/content/application~1problem+json/example"]},"application/problem+xml":{"schemaId":"components/schemas/Problem","exampleIds":["paths/~1stations/get/responses/429/content/application~1problem+xml/example"]}}},{"code":"500","schemaId":"components/schemas/Problem","exampleIds":["paths/~1stations/get/responses/500/content/application~1problem+json/example"],"mediaTypes":["application/problem+json","application/problem+xml"],"mediaTypeContent":{"application/problem+json":{"schemaId":"components/schemas/Problem","exampleIds":["paths/~1stations/get/responses/500/content/application~1problem+json/example"]},"application/problem+xml":{"schemaId":"components/schemas/Problem","exampleIds":["paths/~1stations/get/responses/500/content/application~1problem+xml/example"]}}}],"examples":[]}]}]},{"nodeType":"container","children":[{"nodeType":"feedback","pageSlug":"/stations/get-stations"}],"panels":[]}]},"httpPath":"/stations"}],"content":{"contentType":"group","meta":{"name":"Stations"},"children":[{"nodeType":"container","children":[{"nodeType":"header","level":2,"label":"Stations","showPageActions":true},{"nodeType":"markdoc","content":"Find and filter train stations across Europe, including their location\nand local timezone."}],"panels":[{"children":[{"kind":"group-items","title":"Operations","titleTranslationKey":"operations","items":[{"title":"/stations","summary":"Get a list of train stations","prefix":{"name":"get","color":"get"},"badges":[],"link":"/stations/get-stations","deprecated":false}]}]}]}]}},{"type":"group","label":"Trips","link":"/catalog/api-showdown/api-hub/train-travel/openapi/trips","routeSlug":"/catalog/api-showdown/api-hub/train-travel/openapi/trips","items":[{"label":"Get available train trips","deprecated":false,"httpVerb":"get","isAdditionalOperation":false,"isWebhook":false,"type":"link","link":"/catalog/api-showdown/api-hub/train-travel/openapi/trips/get-trips","routeSlug":"/catalog/api-showdown/api-hub/train-travel/openapi/trips/get-trips","metadata":{"seo":{"title":"Get available train trips","description":"Returns a list of available train trips between the specified origin and destination stations on the given date, and allows for filtering by bicycle and dog allowances."}},"content":{"contentType":"item","itemVariant":"httpItem","meta":{"sourceId":"get-trips","name":"Get available train trips","isWebhook":false,"pointer":"/paths/~1trips/get","hasSamples":false},"children":[{"nodeType":"container","children":[{"nodeType":"header","level":2,"label":"Get available train trips","isWebhook":false,"showPageActions":true}],"panels":[]},{"nodeType":"container","children":[{"nodeType":"header","level":4,"label":"Request","labelTranslationKey":"request","deepLinkSuffix":"request"},{"nodeType":"markdoc","content":"Returns a list of available train trips between the specified origin and destination stations on the given date, and allows for filtering by bicycle and dog allowances."},{"nodeType":"security","requirements":[{"schemes":[{"name":"OAuth2","scopes":["read"],"type":"oauth2","description":"OAuth 2.0 authorization code following RFC8725 best practices.","flows":{"authorizationCode":{"authorizationUrl":"https://example.com/oauth/authorize","tokenUrl":"https://example.com/oauth/token","scopes":{"read":"Read access","write":"Write access"}}}}]}]},{"nodeType":"item-content","variant":"query","label":"Query","labelTranslationKey":"query","parameters":[{"name":"origin","in":"query","schemaId":"schema_128","description":"The ID of the origin station","required":true,"example":"efdbb9d1-02c2-4bc3-afb7-6788d8782b1e"},{"name":"destination","in":"query","schemaId":"schema_128","description":"The ID of the destination station","required":true,"example":"b2e783e1-c824-4d63-b37a-d8d698862f1d"},{"name":"date","in":"query","schemaId":"schema_129","description":"The date and time of the trip in ISO 8601 format in origin station's timezone.","required":true,"example":"2024-02-01T09:00:00Z"},{"name":"bicycles","in":"query","schemaId":"schema_130","description":"Only return trips where bicycles are known to be allowed"},{"name":"dogs","in":"query","schemaId":"schema_130","description":"Only return trips where dogs are known to be allowed"}],"pointer":"/paths/~1trips/get/parameters"}],"panels":[{"children":[{"kind":"code-sample","source":{"kind":"code-sample","operationType":"http","method":"GET","path":"/trips","servers":[{"url":"/_mock/catalog/api-showdown/api-hub/train-travel/openapi","description":"Mock server","isMockServer":true},{"url":"https://api.example.com","description":"Production"}],"parameters":{"path":[],"query":[{"name":"origin","in":"query","required":true,"example":"efdbb9d1-02c2-4bc3-afb7-6788d8782b1e","schemaId":"schema_128"},{"name":"destination","in":"query","required":true,"example":"b2e783e1-c824-4d63-b37a-d8d698862f1d","schemaId":"schema_128"},{"name":"date","in":"query","required":true,"example":"2024-02-01T09:00:00Z","schemaId":"schema_129"},{"name":"bicycles","in":"query","required":false,"schemaId":"schema_130"},{"name":"dogs","in":"query","required":false,"schemaId":"schema_130"}],"querystring":[],"header":[],"cookie":[]},"security":[{"schemes":[{"id":"OAuth2","type":"oauth2","flows":{"authorizationCode":{"authorizationUrl":"https://example.com/oauth/authorize","tokenUrl":"https://example.com/oauth/token","scopes":{"read":"Read access","write":"Write access"}}}}],"scopes":["read"]}],"responseCodes":["200","400","401","403","429","500"],"pointer":"/trips","href":"trips/get-trips","openApiOperationId":"get-trips","summary":"Get available train trips"},"isWebhook":false,"hideReplay":false,"servers":[{"url":"/_mock/catalog/api-showdown/api-hub/train-travel/openapi","description":"Mock server","isMockServer":true},{"url":"https://api.example.com","description":"Production"}],"examples":[]}]}]},{"nodeType":"container","children":[{"nodeType":"header","level":4,"label":"Responses","labelTranslationKey":"responses","deepLinkSuffix":"responses"},{"nodeType":"item-content","variant":"responses","responses":[{"code":"200","description":"A list of available train trips","mediaType":"application/json","mediaTypes":["application/json","application/xml"],"mediaTypeContent":{"application/json":{"schemaId":"schema_131","exampleIds":["paths/~1trips/get/responses/200/content/application~1json/example"]},"application/xml":{"schemaId":"schema_132"}},"schemaId":"schema_131","exampleIds":["paths/~1trips/get/responses/200/content/application~1json/example"],"headers":{"RateLimit":{"$ref":"#/components/headers/RateLimit"}},"headerSchemaId":"schema_126"},{"code":"400","description":"Bad Request","mediaType":"application/problem+json","mediaTypes":["application/problem+json","application/problem+xml"],"mediaTypeContent":{"application/problem+json":{"schemaId":"components/schemas/Problem","exampleIds":["paths/~1trips/get/responses/400/content/application~1problem+json/example"]},"application/problem+xml":{"schemaId":"components/schemas/Problem","exampleIds":["paths/~1trips/get/responses/400/content/application~1problem+xml/example"]}},"schemaId":"components/schemas/Problem","exampleIds":["paths/~1trips/get/responses/400/content/application~1problem+json/example"],"headers":{"RateLimit":{"$ref":"#/components/headers/RateLimit"}},"headerSchemaId":"schema_126"},{"code":"401","description":"Unauthorized","mediaType":"application/problem+json","mediaTypes":["application/problem+json","application/problem+xml"],"mediaTypeContent":{"application/problem+json":{"schemaId":"components/schemas/Problem","exampleIds":["paths/~1trips/get/responses/401/content/application~1problem+json/example"]},"application/problem+xml":{"schemaId":"components/schemas/Problem","exampleIds":["paths/~1trips/get/responses/401/content/application~1problem+xml/example"]}},"schemaId":"components/schemas/Problem","exampleIds":["paths/~1trips/get/responses/401/content/application~1problem+json/example"],"headers":{"RateLimit":{"$ref":"#/components/headers/RateLimit"}},"headerSchemaId":"schema_126"},{"code":"403","description":"Forbidden","mediaType":"application/problem+json","mediaTypes":["application/problem+json","application/problem+xml"],"mediaTypeContent":{"application/problem+json":{"schemaId":"components/schemas/Problem","exampleIds":["paths/~1trips/get/responses/403/content/application~1problem+json/example"]},"application/problem+xml":{"schemaId":"components/schemas/Problem","exampleIds":["paths/~1trips/get/responses/403/content/application~1problem+xml/example"]}},"schemaId":"components/schemas/Problem","exampleIds":["paths/~1trips/get/responses/403/content/application~1problem+json/example"],"headers":{"RateLimit":{"$ref":"#/components/headers/RateLimit"}},"headerSchemaId":"schema_126"},{"code":"429","description":"Too Many Requests","mediaType":"application/problem+json","mediaTypes":["application/problem+json","application/problem+xml"],"mediaTypeContent":{"application/problem+json":{"schemaId":"components/schemas/Problem","exampleIds":["paths/~1trips/get/responses/429/content/application~1problem+json/example"]},"application/problem+xml":{"schemaId":"components/schemas/Problem","exampleIds":["paths/~1trips/get/responses/429/content/application~1problem+xml/example"]}},"schemaId":"components/schemas/Problem","exampleIds":["paths/~1trips/get/responses/429/content/application~1problem+json/example"],"headers":{"RateLimit":{"$ref":"#/components/headers/RateLimit"},"Retry-After":{"$ref":"#/components/headers/Retry-After"}},"headerSchemaId":"schema_127"},{"code":"500","description":"Internal Server Error","mediaType":"application/problem+json","mediaTypes":["application/problem+json","application/problem+xml"],"mediaTypeContent":{"application/problem+json":{"schemaId":"components/schemas/Problem","exampleIds":["paths/~1trips/get/responses/500/content/application~1problem+json/example"]},"application/problem+xml":{"schemaId":"components/schemas/Problem","exampleIds":["paths/~1trips/get/responses/500/content/application~1problem+xml/example"]}},"schemaId":"components/schemas/Problem","exampleIds":["paths/~1trips/get/responses/500/content/application~1problem+json/example"],"headers":{"RateLimit":{"$ref":"#/components/headers/RateLimit"}},"headerSchemaId":"schema_126"}],"pointer":"/paths/~1trips/get/responses"}],"panels":[{"children":[{"kind":"response","headerTitle":"Response","responseCodes":[{"code":"200","schemaId":"schema_131","exampleIds":["paths/~1trips/get/responses/200/content/application~1json/example"],"mediaTypes":["application/json","application/xml"],"mediaTypeContent":{"application/json":{"schemaId":"schema_131","exampleIds":["paths/~1trips/get/responses/200/content/application~1json/example"]},"application/xml":{"schemaId":"schema_132"}}},{"code":"400","schemaId":"components/schemas/Problem","exampleIds":["paths/~1trips/get/responses/400/content/application~1problem+json/example"],"mediaTypes":["application/problem+json","application/problem+xml"],"mediaTypeContent":{"application/problem+json":{"schemaId":"components/schemas/Problem","exampleIds":["paths/~1trips/get/responses/400/content/application~1problem+json/example"]},"application/problem+xml":{"schemaId":"components/schemas/Problem","exampleIds":["paths/~1trips/get/responses/400/content/application~1problem+xml/example"]}}},{"code":"401","schemaId":"components/schemas/Problem","exampleIds":["paths/~1trips/get/responses/401/content/application~1problem+json/example"],"mediaTypes":["application/problem+json","application/problem+xml"],"mediaTypeContent":{"application/problem+json":{"schemaId":"components/schemas/Problem","exampleIds":["paths/~1trips/get/responses/401/content/application~1problem+json/example"]},"application/problem+xml":{"schemaId":"components/schemas/Problem","exampleIds":["paths/~1trips/get/responses/401/content/application~1problem+xml/example"]}}},{"code":"403","schemaId":"components/schemas/Problem","exampleIds":["paths/~1trips/get/responses/403/content/application~1problem+json/example"],"mediaTypes":["application/problem+json","application/problem+xml"],"mediaTypeContent":{"application/problem+json":{"schemaId":"components/schemas/Problem","exampleIds":["paths/~1trips/get/responses/403/content/application~1problem+json/example"]},"application/problem+xml":{"schemaId":"components/schemas/Problem","exampleIds":["paths/~1trips/get/responses/403/content/application~1problem+xml/example"]}}},{"code":"429","schemaId":"components/schemas/Problem","exampleIds":["paths/~1trips/get/responses/429/content/application~1problem+json/example"],"mediaTypes":["application/problem+json","application/problem+xml"],"mediaTypeContent":{"application/problem+json":{"schemaId":"components/schemas/Problem","exampleIds":["paths/~1trips/get/responses/429/content/application~1problem+json/example"]},"application/problem+xml":{"schemaId":"components/schemas/Problem","exampleIds":["paths/~1trips/get/responses/429/content/application~1problem+xml/example"]}}},{"code":"500","schemaId":"components/schemas/Problem","exampleIds":["paths/~1trips/get/responses/500/content/application~1problem+json/example"],"mediaTypes":["application/problem+json","application/problem+xml"],"mediaTypeContent":{"application/problem+json":{"schemaId":"components/schemas/Problem","exampleIds":["paths/~1trips/get/responses/500/content/application~1problem+json/example"]},"application/problem+xml":{"schemaId":"components/schemas/Problem","exampleIds":["paths/~1trips/get/responses/500/content/application~1problem+xml/example"]}}}],"examples":[]}]}]},{"nodeType":"container","children":[{"nodeType":"feedback","pageSlug":"/trips/get-trips"}],"panels":[]}]},"httpPath":"/trips"}],"content":{"contentType":"group","meta":{"name":"Trips"},"children":[{"nodeType":"container","children":[{"nodeType":"header","level":2,"label":"Trips","showPageActions":true},{"nodeType":"markdoc","content":"Timetables and routes for train trips between stations, including pricing\nand availability."}],"panels":[{"children":[{"kind":"group-items","title":"Operations","titleTranslationKey":"operations","items":[{"title":"/trips","summary":"Get available train trips","prefix":{"name":"get","color":"get"},"badges":[],"link":"/trips/get-trips","deprecated":false}]}]}]}]}},{"type":"group","label":"Bookings","link":"/catalog/api-showdown/api-hub/train-travel/openapi/bookings","routeSlug":"/catalog/api-showdown/api-hub/train-travel/openapi/bookings","items":[{"label":"List existing bookings","deprecated":false,"httpVerb":"get","isAdditionalOperation":false,"isWebhook":false,"type":"link","link":"/catalog/api-showdown/api-hub/train-travel/openapi/bookings/get-bookings","routeSlug":"/catalog/api-showdown/api-hub/train-travel/openapi/bookings/get-bookings","metadata":{"seo":{"title":"List existing bookings","description":"Returns a list of all trip bookings by the authenticated user."}},"content":{"contentType":"item","itemVariant":"httpItem","meta":{"sourceId":"get-bookings","name":"List existing bookings","isWebhook":false,"pointer":"/paths/~1bookings/get","hasSamples":false},"children":[{"nodeType":"container","children":[{"nodeType":"header","level":2,"label":"List existing bookings","isWebhook":false,"showPageActions":true}],"panels":[]},{"nodeType":"container","children":[{"nodeType":"header","level":4,"label":"Request","labelTranslationKey":"request","deepLinkSuffix":"request"},{"nodeType":"markdoc","content":"Returns a list of all trip bookings by the authenticated user."},{"nodeType":"security","requirements":[{"schemes":[{"name":"OAuth2","scopes":["read"],"type":"oauth2","description":"OAuth 2.0 authorization code following RFC8725 best practices.","flows":{"authorizationCode":{"authorizationUrl":"https://example.com/oauth/authorize","tokenUrl":"https://example.com/oauth/token","scopes":{"read":"Read access","write":"Write access"}}}}]}]}],"panels":[{"children":[{"kind":"code-sample","source":{"kind":"code-sample","operationType":"http","method":"GET","path":"/bookings","servers":[{"url":"/_mock/catalog/api-showdown/api-hub/train-travel/openapi","description":"Mock server","isMockServer":true},{"url":"https://api.example.com","description":"Production"}],"parameters":{"path":[],"query":[],"querystring":[],"header":[],"cookie":[]},"security":[{"schemes":[{"id":"OAuth2","type":"oauth2","flows":{"authorizationCode":{"authorizationUrl":"https://example.com/oauth/authorize","tokenUrl":"https://example.com/oauth/token","scopes":{"read":"Read access","write":"Write access"}}}}],"scopes":["read"]}],"responseCodes":["200","400","401","403","429","500"],"pointer":"/bookings","href":"bookings/get-bookings","openApiOperationId":"get-bookings","summary":"List existing bookings"},"isWebhook":false,"hideReplay":false,"servers":[{"url":"/_mock/catalog/api-showdown/api-hub/train-travel/openapi","description":"Mock server","isMockServer":true},{"url":"https://api.example.com","description":"Production"}],"examples":[]}]}]},{"nodeType":"container","children":[{"nodeType":"header","level":4,"label":"Responses","labelTranslationKey":"responses","deepLinkSuffix":"responses"},{"nodeType":"item-content","variant":"responses","responses":[{"code":"200","description":"A list of bookings","mediaType":"application/json","mediaTypes":["application/json","application/xml"],"mediaTypeContent":{"application/json":{"schemaId":"schema_133","exampleIds":["paths/~1bookings/get/responses/200/content/application~1json/example"]},"application/xml":{"schemaId":"schema_134"}},"schemaId":"schema_133","exampleIds":["paths/~1bookings/get/responses/200/content/application~1json/example"],"headers":{"RateLimit":{"$ref":"#/components/headers/RateLimit"}},"headerSchemaId":"schema_126"},{"code":"400","description":"Bad Request","mediaType":"application/problem+json","mediaTypes":["application/problem+json","application/problem+xml"],"mediaTypeContent":{"application/problem+json":{"schemaId":"components/schemas/Problem","exampleIds":["paths/~1bookings/get/responses/400/content/application~1problem+json/example"]},"application/problem+xml":{"schemaId":"components/schemas/Problem","exampleIds":["paths/~1bookings/get/responses/400/content/application~1problem+xml/example"]}},"schemaId":"components/schemas/Problem","exampleIds":["paths/~1bookings/get/responses/400/content/application~1problem+json/example"],"headers":{"RateLimit":{"$ref":"#/components/headers/RateLimit"}},"headerSchemaId":"schema_126"},{"code":"401","description":"Unauthorized","mediaType":"application/problem+json","mediaTypes":["application/problem+json","application/problem+xml"],"mediaTypeContent":{"application/problem+json":{"schemaId":"components/schemas/Problem","exampleIds":["paths/~1bookings/get/responses/401/content/application~1problem+json/example"]},"application/problem+xml":{"schemaId":"components/schemas/Problem","exampleIds":["paths/~1bookings/get/responses/401/content/application~1problem+xml/example"]}},"schemaId":"components/schemas/Problem","exampleIds":["paths/~1bookings/get/responses/401/content/application~1problem+json/example"],"headers":{"RateLimit":{"$ref":"#/components/headers/RateLimit"}},"headerSchemaId":"schema_126"},{"code":"403","description":"Forbidden","mediaType":"application/problem+json","mediaTypes":["application/problem+json","application/problem+xml"],"mediaTypeContent":{"application/problem+json":{"schemaId":"components/schemas/Problem","exampleIds":["paths/~1bookings/get/responses/403/content/application~1problem+json/example"]},"application/problem+xml":{"schemaId":"components/schemas/Problem","exampleIds":["paths/~1bookings/get/responses/403/content/application~1problem+xml/example"]}},"schemaId":"components/schemas/Problem","exampleIds":["paths/~1bookings/get/responses/403/content/application~1problem+json/example"],"headers":{"RateLimit":{"$ref":"#/components/headers/RateLimit"}},"headerSchemaId":"schema_126"},{"code":"429","description":"Too Many Requests","mediaType":"application/problem+json","mediaTypes":["application/problem+json","application/problem+xml"],"mediaTypeContent":{"application/problem+json":{"schemaId":"components/schemas/Problem","exampleIds":["paths/~1bookings/get/responses/429/content/application~1problem+json/example"]},"application/problem+xml":{"schemaId":"components/schemas/Problem","exampleIds":["paths/~1bookings/get/responses/429/content/application~1problem+xml/example"]}},"schemaId":"components/schemas/Problem","exampleIds":["paths/~1bookings/get/responses/429/content/application~1problem+json/example"],"headers":{"RateLimit":{"$ref":"#/components/headers/RateLimit"},"Retry-After":{"$ref":"#/components/headers/Retry-After"}},"headerSchemaId":"schema_127"},{"code":"500","description":"Internal Server Error","mediaType":"application/problem+json","mediaTypes":["application/problem+json","application/problem+xml"],"mediaTypeContent":{"application/problem+json":{"schemaId":"components/schemas/Problem","exampleIds":["paths/~1bookings/get/responses/500/content/application~1problem+json/example"]},"application/problem+xml":{"schemaId":"components/schemas/Problem","exampleIds":["paths/~1bookings/get/responses/500/content/application~1problem+xml/example"]}},"schemaId":"components/schemas/Problem","exampleIds":["paths/~1bookings/get/responses/500/content/application~1problem+json/example"],"headers":{"RateLimit":{"$ref":"#/components/headers/RateLimit"}},"headerSchemaId":"schema_126"}],"pointer":"/paths/~1bookings/get/responses"}],"panels":[{"children":[{"kind":"response","headerTitle":"Response","responseCodes":[{"code":"200","schemaId":"schema_133","exampleIds":["paths/~1bookings/get/responses/200/content/application~1json/example"],"mediaTypes":["application/json","application/xml"],"mediaTypeContent":{"application/json":{"schemaId":"schema_133","exampleIds":["paths/~1bookings/get/responses/200/content/application~1json/example"]},"application/xml":{"schemaId":"schema_134"}}},{"code":"400","schemaId":"components/schemas/Problem","exampleIds":["paths/~1bookings/get/responses/400/content/application~1problem+json/example"],"mediaTypes":["application/problem+json","application/problem+xml"],"mediaTypeContent":{"application/problem+json":{"schemaId":"components/schemas/Problem","exampleIds":["paths/~1bookings/get/responses/400/content/application~1problem+json/example"]},"application/problem+xml":{"schemaId":"components/schemas/Problem","exampleIds":["paths/~1bookings/get/responses/400/content/application~1problem+xml/example"]}}},{"code":"401","schemaId":"components/schemas/Problem","exampleIds":["paths/~1bookings/get/responses/401/content/application~1problem+json/example"],"mediaTypes":["application/problem+json","application/problem+xml"],"mediaTypeContent":{"application/problem+json":{"schemaId":"components/schemas/Problem","exampleIds":["paths/~1bookings/get/responses/401/content/application~1problem+json/example"]},"application/problem+xml":{"schemaId":"components/schemas/Problem","exampleIds":["paths/~1bookings/get/responses/401/content/application~1problem+xml/example"]}}},{"code":"403","schemaId":"components/schemas/Problem","exampleIds":["paths/~1bookings/get/responses/403/content/application~1problem+json/example"],"mediaTypes":["application/problem+json","application/problem+xml"],"mediaTypeContent":{"application/problem+json":{"schemaId":"components/schemas/Problem","exampleIds":["paths/~1bookings/get/responses/403/content/application~1problem+json/example"]},"application/problem+xml":{"schemaId":"components/schemas/Problem","exampleIds":["paths/~1bookings/get/responses/403/content/application~1problem+xml/example"]}}},{"code":"429","schemaId":"components/schemas/Problem","exampleIds":["paths/~1bookings/get/responses/429/content/application~1problem+json/example"],"mediaTypes":["application/problem+json","application/problem+xml"],"mediaTypeContent":{"application/problem+json":{"schemaId":"components/schemas/Problem","exampleIds":["paths/~1bookings/get/responses/429/content/application~1problem+json/example"]},"application/problem+xml":{"schemaId":"components/schemas/Problem","exampleIds":["paths/~1bookings/get/responses/429/content/application~1problem+xml/example"]}}},{"code":"500","schemaId":"components/schemas/Problem","exampleIds":["paths/~1bookings/get/responses/500/content/application~1problem+json/example"],"mediaTypes":["application/problem+json","application/problem+xml"],"mediaTypeContent":{"application/problem+json":{"schemaId":"components/schemas/Problem","exampleIds":["paths/~1bookings/get/responses/500/content/application~1problem+json/example"]},"application/problem+xml":{"schemaId":"components/schemas/Problem","exampleIds":["paths/~1bookings/get/responses/500/content/application~1problem+xml/example"]}}}],"examples":[]}]}]},{"nodeType":"container","children":[{"nodeType":"feedback","pageSlug":"/bookings/get-bookings"}],"panels":[]}]},"httpPath":"/bookings"},{"label":"Create a booking","deprecated":false,"httpVerb":"post","isAdditionalOperation":false,"isWebhook":false,"type":"link","link":"/catalog/api-showdown/api-hub/train-travel/openapi/bookings/create-booking","routeSlug":"/catalog/api-showdown/api-hub/train-travel/openapi/bookings/create-booking","metadata":{"seo":{"title":"Create a booking","description":"A booking is a temporary hold on a trip. It is not confirmed until the payment is processed."}},"content":{"contentType":"item","itemVariant":"httpItem","meta":{"sourceId":"create-booking","name":"Create a booking","isWebhook":false,"pointer":"/paths/~1bookings/post","hasSamples":true},"children":[{"nodeType":"container","children":[{"nodeType":"header","level":2,"label":"Create a booking","isWebhook":false,"showPageActions":true}],"panels":[]},{"nodeType":"container","children":[{"nodeType":"header","level":4,"label":"Request","labelTranslationKey":"request","deepLinkSuffix":"request"},{"nodeType":"markdoc","content":"A booking is a temporary hold on a trip. It is not confirmed until the payment is processed."},{"nodeType":"security","requirements":[{"schemes":[{"name":"OAuth2","scopes":["write"],"type":"oauth2","description":"OAuth 2.0 authorization code following RFC8725 best practices.","flows":{"authorizationCode":{"authorizationUrl":"https://example.com/oauth/authorize","tokenUrl":"https://example.com/oauth/token","scopes":{"read":"Read access","write":"Write access"}}}}]}]},{"nodeType":"item-content","variant":"body","label":"Request Body","labelTranslationKey":"body","required":true,"mediaTypes":["application/json","application/xml"],"mediaTypeSchemas":{"application/json":{"schemaId":"components/schemas/Booking"},"application/xml":{"schemaId":"components/schemas/Booking"}},"schemaId":"components/schemas/Booking","pointer":"/paths/~1bookings/post/requestBody"}],"panels":[{"children":[{"kind":"code-sample","source":{"kind":"code-sample","operationType":"http","method":"POST","path":"/bookings","servers":[{"url":"/_mock/catalog/api-showdown/api-hub/train-travel/openapi","description":"Mock server","isMockServer":true},{"url":"https://api.example.com","description":"Production"}],"parameters":{"path":[],"query":[],"querystring":[],"header":[],"cookie":[]},"security":[{"schemes":[{"id":"OAuth2","type":"oauth2","flows":{"authorizationCode":{"authorizationUrl":"https://example.com/oauth/authorize","tokenUrl":"https://example.com/oauth/token","scopes":{"read":"Read access","write":"Write access"}}}}],"scopes":["write"]}],"requestBody":{"application/json":{"schemaId":"components/schemas/Booking"},"application/xml":{"schemaId":"components/schemas/Booking"}},"responseCodes":["201","400","401","404","409","429","500"],"pointer":"/bookings","href":"bookings/create-booking","openApiOperationId":"create-booking","summary":"Create a booking"},"isWebhook":false,"hideReplay":false,"servers":[{"url":"/_mock/catalog/api-showdown/api-hub/train-travel/openapi","description":"Mock server","isMockServer":true},{"url":"https://api.example.com","description":"Production"}],"schemaId":"components/schemas/Booking","mediaTypes":["application/json","application/xml"],"mediaTypeSchemas":{"application/json":{"schemaId":"components/schemas/Booking"},"application/xml":{"schemaId":"components/schemas/Booking"}},"examples":[]}]}]},{"nodeType":"container","children":[{"nodeType":"header","level":4,"label":"Responses","labelTranslationKey":"responses","deepLinkSuffix":"responses"},{"nodeType":"item-content","variant":"responses","responses":[{"code":"201","description":"Booking successful","mediaType":"application/json","mediaTypes":["application/json","application/xml"],"mediaTypeContent":{"application/json":{"schemaId":"schema_135","exampleIds":["paths/~1bookings/post/responses/201/content/application~1json/example"]},"application/xml":{"schemaId":"schema_135"}},"schemaId":"schema_135","exampleIds":["paths/~1bookings/post/responses/201/content/application~1json/example"]},{"code":"400","description":"Bad Request","mediaType":"application/problem+json","mediaTypes":["application/problem+json","application/problem+xml"],"mediaTypeContent":{"application/problem+json":{"schemaId":"components/schemas/Problem","exampleIds":["paths/~1bookings/post/responses/400/content/application~1problem+json/example"]},"application/problem+xml":{"schemaId":"components/schemas/Problem","exampleIds":["paths/~1bookings/post/responses/400/content/application~1problem+xml/example"]}},"schemaId":"components/schemas/Problem","exampleIds":["paths/~1bookings/post/responses/400/content/application~1problem+json/example"],"headers":{"RateLimit":{"$ref":"#/components/headers/RateLimit"}},"headerSchemaId":"schema_126"},{"code":"401","description":"Unauthorized","mediaType":"application/problem+json","mediaTypes":["application/problem+json","application/problem+xml"],"mediaTypeContent":{"application/problem+json":{"schemaId":"components/schemas/Problem","exampleIds":["paths/~1bookings/post/responses/401/content/application~1problem+json/example"]},"application/problem+xml":{"schemaId":"components/schemas/Problem","exampleIds":["paths/~1bookings/post/responses/401/content/application~1problem+xml/example"]}},"schemaId":"components/schemas/Problem","exampleIds":["paths/~1bookings/post/responses/401/content/application~1problem+json/example"],"headers":{"RateLimit":{"$ref":"#/components/headers/RateLimit"}},"headerSchemaId":"schema_126"},{"code":"404","description":"Not Found","mediaType":"application/problem+json","mediaTypes":["application/problem+json","application/problem+xml"],"mediaTypeContent":{"application/problem+json":{"schemaId":"components/schemas/Problem","exampleIds":["paths/~1bookings/post/responses/404/content/application~1problem+json/example"]},"application/problem+xml":{"schemaId":"components/schemas/Problem","exampleIds":["paths/~1bookings/post/responses/404/content/application~1problem+xml/example"]}},"schemaId":"components/schemas/Problem","exampleIds":["paths/~1bookings/post/responses/404/content/application~1problem+json/example"],"headers":{"RateLimit":{"$ref":"#/components/headers/RateLimit"}},"headerSchemaId":"schema_126"},{"code":"409","description":"Conflict","mediaType":"application/problem+json","mediaTypes":["application/problem+json","application/problem+xml"],"mediaTypeContent":{"application/problem+json":{"schemaId":"components/schemas/Problem","exampleIds":["paths/~1bookings/post/responses/409/content/application~1problem+json/example"]},"application/problem+xml":{"schemaId":"components/schemas/Problem","exampleIds":["paths/~1bookings/post/responses/409/content/application~1problem+xml/example"]}},"schemaId":"components/schemas/Problem","exampleIds":["paths/~1bookings/post/responses/409/content/application~1problem+json/example"],"headers":{"RateLimit":{"$ref":"#/components/headers/RateLimit"}},"headerSchemaId":"schema_126"},{"code":"429","description":"Too Many Requests","mediaType":"application/problem+json","mediaTypes":["application/problem+json","application/problem+xml"],"mediaTypeContent":{"application/problem+json":{"schemaId":"components/schemas/Problem","exampleIds":["paths/~1bookings/post/responses/429/content/application~1problem+json/example"]},"application/problem+xml":{"schemaId":"components/schemas/Problem","exampleIds":["paths/~1bookings/post/responses/429/content/application~1problem+xml/example"]}},"schemaId":"components/schemas/Problem","exampleIds":["paths/~1bookings/post/responses/429/content/application~1problem+json/example"],"headers":{"RateLimit":{"$ref":"#/components/headers/RateLimit"},"Retry-After":{"$ref":"#/components/headers/Retry-After"}},"headerSchemaId":"schema_127"},{"code":"500","description":"Internal Server Error","mediaType":"application/problem+json","mediaTypes":["application/problem+json","application/problem+xml"],"mediaTypeContent":{"application/problem+json":{"schemaId":"components/schemas/Problem","exampleIds":["paths/~1bookings/post/responses/500/content/application~1problem+json/example"]},"application/problem+xml":{"schemaId":"components/schemas/Problem","exampleIds":["paths/~1bookings/post/responses/500/content/application~1problem+xml/example"]}},"schemaId":"components/schemas/Problem","exampleIds":["paths/~1bookings/post/responses/500/content/application~1problem+json/example"],"headers":{"RateLimit":{"$ref":"#/components/headers/RateLimit"}},"headerSchemaId":"schema_126"}],"pointer":"/paths/~1bookings/post/responses"}],"panels":[{"children":[{"kind":"response","headerTitle":"Response","responseCodes":[{"code":"201","schemaId":"schema_135","exampleIds":["paths/~1bookings/post/responses/201/content/application~1json/example"],"mediaTypes":["application/json","application/xml"],"mediaTypeContent":{"application/json":{"schemaId":"schema_135","exampleIds":["paths/~1bookings/post/responses/201/content/application~1json/example"]},"application/xml":{"schemaId":"schema_135"}}},{"code":"400","schemaId":"components/schemas/Problem","exampleIds":["paths/~1bookings/post/responses/400/content/application~1problem+json/example"],"mediaTypes":["application/problem+json","application/problem+xml"],"mediaTypeContent":{"application/problem+json":{"schemaId":"components/schemas/Problem","exampleIds":["paths/~1bookings/post/responses/400/content/application~1problem+json/example"]},"application/problem+xml":{"schemaId":"components/schemas/Problem","exampleIds":["paths/~1bookings/post/responses/400/content/application~1problem+xml/example"]}}},{"code":"401","schemaId":"components/schemas/Problem","exampleIds":["paths/~1bookings/post/responses/401/content/application~1problem+json/example"],"mediaTypes":["application/problem+json","application/problem+xml"],"mediaTypeContent":{"application/problem+json":{"schemaId":"components/schemas/Problem","exampleIds":["paths/~1bookings/post/responses/401/content/application~1problem+json/example"]},"application/problem+xml":{"schemaId":"components/schemas/Problem","exampleIds":["paths/~1bookings/post/responses/401/content/application~1problem+xml/example"]}}},{"code":"404","schemaId":"components/schemas/Problem","exampleIds":["paths/~1bookings/post/responses/404/content/application~1problem+json/example"],"mediaTypes":["application/problem+json","application/problem+xml"],"mediaTypeContent":{"application/problem+json":{"schemaId":"components/schemas/Problem","exampleIds":["paths/~1bookings/post/responses/404/content/application~1problem+json/example"]},"application/problem+xml":{"schemaId":"components/schemas/Problem","exampleIds":["paths/~1bookings/post/responses/404/content/application~1problem+xml/example"]}}},{"code":"409","schemaId":"components/schemas/Problem","exampleIds":["paths/~1bookings/post/responses/409/content/application~1problem+json/example"],"mediaTypes":["application/problem+json","application/problem+xml"],"mediaTypeContent":{"application/problem+json":{"schemaId":"components/schemas/Problem","exampleIds":["paths/~1bookings/post/responses/409/content/application~1problem+json/example"]},"application/problem+xml":{"schemaId":"components/schemas/Problem","exampleIds":["paths/~1bookings/post/responses/409/content/application~1problem+xml/example"]}}},{"code":"429","schemaId":"components/schemas/Problem","exampleIds":["paths/~1bookings/post/responses/429/content/application~1problem+json/example"],"mediaTypes":["application/problem+json","application/problem+xml"],"mediaTypeContent":{"application/problem+json":{"schemaId":"components/schemas/Problem","exampleIds":["paths/~1bookings/post/responses/429/content/application~1problem+json/example"]},"application/problem+xml":{"schemaId":"components/schemas/Problem","exampleIds":["paths/~1bookings/post/responses/429/content/application~1problem+xml/example"]}}},{"code":"500","schemaId":"components/schemas/Problem","exampleIds":["paths/~1bookings/post/responses/500/content/application~1problem+json/example"],"mediaTypes":["application/problem+json","application/problem+xml"],"mediaTypeContent":{"application/problem+json":{"schemaId":"components/schemas/Problem","exampleIds":["paths/~1bookings/post/responses/500/content/application~1problem+json/example"]},"application/problem+xml":{"schemaId":"components/schemas/Problem","exampleIds":["paths/~1bookings/post/responses/500/content/application~1problem+xml/example"]}}}],"examples":[]}]}]},{"nodeType":"container","children":[{"nodeType":"feedback","pageSlug":"/bookings/create-booking"}],"panels":[]}]},"httpPath":"/bookings"},{"label":"Get a booking","deprecated":false,"httpVerb":"get","isAdditionalOperation":false,"isWebhook":false,"type":"link","link":"/catalog/api-showdown/api-hub/train-travel/openapi/bookings/get-booking","routeSlug":"/catalog/api-showdown/api-hub/train-travel/openapi/bookings/get-booking","metadata":{"seo":{"title":"Get a booking","description":"Returns the details of a specific booking."}},"content":{"contentType":"item","itemVariant":"httpItem","meta":{"sourceId":"get-booking","name":"Get a booking","isWebhook":false,"pointer":"/paths/~1bookings~1{bookingId}/get","hasSamples":false},"children":[{"nodeType":"container","children":[{"nodeType":"header","level":2,"label":"Get a booking","isWebhook":false,"showPageActions":true}],"panels":[]},{"nodeType":"container","children":[{"nodeType":"header","level":4,"label":"Request","labelTranslationKey":"request","deepLinkSuffix":"request"},{"nodeType":"markdoc","content":"Returns the details of a specific booking."},{"nodeType":"security","requirements":[{"schemes":[{"name":"OAuth2","scopes":["read"],"type":"oauth2","description":"OAuth 2.0 authorization code following RFC8725 best practices.","flows":{"authorizationCode":{"authorizationUrl":"https://example.com/oauth/authorize","tokenUrl":"https://example.com/oauth/token","scopes":{"read":"Read access","write":"Write access"}}}}]}]},{"nodeType":"item-content","variant":"path","label":"Path","labelTranslationKey":"path","parameters":[{"name":"bookingId","in":"path","schemaId":"schema_128","description":"The ID of the booking to retrieve.","required":true,"example":"1725ff48-ab45-4bb5-9d02-88745177dedb"}],"pointer":"/paths/~1bookings~1{bookingId}/get/parameters"}],"panels":[{"children":[{"kind":"code-sample","source":{"kind":"code-sample","operationType":"http","method":"GET","path":"/bookings/{bookingId}","servers":[{"url":"/_mock/catalog/api-showdown/api-hub/train-travel/openapi","description":"Mock server","isMockServer":true},{"url":"https://api.example.com","description":"Production"}],"parameters":{"path":[{"name":"bookingId","in":"path","required":true,"example":"1725ff48-ab45-4bb5-9d02-88745177dedb","schemaId":"schema_128"}],"query":[],"querystring":[],"header":[],"cookie":[]},"security":[{"schemes":[{"id":"OAuth2","type":"oauth2","flows":{"authorizationCode":{"authorizationUrl":"https://example.com/oauth/authorize","tokenUrl":"https://example.com/oauth/token","scopes":{"read":"Read access","write":"Write access"}}}}],"scopes":["read"]}],"responseCodes":["200","400","401","403","404","429","500"],"pointer":"/bookings/{bookingId}","href":"bookings/get-booking","openApiOperationId":"get-booking","summary":"Get a booking"},"isWebhook":false,"hideReplay":false,"servers":[{"url":"/_mock/catalog/api-showdown/api-hub/train-travel/openapi","description":"Mock server","isMockServer":true},{"url":"https://api.example.com","description":"Production"}],"examples":[]}]}]},{"nodeType":"container","children":[{"nodeType":"header","level":4,"label":"Responses","labelTranslationKey":"responses","deepLinkSuffix":"responses"},{"nodeType":"item-content","variant":"responses","responses":[{"code":"200","description":"The booking details","mediaType":"application/json","mediaTypes":["application/json","application/xml"],"mediaTypeContent":{"application/json":{"schemaId":"schema_135","exampleIds":["paths/~1bookings~1{bookingId}/get/responses/200/content/application~1json/example"]},"application/xml":{"schemaId":"schema_135"}},"schemaId":"schema_135","exampleIds":["paths/~1bookings~1{bookingId}/get/responses/200/content/application~1json/example"],"headers":{"RateLimit":{"$ref":"#/components/headers/RateLimit"}},"headerSchemaId":"schema_126"},{"code":"400","description":"Bad Request","mediaType":"application/problem+json","mediaTypes":["application/problem+json","application/problem+xml"],"mediaTypeContent":{"application/problem+json":{"schemaId":"components/schemas/Problem","exampleIds":["paths/~1bookings~1{bookingId}/get/responses/400/content/application~1problem+json/example"]},"application/problem+xml":{"schemaId":"components/schemas/Problem","exampleIds":["paths/~1bookings~1{bookingId}/get/responses/400/content/application~1problem+xml/example"]}},"schemaId":"components/schemas/Problem","exampleIds":["paths/~1bookings~1{bookingId}/get/responses/400/content/application~1problem+json/example"],"headers":{"RateLimit":{"$ref":"#/components/headers/RateLimit"}},"headerSchemaId":"schema_126"},{"code":"401","description":"Unauthorized","mediaType":"application/problem+json","mediaTypes":["application/problem+json","application/problem+xml"],"mediaTypeContent":{"application/problem+json":{"schemaId":"components/schemas/Problem","exampleIds":["paths/~1bookings~1{bookingId}/get/responses/401/content/application~1problem+json/example"]},"application/problem+xml":{"schemaId":"components/schemas/Problem","exampleIds":["paths/~1bookings~1{bookingId}/get/responses/401/content/application~1problem+xml/example"]}},"schemaId":"components/schemas/Problem","exampleIds":["paths/~1bookings~1{bookingId}/get/responses/401/content/application~1problem+json/example"],"headers":{"RateLimit":{"$ref":"#/components/headers/RateLimit"}},"headerSchemaId":"schema_126"},{"code":"403","description":"Forbidden","mediaType":"application/problem+json","mediaTypes":["application/problem+json","application/problem+xml"],"mediaTypeContent":{"application/problem+json":{"schemaId":"components/schemas/Problem","exampleIds":["paths/~1bookings~1{bookingId}/get/responses/403/content/application~1problem+json/example"]},"application/problem+xml":{"schemaId":"components/schemas/Problem","exampleIds":["paths/~1bookings~1{bookingId}/get/responses/403/content/application~1problem+xml/example"]}},"schemaId":"components/schemas/Problem","exampleIds":["paths/~1bookings~1{bookingId}/get/responses/403/content/application~1problem+json/example"],"headers":{"RateLimit":{"$ref":"#/components/headers/RateLimit"}},"headerSchemaId":"schema_126"},{"code":"404","description":"Not Found","mediaType":"application/problem+json","mediaTypes":["application/problem+json","application/problem+xml"],"mediaTypeContent":{"application/problem+json":{"schemaId":"components/schemas/Problem","exampleIds":["paths/~1bookings~1{bookingId}/get/responses/404/content/application~1problem+json/example"]},"application/problem+xml":{"schemaId":"components/schemas/Problem","exampleIds":["paths/~1bookings~1{bookingId}/get/responses/404/content/application~1problem+xml/example"]}},"schemaId":"components/schemas/Problem","exampleIds":["paths/~1bookings~1{bookingId}/get/responses/404/content/application~1problem+json/example"],"headers":{"RateLimit":{"$ref":"#/components/headers/RateLimit"}},"headerSchemaId":"schema_126"},{"code":"429","description":"Too Many Requests","mediaType":"application/problem+json","mediaTypes":["application/problem+json","application/problem+xml"],"mediaTypeContent":{"application/problem+json":{"schemaId":"components/schemas/Problem","exampleIds":["paths/~1bookings~1{bookingId}/get/responses/429/content/application~1problem+json/example"]},"application/problem+xml":{"schemaId":"components/schemas/Problem","exampleIds":["paths/~1bookings~1{bookingId}/get/responses/429/content/application~1problem+xml/example"]}},"schemaId":"components/schemas/Problem","exampleIds":["paths/~1bookings~1{bookingId}/get/responses/429/content/application~1problem+json/example"],"headers":{"RateLimit":{"$ref":"#/components/headers/RateLimit"},"Retry-After":{"$ref":"#/components/headers/Retry-After"}},"headerSchemaId":"schema_127"},{"code":"500","description":"Internal Server Error","mediaType":"application/problem+json","mediaTypes":["application/problem+json","application/problem+xml"],"mediaTypeContent":{"application/problem+json":{"schemaId":"components/schemas/Problem","exampleIds":["paths/~1bookings~1{bookingId}/get/responses/500/content/application~1problem+json/example"]},"application/problem+xml":{"schemaId":"components/schemas/Problem","exampleIds":["paths/~1bookings~1{bookingId}/get/responses/500/content/application~1problem+xml/example"]}},"schemaId":"components/schemas/Problem","exampleIds":["paths/~1bookings~1{bookingId}/get/responses/500/content/application~1problem+json/example"],"headers":{"RateLimit":{"$ref":"#/components/headers/RateLimit"}},"headerSchemaId":"schema_126"}],"pointer":"/paths/~1bookings~1{bookingId}/get/responses"}],"panels":[{"children":[{"kind":"response","headerTitle":"Response","responseCodes":[{"code":"200","schemaId":"schema_135","exampleIds":["paths/~1bookings~1{bookingId}/get/responses/200/content/application~1json/example"],"mediaTypes":["application/json","application/xml"],"mediaTypeContent":{"application/json":{"schemaId":"schema_135","exampleIds":["paths/~1bookings~1{bookingId}/get/responses/200/content/application~1json/example"]},"application/xml":{"schemaId":"schema_135"}}},{"code":"400","schemaId":"components/schemas/Problem","exampleIds":["paths/~1bookings~1{bookingId}/get/responses/400/content/application~1problem+json/example"],"mediaTypes":["application/problem+json","application/problem+xml"],"mediaTypeContent":{"application/problem+json":{"schemaId":"components/schemas/Problem","exampleIds":["paths/~1bookings~1{bookingId}/get/responses/400/content/application~1problem+json/example"]},"application/problem+xml":{"schemaId":"components/schemas/Problem","exampleIds":["paths/~1bookings~1{bookingId}/get/responses/400/content/application~1problem+xml/example"]}}},{"code":"401","schemaId":"components/schemas/Problem","exampleIds":["paths/~1bookings~1{bookingId}/get/responses/401/content/application~1problem+json/example"],"mediaTypes":["application/problem+json","application/problem+xml"],"mediaTypeContent":{"application/problem+json":{"schemaId":"components/schemas/Problem","exampleIds":["paths/~1bookings~1{bookingId}/get/responses/401/content/application~1problem+json/example"]},"application/problem+xml":{"schemaId":"components/schemas/Problem","exampleIds":["paths/~1bookings~1{bookingId}/get/responses/401/content/application~1problem+xml/example"]}}},{"code":"403","schemaId":"components/schemas/Problem","exampleIds":["paths/~1bookings~1{bookingId}/get/responses/403/content/application~1problem+json/example"],"mediaTypes":["application/problem+json","application/problem+xml"],"mediaTypeContent":{"application/problem+json":{"schemaId":"components/schemas/Problem","exampleIds":["paths/~1bookings~1{bookingId}/get/responses/403/content/application~1problem+json/example"]},"application/problem+xml":{"schemaId":"components/schemas/Problem","exampleIds":["paths/~1bookings~1{bookingId}/get/responses/403/content/application~1problem+xml/example"]}}},{"code":"404","schemaId":"components/schemas/Problem","exampleIds":["paths/~1bookings~1{bookingId}/get/responses/404/content/application~1problem+json/example"],"mediaTypes":["application/problem+json","application/problem+xml"],"mediaTypeContent":{"application/problem+json":{"schemaId":"components/schemas/Problem","exampleIds":["paths/~1bookings~1{bookingId}/get/responses/404/content/application~1problem+json/example"]},"application/problem+xml":{"schemaId":"components/schemas/Problem","exampleIds":["paths/~1bookings~1{bookingId}/get/responses/404/content/application~1problem+xml/example"]}}},{"code":"429","schemaId":"components/schemas/Problem","exampleIds":["paths/~1bookings~1{bookingId}/get/responses/429/content/application~1problem+json/example"],"mediaTypes":["application/problem+json","application/problem+xml"],"mediaTypeContent":{"application/problem+json":{"schemaId":"components/schemas/Problem","exampleIds":["paths/~1bookings~1{bookingId}/get/responses/429/content/application~1problem+json/example"]},"application/problem+xml":{"schemaId":"components/schemas/Problem","exampleIds":["paths/~1bookings~1{bookingId}/get/responses/429/content/application~1problem+xml/example"]}}},{"code":"500","schemaId":"components/schemas/Problem","exampleIds":["paths/~1bookings~1{bookingId}/get/responses/500/content/application~1problem+json/example"],"mediaTypes":["application/problem+json","application/problem+xml"],"mediaTypeContent":{"application/problem+json":{"schemaId":"components/schemas/Problem","exampleIds":["paths/~1bookings~1{bookingId}/get/responses/500/content/application~1problem+json/example"]},"application/problem+xml":{"schemaId":"components/schemas/Problem","exampleIds":["paths/~1bookings~1{bookingId}/get/responses/500/content/application~1problem+xml/example"]}}}],"examples":[]}]}]},{"nodeType":"container","children":[{"nodeType":"feedback","pageSlug":"/bookings/get-booking"}],"panels":[]}]},"httpPath":"/bookings/{bookingId}"},{"label":"Delete a booking","deprecated":false,"httpVerb":"delete","isAdditionalOperation":false,"isWebhook":false,"type":"link","link":"/catalog/api-showdown/api-hub/train-travel/openapi/bookings/delete-booking","routeSlug":"/catalog/api-showdown/api-hub/train-travel/openapi/bookings/delete-booking","metadata":{"seo":{"title":"Delete a booking","description":"Deletes a booking, cancelling the hold on the trip."}},"content":{"contentType":"item","itemVariant":"httpItem","meta":{"sourceId":"delete-booking","name":"Delete a booking","isWebhook":false,"pointer":"/paths/~1bookings~1{bookingId}/delete","hasSamples":false},"children":[{"nodeType":"container","children":[{"nodeType":"header","level":2,"label":"Delete a booking","isWebhook":false,"showPageActions":true}],"panels":[]},{"nodeType":"container","children":[{"nodeType":"header","level":4,"label":"Request","labelTranslationKey":"request","deepLinkSuffix":"request"},{"nodeType":"markdoc","content":"Deletes a booking, cancelling the hold on the trip."},{"nodeType":"security","requirements":[{"schemes":[{"name":"OAuth2","scopes":["write"],"type":"oauth2","description":"OAuth 2.0 authorization code following RFC8725 best practices.","flows":{"authorizationCode":{"authorizationUrl":"https://example.com/oauth/authorize","tokenUrl":"https://example.com/oauth/token","scopes":{"read":"Read access","write":"Write access"}}}}]}]},{"nodeType":"item-content","variant":"path","label":"Path","labelTranslationKey":"path","parameters":[{"name":"bookingId","in":"path","schemaId":"schema_128","description":"The ID of the booking to retrieve.","required":true,"example":"1725ff48-ab45-4bb5-9d02-88745177dedb"}],"pointer":"/paths/~1bookings~1{bookingId}/delete/parameters"}],"panels":[{"children":[{"kind":"code-sample","source":{"kind":"code-sample","operationType":"http","method":"DELETE","path":"/bookings/{bookingId}","servers":[{"url":"/_mock/catalog/api-showdown/api-hub/train-travel/openapi","description":"Mock server","isMockServer":true},{"url":"https://api.example.com","description":"Production"}],"parameters":{"path":[{"name":"bookingId","in":"path","required":true,"example":"1725ff48-ab45-4bb5-9d02-88745177dedb","schemaId":"schema_128"}],"query":[],"querystring":[],"header":[],"cookie":[]},"security":[{"schemes":[{"id":"OAuth2","type":"oauth2","flows":{"authorizationCode":{"authorizationUrl":"https://example.com/oauth/authorize","tokenUrl":"https://example.com/oauth/token","scopes":{"read":"Read access","write":"Write access"}}}}],"scopes":["write"]}],"responseCodes":["204","400","401","403","404","429","500"],"pointer":"/bookings/{bookingId}","href":"bookings/delete-booking","openApiOperationId":"delete-booking","summary":"Delete a booking"},"isWebhook":false,"hideReplay":false,"servers":[{"url":"/_mock/catalog/api-showdown/api-hub/train-travel/openapi","description":"Mock server","isMockServer":true},{"url":"https://api.example.com","description":"Production"}],"examples":[]}]}]},{"nodeType":"container","children":[{"nodeType":"header","level":4,"label":"Responses","labelTranslationKey":"responses","deepLinkSuffix":"responses"},{"nodeType":"item-content","variant":"responses","responses":[{"code":"204","description":"Booking deleted"},{"code":"400","description":"Bad Request","mediaType":"application/problem+json","mediaTypes":["application/problem+json","application/problem+xml"],"mediaTypeContent":{"application/problem+json":{"schemaId":"components/schemas/Problem","exampleIds":["paths/~1bookings~1{bookingId}/delete/responses/400/content/application~1problem+json/example"]},"application/problem+xml":{"schemaId":"components/schemas/Problem","exampleIds":["paths/~1bookings~1{bookingId}/delete/responses/400/content/application~1problem+xml/example"]}},"schemaId":"components/schemas/Problem","exampleIds":["paths/~1bookings~1{bookingId}/delete/responses/400/content/application~1problem+json/example"],"headers":{"RateLimit":{"$ref":"#/components/headers/RateLimit"}},"headerSchemaId":"schema_126"},{"code":"401","description":"Unauthorized","mediaType":"application/problem+json","mediaTypes":["application/problem+json","application/problem+xml"],"mediaTypeContent":{"application/problem+json":{"schemaId":"components/schemas/Problem","exampleIds":["paths/~1bookings~1{bookingId}/delete/responses/401/content/application~1problem+json/example"]},"application/problem+xml":{"schemaId":"components/schemas/Problem","exampleIds":["paths/~1bookings~1{bookingId}/delete/responses/401/content/application~1problem+xml/example"]}},"schemaId":"components/schemas/Problem","exampleIds":["paths/~1bookings~1{bookingId}/delete/responses/401/content/application~1problem+json/example"],"headers":{"RateLimit":{"$ref":"#/components/headers/RateLimit"}},"headerSchemaId":"schema_126"},{"code":"403","description":"Forbidden","mediaType":"application/problem+json","mediaTypes":["application/problem+json","application/problem+xml"],"mediaTypeContent":{"application/problem+json":{"schemaId":"components/schemas/Problem","exampleIds":["paths/~1bookings~1{bookingId}/delete/responses/403/content/application~1problem+json/example"]},"application/problem+xml":{"schemaId":"components/schemas/Problem","exampleIds":["paths/~1bookings~1{bookingId}/delete/responses/403/content/application~1problem+xml/example"]}},"schemaId":"components/schemas/Problem","exampleIds":["paths/~1bookings~1{bookingId}/delete/responses/403/content/application~1problem+json/example"],"headers":{"RateLimit":{"$ref":"#/components/headers/RateLimit"}},"headerSchemaId":"schema_126"},{"code":"404","description":"Not Found","mediaType":"application/problem+json","mediaTypes":["application/problem+json","application/problem+xml"],"mediaTypeContent":{"application/problem+json":{"schemaId":"components/schemas/Problem","exampleIds":["paths/~1bookings~1{bookingId}/delete/responses/404/content/application~1problem+json/example"]},"application/problem+xml":{"schemaId":"components/schemas/Problem","exampleIds":["paths/~1bookings~1{bookingId}/delete/responses/404/content/application~1problem+xml/example"]}},"schemaId":"components/schemas/Problem","exampleIds":["paths/~1bookings~1{bookingId}/delete/responses/404/content/application~1problem+json/example"],"headers":{"RateLimit":{"$ref":"#/components/headers/RateLimit"}},"headerSchemaId":"schema_126"},{"code":"429","description":"Too Many Requests","mediaType":"application/problem+json","mediaTypes":["application/problem+json","application/problem+xml"],"mediaTypeContent":{"application/problem+json":{"schemaId":"components/schemas/Problem","exampleIds":["paths/~1bookings~1{bookingId}/delete/responses/429/content/application~1problem+json/example"]},"application/problem+xml":{"schemaId":"components/schemas/Problem","exampleIds":["paths/~1bookings~1{bookingId}/delete/responses/429/content/application~1problem+xml/example"]}},"schemaId":"components/schemas/Problem","exampleIds":["paths/~1bookings~1{bookingId}/delete/responses/429/content/application~1problem+json/example"],"headers":{"RateLimit":{"$ref":"#/components/headers/RateLimit"},"Retry-After":{"$ref":"#/components/headers/Retry-After"}},"headerSchemaId":"schema_127"},{"code":"500","description":"Internal Server Error","mediaType":"application/problem+json","mediaTypes":["application/problem+json","application/problem+xml"],"mediaTypeContent":{"application/problem+json":{"schemaId":"components/schemas/Problem","exampleIds":["paths/~1bookings~1{bookingId}/delete/responses/500/content/application~1problem+json/example"]},"application/problem+xml":{"schemaId":"components/schemas/Problem","exampleIds":["paths/~1bookings~1{bookingId}/delete/responses/500/content/application~1problem+xml/example"]}},"schemaId":"components/schemas/Problem","exampleIds":["paths/~1bookings~1{bookingId}/delete/responses/500/content/application~1problem+json/example"],"headers":{"RateLimit":{"$ref":"#/components/headers/RateLimit"}},"headerSchemaId":"schema_126"}],"pointer":"/paths/~1bookings~1{bookingId}/delete/responses"}],"panels":[{"children":[{"kind":"response","headerTitle":"Response","responseCodes":[{"code":"204"},{"code":"400","schemaId":"components/schemas/Problem","exampleIds":["paths/~1bookings~1{bookingId}/delete/responses/400/content/application~1problem+json/example"],"mediaTypes":["application/problem+json","application/problem+xml"],"mediaTypeContent":{"application/problem+json":{"schemaId":"components/schemas/Problem","exampleIds":["paths/~1bookings~1{bookingId}/delete/responses/400/content/application~1problem+json/example"]},"application/problem+xml":{"schemaId":"components/schemas/Problem","exampleIds":["paths/~1bookings~1{bookingId}/delete/responses/400/content/application~1problem+xml/example"]}}},{"code":"401","schemaId":"components/schemas/Problem","exampleIds":["paths/~1bookings~1{bookingId}/delete/responses/401/content/application~1problem+json/example"],"mediaTypes":["application/problem+json","application/problem+xml"],"mediaTypeContent":{"application/problem+json":{"schemaId":"components/schemas/Problem","exampleIds":["paths/~1bookings~1{bookingId}/delete/responses/401/content/application~1problem+json/example"]},"application/problem+xml":{"schemaId":"components/schemas/Problem","exampleIds":["paths/~1bookings~1{bookingId}/delete/responses/401/content/application~1problem+xml/example"]}}},{"code":"403","schemaId":"components/schemas/Problem","exampleIds":["paths/~1bookings~1{bookingId}/delete/responses/403/content/application~1problem+json/example"],"mediaTypes":["application/problem+json","application/problem+xml"],"mediaTypeContent":{"application/problem+json":{"schemaId":"components/schemas/Problem","exampleIds":["paths/~1bookings~1{bookingId}/delete/responses/403/content/application~1problem+json/example"]},"application/problem+xml":{"schemaId":"components/schemas/Problem","exampleIds":["paths/~1bookings~1{bookingId}/delete/responses/403/content/application~1problem+xml/example"]}}},{"code":"404","schemaId":"components/schemas/Problem","exampleIds":["paths/~1bookings~1{bookingId}/delete/responses/404/content/application~1problem+json/example"],"mediaTypes":["application/problem+json","application/problem+xml"],"mediaTypeContent":{"application/problem+json":{"schemaId":"components/schemas/Problem","exampleIds":["paths/~1bookings~1{bookingId}/delete/responses/404/content/application~1problem+json/example"]},"application/problem+xml":{"schemaId":"components/schemas/Problem","exampleIds":["paths/~1bookings~1{bookingId}/delete/responses/404/content/application~1problem+xml/example"]}}},{"code":"429","schemaId":"components/schemas/Problem","exampleIds":["paths/~1bookings~1{bookingId}/delete/responses/429/content/application~1problem+json/example"],"mediaTypes":["application/problem+json","application/problem+xml"],"mediaTypeContent":{"application/problem+json":{"schemaId":"components/schemas/Problem","exampleIds":["paths/~1bookings~1{bookingId}/delete/responses/429/content/application~1problem+json/example"]},"application/problem+xml":{"schemaId":"components/schemas/Problem","exampleIds":["paths/~1bookings~1{bookingId}/delete/responses/429/content/application~1problem+xml/example"]}}},{"code":"500","schemaId":"components/schemas/Problem","exampleIds":["paths/~1bookings~1{bookingId}/delete/responses/500/content/application~1problem+json/example"],"mediaTypes":["application/problem+json","application/problem+xml"],"mediaTypeContent":{"application/problem+json":{"schemaId":"components/schemas/Problem","exampleIds":["paths/~1bookings~1{bookingId}/delete/responses/500/content/application~1problem+json/example"]},"application/problem+xml":{"schemaId":"components/schemas/Problem","exampleIds":["paths/~1bookings~1{bookingId}/delete/responses/500/content/application~1problem+xml/example"]}}}],"examples":[]}]}]},{"nodeType":"container","children":[{"nodeType":"feedback","pageSlug":"/bookings/delete-booking"}],"panels":[]}]},"httpPath":"/bookings/{bookingId}"},{"type":"separator","label":"Webhooks","variant":"secondary","content":null},{"label":"New Booking","deprecated":false,"httpVerb":"post","isAdditionalOperation":false,"isWebhook":true,"type":"link","link":"/catalog/api-showdown/api-hub/train-travel/openapi/bookings/new-booking","routeSlug":"/catalog/api-showdown/api-hub/train-travel/openapi/bookings/new-booking","metadata":{"seo":{"title":"New Booking","description":"Subscribe to new bookings being created, to update integrations for your users. Related data is available via the links provided in the request."}},"content":{"contentType":"item","itemVariant":"httpItem","meta":{"sourceId":"new-booking","name":"New Booking","isWebhook":true,"pointer":"/paths/newBooking/post","hasSamples":true},"children":[{"nodeType":"container","children":[{"nodeType":"header","level":2,"label":"New Booking","isWebhook":true,"showPageActions":true}],"panels":[]},{"nodeType":"container","children":[{"nodeType":"header","level":4,"label":"Request","labelTranslationKey":"request","deepLinkSuffix":"request"},{"nodeType":"markdoc","content":"Subscribe to new bookings being created, to update integrations for your users.  Related data is available via the links provided in the request.\n"},{"nodeType":"security","requirements":[{"schemes":[{"name":"OAuth2","scopes":["read"],"type":"oauth2","description":"OAuth 2.0 authorization code following RFC8725 best practices.","flows":{"authorizationCode":{"authorizationUrl":"https://example.com/oauth/authorize","tokenUrl":"https://example.com/oauth/token","scopes":{"read":"Read access","write":"Write access"}}}}]}]},{"nodeType":"item-content","variant":"body","label":"Request Body","labelTranslationKey":"body","mediaTypes":["application/json"],"mediaTypeSchemas":{"application/json":{"schemaId":"schema_136","exampleIds":["paths/newBooking/post/requestBody/content/application~1json/example"]}},"schemaId":"schema_136","exampleIds":["paths/newBooking/post/requestBody/content/application~1json/example"],"pointer":"/paths/newBooking/post/requestBody"}],"panels":[{"children":[{"kind":"code-sample","source":{"kind":"code-sample","operationType":"webhook","method":"POST","path":"newBooking","servers":[{"url":"/_mock/catalog/api-showdown/api-hub/train-travel/openapi","description":"Mock server","isMockServer":true},{"url":"https://api.example.com","description":"Production"}],"parameters":{"path":[],"query":[],"querystring":[],"header":[],"cookie":[]},"security":[{"schemes":[{"id":"OAuth2","type":"oauth2","flows":{"authorizationCode":{"authorizationUrl":"https://example.com/oauth/authorize","tokenUrl":"https://example.com/oauth/token","scopes":{"read":"Read access","write":"Write access"}}}}],"scopes":["read"]}],"requestBody":{"application/json":{"schemaId":"schema_136","exampleIds":["paths/newBooking/post/requestBody/content/application~1json/example"]}},"responseCodes":["200"],"pointer":"newBooking","href":"bookings/new-booking","openApiOperationId":"new-booking","summary":"New Booking"},"isWebhook":true,"hideReplay":false,"servers":[{"url":"/_mock/catalog/api-showdown/api-hub/train-travel/openapi","description":"Mock server","isMockServer":true},{"url":"https://api.example.com","description":"Production"}],"schemaId":"schema_136","exampleIds":["paths/newBooking/post/requestBody/content/application~1json/example"],"mediaTypes":["application/json"],"mediaTypeSchemas":{"application/json":{"schemaId":"schema_136","exampleIds":["paths/newBooking/post/requestBody/content/application~1json/example"]}},"examples":[{}]}]}]},{"nodeType":"container","children":[{"nodeType":"header","level":4,"label":"Responses","labelTranslationKey":"responses","deepLinkSuffix":"responses"},{"nodeType":"item-content","variant":"responses","responses":[{"code":"200","description":"Return a 200 status to indicate that the data was received successfully."}],"pointer":"/paths/newBooking/post/responses"}],"panels":[]},{"nodeType":"container","children":[{"nodeType":"feedback","pageSlug":"/bookings/new-booking"}],"panels":[]}]},"httpPath":"newBooking"}],"content":{"contentType":"group","meta":{"name":"Bookings"},"children":[{"nodeType":"container","children":[{"nodeType":"header","level":2,"label":"Bookings","showPageActions":true},{"nodeType":"markdoc","content":"Create and manage bookings for train trips, including passenger details\nand optional extras."}],"panels":[{"children":[{"kind":"group-items","title":"Operations","titleTranslationKey":"operations","items":[{"title":"/bookings","summary":"List existing bookings","prefix":{"name":"get","color":"get"},"badges":[],"link":"/bookings/get-bookings","deprecated":false},{"title":"/bookings","summary":"Create a booking","prefix":{"name":"post","color":"post"},"badges":[],"link":"/bookings/create-booking","deprecated":false},{"title":"/bookings/{bookingId}","summary":"Get a booking","prefix":{"name":"get","color":"get"},"badges":[],"link":"/bookings/get-booking","deprecated":false},{"title":"/bookings/{bookingId}","summary":"Delete a booking","prefix":{"name":"delete","color":"delete"},"badges":[],"link":"/bookings/delete-booking","deprecated":false}]},{"kind":"group-items","title":"Webhooks","titleTranslationKey":"webhooks","items":[{"title":"newBooking","summary":"New Booking","prefix":{"name":"post","color":"post"},"badges":[],"link":"/bookings/new-booking","deprecated":false}]}]}]}]}},{"type":"group","label":"Payments","link":"/catalog/api-showdown/api-hub/train-travel/openapi/payments","routeSlug":"/catalog/api-showdown/api-hub/train-travel/openapi/payments","items":[{"label":"Pay for a Booking","deprecated":false,"httpVerb":"post","isAdditionalOperation":false,"isWebhook":false,"type":"link","link":"/catalog/api-showdown/api-hub/train-travel/openapi/payments/create-booking-payment","routeSlug":"/catalog/api-showdown/api-hub/train-travel/openapi/payments/create-booking-payment","metadata":{"seo":{"title":"Pay for a Booking","description":"A payment is an attempt to pay for the booking, which will confirm the booking for the user and enable them to get their tickets."}},"content":{"contentType":"item","itemVariant":"httpItem","meta":{"sourceId":"create-booking-payment","name":"Pay for a Booking","isWebhook":false,"pointer":"/paths/~1bookings~1{bookingId}~1payment/post","hasSamples":true},"children":[{"nodeType":"container","children":[{"nodeType":"header","level":2,"label":"Pay for a Booking","isWebhook":false,"showPageActions":true}],"panels":[]},{"nodeType":"container","children":[{"nodeType":"header","level":4,"label":"Request","labelTranslationKey":"request","deepLinkSuffix":"request"},{"nodeType":"markdoc","content":"A payment is an attempt to pay for the booking, which will confirm the booking for the user and enable them to get their tickets."},{"nodeType":"security","requirements":[{"schemes":[{"name":"OAuth2","scopes":["read"],"type":"oauth2","description":"OAuth 2.0 authorization code following RFC8725 best practices.","flows":{"authorizationCode":{"authorizationUrl":"https://example.com/oauth/authorize","tokenUrl":"https://example.com/oauth/token","scopes":{"read":"Read access","write":"Write access"}}}}]}]},{"nodeType":"item-content","variant":"path","label":"Path","labelTranslationKey":"path","parameters":[{"name":"bookingId","in":"path","schemaId":"schema_128","description":"The ID of the booking to pay for.","required":true,"example":"1725ff48-ab45-4bb5-9d02-88745177dedb"}],"pointer":"/paths/~1bookings~1{bookingId}~1payment/post/parameters"},{"nodeType":"item-content","variant":"body","label":"Request Body","labelTranslationKey":"body","mediaTypes":["application/json"],"mediaTypeSchemas":{"application/json":{"schemaId":"components/schemas/BookingPayment","exampleIds":["paths/~1bookings~1{bookingId}~1payment/post/requestBody/content/application~1json/examples/Card","paths/~1bookings~1{bookingId}~1payment/post/requestBody/content/application~1json/examples/Bank"]}},"schemaId":"components/schemas/BookingPayment","exampleIds":["paths/~1bookings~1{bookingId}~1payment/post/requestBody/content/application~1json/examples/Card","paths/~1bookings~1{bookingId}~1payment/post/requestBody/content/application~1json/examples/Bank"],"pointer":"/paths/~1bookings~1{bookingId}~1payment/post/requestBody"}],"panels":[{"children":[{"kind":"code-sample","source":{"kind":"code-sample","operationType":"http","method":"POST","path":"/bookings/{bookingId}/payment","servers":[{"url":"/_mock/catalog/api-showdown/api-hub/train-travel/openapi","description":"Mock server","isMockServer":true},{"url":"https://api.example.com","description":"Production"}],"parameters":{"path":[{"name":"bookingId","in":"path","required":true,"example":"1725ff48-ab45-4bb5-9d02-88745177dedb","schemaId":"schema_128"}],"query":[],"querystring":[],"header":[],"cookie":[]},"security":[{"schemes":[{"id":"OAuth2","type":"oauth2","flows":{"authorizationCode":{"authorizationUrl":"https://example.com/oauth/authorize","tokenUrl":"https://example.com/oauth/token","scopes":{"read":"Read access","write":"Write access"}}}}],"scopes":["read"]}],"requestBody":{"application/json":{"schemaId":"components/schemas/BookingPayment","exampleIds":["paths/~1bookings~1{bookingId}~1payment/post/requestBody/content/application~1json/examples/Card","paths/~1bookings~1{bookingId}~1payment/post/requestBody/content/application~1json/examples/Bank"]}},"responseCodes":["200","400","401","403","429","500"],"pointer":"/bookings/{bookingId}/payment","href":"payments/create-booking-payment","openApiOperationId":"create-booking-payment","summary":"Pay for a Booking"},"isWebhook":false,"hideReplay":false,"servers":[{"url":"/_mock/catalog/api-showdown/api-hub/train-travel/openapi","description":"Mock server","isMockServer":true},{"url":"https://api.example.com","description":"Production"}],"schemaId":"components/schemas/BookingPayment","exampleIds":["paths/~1bookings~1{bookingId}~1payment/post/requestBody/content/application~1json/examples/Card","paths/~1bookings~1{bookingId}~1payment/post/requestBody/content/application~1json/examples/Bank"],"mediaTypes":["application/json"],"mediaTypeSchemas":{"application/json":{"schemaId":"components/schemas/BookingPayment","exampleIds":["paths/~1bookings~1{bookingId}~1payment/post/requestBody/content/application~1json/examples/Card","paths/~1bookings~1{bookingId}~1payment/post/requestBody/content/application~1json/examples/Bank"]}},"examples":[{},{}]}]}]},{"nodeType":"container","children":[{"nodeType":"header","level":4,"label":"Responses","labelTranslationKey":"responses","deepLinkSuffix":"responses"},{"nodeType":"item-content","variant":"responses","responses":[{"code":"200","description":"Payment successful","mediaType":"application/json","mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"schema_137","exampleIds":["paths/~1bookings~1{bookingId}~1payment/post/responses/200/content/application~1json/examples/Card","paths/~1bookings~1{bookingId}~1payment/post/responses/200/content/application~1json/examples/Bank"]}},"schemaId":"schema_137","exampleIds":["paths/~1bookings~1{bookingId}~1payment/post/responses/200/content/application~1json/examples/Card","paths/~1bookings~1{bookingId}~1payment/post/responses/200/content/application~1json/examples/Bank"],"headers":{"RateLimit":{"$ref":"#/components/headers/RateLimit"}},"headerSchemaId":"schema_126"},{"code":"400","description":"Bad Request","mediaType":"application/problem+json","mediaTypes":["application/problem+json","application/problem+xml"],"mediaTypeContent":{"application/problem+json":{"schemaId":"components/schemas/Problem","exampleIds":["paths/~1bookings~1{bookingId}~1payment/post/responses/400/content/application~1problem+json/example"]},"application/problem+xml":{"schemaId":"components/schemas/Problem","exampleIds":["paths/~1bookings~1{bookingId}~1payment/post/responses/400/content/application~1problem+xml/example"]}},"schemaId":"components/schemas/Problem","exampleIds":["paths/~1bookings~1{bookingId}~1payment/post/responses/400/content/application~1problem+json/example"],"headers":{"RateLimit":{"$ref":"#/components/headers/RateLimit"}},"headerSchemaId":"schema_126"},{"code":"401","description":"Unauthorized","mediaType":"application/problem+json","mediaTypes":["application/problem+json","application/problem+xml"],"mediaTypeContent":{"application/problem+json":{"schemaId":"components/schemas/Problem","exampleIds":["paths/~1bookings~1{bookingId}~1payment/post/responses/401/content/application~1problem+json/example"]},"application/problem+xml":{"schemaId":"components/schemas/Problem","exampleIds":["paths/~1bookings~1{bookingId}~1payment/post/responses/401/content/application~1problem+xml/example"]}},"schemaId":"components/schemas/Problem","exampleIds":["paths/~1bookings~1{bookingId}~1payment/post/responses/401/content/application~1problem+json/example"],"headers":{"RateLimit":{"$ref":"#/components/headers/RateLimit"}},"headerSchemaId":"schema_126"},{"code":"403","description":"Forbidden","mediaType":"application/problem+json","mediaTypes":["application/problem+json","application/problem+xml"],"mediaTypeContent":{"application/problem+json":{"schemaId":"components/schemas/Problem","exampleIds":["paths/~1bookings~1{bookingId}~1payment/post/responses/403/content/application~1problem+json/example"]},"application/problem+xml":{"schemaId":"components/schemas/Problem","exampleIds":["paths/~1bookings~1{bookingId}~1payment/post/responses/403/content/application~1problem+xml/example"]}},"schemaId":"components/schemas/Problem","exampleIds":["paths/~1bookings~1{bookingId}~1payment/post/responses/403/content/application~1problem+json/example"],"headers":{"RateLimit":{"$ref":"#/components/headers/RateLimit"}},"headerSchemaId":"schema_126"},{"code":"429","description":"Too Many Requests","mediaType":"application/problem+json","mediaTypes":["application/problem+json","application/problem+xml"],"mediaTypeContent":{"application/problem+json":{"schemaId":"components/schemas/Problem","exampleIds":["paths/~1bookings~1{bookingId}~1payment/post/responses/429/content/application~1problem+json/example"]},"application/problem+xml":{"schemaId":"components/schemas/Problem","exampleIds":["paths/~1bookings~1{bookingId}~1payment/post/responses/429/content/application~1problem+xml/example"]}},"schemaId":"components/schemas/Problem","exampleIds":["paths/~1bookings~1{bookingId}~1payment/post/responses/429/content/application~1problem+json/example"],"headers":{"RateLimit":{"$ref":"#/components/headers/RateLimit"},"Retry-After":{"$ref":"#/components/headers/Retry-After"}},"headerSchemaId":"schema_127"},{"code":"500","description":"Internal Server Error","mediaType":"application/problem+json","mediaTypes":["application/problem+json","application/problem+xml"],"mediaTypeContent":{"application/problem+json":{"schemaId":"components/schemas/Problem","exampleIds":["paths/~1bookings~1{bookingId}~1payment/post/responses/500/content/application~1problem+json/example"]},"application/problem+xml":{"schemaId":"components/schemas/Problem","exampleIds":["paths/~1bookings~1{bookingId}~1payment/post/responses/500/content/application~1problem+xml/example"]}},"schemaId":"components/schemas/Problem","exampleIds":["paths/~1bookings~1{bookingId}~1payment/post/responses/500/content/application~1problem+json/example"],"headers":{"RateLimit":{"$ref":"#/components/headers/RateLimit"}},"headerSchemaId":"schema_126"}],"pointer":"/paths/~1bookings~1{bookingId}~1payment/post/responses"}],"panels":[{"children":[{"kind":"response","headerTitle":"Response","responseCodes":[{"code":"200","schemaId":"schema_137","exampleIds":["paths/~1bookings~1{bookingId}~1payment/post/responses/200/content/application~1json/examples/Card","paths/~1bookings~1{bookingId}~1payment/post/responses/200/content/application~1json/examples/Bank"],"mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"schema_137","exampleIds":["paths/~1bookings~1{bookingId}~1payment/post/responses/200/content/application~1json/examples/Card","paths/~1bookings~1{bookingId}~1payment/post/responses/200/content/application~1json/examples/Bank"]}}},{"code":"400","schemaId":"components/schemas/Problem","exampleIds":["paths/~1bookings~1{bookingId}~1payment/post/responses/400/content/application~1problem+json/example"],"mediaTypes":["application/problem+json","application/problem+xml"],"mediaTypeContent":{"application/problem+json":{"schemaId":"components/schemas/Problem","exampleIds":["paths/~1bookings~1{bookingId}~1payment/post/responses/400/content/application~1problem+json/example"]},"application/problem+xml":{"schemaId":"components/schemas/Problem","exampleIds":["paths/~1bookings~1{bookingId}~1payment/post/responses/400/content/application~1problem+xml/example"]}}},{"code":"401","schemaId":"components/schemas/Problem","exampleIds":["paths/~1bookings~1{bookingId}~1payment/post/responses/401/content/application~1problem+json/example"],"mediaTypes":["application/problem+json","application/problem+xml"],"mediaTypeContent":{"application/problem+json":{"schemaId":"components/schemas/Problem","exampleIds":["paths/~1bookings~1{bookingId}~1payment/post/responses/401/content/application~1problem+json/example"]},"application/problem+xml":{"schemaId":"components/schemas/Problem","exampleIds":["paths/~1bookings~1{bookingId}~1payment/post/responses/401/content/application~1problem+xml/example"]}}},{"code":"403","schemaId":"components/schemas/Problem","exampleIds":["paths/~1bookings~1{bookingId}~1payment/post/responses/403/content/application~1problem+json/example"],"mediaTypes":["application/problem+json","application/problem+xml"],"mediaTypeContent":{"application/problem+json":{"schemaId":"components/schemas/Problem","exampleIds":["paths/~1bookings~1{bookingId}~1payment/post/responses/403/content/application~1problem+json/example"]},"application/problem+xml":{"schemaId":"components/schemas/Problem","exampleIds":["paths/~1bookings~1{bookingId}~1payment/post/responses/403/content/application~1problem+xml/example"]}}},{"code":"429","schemaId":"components/schemas/Problem","exampleIds":["paths/~1bookings~1{bookingId}~1payment/post/responses/429/content/application~1problem+json/example"],"mediaTypes":["application/problem+json","application/problem+xml"],"mediaTypeContent":{"application/problem+json":{"schemaId":"components/schemas/Problem","exampleIds":["paths/~1bookings~1{bookingId}~1payment/post/responses/429/content/application~1problem+json/example"]},"application/problem+xml":{"schemaId":"components/schemas/Problem","exampleIds":["paths/~1bookings~1{bookingId}~1payment/post/responses/429/content/application~1problem+xml/example"]}}},{"code":"500","schemaId":"components/schemas/Problem","exampleIds":["paths/~1bookings~1{bookingId}~1payment/post/responses/500/content/application~1problem+json/example"],"mediaTypes":["application/problem+json","application/problem+xml"],"mediaTypeContent":{"application/problem+json":{"schemaId":"components/schemas/Problem","exampleIds":["paths/~1bookings~1{bookingId}~1payment/post/responses/500/content/application~1problem+json/example"]},"application/problem+xml":{"schemaId":"components/schemas/Problem","exampleIds":["paths/~1bookings~1{bookingId}~1payment/post/responses/500/content/application~1problem+xml/example"]}}}],"examples":[]}]}]},{"nodeType":"container","children":[{"nodeType":"feedback","pageSlug":"/payments/create-booking-payment"}],"panels":[]}]},"httpPath":"/bookings/{bookingId}/payment"}],"content":{"contentType":"group","meta":{"name":"Payments"},"children":[{"nodeType":"container","children":[{"nodeType":"header","level":2,"label":"Payments","showPageActions":true},{"nodeType":"markdoc","content":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Pay for bookings using a card or bank account, and view payment"},"children":[]},{"$$mdtype":"Node","type":"softbreak","inline":true,"attributes":{},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"status and history."},"children":[]}]}]},{"$$mdtype":"Node","type":"blockquote","attributes":{},"children":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"warn"},"children":[]},{"$$mdtype":"Node","type":"softbreak","inline":true,"attributes":{},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Bookings usually expire within 1 hour so you'll need to make your payment"},"children":[]},{"$$mdtype":"Node","type":"softbreak","inline":true,"attributes":{},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"before the expiry date"},"children":[]}]}]}]}]}],"panels":[{"children":[{"kind":"group-items","title":"Operations","titleTranslationKey":"operations","items":[{"title":"/bookings/{bookingId}/payment","summary":"Pay for a Booking","prefix":{"name":"post","color":"post"},"badges":[],"link":"/payments/create-booking-payment","deprecated":false}]}]}]}]}}],"store":{"schemaStore":{"components/schemas/Station":{"id":"components/schemas/Station","kind":"json-schema","title":"Station","data":{"type":"object","xml":{"name":"station"},"required":["id","name","address","country_code"],"properties":{"id":{"type":"string","format":"uuid","description":"Unique identifier for the station.","examples":["efdbb9d1-02c2-4bc3-afb7-6788d8782b1e","b2e783e1-c824-4d63-b37a-d8d698862f1d"]},"name":{"type":"string","description":"The name of the station","examples":["Berlin Hauptbahnhof","Paris Gare du Nord"]},"address":{"type":"string","description":"The address of the station.","examples":["Invalidenstraße 10557 Berlin, Germany","18 Rue de Dunkerque 75010 Paris, France"]},"country_code":{"type":"string","description":"The country code of the station.","format":"iso-country-code","examples":["DE","FR"]},"timezone":{"type":"string","description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"The timezone of the station in the "},"children":[]},{"$$mdtype":"Node","type":"link","inline":true,"attributes":{"href":"https://www.iana.org/time-zones"},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"IANA Time Zone Database format"},"children":[]}]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"."},"children":[]}]}]}],"examples":["Europe/Berlin","Europe/Paris"]}}}},"components/schemas/Links-Self":{"id":"components/schemas/Links-Self","kind":"json-schema","title":"Links-Self","data":{"type":"object","properties":{"self":{"type":"string","format":"uri"}}}},"components/schemas/Links-Pagination":{"id":"components/schemas/Links-Pagination","kind":"json-schema","title":"Links-Pagination","data":{"type":"object","properties":{"next":{"type":"string","format":"uri"},"prev":{"type":"string","format":"uri"}}}},"components/schemas/Problem":{"id":"components/schemas/Problem","kind":"json-schema","title":"Problem","data":{"xml":{"name":"problem","namespace":"urn:ietf:rfc:7807"},"properties":{"type":{"type":"string","description":"A URI reference that identifies the problem type","example":"https://example.com/probs/out-of-credit"},"title":{"type":"string","description":"A short, human-readable summary of the problem type","example":"You do not have enough credit."},"detail":{"type":"string","description":"A human-readable explanation specific to this occurrence of the problem","example":"Your current balance is 30, but that costs 50."},"instance":{"type":"string","description":"A URI reference that identifies the specific occurrence of the problem","example":"/account/12345/msgs/abc"},"status":{"type":"integer","description":"The HTTP status code","example":400}}}},"components/schemas/Trip":{"id":"components/schemas/Trip","kind":"json-schema","title":"Trip","data":{"type":"object","xml":{"name":"trip"},"properties":{"id":{"type":"string","format":"uuid","description":"Unique identifier for the trip","examples":["4f4e4e1-c824-4d63-b37a-d8d698862f1d"]},"origin":{"type":"string","description":"The starting station of the trip","examples":["Berlin Hauptbahnhof","Paris Gare du Nord"]},"destination":{"type":"string","description":"The destination station of the trip","examples":["Paris Gare du Nord","Berlin Hauptbahnhof"]},"departure_time":{"type":"string","format":"date-time","description":"The date and time when the trip departs","examples":["2024-02-01T10:00:00Z"]},"arrival_time":{"type":"string","format":"date-time","description":"The date and time when the trip arrives","examples":["2024-02-01T16:00:00Z"]},"operator":{"type":"string","description":"The name of the operator of the trip","examples":["Deutsche Bahn","SNCF"]},"price":{"type":"number","description":"The cost of the trip","examples":[50]},"bicycles_allowed":{"type":"boolean","description":"Indicates whether bicycles are allowed on the trip"},"dogs_allowed":{"type":"boolean","description":"Indicates whether dogs are allowed on the trip"}}}},"components/schemas/Booking":{"id":"components/schemas/Booking","kind":"json-schema","title":"Booking","data":{"type":"object","xml":{"name":"booking"},"properties":{"id":{"type":"string","format":"uuid","description":"Unique identifier for the booking","readOnly":true,"examples":["3f3e3e1-c824-4d63-b37a-d8d698862f1d"]},"trip_id":{"type":"string","format":"uuid","description":"Identifier of the booked trip","examples":["4f4e4e1-c824-4d63-b37a-d8d698862f1d"]},"passenger_name":{"type":"string","description":"Name of the passenger","examples":["John Doe"]},"has_bicycle":{"type":"boolean","description":"Indicates whether the passenger has a bicycle."},"has_dog":{"type":"boolean","description":"Indicates whether the passenger has a dog."}}}},"components/schemas/Wrapper-Collection":{"id":"components/schemas/Wrapper-Collection","kind":"json-schema","title":"Wrapper-Collection","data":{"description":"This is a generic request/response wrapper which contains both data and links which serve as hypermedia controls (HATEOAS).","type":"object","properties":{"data":{"description":"The wrapper for a collection is an array of objects.","type":"array","items":{"type":"object"}},"links":{"description":"A set of hypermedia links which serve as controls for the client.","type":"object","readOnly":true}},"xml":{"name":"data"}}},"components/schemas/BookingPayment":{"id":"components/schemas/BookingPayment","kind":"json-schema","title":"BookingPayment","data":{"type":"object","properties":{"id":{"description":"Unique identifier for the payment. This will be a unique identifier for the payment, and is used to reference the payment in other objects.","type":"string","format":"uuid","readOnly":true},"amount":{"description":"Amount intended to be collected by this payment. A positive decimal figure describing the amount to be collected.","type":"number","exclusiveMinimum":0,"examples":[49.99]},"currency":{"description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Three-letter "},"children":[]},{"$$mdtype":"Node","type":"link","inline":true,"attributes":{"href":"https://www.iso.org/iso-4217-currency-codes.html"},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"ISO currency code"},"children":[]}]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":", in lowercase."},"children":[]}]}]}],"type":"string","enum":["bam","bgn","chf","eur","gbp","nok","sek","try"]},"source":{"unevaluatedProperties":false,"description":"The payment source to take the payment from. This can be a card or a bank account. Some of these properties will be hidden on read to protect PII leaking.","anyOf":[{"title":"Card","description":"A card (debit or credit) to take payment from.","properties":{"object":{"type":"string","const":"card"},"name":{"type":"string","description":"Cardholder's full name as it appears on the card.","examples":["Francis Bourgeois"]},"number":{"type":"string","description":"The card number, as a string without any separators. On read all but the last four digits will be masked for security.","examples":["4242424242424242"]},"cvc":{"type":"integer","description":"Card security code, 3 or 4 digits usually found on the back of the card.","minLength":3,"maxLength":4,"writeOnly":true,"example":123},"exp_month":{"type":"integer","format":"int64","description":"Two-digit number representing the card's expiration month.","examples":[12]},"exp_year":{"type":"integer","format":"int64","description":"Four-digit number representing the card's expiration year.","examples":[2025]},"address_line1":{"type":"string","writeOnly":true},"address_line2":{"type":"string","writeOnly":true},"address_city":{"type":"string"},"address_country":{"type":"string"},"address_post_code":{"type":"string"}},"required":["name","number","cvc","exp_month","exp_year","address_country"]},{"title":"Bank Account","description":"A bank account to take payment from. Must be able to make payments in the currency specified in the payment.","type":"object","properties":{"object":{"const":"bank_account","type":"string"},"name":{"type":"string"},"number":{"type":"string","description":"The account number for the bank account, in string form. Must be a current account."},"sort_code":{"type":"string","description":"The sort code for the bank account, in string form. Must be a six-digit number."},"account_type":{"enum":["individual","company"],"type":"string","description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"The type of entity that holds the account. This can be either "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"individual"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" or "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"company"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"."},"children":[]}]}]}]},"bank_name":{"type":"string","description":"The name of the bank associated with the routing number.","examples":["Starling Bank"]},"country":{"type":"string","description":"Two-letter country code (ISO 3166-1 alpha-2)."}},"required":["name","number","account_type","bank_name","country"]}]},"status":{"description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"The status of the payment, one of "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"pending"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":", "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"succeeded"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":", or "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"failed"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"."},"children":[]}]}]}],"type":"string","enum":["pending","succeeded","failed"],"readOnly":true}}}},"components/schemas/Links-Booking":{"id":"components/schemas/Links-Booking","kind":"json-schema","title":"Links-Booking","data":{"type":"object","properties":{"booking":{"type":"string","format":"uri","examples":["https://api.example.com/bookings/1725ff48-ab45-4bb5-9d02-88745177dedb"]}}}},"schema_124":{"kind":"json-schema","data":{"allOf":[{"$ref":"#/components/schemas/Wrapper-Collection"},{"properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/Station"}}}},{"properties":{"links":{"allOf":[{"$ref":"#/components/schemas/Links-Self"},{"$ref":"#/components/schemas/Links-Pagination"}]}}}]},"id":"schema_124"},"schema_125":{"kind":"json-schema","data":{"allOf":[{"$ref":"#/components/schemas/Wrapper-Collection"},{"properties":{"data":{"type":"array","xml":{"name":"stations","wrapped":true},"items":{"$ref":"#/components/schemas/Station"}}}},{"properties":{"links":{"allOf":[{"$ref":"#/components/schemas/Links-Self"},{"$ref":"#/components/schemas/Links-Pagination"}]}}}]},"id":"schema_125"},"schema_126":{"kind":"json-schema","data":{"type":"object","properties":{"RateLimit":{"type":"string","examples":["limit=10, remaining=0, reset=10"],"description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"The RateLimit header communicates quota policies. It contains a "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"limit"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" to"},"children":[]},{"$$mdtype":"Node","type":"softbreak","inline":true,"attributes":{},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"convey the expiring limit, "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"remaining"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" to convey the remaining quota units,"},"children":[]},{"$$mdtype":"Node","type":"softbreak","inline":true,"attributes":{},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"and "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"reset"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" to convey the time window reset time."},"children":[]}]}]}]}}},"id":"schema_126"},"schema_127":{"kind":"json-schema","data":{"type":"object","properties":{"RateLimit":{"type":"string","examples":["limit=10, remaining=0, reset=10"],"description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"The RateLimit header communicates quota policies. It contains a "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"limit"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" to"},"children":[]},{"$$mdtype":"Node","type":"softbreak","inline":true,"attributes":{},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"convey the expiring limit, "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"remaining"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" to convey the remaining quota units,"},"children":[]},{"$$mdtype":"Node","type":"softbreak","inline":true,"attributes":{},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"and "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"reset"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" to convey the time window reset time."},"children":[]}]}]}]},"Retry-After":{"type":"string","description":"The Retry-After header indicates how long the user agent should wait before making a follow-up request. \nThe value is in seconds and can be an integer or a date in the future. \nIf the value is an integer, it indicates the number of seconds to wait. \nIf the value is a date, it indicates the time at which the user agent should make a follow-up request. \n","examples":{"integer":{"summary":"Retry after 120 seconds","value":"120"},"date":{"summary":"Retry after the specified date","value":"Fri, 31 Dec 2021 23:59:59 GMT"}}}}},"id":"schema_127"},"schema_128":{"kind":"json-schema","data":{"type":"string","format":"uuid"},"id":"schema_128"},"schema_129":{"kind":"json-schema","data":{"type":"string","format":"date-time"},"id":"schema_129"},"schema_130":{"kind":"json-schema","data":{"type":"boolean","default":false},"id":"schema_130"},"schema_131":{"kind":"json-schema","data":{"allOf":[{"$ref":"#/components/schemas/Wrapper-Collection"},{"properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/Trip"}}}},{"properties":{"links":{"allOf":[{"$ref":"#/components/schemas/Links-Self"},{"$ref":"#/components/schemas/Links-Pagination"}]}}}]},"id":"schema_131"},"schema_132":{"kind":"json-schema","data":{"allOf":[{"$ref":"#/components/schemas/Wrapper-Collection"},{"properties":{"data":{"type":"array","xml":{"name":"trips","wrapped":true},"items":{"$ref":"#/components/schemas/Trip"}}}},{"properties":{"links":{"allOf":[{"$ref":"#/components/schemas/Links-Self"},{"$ref":"#/components/schemas/Links-Pagination"}]}}}]},"id":"schema_132"},"schema_133":{"kind":"json-schema","data":{"allOf":[{"$ref":"#/components/schemas/Wrapper-Collection"},{"properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/Booking"}}}},{"properties":{"links":{"allOf":[{"$ref":"#/components/schemas/Links-Self"},{"$ref":"#/components/schemas/Links-Pagination"}]}}}]},"id":"schema_133"},"schema_134":{"kind":"json-schema","data":{"allOf":[{"$ref":"#/components/schemas/Wrapper-Collection"},{"properties":{"data":{"type":"array","xml":{"name":"bookings","wrapped":true},"items":{"$ref":"#/components/schemas/Booking"}}}},{"properties":{"links":{"allOf":[{"$ref":"#/components/schemas/Links-Self"},{"$ref":"#/components/schemas/Links-Pagination"}]}}}]},"id":"schema_134"},"schema_135":{"kind":"json-schema","data":{"allOf":[{"$ref":"#/components/schemas/Booking"},{"properties":{"links":{"$ref":"#/components/schemas/Links-Self"}}}]},"id":"schema_135"},"schema_136":{"kind":"json-schema","data":{"allOf":[{"$ref":"#/components/schemas/Booking"},{"properties":{"links":{"allOf":[{"$ref":"#/components/schemas/Links-Self"},{"$ref":"#/components/schemas/Links-Pagination"}]}}}]},"id":"schema_136"},"schema_137":{"kind":"json-schema","data":{"allOf":[{"$ref":"#/components/schemas/BookingPayment"},{"properties":{"links":{"$ref":"#/components/schemas/Links-Booking"}}}]},"id":"schema_137"}},"exampleStore":{"paths/~1stations/get/responses/200/content/application~1json/example":{"value":{"data":[{"id":"efdbb9d1-02c2-4bc3-afb7-6788d8782b1e","name":"Berlin Hauptbahnhof","address":"Invalidenstraße 10557 Berlin, Germany","country_code":"DE","timezone":"Europe/Berlin"},{"id":"b2e783e1-c824-4d63-b37a-d8d698862f1d","name":"Paris Gare du Nord","address":"18 Rue de Dunkerque 75010 Paris, France","country_code":"FR","timezone":"Europe/Paris"}],"links":{"self":"https://api.example.com/stations&page=2","next":"https://api.example.com/stations?page=3","prev":"https://api.example.com/stations?page=1"}},"id":"paths/~1stations/get/responses/200/content/application~1json/example"},"paths/~1stations/get/responses/400/content/application~1problem+json/example":{"value":{"type":"https://example.com/errors/bad-request","title":"Bad Request","status":400,"detail":"The request is invalid or missing required parameters."},"id":"paths/~1stations/get/responses/400/content/application~1problem+json/example"},"paths/~1stations/get/responses/400/content/application~1problem+xml/example":{"value":{"type":"https://example.com/errors/bad-request","title":"Bad Request","status":400,"detail":"The request is invalid or missing required parameters."},"id":"paths/~1stations/get/responses/400/content/application~1problem+xml/example"},"paths/~1stations/get/responses/401/content/application~1problem+json/example":{"value":{"type":"https://example.com/errors/unauthorized","title":"Unauthorized","status":401,"detail":"You do not have the necessary permissions."},"id":"paths/~1stations/get/responses/401/content/application~1problem+json/example"},"paths/~1stations/get/responses/401/content/application~1problem+xml/example":{"value":{"type":"https://example.com/errors/unauthorized","title":"Unauthorized","status":401,"detail":"You do not have the necessary permissions."},"id":"paths/~1stations/get/responses/401/content/application~1problem+xml/example"},"paths/~1stations/get/responses/403/content/application~1problem+json/example":{"value":{"type":"https://example.com/errors/forbidden","title":"Forbidden","status":403,"detail":"Access is forbidden with the provided credentials."},"id":"paths/~1stations/get/responses/403/content/application~1problem+json/example"},"paths/~1stations/get/responses/403/content/application~1problem+xml/example":{"value":{"type":"https://example.com/errors/forbidden","title":"Forbidden","status":403,"detail":"Access is forbidden with the provided credentials."},"id":"paths/~1stations/get/responses/403/content/application~1problem+xml/example"},"paths/~1stations/get/responses/429/content/application~1problem+json/example":{"value":{"type":"https://example.com/errors/too-many-requests","title":"Too Many Requests","status":429,"detail":"You have exceeded the rate limit."},"id":"paths/~1stations/get/responses/429/content/application~1problem+json/example"},"paths/~1stations/get/responses/429/content/application~1problem+xml/example":{"value":{"type":"https://example.com/errors/too-many-requests","title":"Too Many Requests","status":429,"detail":"You have exceeded the rate limit."},"id":"paths/~1stations/get/responses/429/content/application~1problem+xml/example"},"paths/~1stations/get/responses/500/content/application~1problem+json/example":{"value":{"type":"https://example.com/errors/internal-server-error","title":"Internal Server Error","status":500,"detail":"An unexpected error occurred."},"id":"paths/~1stations/get/responses/500/content/application~1problem+json/example"},"paths/~1stations/get/responses/500/content/application~1problem+xml/example":{"value":{"type":"https://example.com/errors/internal-server-error","title":"Internal Server Error","status":500,"detail":"An unexpected error occurred."},"id":"paths/~1stations/get/responses/500/content/application~1problem+xml/example"},"paths/~1trips/get/responses/200/content/application~1json/example":{"value":{"data":[{"id":"ea399ba1-6d95-433f-92d1-83f67b775594","origin":"efdbb9d1-02c2-4bc3-afb7-6788d8782b1e","destination":"b2e783e1-c824-4d63-b37a-d8d698862f1d","departure_time":"2024-02-01T10:00:00Z","arrival_time":"2024-02-01T16:00:00Z","price":50,"operator":"Deutsche Bahn","bicycles_allowed":true,"dogs_allowed":true},{"id":"4d67459c-af07-40bb-bb12-178dbb88e09f","origin":"b2e783e1-c824-4d63-b37a-d8d698862f1d","destination":"efdbb9d1-02c2-4bc3-afb7-6788d8782b1e","departure_time":"2024-02-01T12:00:00Z","arrival_time":"2024-02-01T18:00:00Z","price":50,"operator":"SNCF","bicycles_allowed":true,"dogs_allowed":true}],"links":{"self":"https://api.example.com/trips?origin=efdbb9d1-02c2-4bc3-afb7-6788d8782b1e&destination=b2e783e1-c824-4d63-b37a-d8d698862f1d&date=2024-02-01","next":"https://api.example.com/trips?origin=efdbb9d1-02c2-4bc3-afb7-6788d8782b1e&destination=b2e783e1-c824-4d63-b37a-d8d698862f1d&date=2024-02-01&page=2"}},"id":"paths/~1trips/get/responses/200/content/application~1json/example"},"paths/~1trips/get/responses/400/content/application~1problem+json/example":{"value":{"type":"https://example.com/errors/bad-request","title":"Bad Request","status":400,"detail":"The request is invalid or missing required parameters."},"id":"paths/~1trips/get/responses/400/content/application~1problem+json/example"},"paths/~1trips/get/responses/400/content/application~1problem+xml/example":{"value":{"type":"https://example.com/errors/bad-request","title":"Bad Request","status":400,"detail":"The request is invalid or missing required parameters."},"id":"paths/~1trips/get/responses/400/content/application~1problem+xml/example"},"paths/~1trips/get/responses/401/content/application~1problem+json/example":{"value":{"type":"https://example.com/errors/unauthorized","title":"Unauthorized","status":401,"detail":"You do not have the necessary permissions."},"id":"paths/~1trips/get/responses/401/content/application~1problem+json/example"},"paths/~1trips/get/responses/401/content/application~1problem+xml/example":{"value":{"type":"https://example.com/errors/unauthorized","title":"Unauthorized","status":401,"detail":"You do not have the necessary permissions."},"id":"paths/~1trips/get/responses/401/content/application~1problem+xml/example"},"paths/~1trips/get/responses/403/content/application~1problem+json/example":{"value":{"type":"https://example.com/errors/forbidden","title":"Forbidden","status":403,"detail":"Access is forbidden with the provided credentials."},"id":"paths/~1trips/get/responses/403/content/application~1problem+json/example"},"paths/~1trips/get/responses/403/content/application~1problem+xml/example":{"value":{"type":"https://example.com/errors/forbidden","title":"Forbidden","status":403,"detail":"Access is forbidden with the provided credentials."},"id":"paths/~1trips/get/responses/403/content/application~1problem+xml/example"},"paths/~1trips/get/responses/429/content/application~1problem+json/example":{"value":{"type":"https://example.com/errors/too-many-requests","title":"Too Many Requests","status":429,"detail":"You have exceeded the rate limit."},"id":"paths/~1trips/get/responses/429/content/application~1problem+json/example"},"paths/~1trips/get/responses/429/content/application~1problem+xml/example":{"value":{"type":"https://example.com/errors/too-many-requests","title":"Too Many Requests","status":429,"detail":"You have exceeded the rate limit."},"id":"paths/~1trips/get/responses/429/content/application~1problem+xml/example"},"paths/~1trips/get/responses/500/content/application~1problem+json/example":{"value":{"type":"https://example.com/errors/internal-server-error","title":"Internal Server Error","status":500,"detail":"An unexpected error occurred."},"id":"paths/~1trips/get/responses/500/content/application~1problem+json/example"},"paths/~1trips/get/responses/500/content/application~1problem+xml/example":{"value":{"type":"https://example.com/errors/internal-server-error","title":"Internal Server Error","status":500,"detail":"An unexpected error occurred."},"id":"paths/~1trips/get/responses/500/content/application~1problem+xml/example"},"paths/~1bookings/get/responses/200/content/application~1json/example":{"value":{"data":[{"id":"efdbb9d1-02c2-4bc3-afb7-6788d8782b1e","trip_id":"efdbb9d1-02c2-4bc3-afb7-6788d8782b1e","passenger_name":"John Doe","has_bicycle":true,"has_dog":true},{"id":"b2e783e1-c824-4d63-b37a-d8d698862f1d","trip_id":"b2e783e1-c824-4d63-b37a-d8d698862f1d","passenger_name":"Jane Smith","has_bicycle":false,"has_dog":false}],"links":{"self":"https://api.example.com/bookings","next":"https://api.example.com/bookings?page=2"}},"id":"paths/~1bookings/get/responses/200/content/application~1json/example"},"paths/~1bookings/get/responses/400/content/application~1problem+json/example":{"value":{"type":"https://example.com/errors/bad-request","title":"Bad Request","status":400,"detail":"The request is invalid or missing required parameters."},"id":"paths/~1bookings/get/responses/400/content/application~1problem+json/example"},"paths/~1bookings/get/responses/400/content/application~1problem+xml/example":{"value":{"type":"https://example.com/errors/bad-request","title":"Bad Request","status":400,"detail":"The request is invalid or missing required parameters."},"id":"paths/~1bookings/get/responses/400/content/application~1problem+xml/example"},"paths/~1bookings/get/responses/401/content/application~1problem+json/example":{"value":{"type":"https://example.com/errors/unauthorized","title":"Unauthorized","status":401,"detail":"You do not have the necessary permissions."},"id":"paths/~1bookings/get/responses/401/content/application~1problem+json/example"},"paths/~1bookings/get/responses/401/content/application~1problem+xml/example":{"value":{"type":"https://example.com/errors/unauthorized","title":"Unauthorized","status":401,"detail":"You do not have the necessary permissions."},"id":"paths/~1bookings/get/responses/401/content/application~1problem+xml/example"},"paths/~1bookings/get/responses/403/content/application~1problem+json/example":{"value":{"type":"https://example.com/errors/forbidden","title":"Forbidden","status":403,"detail":"Access is forbidden with the provided credentials."},"id":"paths/~1bookings/get/responses/403/content/application~1problem+json/example"},"paths/~1bookings/get/responses/403/content/application~1problem+xml/example":{"value":{"type":"https://example.com/errors/forbidden","title":"Forbidden","status":403,"detail":"Access is forbidden with the provided credentials."},"id":"paths/~1bookings/get/responses/403/content/application~1problem+xml/example"},"paths/~1bookings/get/responses/429/content/application~1problem+json/example":{"value":{"type":"https://example.com/errors/too-many-requests","title":"Too Many Requests","status":429,"detail":"You have exceeded the rate limit."},"id":"paths/~1bookings/get/responses/429/content/application~1problem+json/example"},"paths/~1bookings/get/responses/429/content/application~1problem+xml/example":{"value":{"type":"https://example.com/errors/too-many-requests","title":"Too Many Requests","status":429,"detail":"You have exceeded the rate limit."},"id":"paths/~1bookings/get/responses/429/content/application~1problem+xml/example"},"paths/~1bookings/get/responses/500/content/application~1problem+json/example":{"value":{"type":"https://example.com/errors/internal-server-error","title":"Internal Server Error","status":500,"detail":"An unexpected error occurred."},"id":"paths/~1bookings/get/responses/500/content/application~1problem+json/example"},"paths/~1bookings/get/responses/500/content/application~1problem+xml/example":{"value":{"type":"https://example.com/errors/internal-server-error","title":"Internal Server Error","status":500,"detail":"An unexpected error occurred."},"id":"paths/~1bookings/get/responses/500/content/application~1problem+xml/example"},"paths/~1bookings/post/responses/201/content/application~1json/example":{"value":{"id":"efdbb9d1-02c2-4bc3-afb7-6788d8782b1e","trip_id":"efdbb9d1-02c2-4bc3-afb7-6788d8782b1e","passenger_name":"John Doe","has_bicycle":true,"has_dog":true,"links":{"self":"https://api.example.com/bookings/efdbb9d1-02c2-4bc3-afb7-6788d8782b1e"}},"id":"paths/~1bookings/post/responses/201/content/application~1json/example"},"paths/~1bookings/post/responses/400/content/application~1problem+json/example":{"value":{"type":"https://example.com/errors/bad-request","title":"Bad Request","status":400,"detail":"The request is invalid or missing required parameters."},"id":"paths/~1bookings/post/responses/400/content/application~1problem+json/example"},"paths/~1bookings/post/responses/400/content/application~1problem+xml/example":{"value":{"type":"https://example.com/errors/bad-request","title":"Bad Request","status":400,"detail":"The request is invalid or missing required parameters."},"id":"paths/~1bookings/post/responses/400/content/application~1problem+xml/example"},"paths/~1bookings/post/responses/401/content/application~1problem+json/example":{"value":{"type":"https://example.com/errors/unauthorized","title":"Unauthorized","status":401,"detail":"You do not have the necessary permissions."},"id":"paths/~1bookings/post/responses/401/content/application~1problem+json/example"},"paths/~1bookings/post/responses/401/content/application~1problem+xml/example":{"value":{"type":"https://example.com/errors/unauthorized","title":"Unauthorized","status":401,"detail":"You do not have the necessary permissions."},"id":"paths/~1bookings/post/responses/401/content/application~1problem+xml/example"},"paths/~1bookings/post/responses/404/content/application~1problem+json/example":{"value":{"type":"https://example.com/errors/not-found","title":"Not Found","status":404,"detail":"The requested resource was not found."},"id":"paths/~1bookings/post/responses/404/content/application~1problem+json/example"},"paths/~1bookings/post/responses/404/content/application~1problem+xml/example":{"value":{"type":"https://example.com/errors/not-found","title":"Not Found","status":404,"detail":"The requested resource was not found."},"id":"paths/~1bookings/post/responses/404/content/application~1problem+xml/example"},"paths/~1bookings/post/responses/409/content/application~1problem+json/example":{"value":{"type":"https://example.com/errors/conflict","title":"Conflict","status":409,"detail":"There is a conflict with an existing resource."},"id":"paths/~1bookings/post/responses/409/content/application~1problem+json/example"},"paths/~1bookings/post/responses/409/content/application~1problem+xml/example":{"value":{"type":"https://example.com/errors/conflict","title":"Conflict","status":409,"detail":"There is a conflict with an existing resource."},"id":"paths/~1bookings/post/responses/409/content/application~1problem+xml/example"},"paths/~1bookings/post/responses/429/content/application~1problem+json/example":{"value":{"type":"https://example.com/errors/too-many-requests","title":"Too Many Requests","status":429,"detail":"You have exceeded the rate limit."},"id":"paths/~1bookings/post/responses/429/content/application~1problem+json/example"},"paths/~1bookings/post/responses/429/content/application~1problem+xml/example":{"value":{"type":"https://example.com/errors/too-many-requests","title":"Too Many Requests","status":429,"detail":"You have exceeded the rate limit."},"id":"paths/~1bookings/post/responses/429/content/application~1problem+xml/example"},"paths/~1bookings/post/responses/500/content/application~1problem+json/example":{"value":{"type":"https://example.com/errors/internal-server-error","title":"Internal Server Error","status":500,"detail":"An unexpected error occurred."},"id":"paths/~1bookings/post/responses/500/content/application~1problem+json/example"},"paths/~1bookings/post/responses/500/content/application~1problem+xml/example":{"value":{"type":"https://example.com/errors/internal-server-error","title":"Internal Server Error","status":500,"detail":"An unexpected error occurred."},"id":"paths/~1bookings/post/responses/500/content/application~1problem+xml/example"},"paths/~1bookings~1{bookingId}/get/responses/200/content/application~1json/example":{"value":{"id":"efdbb9d1-02c2-4bc3-afb7-6788d8782b1e","trip_id":"efdbb9d1-02c2-4bc3-afb7-6788d8782b1e","passenger_name":"John Doe","has_bicycle":true,"has_dog":true,"links":{"self":"https://api.example.com/bookings/1725ff48-ab45-4bb5-9d02-88745177dedb"}},"id":"paths/~1bookings~1{bookingId}/get/responses/200/content/application~1json/example"},"paths/~1bookings~1{bookingId}/get/responses/400/content/application~1problem+json/example":{"value":{"type":"https://example.com/errors/bad-request","title":"Bad Request","status":400,"detail":"The request is invalid or missing required parameters."},"id":"paths/~1bookings~1{bookingId}/get/responses/400/content/application~1problem+json/example"},"paths/~1bookings~1{bookingId}/get/responses/400/content/application~1problem+xml/example":{"value":{"type":"https://example.com/errors/bad-request","title":"Bad Request","status":400,"detail":"The request is invalid or missing required parameters."},"id":"paths/~1bookings~1{bookingId}/get/responses/400/content/application~1problem+xml/example"},"paths/~1bookings~1{bookingId}/get/responses/401/content/application~1problem+json/example":{"value":{"type":"https://example.com/errors/unauthorized","title":"Unauthorized","status":401,"detail":"You do not have the necessary permissions."},"id":"paths/~1bookings~1{bookingId}/get/responses/401/content/application~1problem+json/example"},"paths/~1bookings~1{bookingId}/get/responses/401/content/application~1problem+xml/example":{"value":{"type":"https://example.com/errors/unauthorized","title":"Unauthorized","status":401,"detail":"You do not have the necessary permissions."},"id":"paths/~1bookings~1{bookingId}/get/responses/401/content/application~1problem+xml/example"},"paths/~1bookings~1{bookingId}/get/responses/403/content/application~1problem+json/example":{"value":{"type":"https://example.com/errors/forbidden","title":"Forbidden","status":403,"detail":"Access is forbidden with the provided credentials."},"id":"paths/~1bookings~1{bookingId}/get/responses/403/content/application~1problem+json/example"},"paths/~1bookings~1{bookingId}/get/responses/403/content/application~1problem+xml/example":{"value":{"type":"https://example.com/errors/forbidden","title":"Forbidden","status":403,"detail":"Access is forbidden with the provided credentials."},"id":"paths/~1bookings~1{bookingId}/get/responses/403/content/application~1problem+xml/example"},"paths/~1bookings~1{bookingId}/get/responses/404/content/application~1problem+json/example":{"value":{"type":"https://example.com/errors/not-found","title":"Not Found","status":404,"detail":"The requested resource was not found."},"id":"paths/~1bookings~1{bookingId}/get/responses/404/content/application~1problem+json/example"},"paths/~1bookings~1{bookingId}/get/responses/404/content/application~1problem+xml/example":{"value":{"type":"https://example.com/errors/not-found","title":"Not Found","status":404,"detail":"The requested resource was not found."},"id":"paths/~1bookings~1{bookingId}/get/responses/404/content/application~1problem+xml/example"},"paths/~1bookings~1{bookingId}/get/responses/429/content/application~1problem+json/example":{"value":{"type":"https://example.com/errors/too-many-requests","title":"Too Many Requests","status":429,"detail":"You have exceeded the rate limit."},"id":"paths/~1bookings~1{bookingId}/get/responses/429/content/application~1problem+json/example"},"paths/~1bookings~1{bookingId}/get/responses/429/content/application~1problem+xml/example":{"value":{"type":"https://example.com/errors/too-many-requests","title":"Too Many Requests","status":429,"detail":"You have exceeded the rate limit."},"id":"paths/~1bookings~1{bookingId}/get/responses/429/content/application~1problem+xml/example"},"paths/~1bookings~1{bookingId}/get/responses/500/content/application~1problem+json/example":{"value":{"type":"https://example.com/errors/internal-server-error","title":"Internal Server Error","status":500,"detail":"An unexpected error occurred."},"id":"paths/~1bookings~1{bookingId}/get/responses/500/content/application~1problem+json/example"},"paths/~1bookings~1{bookingId}/get/responses/500/content/application~1problem+xml/example":{"value":{"type":"https://example.com/errors/internal-server-error","title":"Internal Server Error","status":500,"detail":"An unexpected error occurred."},"id":"paths/~1bookings~1{bookingId}/get/responses/500/content/application~1problem+xml/example"},"paths/~1bookings~1{bookingId}/delete/responses/400/content/application~1problem+json/example":{"value":{"type":"https://example.com/errors/bad-request","title":"Bad Request","status":400,"detail":"The request is invalid or missing required parameters."},"id":"paths/~1bookings~1{bookingId}/delete/responses/400/content/application~1problem+json/example"},"paths/~1bookings~1{bookingId}/delete/responses/400/content/application~1problem+xml/example":{"value":{"type":"https://example.com/errors/bad-request","title":"Bad Request","status":400,"detail":"The request is invalid or missing required parameters."},"id":"paths/~1bookings~1{bookingId}/delete/responses/400/content/application~1problem+xml/example"},"paths/~1bookings~1{bookingId}/delete/responses/401/content/application~1problem+json/example":{"value":{"type":"https://example.com/errors/unauthorized","title":"Unauthorized","status":401,"detail":"You do not have the necessary permissions."},"id":"paths/~1bookings~1{bookingId}/delete/responses/401/content/application~1problem+json/example"},"paths/~1bookings~1{bookingId}/delete/responses/401/content/application~1problem+xml/example":{"value":{"type":"https://example.com/errors/unauthorized","title":"Unauthorized","status":401,"detail":"You do not have the necessary permissions."},"id":"paths/~1bookings~1{bookingId}/delete/responses/401/content/application~1problem+xml/example"},"paths/~1bookings~1{bookingId}/delete/responses/403/content/application~1problem+json/example":{"value":{"type":"https://example.com/errors/forbidden","title":"Forbidden","status":403,"detail":"Access is forbidden with the provided credentials."},"id":"paths/~1bookings~1{bookingId}/delete/responses/403/content/application~1problem+json/example"},"paths/~1bookings~1{bookingId}/delete/responses/403/content/application~1problem+xml/example":{"value":{"type":"https://example.com/errors/forbidden","title":"Forbidden","status":403,"detail":"Access is forbidden with the provided credentials."},"id":"paths/~1bookings~1{bookingId}/delete/responses/403/content/application~1problem+xml/example"},"paths/~1bookings~1{bookingId}/delete/responses/404/content/application~1problem+json/example":{"value":{"type":"https://example.com/errors/not-found","title":"Not Found","status":404,"detail":"The requested resource was not found."},"id":"paths/~1bookings~1{bookingId}/delete/responses/404/content/application~1problem+json/example"},"paths/~1bookings~1{bookingId}/delete/responses/404/content/application~1problem+xml/example":{"value":{"type":"https://example.com/errors/not-found","title":"Not Found","status":404,"detail":"The requested resource was not found."},"id":"paths/~1bookings~1{bookingId}/delete/responses/404/content/application~1problem+xml/example"},"paths/~1bookings~1{bookingId}/delete/responses/429/content/application~1problem+json/example":{"value":{"type":"https://example.com/errors/too-many-requests","title":"Too Many Requests","status":429,"detail":"You have exceeded the rate limit."},"id":"paths/~1bookings~1{bookingId}/delete/responses/429/content/application~1problem+json/example"},"paths/~1bookings~1{bookingId}/delete/responses/429/content/application~1problem+xml/example":{"value":{"type":"https://example.com/errors/too-many-requests","title":"Too Many Requests","status":429,"detail":"You have exceeded the rate limit."},"id":"paths/~1bookings~1{bookingId}/delete/responses/429/content/application~1problem+xml/example"},"paths/~1bookings~1{bookingId}/delete/responses/500/content/application~1problem+json/example":{"value":{"type":"https://example.com/errors/internal-server-error","title":"Internal Server Error","status":500,"detail":"An unexpected error occurred."},"id":"paths/~1bookings~1{bookingId}/delete/responses/500/content/application~1problem+json/example"},"paths/~1bookings~1{bookingId}/delete/responses/500/content/application~1problem+xml/example":{"value":{"type":"https://example.com/errors/internal-server-error","title":"Internal Server Error","status":500,"detail":"An unexpected error occurred."},"id":"paths/~1bookings~1{bookingId}/delete/responses/500/content/application~1problem+xml/example"},"paths/newBooking/post/requestBody/content/application~1json/example":{"value":{"id":"efdbb9d1-02c2-4bc3-afb7-6788d8782b1e","trip_id":"efdbb9d1-02c2-4bc3-afb7-6788d8782b1e","passenger_name":"John Doe","has_bicycle":true,"has_dog":true,"links":{"self":"https://api.example.com/bookings/1725ff48-ab45-4bb5-9d02-88745177dedb"}},"id":"paths/newBooking/post/requestBody/content/application~1json/example"},"paths/~1bookings~1{bookingId}~1payment/post/requestBody/content/application~1json/examples/Card":{"value":{"amount":49.99,"currency":"gbp","source":{"object":"card","name":"J. Doe","number":"4242424242424242","cvc":123,"exp_month":12,"exp_year":2025,"address_line1":"123 Fake Street","address_line2":"4th Floor","address_city":"London","address_country":"gb","address_post_code":"N12 9XX"}},"key":"Card","summary":"Card Payment","id":"paths/~1bookings~1{bookingId}~1payment/post/requestBody/content/application~1json/examples/Card"},"paths/~1bookings~1{bookingId}~1payment/post/requestBody/content/application~1json/examples/Bank":{"value":{"amount":100.5,"currency":"gbp","source":{"object":"bank_account","name":"J. Doe","number":"00012345","sort_code":"000123","account_type":"individual","bank_name":"Starling Bank","country":"gb"}},"key":"Bank","summary":"Bank Account Payment","id":"paths/~1bookings~1{bookingId}~1payment/post/requestBody/content/application~1json/examples/Bank"},"paths/~1bookings~1{bookingId}~1payment/post/responses/200/content/application~1json/examples/Card":{"value":{"id":"2e3b4f5a-6b7c-8d9e-0f1a-2b3c4d5e6f7a","amount":49.99,"currency":"gbp","source":{"object":"card","name":"J. Doe","number":"************4242","cvc":123,"exp_month":12,"exp_year":2025,"address_country":"gb","address_post_code":"N12 9XX"},"status":"succeeded","links":{"booking":"https://api.example.com/bookings/1725ff48-ab45-4bb5-9d02-88745177dedb/payment"}},"key":"Card","summary":"Card Payment","id":"paths/~1bookings~1{bookingId}~1payment/post/responses/200/content/application~1json/examples/Card"},"paths/~1bookings~1{bookingId}~1payment/post/responses/200/content/application~1json/examples/Bank":{"value":{"id":"2e3b4f5a-6b7c-8d9e-0f1a-2b3c4d5e6f7a","amount":100.5,"currency":"gbp","source":{"object":"bank_account","name":"J. Doe","account_type":"individual","number":"*********2345","sort_code":"000123","bank_name":"Starling Bank","country":"gb"},"status":"succeeded","links":{"booking":"https://api.example.com/bookings/1725ff48-ab45-4bb5-9d02-88745177dedb"}},"key":"Bank","summary":"Bank Account Payment","id":"paths/~1bookings~1{bookingId}~1payment/post/responses/200/content/application~1json/examples/Bank"},"paths/~1bookings~1{bookingId}~1payment/post/responses/400/content/application~1problem+json/example":{"value":{"type":"https://example.com/errors/bad-request","title":"Bad Request","status":400,"detail":"The request is invalid or missing required parameters."},"id":"paths/~1bookings~1{bookingId}~1payment/post/responses/400/content/application~1problem+json/example"},"paths/~1bookings~1{bookingId}~1payment/post/responses/400/content/application~1problem+xml/example":{"value":{"type":"https://example.com/errors/bad-request","title":"Bad Request","status":400,"detail":"The request is invalid or missing required parameters."},"id":"paths/~1bookings~1{bookingId}~1payment/post/responses/400/content/application~1problem+xml/example"},"paths/~1bookings~1{bookingId}~1payment/post/responses/401/content/application~1problem+json/example":{"value":{"type":"https://example.com/errors/unauthorized","title":"Unauthorized","status":401,"detail":"You do not have the necessary permissions."},"id":"paths/~1bookings~1{bookingId}~1payment/post/responses/401/content/application~1problem+json/example"},"paths/~1bookings~1{bookingId}~1payment/post/responses/401/content/application~1problem+xml/example":{"value":{"type":"https://example.com/errors/unauthorized","title":"Unauthorized","status":401,"detail":"You do not have the necessary permissions."},"id":"paths/~1bookings~1{bookingId}~1payment/post/responses/401/content/application~1problem+xml/example"},"paths/~1bookings~1{bookingId}~1payment/post/responses/403/content/application~1problem+json/example":{"value":{"type":"https://example.com/errors/forbidden","title":"Forbidden","status":403,"detail":"Access is forbidden with the provided credentials."},"id":"paths/~1bookings~1{bookingId}~1payment/post/responses/403/content/application~1problem+json/example"},"paths/~1bookings~1{bookingId}~1payment/post/responses/403/content/application~1problem+xml/example":{"value":{"type":"https://example.com/errors/forbidden","title":"Forbidden","status":403,"detail":"Access is forbidden with the provided credentials."},"id":"paths/~1bookings~1{bookingId}~1payment/post/responses/403/content/application~1problem+xml/example"},"paths/~1bookings~1{bookingId}~1payment/post/responses/429/content/application~1problem+json/example":{"value":{"type":"https://example.com/errors/too-many-requests","title":"Too Many Requests","status":429,"detail":"You have exceeded the rate limit."},"id":"paths/~1bookings~1{bookingId}~1payment/post/responses/429/content/application~1problem+json/example"},"paths/~1bookings~1{bookingId}~1payment/post/responses/429/content/application~1problem+xml/example":{"value":{"type":"https://example.com/errors/too-many-requests","title":"Too Many Requests","status":429,"detail":"You have exceeded the rate limit."},"id":"paths/~1bookings~1{bookingId}~1payment/post/responses/429/content/application~1problem+xml/example"},"paths/~1bookings~1{bookingId}~1payment/post/responses/500/content/application~1problem+json/example":{"value":{"type":"https://example.com/errors/internal-server-error","title":"Internal Server Error","status":500,"detail":"An unexpected error occurred."},"id":"paths/~1bookings~1{bookingId}~1payment/post/responses/500/content/application~1problem+json/example"},"paths/~1bookings~1{bookingId}~1payment/post/responses/500/content/application~1problem+xml/example":{"value":{"type":"https://example.com/errors/internal-server-error","title":"Internal Server Error","status":500,"detail":"An unexpected error occurred."},"id":"paths/~1bookings~1{bookingId}~1payment/post/responses/500/content/application~1problem+xml/example"}},"securitySchemeStore":{"OAuth2":{"id":"OAuth2","type":"oauth2","description":"OAuth 2.0 authorization code following RFC8725 best practices.","flows":{"authorizationCode":{"authorizationUrl":"https://example.com/oauth/authorize","tokenUrl":"https://example.com/oauth/token","scopes":{"read":"Read access","write":"Write access"}}}}},"servers":[{"url":"/_mock/catalog/api-showdown/api-hub/train-travel/openapi","isMockServer":true,"description":"Mock server"},{"url":"https://api.example.com","description":"Production"}]},"options":{"hideSidebar":true,"mockServer":{"url":"/_mock/catalog/api-showdown/api-hub/train-travel/openapi","position":"first","description":"Mock server"},"disableRouter":true,"downloadUrls":[{"url":"/_bundle/catalog/api-showdown/api-hub/Train Travel/openapi.json?download"},{"url":"/_bundle/catalog/api-showdown/api-hub/Train Travel/openapi.yaml?download"}],"excludeFromSearch":false,"specType":"openapi","markdocOptions":{"tags":{},"nodes":{},"components":{}},"metadata":{"title":"Train Travel API","description":"API for finding and booking train trips across Europe.\n\nThis API was created by [Bump.sh](https://bump.sh/) for the entire OpenAPI\ncommunity, for educational and demonstrative purposes.\n"}},"baseSlug":"/catalog/api-showdown/api-hub/train-travel/openapi","routesMapping":{}}