openapi-directory
Version:
Building & bundling https://github.com/APIs-guru/openapi-directory for easy use from JS
1 lines • 4.95 kB
JSON
{"openapi":"3.0.0","info":{"contact":{"email":"Joachim.Schirrmacher@deutschebahn.com","name":"DB Systel GmbH"},"description":"This REST-API enables you to query information about travel centers in Germany.","termsOfService":"https://developer.deutschebahn.com/store/","title":"Reisezentren-API","version":"v1","x-apisguru-categories":["transport","open_data"],"x-logo":{"backgroundColor":"#FFFFFF","url":"https://pbs.twimg.com/profile_images/591140150413025280/Cjcqjl2J.png"},"x-origin":[{"format":"swagger","url":"https://developer.deutschebahn.com/store/api-docs/DBOpenData/Reisezentren/v1","version":"2.0"}],"x-providerName":"deutschebahn.com","x-serviceName":"reisezentren"},"tags":[{"name":"API"}],"paths":{"/reisezentren":{"get":{"description":"Get all station infos","parameters":[{"description":"A station name or part of it","in":"query","name":"name","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"List has been created","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TravelCenterList"}}}},"404":{"description":"No travel centers could be found matching the given name","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"416":{"description":"Filtering required - specify a name fragment of at least 3 characters","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"summary":"Get all station infos","x-auth-type":"Application & Application User","x-throttling-tier":"Unlimited"}},"/reisezentren/loc/{lat}/{lon}":{"get":{"description":"Get information about a station near a location","parameters":[{"description":"Latitude","in":"path","name":"lat","required":true,"schema":{"type":"number","format":"float"}},{"description":"Longitude","in":"path","name":"lon","required":true,"schema":{"type":"number","format":"float"}}],"responses":{"200":{"description":"A station was found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TravelCenter"}}}}},"summary":"Get information about a station near a location","x-auth-type":"Application & Application User","x-throttling-tier":"Unlimited"}},"/reisezentren/loc/{lat}/{lon}/{dist}":{"get":{"description":"Get stations in a given radius","parameters":[{"description":"Latitude","in":"path","name":"lat","required":true,"schema":{"type":"number","format":"float"}},{"description":"Longitude","in":"path","name":"lon","required":true,"schema":{"type":"number","format":"float"}},{"description":"Radius","in":"path","name":"dist","required":true,"schema":{"type":"number","format":"float"}}],"responses":{"200":{"description":"A station was found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TravelCenter"}}}}},"summary":"Get stations in a given radius","x-auth-type":"Application & Application User","x-throttling-tier":"Unlimited"}},"/reisezentren/{id}":{"get":{"description":"Get information about a specific station","parameters":[{"description":"Station id","in":"path","name":"id","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"The travel center was found","content":{"*/*":{"schema":{"$ref":"#/components/schemas/TravelCenter"}}}},"404":{"description":"No travel center found","content":{"*/*":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"summary":"Get information about a specific station","x-auth-type":"Application & Application User","x-throttling-tier":"Unlimited"}}},"servers":[{"url":"https://api.deutschebahn.com/reisezentren/v1"},{"url":"http://api.deutschebahn.com/reisezentren/v1"}],"components":{"schemas":{"Error":{"properties":{"code":{"format":"int32","type":"integer"},"message":{"type":"string"}},"type":"object"},"OpeningTime":{"items":{"type":"string"},"type":"array"},"TravelCenter":{"properties":{"address":{"description":"Street address of travel center","type":"string"},"city":{"description":"City of travel center","type":"string"},"id":{"description":"Identifying number","type":"integer"},"lat":{"description":"Latitude of travel center location","type":"number"},"lon":{"description":"Longitude of travel center location","type":"number"},"name":{"description":"Name of travel center","type":"string"},"openingTimes":{"description":"Opening times of the travel center, ordered by week day","properties":{"fri":{"$ref":"#/components/schemas/OpeningTime"},"mon":{"$ref":"#/components/schemas/OpeningTime"},"sat":{"$ref":"#/components/schemas/OpeningTime"},"sun":{"$ref":"#/components/schemas/OpeningTime"},"thu":{"$ref":"#/components/schemas/OpeningTime"},"tue":{"$ref":"#/components/schemas/OpeningTime"},"wed":{"$ref":"#/components/schemas/OpeningTime"}},"type":"object"},"postCode":{"description":"Post code of travel center","type":"string"},"type":{"description":"Type of travel center","enum":["Reisezentrum","Mobility Center"],"type":"string"}},"type":"object"},"TravelCenterList":{"items":{"$ref":"#/components/schemas/TravelCenter"},"type":"array"}}}}