You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
description: Move your app forward with the Uber API
7
+
version: "1.0.0"
8
+
# the domain of the service
9
+
host: api.uber.com
10
+
# array of all schemes that your API supports
11
+
schemes:
12
+
- https
13
+
produces:
14
+
- application/json
15
+
definitions:
16
+
Product:
17
+
type: object
18
+
properties:
19
+
product_id:
20
+
type: string
21
+
description: Unique identifier representing a specific product for a given latitude & longitude. For example, uberX in San Francisco will have a different product_id than uberX in Los Angeles.
22
+
description:
23
+
type: string
24
+
description: Description of product.
25
+
display_name:
26
+
type: string
27
+
description: Display name of product.
28
+
capacity:
29
+
type: string
30
+
description: Capacity of product. For example, 4 people.
description: Move your app forward with the Uber API
7
+
version: "1.0.0"
8
+
# the domain of the service
9
+
host: api.uber.com
10
+
# array of all schemes that your API supports
11
+
schemes:
12
+
- https
13
+
produces:
14
+
- application/json
15
+
paths:
16
+
/v2/products:
17
+
get:
18
+
summary: Product Types
19
+
description: |
20
+
The Products endpoint returns information about the *Uber* products
21
+
offered at a given location. The response includes the display name
22
+
and other details about each product, and lists the products in the
23
+
proper display order.
24
+
parameters:
25
+
- name: latitude
26
+
in: query
27
+
description: Latitude component of location.
28
+
required: true
29
+
type: number
30
+
format: double
31
+
- name: longitude
32
+
in: query
33
+
description: Longitude component of location.
34
+
required: true
35
+
type: number
36
+
format: double
37
+
tags:
38
+
- Products
39
+
responses:
40
+
200:
41
+
description: An array of products
42
+
schema:
43
+
type: array
44
+
items:
45
+
$ref: '#/definitions/Product'
46
+
default:
47
+
description: Unexpected error
48
+
schema:
49
+
$ref: '#/definitions/Error'
50
+
definitions:
51
+
Product:
52
+
type: object
53
+
properties:
54
+
product_id:
55
+
type: string
56
+
description: Unique identifier representing a specific product for a given latitude & longitude. For example, uberX in San Francisco will have a different product_id than uberX in Los Angeles.
57
+
description:
58
+
type: string
59
+
description: Description of product.
60
+
display_name:
61
+
type: string
62
+
description: Display name of product.
63
+
capacity:
64
+
type: string
65
+
description: Capacity of product. For example, 4 people.
0 commit comments