UNPKG

24.7 kBJSONView Raw
1{"openapi":"3.0.0","info":{"description":"The API ecotaco allows you to connect, create an account,\nmanage your credit cards and order rides.\n\n# Authentication\n\nEcotaco API use a system of application key and authentification token.\n\n## Application key :\n\nThe application key is generated by Ecota.co and unique to an application.\n\nBefore accessing EcoTa.co APIs, you need to register your application. Please supply the following information to dev@ecota.co:\n\n- Application name\n\n- Company (if appropriate)\n\n- Contact name, phone and address\n\n- Contact email\n\n- Is this a web application, a desktop application, or an application running on a device?\n\n- Short description of your application\n\nIt **must** be passed on request : \"accounts -> login\", \"accounts -> facebook login\" and \"accounts -> register\" .\n\n## Authentification token :\n\nThe authentification token is retrieved at login or register of an user.\n\nIt **must** be passed in request for authenticate action in Authorization HTTP header.\n\nExample :\n\nAuthorization: Token token=e55887022c1aca4c86abcc49e85ceb8a0c855d2af4d9fac75c08040a583dcde4\n\n# Language\n\nOn some of our resources, we filter the content displayed based on the Accept-Language header.\nIf the language is not defined or if we don't use the language defined in this header, we automatically use French as the default language.\nEcoTa.co currently support two languages: English, French. (\"en\" and \"fr\")\n\n# Encoding\n\nAll requests and answers on EcoTa.co are in UTF-8.","title":"api.ecota.co v2","version":"1.0.0","x-apisguru-categories":["location"],"x-logo":{"backgroundColor":"#FFFFFF","url":"https://pbs.twimg.com/profile_images/674904964125368320/5Z7DncLT_400x400.png"},"x-origin":[{"converter":{"url":"https://github.com/lucybot/api-spec-converter","version":"2.6.0"},"format":"apiBlueprint","url":"https://ecotaco.docs.apiary.io/api-description-document","version":"1A"}],"x-providerName":"staging-ecotaco.com"},"paths":{"/":{"get":{"description":"","responses":{"200":{"description":"OK","headers":{},"content":{"application/vnd.siren+json":{"examples":{"response":{"value":{"links":{"self":"https://api.ecota.co","v2":"https://api.ecota.co/v2"}}}}}}}},"summary":"Retrieve the version API","tags":["EcoTa.co API Root"]}},"/accounts":{"get":{"description":"","responses":{"200":{"description":"OK","headers":{},"content":{"application/json":{"examples":{"response":{"value":{"user":{"addresses":[{"id":29,"type_address":"home"}],"auth_token":"c1cb860b4fa68ff9f3d94791d28a8c89f89f4b4eceded8eec9f1e6fc10ee4e8c","avatar_url":"https://gravatar.com/avatar/45def3303a8c2b379605f3db4f61ebcc.png?s=200&d=http%3A%2F%2Fapp.ecota.co%2Fassets%2Fguest.png","birth_date":"1983-05-12","companies":[{"id":10,"name":"EcoTa.co","type_relation":"company_manager","user_id":18}],"created_at":"2015-05-25T13:37:43+02:00","email":"maxime.lenne@ecota.co","first_name":"Lenne","free_km_counter":0,"free_used_km_counter":0,"id":18,"language":"fr","name":"Maxime","newsletter":"1","phone":"0629453814","referral_code":"v8dlb","updated_at":"2015-05-25T15:41:11+02:00"}}}}}}}},"summary":"Get current user","tags":["Accounts"]},"post":{"description":"","responses":{"201":{"description":"Created","headers":{},"content":{"application/json":{"examples":{"response":{"value":{"user":{"addresses":[{"id":29,"type_address":"home"}],"auth_token":"c1cb860b4fa68ff9f3d94791d28a8c89f89f4b4eceded8eec9f1e6fc10ee4e8c","avatar_url":"https://gravatar.com/avatar/45def3303a8c2b379605f3db4f61ebcc.png?s=200&d=http%3A%2F%2Fapp.ecota.co%2Fassets%2Fguest.png","birth_date":"1983-05-12","companies":[{"id":10,"name":"EcoTa.co","type_relation":"company_manager","user_id":18}],"created_at":"2015-05-25T13:37:43+02:00","email":"maxime.lenne@ecota.co","first_name":"Lenne","free_km_counter":0,"free_used_km_counter":0,"id":18,"language":"fr","name":"Maxime","newsletter":"1","phone":"0629453814","referral_code":"v8dlb","updated_at":"2015-05-25T15:41:11+02:00"}}}}}}}},"summary":"Create a new account with an application key","tags":["Accounts"]},"put":{"description":"","responses":{"200":{"description":"OK","headers":{},"content":{"application/json":{"examples":{"response":{"value":{"user":{"addresses":[{"id":29,"type_address":"home"}],"auth_token":"c1cb860b4fa68ff9f3d94791d28a8c89f89f4b4eceded8eec9f1e6fc10ee4e8c","avatar_url":"https://gravatar.com/avatar/45def3303a8c2b379605f3db4f61ebcc.png?s=200&d=http%3A%2F%2Fapp.ecota.co%2Fassets%2Fguest.png","birth_date":"1983-05-12","companies":[{"id":10,"name":"EcoTa.co","type_relation":"company_manager","user_id":18}],"created_at":"2015-05-25T13:37:43+02:00","email":"maxime.lenne@ecota.co","first_name":"Lenne","free_km_counter":0,"free_used_km_counter":0,"id":18,"language":"fr","name":"Maxime","newsletter":"1","phone":"0629453814","referral_code":"v8dlb","updated_at":"2015-05-25T15:41:11+02:00"}}}}}}}},"summary":"Update User","tags":["Accounts"]}},"/accounts/password":{"post":{"description":"","responses":{"201":{"description":"Created","headers":{}}},"summary":"Forget password with email","tags":["Accounts"]}},"/accounts/payment_methods":{"get":{"description":"","responses":{"200":{"description":"OK","headers":{},"content":{"application/json":{"examples":{"response":{"value":{"payment_methods":[{"at":"ride_end","by_id":13,"by_type":"User","credit_card_id":1,"credit_card_label":"perso","method":"credit_card","to":"ecotaco"},{"at":"ride_end","by_id":7,"by_type":"Company","credit_card_id":2,"credit_card_label":"Pro entrep","method":"credit_card","to":"ecotaco"},{"at":"month_end","by_id":7,"by_type":"Company","method":"transfer","to":"ecotaco"},{"at":"ride_end","by_id":13,"by_type":"User","method":"cash","to":"driver"}]}}}}}}},"summary":"Payment Methods","tags":["Accounts"]}},"/accounts/settings":{"post":{"description":"","responses":{"200":{"description":"OK","headers":{},"content":{"application/json":{"examples":{"response":{"value":{"user":{"addresses":[{"id":29,"type_address":"home"}],"auth_token":"c1cb860b4fa68ff9f3d94791d28a8c89f89f4b4eceded8eec9f1e6fc10ee4e8c","avatar_url":"https://gravatar.com/avatar/45def3303a8c2b379605f3db4f61ebcc.png?s=200&d=http%3A%2F%2Fapp.ecota.co%2Fassets%2Fguest.png","birth_date":"1983-05-12","companies":[{"id":10,"name":"EcoTa.co","type_relation":"company_manager","user_id":18}],"created_at":"2015-05-25T13:37:43+02:00","email":"maxime.lenne@ecota.co","first_name":"Lenne","free_km_counter":0,"free_used_km_counter":0,"id":18,"language":"fr","name":"Maxime","newsletter":"1","phone":"0629453814","referral_code":"v8dlb","updated_at":"2015-05-25T15:41:11+02:00"}}}}}}}},"summary":"Settings","tags":["Accounts"]}},"/accounts/sign_in":{"post":{"description":"","responses":{"200":{"description":"OK","headers":{},"content":{"application/json":{"examples":{"response":{"value":{"user":{"addresses":[{"id":29,"type_address":"home"}],"auth_token":"c1cb860b4fa68ff9f3d94791d28a8c89f89f4b4eceded8eec9f1e6fc10ee4e8c","avatar_url":"https://gravatar.com/avatar/45def3303a8c2b379605f3db4f61ebcc.png?s=200&d=http%3A%2F%2Fapp.ecota.co%2Fassets%2Fguest.png","birth_date":"1983-05-12","companies":[{"id":10,"name":"EcoTa.co","type_relation":"company_manager","user_id":18}],"created_at":"2015-05-25T13:37:43+02:00","email":"maxime.lenne@ecota.co","first_name":"Lenne","free_km_counter":0,"free_used_km_counter":0,"id":18,"language":"fr","name":"Maxime","newsletter":"1","phone":"0629453814","referral_code":"v8dlb","updated_at":"2015-05-25T15:41:11+02:00"}}}}}}}},"summary":"Login with email, password and application key","tags":["Accounts"]}},"/accounts/update_password":{"put":{"description":"","responses":{"200":{"description":"OK","headers":{},"content":{"application/json":{"examples":{"response":{"value":{"user":{"addresses":[{"id":29,"type_address":"home"}],"auth_token":"c1cb860b4fa68ff9f3d94791d28a8c89f89f4b4eceded8eec9f1e6fc10ee4e8c","avatar_url":"https://gravatar.com/avatar/45def3303a8c2b379605f3db4f61ebcc.png?s=200&d=http%3A%2F%2Fapp.ecota.co%2Fassets%2Fguest.png","birth_date":"1983-05-12","companies":[{"id":10,"name":"EcoTa.co","type_relation":"company_manager","user_id":18}],"created_at":"2015-05-25T13:37:43+02:00","email":"maxime.lenne@ecota.co","first_name":"Lenne","free_km_counter":0,"free_used_km_counter":0,"id":18,"language":"fr","name":"Maxime","newsletter":"1","phone":"0629453814","referral_code":"v8dlb","updated_at":"2015-05-25T15:41:11+02:00"}}}}}}}},"summary":"Update Password","tags":["Accounts"]}},"/addresses/places_autocomplete":{"post":{"description":"For searching places just send the following attributes :\n\n- **longitude** (optional, float) : The location longitude for the seach\n\n- **latitude** (optional, float) : The location latitude for the seach\n\n- **search** (required, string) : The search text (most than 3 char)","responses":{"200":{"description":"OK","headers":{}}},"summary":"Get autocomplete places","tags":["Adresses"]}},"/addresses/places_details":{"post":{"description":"","responses":{"200":{"description":"OK","headers":{},"content":{"application/json":{"examples":{"response":{"value":{"city":"Lille","country":"France","formatted_address":"Lille, France","lat":50.637528,"lng":3.070923,"name":"Gare Lille Flandres","postal_code":"59800","reference":"CnRtAAAAnFiSmz9OFYi4ee_IeN8WgX0kjB50NtCCTTxJdTQzz9F33kC5eit_Z2DIW-MyrbwN9_cJ7lkBznVZ6o_Da52wCTzmKvbHvImkYTD24su-vjUfszNnJRWnV2M0ckZEdJ5vpG1S02m6jgzJ_FmOnImI2BIQh6x7kos53RZHQujnMlRkABoU28Ivbhnf72dh3L6yfqeB-oaIHYs","vicinity":"Lille"}}}}}}},"summary":"Get autocomplete places details","tags":["Adresses"]}},"/catchement_areas":{"get":{"description":"","responses":{"200":{"description":"OK","headers":{},"content":{"application/vnd.geo+json":{"examples":{"response":{"value":{"features":[{"geometry":{"coordinates":[[[2.653829,50.642377],[2.648937,50.627461],[2.780256,50.586548],[2.900204,50.663704],[2.831196,50.705252],[2.778325,50.700468],[2.653829,50.642377]]],"type":"Polygon"},"properties":{"id":4,"label":"Lille forbidden"},"type":"Feature"},{"geometry":{"coordinates":[[[2.85468817138667,50.7209296468011],[2.82172918701167,50.6948395473376],[2.75512457275386,50.6582890133086],[2.69401312255854,50.6391321348964],[2.80318975830073,50.5240267810597],[2.92953253173823,50.4803527849672],[3.02772283935542,50.4742352023462],[3.25980902099604,50.4571891900493],[3.31817388916011,50.5558832982945],[3.43709230804438,50.6039001101805],[3.34576845550532,50.6888041447647],[3.32585573577876,50.7431491302235],[3.11780214691157,50.8208614514023],[2.89120912933345,50.7431491302235],[2.85468817138667,50.7209296468011]]],"type":"Polygon"},"properties":{"id":1,"label":"Lille"},"type":"Feature"},{"geometry":{"coordinates":[[[1.34239196777344,43.665388118352],[1.37603759765625,43.7284369679607],[1.54838562011719,43.6713483259687],[1.54220581054688,43.4947753137023],[1.34925842285156,43.5002543647898],[1.22085571289062,43.5788986029537],[1.34239196777344,43.665388118352]]],"type":"Polygon"},"properties":{"id":2,"label":"Toulouse"},"type":"Feature"},{"geometry":{"coordinates":[[[2.874408,50.702182],[2.918353,50.753905],[2.833212,50.772398],[2.812956,50.702651],[2.861475,50.656127],[2.979921,50.661786],[2.874408,50.702182]]],"type":"Polygon"},"properties":{"id":3,"label":"Lille exclusive"},"type":"Feature"}],"type":"FeatureCollection"}}}}}}},"summary":"List all catchement areas","tags":["Catchement Areas"]}},"/catchement_areas/{id}":{"get":{"description":"","parameters":[{"description":"Numeric `id` of the Catchement Area","in":"path","name":"id","required":true,"schema":{"type":"number"}}],"responses":{"200":{"description":"OK","headers":{},"content":{"application/vnd.geo+json":{"examples":{"response":{"value":{"geometry":{"coordinates":[[[2.85468817138667,50.7209296468011],[2.82172918701167,50.6948395473376],[2.75512457275386,50.6582890133086],[2.69401312255854,50.6391321348964],[2.80318975830073,50.5240267810597],[2.92953253173823,50.4803527849672],[3.02772283935542,50.4742352023462],[3.25980902099604,50.4571891900493],[3.31817388916011,50.5558832982945],[3.43709230804438,50.6039001101805],[3.34576845550532,50.6888041447647],[3.32585573577876,50.7431491302235],[3.11780214691157,50.8208614514023],[2.89120912933345,50.7431491302235],[2.85468817138667,50.7209296468011]]],"type":"Polygon"},"properties":{"id":1,"label":"Lille"},"type":"Feature"}}}}}}},"summary":"Get a Catchement Area","tags":["Catchement Areas"]}},"/credit_cards":{"get":{"description":"","responses":{"200":{"description":"OK","headers":{}}},"summary":"List all CreditCards for the current User","tags":["CreditCards"]}},"/credit_cards/{id}":{"get":{"description":"","parameters":[{"description":"Numeric `id` of the Credit Card","in":"path","name":"id","required":true,"schema":{"type":"number"}}],"responses":{"200":{"description":"OK","headers":{}}},"summary":"Get a CreditCard","tags":["CreditCards"]}},"/products":{"get":{"description":"","responses":{"200":{"description":"OK","headers":{},"content":{"application/json":{"examples":{"response":{"value":[{"product":{"description":"Transport de personne à la demande (VTC / DREAL / Taxi)","id":1,"name":"Transport à la demande","product_type":"transport_person"}},{"product":{"description":"Transport de colis","id":2,"name":"Transport de colis","product_type":"package_delivery"}}]}}}}}},"summary":"List all products","tags":["Products"]}},"/products/{id}":{"get":{"description":"","parameters":[{"description":"Numeric `id` of the Product","in":"path","name":"id","required":true,"schema":{"type":"number"}}],"responses":{"200":{"description":"OK","headers":{},"content":{"application/json":{"examples":{"response":{"value":{"product":{"description":"Transport de personne à la demande (VTC / DREAL / Taxi)","id":1,"name":"Transport à la demande","product_type":"transport_person"}}}}}}}},"summary":"Get a Product","tags":["Products"]}},"/promotional_codes":{"get":{"description":"","responses":{"200":{"description":"OK","headers":{},"content":{"application/json":{"examples":{"response":{"value":[{"promotional_code":{"code":"PROMOCODE","created_at":"2014-07-02T17:38:42+02:00","end_date":"2099-01-31T00:00:00+01:00","id":4,"label":"Parrainage chauffeur","promotional_type":"pourcent","start_date":"2012-11-01T00:00:00+01:00","status":"notused","value":10}}]}}}}}},"summary":"Get all promotional codes for user","tags":["Promotional Codes"]},"post":{"description":"","responses":{"201":{"description":"Created","headers":{}}},"summary":"Add a promotional code","tags":["Promotional Codes"]}},"/rides/{id}":{"get":{"description":"","parameters":[{"description":"Numeric `id` of Ride","in":"path","name":"id","required":true,"schema":{"type":"number"}}],"responses":{"200":{"description":"OK","headers":{},"content":{"application/json":{"examples":{"response":{"value":{"ride":{"booking_user_id":11,"distance":10.079,"driver":{"first_name":"Céline","phone":"0629453814"},"duration":1096,"estimated_end":"2014-06-12T17:03:55+02:00","estimated_start":"2014-06-12T16:45:39+02:00","eta":1357,"id":322,"nb_passengers":1,"passengers":[{"email":"admin@ecota.co","first_name":"Jean-Phil","id":315,"main":true,"name":"Monslip","phone":"0629453814","user_id":11}],"pick_up_or_tacking_out":false,"points":[{"address":"53-57 Rue Masséna","catchement_areas_id":[1],"city":"Lille","contacts":[{"email":"","first_name":"","last_name":"","phone":""}],"country":"France","id":631,"latitude":50.63217,"longitude":3.054924,"postal_code":59800,"type_point":"start","user_input":"53-57 Rue Masséna"},{"address":"Rue de l'Harmonie","catchement_areas_id":[1],"city":"Villeneuve-d'Ascq","country":"France","id":632,"latitude":50.60511,"longitude":3.15199,"postal_code":59650,"ride_id":322,"type_point":"end","user_input":"Rue de l'Harmonie"}],"price":19.8,"product_id":1,"refused_label":"","requested_start":"2014-06-12T16:23:02+02:00","reserved_by_phone":false,"status":"in_progress","total_price":19.8,"vehicle":{"color":"gris","manufacturer":"Audi","model":"A4"}}}}}}}}},"summary":"Get a ride","tags":["Rides"]}},"/rides/{id}/cancel":{"get":{"description":"**Must be authenticate**","parameters":[{"description":"Numeric `id` of Ride","in":"path","name":"id","required":true,"schema":{"type":"number"}}],"responses":{"200":{"description":"OK","headers":{},"content":{"application/json":{"examples":{"response":{"value":{"ride":{"booking_user_id":11,"created_at":"2014-07-02T17:33:55+02:00","distance":24.248,"driver":{"first_name":"Céline","phone":"0629453814"},"duration":1424,"estimated_end":"2014-07-02T18:05:48+02:00","estimated_start":"2014-07-02T17:42:04+02:00","eta":397,"id":378,"nb_passengers":1,"passengers":[{"main":true,"user_id":11},{"email":"passager@gmail.com","first_name":"Non registered","main":false,"name":"Passenger","phone":"0606060606","register":false},{"company_relation":"collaborator","email":"passager2@gmail.com","first_name":"To registered","main":false,"name":"Passenger","phone":"0606060606","register":true}],"pick_up_or_tacking_out":false,"points":[{"address":"53-57 Rue Masséna","catchement_areas_id":[1],"city":"Lille","contacts":[{"email":"","first_name":"","last_name":"","phone":""}],"country":"France","id":631,"latitude":50.63217,"longitude":3.054924,"postal_code":59800,"type_point":"start","user_input":"53-57 Rue Masséna"},{"address":"Rue de l'Harmonie","catchement_areas_id":[1],"city":"Villeneuve-d'Ascq","country":"France","id":632,"latitude":50.60511,"longitude":3.15199,"postal_code":59650,"ride_id":322,"type_point":"end","user_input":"Rue de l'Harmonie"}],"price":39.8,"refused_label":"","requested_start":"2014-07-02T17:35:27+02:00","reserved_by_phone":false,"status":"cancelled","total_price":39.8,"updated_at":"2014-07-02T17:35:34+02:00","vehicle":{"color":"gris","manufacturer":"Audi","model":"A4"}}}}}}}}},"summary":"Cancel a Ride","tags":["Rides"]}},"/rides/{id}/cancel_fees":{"get":{"description":"**Must be authenticate**","parameters":[{"description":"Numeric `id` of Ride","in":"path","name":"id","required":true,"schema":{"type":"number"}}],"responses":{"200":{"description":"OK","headers":{},"content":{"application/json":{"examples":{"response":{"value":{"fee_percent":0,"fee_total":0,"message":"No cancellation fee."}}}}}}},"summary":"Cancel fee of a Ride","tags":["Rides"]}},"/rides/{id}/estimate":{"get":{"description":"","parameters":[{"description":"Numeric `id` of Ride","in":"path","name":"id","required":true,"schema":{"type":"number"}}],"responses":{"200":{"description":"OK","headers":{},"content":{"application/json":{"examples":{"response":{"value":{"ride":{"booking_user_id":11,"created_at":"2014-07-02T17:33:55+02:00","distance":24.248,"driver":{"first_name":"Céline","phone":"0629453814"},"duration":1424,"estimated_end":"2014-07-02T18:03:56+02:00","estimated_start":"2014-07-02T17:40:12+02:00","eta":397,"id":378,"nb_passengers":1,"pick_up_or_tacking_out":false,"points":[{"address":"53-57 Rue Masséna","catchement_areas_id":[1],"city":"Lille","contacts":[{"email":"","first_name":"","last_name":"","phone":""}],"country":"France","id":631,"latitude":50.63217,"longitude":3.054924,"postal_code":59800,"type_point":"start","user_input":"53-57 Rue Masséna"},{"address":"Rue de l'Harmonie","catchement_areas_id":[1],"city":"Villeneuve-d'Ascq","country":"France","id":632,"latitude":50.60511,"longitude":3.15199,"postal_code":59650,"ride_id":322,"type_point":"end","user_input":"Rue de l'Harmonie"}],"price":39.8,"refused_label":"","requested_start":"2014-07-02T17:33:35+02:00","reserved_by_phone":false,"status":"estimated","total_price":39.8,"updated_at":"2014-07-02T17:34:02+02:00","vehicle":{"color":"gris","manufacturer":"Audi","model":"A4"}}}}}}}}},"summary":"Estimate a ride","tags":["Rides"]}},"/rides/{id}/reserve":{"post":{"description":"To book, the ride must belong to the connected user. The ride must have a main passenger at least, the booking user id and the payment hash must be set.\n\n**Must be authenticate**","parameters":[{"description":"Numeric `id` of Ride","in":"path","name":"id","required":true,"schema":{"type":"number"}}],"responses":{"200":{"description":"OK","headers":{},"content":{"application/json":{"examples":{"response":{"value":{"ride":{"booking_user_id":11,"created_at":"2014-07-02T17:33:55+02:00","distance":24.248,"driver":{"first_name":"Céline","phone":"0629453814"},"duration":1424,"estimated_end":"2014-07-02T18:05:48+02:00","estimated_start":"2014-07-02T17:42:04+02:00","eta":397,"id":378,"nb_passengers":1,"passengers":[{"main":true,"user_id":11},{"email":"passager@gmail.com","first_name":"Non registered","main":false,"name":"Passenger","phone":"0606060606","register":false},{"company_relation":"collaborator","email":"passager2@gmail.com","first_name":"To registered","main":false,"name":"Passenger","phone":"0606060606","register":true}],"pick_up_or_tacking_out":false,"points":[{"address":"53-57 Rue Masséna","catchement_areas_id":[1],"city":"Lille","contacts":[{"email":"","first_name":"","last_name":"","phone":""}],"country":"France","id":631,"latitude":50.63217,"longitude":3.054924,"postal_code":59800,"type_point":"start","user_input":"53-57 Rue Masséna"},{"address":"Rue de l'Harmonie","catchement_areas_id":[1],"city":"Villeneuve-d'Ascq","country":"France","id":632,"latitude":50.60511,"longitude":3.15199,"postal_code":59650,"ride_id":322,"type_point":"end","user_input":"Rue de l'Harmonie"}],"price":39.8,"refused_label":"","requested_start":"2014-07-02T17:35:27+02:00","reserved_by_phone":false,"status":"sent","total_price":39.8,"updated_at":"2014-07-02T17:35:30+02:00","vehicle":{"color":"gris","manufacturer":"Audi","model":"A4"}}}}}}}}},"summary":"Reserve a ride","tags":["Rides"]}},"/rides?page={page}&per_page={per_page}":{"get":{"description":"","parameters":[{"description":"Number of the page to load","in":"path","name":"page","required":true,"schema":{"type":"number"}},{"description":"Number of items per page to load","in":"path","name":"per_page","required":true,"schema":{"type":"number"}}],"responses":{"200":{"description":"OK","headers":{}}},"summary":"Get all user rides","tags":["Rides"]},"post":{"description":"","parameters":[{"in":"path","name":"page","required":true,"schema":{"type":"string"}},{"in":"path","name":"per_page","required":true,"schema":{"type":"string"}}],"responses":{"201":{"description":"Created","headers":{},"content":{"application/json":{"examples":{"response":{"value":{"ride":{"booking_user_id":11,"created_at":"2014-07-02T17:33:55+02:00","driver":{"first_name":"Céline","phone":"0629453814"},"estimated_start":"2014-07-02T17:33:35+02:00","eta":0,"id":378,"nb_passengers":1,"passengers":[],"pick_up_or_tacking_out":false,"points":[{"address":"Rue de l'Harmonie","city":"Villeneuve-d'Ascq","comment":"Sonner","contacts":[{"email":"","first_name":"","last_name":"","phone":""}],"country":"France","latitude":50.60511,"longitude":3.15199,"postal_code":59650,"type_point":"start","user_input":"Rue de l'Harmonie Villeneuve-d'Ascq France"},{"address":"101 Rue de l'Echauffour..e","city":"Mouscron","comment":"Sonner","country":"Belgium","latitude":50.75434,"longitude":3.181706,"postal_code":7700,"type_point":"end","user_input":"101 Rue de l'Echauffour..e"}],"requested_start":"2014-07-02T17:33:35+02:00","reserved_by_phone":false,"total_price":0,"updated_at":"2014-07-02T17:33:55+02:00","vehicle":{"color":"gris","manufacturer":"Audi","model":"A4"}}}}}}}}},"summary":"Create a ride","tags":["Rides"]}},"/{version}":{"get":{"description":"","parameters":[{"description":"Ecotaco API version","in":"path","name":"version","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","headers":{},"content":{"application/vnd.siren+json":{"examples":{"response":{"value":{"links":{"accounts":"https://api.ecota.co/v2/accounts","addresses":"https://api.ecota.co/v2/addresses","catchement_areas":"https://api.ecota.co/v2/catchement_areas","products":"https://api.ecota.co/v2/products","promotional_codes":"https://api.ecota.co/v2/promotional_codes","rides":"https://api.ecota.co/v2/rides","self":"https://api.ecota.co/v2"}}}}}}}},"summary":"Retrieve the Entry Point on Version","tags":["EcoTa.co API Root"]}}},"servers":[{"url":"http://api.staging-ecotaco.com/"}],"components":{"schemas":{"Autocomplete_places":{},"Autocomplete_places_details":{},"Cancel_Ride":{},"Cancel_fee":{},"Catchement_Area":{},"Collection_of_catchement_areas":{},"Collection_of_products":{},"Credit_card":{},"Current_User":{},"Endpoint":{},"Estimate_Ride":{},"Forget_password":{},"Login":{},"Password":{},"Payment_Methods":{},"Product":{},"Register":{},"Reserve_Ride":{},"Settings":{},"User_Credit_Cards":{},"User_Promotional_Codes":{},"User_Ride":{},"User_Rides":{},"Version":{}}}}
\No newline at end of file