Uber
In this example swagger description is included in the page (using data
front
matter). See source file
Data file must be in _data
directory (see jekyll doc).
Some routes
/products
Parameters
Name |
Located in |
Description |
Type |
latitude
|
query |
Latitude component of location. |
Number
|
longitude
|
query |
Longitude component of location. |
Number
|
Responses
200
An array of products
default
Unexpected error
/estimates/price
Parameters
Name |
Located in |
Description |
Type |
start_latitude
|
query |
Latitude component of start location. |
Number
|
start_longitude
|
query |
Longitude component of start location. |
Number
|
end_latitude
|
query |
Latitude component of end location. |
Number
|
end_longitude
|
query |
Longitude component of end location. |
Number
|
Responses
200
An array of price estimates by product
default
Unexpected error
/estimates/time
Parameters
Name |
Located in |
Description |
Type |
start_latitude
|
query |
Latitude component of start location. |
Number
|
start_longitude
|
query |
Longitude component of start location. |
Number
|
customer_uuid
|
query |
Unique customer identifier to be used for experience customization. |
String
|
product_id
|
query |
Unique identifier representing a specific product for a given latitude & longitude. |
String
|
Responses
200
An array of products
default
Unexpected error
/me
Responses
200
Profile information for a user
default
Unexpected error
/history
Parameters
Name |
Located in |
Description |
Type |
offset
|
query |
Offset the list of returned results by this amount. Default is zero. |
Integer
|
limit
|
query |
Number of items to retrieve. Default is 5, maximum is 100. |
Integer
|
Responses
200
History information for the given user
default
Unexpected error