--- swagger: '2.0' info: title: API Gateway Test API description: Move your app forward with the Uber API version: 1.0.0 host: api.uber.com schemes: - https basePath: "/v1" produces: - application/json security: - api_key: [] securityDefinitions: api_key: type: apiKey name: x-api-key in: header paths: "/products": get: summary: Product Types description: | The Products endpoint returns information about the *Uber* products offered at a given location. The response includes the display name and other details about each product, and lists the products in the proper display order. parameters: - name: latitude in: query description: Latitude component of location. required: true type: number format: double - name: longitude in: query description: Longitude component of location. required: true type: number format: double tags: - Products responses: '200': description: An array of products schema: type: array items: "$ref": "#/definitions/Product" headers: test-method-response-header: type: string '400': description: Bad request schema: "$ref": "#/definitions/Error" default: description: Unexpected error schema: "$ref": "#/definitions/Error" security: - api_key: [] x-amazon-apigateway-auth: type: aws_iam x-amazon-apigateway-integration: type: aws uri: arn:aws:apigateway:us-east-1:lambda:path/2015-03-31/functions/arn:aws:lambda:us-east-1:ACCOUNT_ID:function:myFunction/invocations httpMethod: POST credentials: arn:aws:iam::ACCOUNT_ID:role/lambda_exec_role requestTemplates: application/json: json request template 2 application/xml: xml request template 2 requestParameters: integration.request.path.integrationPathParam: method.request.querystring.latitude integration.request.querystring.integrationQueryParam: method.request.querystring.longitude cacheNamespace: cache namespace cacheKeyParameters: [] responses: 2//d{2}: statusCode: '200' responseParameters: method.response.header.test-method-response-header: integration.response.header.integrationResponseHeaderParam1 responseTemplates: application/json: json 200 response template application/xml: xml 200 response template default: statusCode: '400' responseParameters: method.response.header.test-method-response-header: "'static value'" responseTemplates: application/json: json 400 response template application/xml: xml 400 response template "/products/child": post: summary: Product Types description: | The Products endpoint returns information about the *Uber* products offered at a given location. The response includes the display name and other details about each product, and lists the products in the proper display order. parameters: - name: latitude in: query description: Latitude component of location. required: true type: number format: double - name: longitude in: query description: Longitude component of location. required: true type: number format: double tags: - Products responses: '200': description: An array of products schema: type: array items: "$ref": "#/definitions/Product" headers: test-method-response-header: type: string '400': description: Bad request schema: "$ref": "#/definitions/Error" default: description: Unexpected error schema: "$ref": "#/definitions/Error" security: - api_key: [] x-amazon-apigateway-auth: type: none x-amazon-apigateway-integration: type: http uri: https://api.github.com httpMethod: GET responses: 2//d{2}: statusCode: '200' default: statusCode: '400' responseParameters: method.response.header.test-method-response-header: "'static value'" responseTemplates: application/json: json 400 response template application/xml: xml 400 response template definitions: Product: properties: product_id: type: string 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. description: type: string description: Description of product. display_name: type: string description: Display name of product. capacity: type: string description: Capacity of product. For example, 4 people. image: type: string description: Image URL representing the product. PriceEstimate: properties: product_id: type: string 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 currency_code: type: string description: "[ISO 4217](http://en.wikipedia.org/wiki/ISO_4217) currency code." display_name: type: string description: Display name of product. estimate: type: string description: Formatted string of estimate in local currency of the start location. Estimate could be a range, a single number (flat rate) or "Metered" for TAXI. low_estimate: type: number description: Lower bound of the estimated price. high_estimate: type: number description: Upper bound of the estimated price. surge_multiplier: type: number description: Expected surge multiplier. Surge is active if surge_multiplier is greater than 1. Price estimate already factors in the surge multiplier. Profile: properties: first_name: type: string description: First name of the Uber user. last_name: type: string description: Last name of the Uber user. email: type: string description: Email address of the Uber user picture: type: string description: Image URL of the Uber user. promo_code: type: string description: Promo code of the Uber user. Activity: properties: uuid: type: string description: Unique identifier for the activity Activities: properties: offset: type: integer format: int32 description: Position in pagination. limit: type: integer format: int32 description: Number of items to retrieve (100 max). count: type: integer format: int32 description: Total number of items available. history: type: array items: "$ref": "#/definitions/Activity" Error: properties: code: type: integer format: int32 message: type: string fields: type: string