openapi-directory
Version:
Building & bundling https://github.com/APIs-guru/openapi-directory for easy use from JS
1 lines • 19.2 kB
JSON
{"openapi":"3.0.0","info":{"contact":{"email":"partner@flinkster.de","name":"DB Rent GmbH"},"description":"This REST-API enables you to query for private transport sharing offers provided by companies and cities in Germany, Netherland and Austria. \nYou can search for informations about the rental stations (points or areas) where you can find the rentals by utilizing the /areas/ ressource. \nWith the help of the proximity search in the /bookingproposals/ URI you can request the availabilities of the rentalobjects for spontaneous or planed usage in the future. \n\nFeel free to browse through data by setting the parameter 'providernetwork' to the value: \n 1: Search for car sharing offers provided by the Flinkster platform (http://www.flinkster.de)\n2: Finding bike rental offers from Call a Bike (http://www.callabike.de) \n\nYou can find more details in the documentation section (Unfortunately only available in german language).\n\nHave lots of fun and we are lucky to take notice of your products or getting your feedback.","termsOfService":"https://developer.deutschebahn.com/store/","title":"Flinkster_API_NG","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/Flinkster_API_NG/v1","version":"2.0"}],"x-providerName":"deutschebahn.com","x-serviceName":"flinkster"},"tags":[{"name":"areas"},{"name":"bookingproposals"},{"name":"categories"},{"name":"index"},{"name":"prices"},{"name":"providernetworks"},{"name":"providers"},{"name":"rentalobjects"}],"paths":{"/areas":{"get":{"description":"Search for areas (locations of rental objects) by criteria.","operationId":"listAreas","parameters":[{"in":"query","name":"lat","required":false,"schema":{"type":"number","format":"double"}},{"in":"query","name":"lon","required":false,"schema":{"type":"number","format":"double"}},{"in":"query","name":"radius","required":false,"schema":{"type":"integer","format":"int32"}},{"in":"query","name":"offset","required":false,"schema":{"type":"integer","format":"int32"}},{"in":"query","name":"limit","required":false,"schema":{"type":"integer","format":"int32"}},{"in":"query","name":"expand","required":false,"schema":{"type":"string"}},{"in":"query","name":"type","required":false,"schema":{"type":"string"}},{"in":"query","name":"provider","required":false,"schema":{"type":"string"}},{"in":"query","name":"providernetwork","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AreaJO"}}}},"403":{"description":"Forbidden\nIf provider is not allowed to display this area.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AreaJO"}}}},"404":{"description":"Not Found\nIf no area was found for the given UID.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AreaJO"}}}}},"summary":"List Areas by Criteria.","tags":["areas"],"x-auth-type":"Application & Application User","x-throttling-tier":"Unlimited"}},"/areas/{areaUID}":{"get":{"description":"Search for a specific area by UID.","operationId":"getArea","parameters":[{"description":"The Area UID ","in":"path","name":"areaUID","required":true,"schema":{"type":"string"}},{"description":"Expand Provider","in":"query","name":"expand","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AreaJO"}}}},"403":{"description":"Forbidden\nIf provider is not allowed to display this area.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AreaJO"}}}},"404":{"description":"Not Found\nIf no area was found for the given UID.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AreaJO"}}}}},"summary":"Get area by UID.","tags":["areas"],"x-auth-type":"Application & Application User","x-throttling-tier":"Unlimited"}},"/bookingproposals":{"get":{"description":"Here you can query all bookable Rental Objects with different Parameters (Time, Location,...)","operationId":"listBookingProposals","parameters":[{"in":"query","name":"lat","required":false,"schema":{"type":"number","format":"double"}},{"in":"query","name":"lon","required":false,"schema":{"type":"number","format":"double"}},{"in":"query","name":"radius","required":false,"schema":{"type":"integer","format":"int32"}},{"in":"query","name":"offset","required":false,"schema":{"type":"integer","format":"int32"}},{"in":"query","name":"limit","required":false,"schema":{"type":"integer","format":"int32"}},{"in":"query","name":"providernetwork","required":false,"schema":{"type":"string"}},{"in":"query","name":"begin","required":false,"schema":{"type":"string"}},{"in":"query","name":"end","required":false,"schema":{"type":"string"}},{"in":"query","name":"expand","required":false,"schema":{"type":"string"}},{"in":"query","name":"view","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RentalObjectJO"}}}},"400":{"description":"Bad Request\nOne or more parameters have invalid values.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorJO"}}}},"403":{"description":"Forbidden\nProvider is not allowed to use this interface.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorJO"}}}}},"summary":"Query for available RentalObjects of a specific view","tags":["bookingproposals"],"x-auth-type":"Application & Application User","x-throttling-tier":"Unlimited"}},"/index":{"get":{"description":"Show Service index.","operationId":"getIndex","responses":{"200":{"description":"successful operation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/JsonCollection"}}}}},"summary":"Show index.","tags":["index"],"x-auth-type":"Application & Application User","x-throttling-tier":"Unlimited"}},"/providernetworks/{providernetworkUID}/categories":{"get":{"description":"Search for categorie.","operationId":"listCategories","parameters":[{"in":"path","name":"providernetworkUID","required":true,"schema":{"type":"string"}},{"in":"query","name":"expand","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CategoryJO"}}}},"400":{"description":"Bad Request\nOne or more parameters have invalid values.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorJO"}}}},"403":{"description":"Forbidden\nProvider is not allowed to use this interface.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorJO"}}}}},"summary":"Lists all categories","tags":["categories"],"x-auth-type":"Application & Application User","x-throttling-tier":"Unlimited"}},"/providernetworks/{providernetworkUID}/categories/{categoryUID}":{"get":{"description":"Search for categorie.","operationId":"getCategory","parameters":[{"description":"Provider Network UID","in":"path","name":"providernetworkUID","required":true,"schema":{"type":"string"}},{"in":"path","name":"categoryUID","required":true,"schema":{"type":"string"}},{"in":"query","name":"expand","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CategoryJO"}}}},"400":{"description":"Bad Request\nOne or more parameters have invalid values.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorJO"}}}},"403":{"description":"Forbidden\nProvider is not allowed to use this interface.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorJO"}}}}},"summary":"Get a Category by UID","tags":["categories"],"x-auth-type":"Application & Application User","x-throttling-tier":"Unlimited"}},"/providernetworks/{providernetworkUID}/prices":{"get":{"description":"Prices of a rental object by query params. The params depend on the price determination strategy of the provider network.\n","operationId":"getPrices","parameters":[{"in":"path","name":"providernetworkUID","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RentalObjectJO"}}}},"400":{"description":"Bad Request\nOne or more parameters have invalid values.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorJO"}}}},"403":{"description":"Forbidden\nProvider is not allowed to use this interface.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorJO"}}}}},"summary":"Get information about the prices.","tags":["prices"],"x-auth-type":"Application & Application User","x-throttling-tier":"Unlimited"}},"/providernetworks/{providernetworkUID}/rentalobjects/{rentalObjectUID}":{"get":{"description":"Get information about the Rental Object.\n","operationId":"getRentalObject","parameters":[{"in":"path","name":"rentalObjectUID","required":true,"schema":{"type":"string"}},{"in":"path","name":"providernetworkUID","required":true,"schema":{"type":"string"}},{"in":"query","name":"expand","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RentalObjectJO"}}}},"400":{"description":"Bad Request\nOne or more parameters have invalid values.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorJO"}}}},"403":{"description":"Forbidden\nProvider is not allowed to use this interface.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorJO"}}}}},"summary":"Get information about the RentalObject.","tags":["rentalobjects"],"x-auth-type":"Application & Application User","x-throttling-tier":"Unlimited"}},"/providernetworks/{uid}":{"get":{"description":"Get information about the ProviderNetworkResources.\n","operationId":"getProviderNetwork","parameters":[{"in":"path","name":"uid","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RentalObjectJO"}}}},"400":{"description":"Bad Request\nOne or more parameters have invalid values.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorJO"}}}},"403":{"description":"Forbidden\nProvider is not allowed to use this interface.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorJO"}}}}},"summary":"Get information about the ProviderNetworkResources.","tags":["providernetworks"],"x-auth-type":"Application & Application User","x-throttling-tier":"Unlimited"}},"/providers/{uid}":{"get":{"description":"Get information about the ProviderResourcesCtrl.\n","operationId":"getProvider","parameters":[{"in":"path","name":"uid","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RentalObjectJO"}}}},"400":{"description":"Bad Request\nOne or more parameters have invalid values.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorJO"}}}},"403":{"description":"Forbidden\nProvider is not allowed to use this interface.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorJO"}}}}},"summary":"Get information about the ProviderResourceImpl.","tags":["providers"],"x-auth-type":"Application & Application User","x-throttling-tier":"Unlimited"}}},"servers":[{"url":"https://api.deutschebahn.com/flinkster-api-ng/v1"},{"url":"http://api.deutschebahn.com/flinkster-api-ng/v1"}],"components":{"schemas":{"AddressJO":{"properties":{"city":{"type":"string"},"district":{"type":"string"},"isoCountryCode":{"type":"string"},"number":{"type":"string"},"street":{"type":"string"},"zip":{"type":"string"}},"type":"object"},"AreaJO":{"properties":{"_links":{"items":{"$ref":"#/components/schemas/LinkJO"},"type":"array"},"address":{"$ref":"#/components/schemas/AddressJO"},"attributes":{"additionalProperties":{"type":"object"},"type":"object"},"description":{"type":"string"},"expand":{"type":"string"},"geometry":{"$ref":"#/components/schemas/GeometryJO"},"href":{"type":"string"},"name":{"type":"string"},"provider":{"$ref":"#/components/schemas/ProviderJO"},"providerAreaId":{"type":"string"},"providerNetworkIds":{"items":{"format":"int32","type":"integer"},"type":"array"},"type":{"enum":["STATION","OPERATIONAREA","PARKINGAREA","GASSTATION","UNKNOWN"],"type":"string"},"uid":{"type":"string"}},"type":"object"},"BookingProposalJO":{"properties":{"_links":{"items":{"$ref":"#/components/schemas/LinkJO"},"type":"array"},"area":{"$ref":"#/components/schemas/AreaJO"},"attributes":{"additionalProperties":{"type":"object"},"type":"object"},"description":{"type":"string"},"distance":{"format":"double","type":"number"},"expand":{"type":"string"},"href":{"type":"string"},"name":{"type":"string"},"position":{"$ref":"#/components/schemas/GeoJsonObject"},"price":{"$ref":"#/components/schemas/JsonCollectionPriceJO"},"rentalObject":{"$ref":"#/components/schemas/RentalObjectJO"},"uid":{"type":"string"}},"type":"object"},"CategoryJO":{"properties":{"_links":{"items":{"$ref":"#/components/schemas/LinkJO"},"type":"array"},"attributes":{"additionalProperties":{"type":"object"},"type":"object"},"description":{"type":"string"},"expand":{"type":"string"},"href":{"type":"string"},"name":{"type":"string"},"price":{"items":{"$ref":"#/components/schemas/PriceJO"},"type":"array"},"uid":{"type":"string"}},"type":"object"},"Crs":{"properties":{"properties":{"additionalProperties":{"type":"object"},"type":"object"},"type":{"enum":["name","link"],"type":"string"}},"type":"object"},"ErrorJO":{"properties":{"attributes":{"additionalProperties":{"type":"string"},"type":"object"},"code":{"format":"int32","type":"integer"},"level":{"enum":["INFO","WARNING","ERROR"],"type":"string"},"message":{"type":"string"},"name":{"type":"string"}},"type":"object"},"Feature":{"discriminator":{"propertyName":"type"},"properties":{"bbox":{"items":{"format":"double","type":"number"},"type":"array"},"crs":{"$ref":"#/components/schemas/Crs"},"geometry":{"$ref":"#/components/schemas/GeoJsonObject"},"id":{"type":"string"},"properties":{"additionalProperties":{"type":"object"},"type":"object"}},"type":"object"},"FeatureCollection":{"allOf":[{"$ref":"#/components/schemas/GeoJsonObject"},{"properties":{"features":{"items":{"$ref":"#/components/schemas/Feature"},"type":"array"}},"type":"object"}]},"GeoJsonObject":{"discriminator":{"propertyName":"type"},"properties":{"bbox":{"items":{"format":"double","type":"number"},"type":"array"},"crs":{"$ref":"#/components/schemas/Crs"}},"type":"object"},"GeometryJO":{"properties":{"centroid":{"$ref":"#/components/schemas/Point"},"position":{"$ref":"#/components/schemas/GeoJsonObject"}},"type":"object"},"JsonCollection":{"properties":{"_links":{"items":{"$ref":"#/components/schemas/LinkJO"},"type":"array"},"href":{"type":"string"},"items":{"items":{"$ref":"#/components/schemas/JsonObject"},"type":"array"},"limit":{"format":"int32","type":"integer"},"offset":{"format":"int32","type":"integer"},"size":{"format":"int64","type":"integer"}},"type":"object"},"JsonCollectionPriceJO":{"properties":{"_links":{"items":{"$ref":"#/components/schemas/LinkJO"},"type":"array"},"href":{"type":"string"},"items":{"items":{"$ref":"#/components/schemas/PriceJO"},"type":"array"},"limit":{"format":"int32","type":"integer"},"offset":{"format":"int32","type":"integer"},"size":{"format":"int64","type":"integer"}},"type":"object"},"JsonObject":{"properties":{"_links":{"items":{"$ref":"#/components/schemas/LinkJO"},"type":"array"},"attributes":{"additionalProperties":{"type":"object"},"type":"object"},"description":{"type":"string"},"expand":{"type":"string"},"href":{"type":"string"},"name":{"type":"string"},"uid":{"type":"string"}},"type":"object"},"LineString":{"allOf":[{"$ref":"#/components/schemas/GeoJsonObject"},{"type":"object"}]},"LinkJO":{"properties":{"href":{"type":"string"},"rel":{"type":"string"},"verb":{"type":"string"}},"type":"object"},"LngLatAlt":{"properties":{"altitude":{"format":"double","type":"number"},"latitude":{"format":"double","type":"number"},"longitude":{"format":"double","type":"number"}},"type":"object"},"MultiLineString":{"allOf":[{"$ref":"#/components/schemas/GeoJsonObject"},{"properties":{"coordinates":{"items":{"items":{"$ref":"#/components/schemas/LngLatAlt"},"type":"array"},"type":"array"}},"type":"object"}]},"MultiPoint":{"allOf":[{"$ref":"#/components/schemas/GeoJsonObject"},{"properties":{"coordinates":{"items":{"$ref":"#/components/schemas/LngLatAlt"},"type":"array"}},"type":"object"}]},"MultiPolygon":{"allOf":[{"$ref":"#/components/schemas/GeoJsonObject"},{"properties":{"coordinates":{"items":{"items":{"items":{"$ref":"#/components/schemas/LngLatAlt"},"type":"array"},"type":"array"},"type":"array"}},"type":"object"}]},"Point":{"discriminator":{"propertyName":"type"},"properties":{"bbox":{"items":{"format":"double","type":"number"},"type":"array"},"coordinates":{"$ref":"#/components/schemas/LngLatAlt"},"crs":{"$ref":"#/components/schemas/Crs"}},"type":"object"},"Polygon":{"allOf":[{"$ref":"#/components/schemas/GeoJsonObject"},{"properties":{"coordinates":{"items":{"items":{"$ref":"#/components/schemas/LngLatAlt"},"type":"array"},"type":"array"}},"type":"object"}]},"PriceJO":{"properties":{"_links":{"items":{"$ref":"#/components/schemas/LinkJO"},"type":"array"},"attributes":{"additionalProperties":{"type":"object"},"type":"object"},"currency":{"type":"string"},"description":{"type":"string"},"expand":{"type":"string"},"grossamount":{"format":"double","type":"number"},"href":{"type":"string"},"interval":{"format":"int32","type":"integer"},"name":{"type":"string"},"preferredprice":{"default":false,"type":"boolean"},"taxrate":{"format":"double","type":"number"},"type":{"enum":["TIME","DISTANCE"],"type":"string"},"uid":{"type":"string"}},"type":"object"},"ProviderJO":{"properties":{"_links":{"items":{"$ref":"#/components/schemas/LinkJO"},"type":"array"},"attributes":{"additionalProperties":{"type":"object"},"type":"object"},"description":{"type":"string"},"expand":{"type":"string"},"href":{"type":"string"},"name":{"type":"string"},"uid":{"type":"string"}},"type":"object"},"RentalObjectJO":{"properties":{"_links":{"items":{"$ref":"#/components/schemas/LinkJO"},"type":"array"},"attributes":{"additionalProperties":{"type":"object"},"type":"object"},"category":{"$ref":"#/components/schemas/CategoryJO"},"description":{"type":"string"},"expand":{"type":"string"},"href":{"type":"string"},"name":{"type":"string"},"provider":{"$ref":"#/components/schemas/ProviderJO"},"providerNetworkIds":{"items":{"format":"int32","type":"integer"},"type":"array"},"providerRentalObjectId":{"type":"string"},"rentalModel":{"enum":["FREEFLOATING","FREEFLOATINGWITHSTATION","STATIONBASED","PARKINGAREA","UNKNOWN"],"type":"string"},"type":{"enum":["VEHICLE","VEHICLEPOOL","BIKE","PEDELEC","UNKNOWN"],"type":"string"},"uid":{"type":"string"}},"type":"object"}}}}