github.com/josephspurrier/go-swagger@v0.2.1-0.20221129144919-1f672a142a00/fixtures/diff/uber.v1.json (about)

     1  {
     2    "swagger": "2.0",
     3    "info": {
     4      "title": "Uber API",
     5      "description": "Move your app forward with the Uber API",
     6      "version": "1.0.0"
     7    },
     8    "host": "api.uber.com",
     9    "schemes": [
    10      "https"
    11    ],
    12    "basePath": "/v1",
    13    "produces": [
    14      "application/json"
    15    ],
    16    "paths": {
    17      "/products": {
    18        "get": {
    19          "summary": "Product Types",
    20          "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.",
    21          "parameters": [
    22            {
    23              "name": "latitude",
    24              "in": "query",
    25              "description": "Latitude component of location.",
    26              "required": true,
    27              "type": "number",
    28              "format": "double"
    29            },
    30            {
    31              "name": "longitude",
    32              "in": "query",
    33              "description": "Longitude component of location.",
    34              "required": true,
    35              "type": "number",
    36              "format": "double"
    37            }
    38          ],
    39          "tags": [
    40            "Products"
    41          ],
    42          "responses": {
    43            "200": {
    44              "description": "An array of products",
    45              "schema": {
    46                "type": "array",
    47                "items": {
    48                  "$ref": "#/definitions/Product"
    49                }
    50              }
    51            },
    52            "default": {
    53              "description": "Unexpected error",
    54              "schema": {
    55                "$ref": "#/definitions/Error"
    56              }
    57            }
    58          }
    59        }
    60      },
    61      "/estimates/price": {
    62        "get": {
    63          "summary": "Price Estimates",
    64          "description": "The Price Estimates endpoint returns an estimated price range for each product offered at a given location. The price estimate is provided as a formatted string with the full price range and the localized currency symbol.<br><br>The response also includes low and high estimates, and the [ISO 4217](http://en.wikipedia.org/wiki/ISO_4217) currency code for situations requiring currency conversion. When surge is active for a particular product, its surge_multiplier will be greater than 1, but the price estimate already factors in this multiplier.",
    65          "parameters": [
    66            {
    67              "name": "start_latitude",
    68              "in": "query",
    69              "description": "Latitude component of start location.",
    70              "required": true,
    71              "type": "number",
    72              "format": "double"
    73            },
    74            {
    75              "name": "start_longitude",
    76              "in": "query",
    77              "description": "Longitude component of start location.",
    78              "required": true,
    79              "type": "number",
    80              "format": "double"
    81            },
    82            {
    83              "name": "end_latitude",
    84              "in": "query",
    85              "description": "Latitude component of end location.",
    86              "required": true,
    87              "type": "number",
    88              "format": "double"
    89            },
    90            {
    91              "name": "end_longitude",
    92              "in": "query",
    93              "description": "Longitude component of end location.",
    94              "required": true,
    95              "type": "number",
    96              "format": "double"
    97            }
    98          ],
    99          "tags": [
   100            "Estimates", "DeadTagWalking"
   101          ],
   102          "responses": {
   103            "200": {
   104              "description": "An array of price estimates by product",
   105              "schema": {
   106                "type": "array",
   107                "items": {
   108                  "$ref": "#/definitions/PriceEstimate"
   109                }
   110              }
   111            },
   112            "default": {
   113              "description": "Unexpected error",
   114              "schema": {
   115                "$ref": "#/definitions/Error"
   116              }
   117            }
   118          }
   119        }
   120      },
   121      "/estimates/time": {
   122        "get": {
   123          "summary": "Time Estimates",
   124          "description": "The Time Estimates endpoint returns ETAs for all products offered at a given location, with the responses expressed as integers in seconds. We recommend that this endpoint be called every minute to provide the most accurate, up-to-date ETAs.",
   125          "parameters": [
   126            {
   127              "name": "start_latitude",
   128              "in": "query",
   129              "description": "Latitude component of start location.",
   130              "required": true,
   131              "type": "number",
   132              "format": "double"
   133            },
   134            {
   135              "name": "start_longitude",
   136              "in": "query",
   137              "description": "Longitude component of start location.",
   138              "required": true,
   139              "type": "number",
   140              "format": "double"
   141            },
   142            {
   143              "name": "customer_uuid",
   144              "in": "query",
   145              "type": "string",
   146              "format": "uuid",
   147              "description": "Unique customer identifier to be used for experience customization."
   148            },
   149            {
   150              "name": "product_id",
   151              "in": "query",
   152              "type": "string",
   153              "description": "Unique identifier representing a specific product for a given latitude & longitude."
   154            }
   155          ],
   156          "tags": [
   157            "Estimates"
   158          ],
   159          "responses": {
   160            "200": {
   161              "description": "An array of products",
   162              "schema": {
   163                "type": "array",
   164                "items": {
   165                  "$ref": "#/definitions/Product"
   166                }
   167              }
   168            },
   169            "default": {
   170              "description": "Unexpected error",
   171              "schema": {
   172                "$ref": "#/definitions/Error"
   173              }
   174            }
   175          }
   176        }
   177      },
   178      "/me": {
   179        "get": {
   180          "summary": "User Profile",
   181          "description": "The User Profile endpoint returns information about the Uber user that has authorized with the application.",
   182          "tags": [
   183            "User"
   184          ],
   185          "responses": {
   186            "200": {
   187              "description": "Profile information for a user",
   188              "schema": {
   189                "$ref": "#/definitions/Profile"
   190              }
   191            },
   192            "default": {
   193              "description": "Unexpected error",
   194              "schema": {
   195                "$ref": "#/definitions/Error"
   196              }
   197            }
   198          }
   199        }
   200      },
   201      "/history": {
   202        "get": {
   203          "summary": "User Activity",
   204          "parameters": [
   205            {
   206              "name": "offset",
   207              "in": "query",
   208              "type": "integer",
   209              "format": "int32",
   210              "description": "Offset the list of returned results by this amount. Default is zero."
   211            },
   212            {
   213              "name": "limit",
   214              "in": "query",
   215              "type": "integer",
   216              "format": "int32",
   217              "description": "Number of items to retrieve. Default is 5, maximum is 100."
   218            }
   219          ],
   220          "tags": [
   221            "User"
   222          ],
   223          "responses": {
   224            "200": {
   225              "description": "History information for the given user",
   226              "schema": {
   227                "$ref": "#/definitions/Activities"
   228              }
   229            },
   230            "default": {
   231              "description": "Unexpected error",
   232              "schema": {
   233                "$ref": "#/definitions/Error"
   234              }
   235            }
   236          }
   237        }
   238      }
   239    },
   240    "definitions": {
   241      "Product": {
   242        "properties": {
   243          "product_id": {
   244            "type": "string",
   245            "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."
   246          },
   247          "description": {
   248            "type": "string",
   249            "description": "Description of product."
   250          },
   251          "display_name": {
   252            "type": "string"},
   253          "capacity": {
   254            "type": "string",
   255            "description": "Capacity of product. For example, 4 people."
   256          },
   257          "image": {
   258            "type": "string",
   259            "description": "Image URL representing the product."
   260          }
   261        }
   262      },
   263      "PriceEstimate": {
   264        "properties": {
   265          "product_id": {
   266            "type": "string",
   267            "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"
   268          },
   269          "currency_code": {
   270            "type": "string",
   271            "description": "[ISO 4217](http://en.wikipedia.org/wiki/ISO_4217) currency code."
   272          },
   273          "display_name": {
   274            "type": "string",
   275            "description": "Display name of product."
   276          },
   277          "estimate": {
   278            "type": "string",
   279            "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."
   280          },
   281          "low_estimate": {
   282            "type": "number",
   283            "description": "Lower bound of the estimated price."
   284          },
   285          "high_estimate": {
   286            "type": "number",
   287            "description": "Upper bound of the estimated price."
   288          },
   289          "surge_multiplier": {
   290            "type": "number",
   291            "description": "Expected surge multiplier. Surge is active if surge_multiplier is greater than 1. Price estimate already factors in the surge multiplier."
   292          }
   293        }
   294      },
   295      "Profile": {
   296        "properties": {
   297          "first_name": {
   298            "type": "string",
   299            "description": "First name of the Uber user."
   300          },
   301          "last_name": {
   302            "type": "string",
   303            "description": "Last name of the Uber user."
   304          },
   305          "email": {
   306            "type": "string",
   307            "description": "Email address of the Uber user"
   308          },
   309          "picture": {
   310            "type": "string",
   311            "description": "Image URL of the Uber user."
   312          },
   313          "promo_code": {
   314            "type": "string",
   315            "description": "Promo code of the Uber user."
   316          }
   317        }
   318      },
   319      "Activity": {
   320        "properties": {
   321          "uuid": {
   322            "type": "string",
   323            "description": "Unique identifier for the activity"
   324          }
   325        }
   326      },
   327      "Activities": {
   328        "properties": {
   329          "offset": {
   330            "type": "integer",
   331            "format": "int32",
   332            "description": "Position in pagination."
   333          },
   334          "limit": {
   335            "type": "integer",
   336            "format": "int32",
   337            "description": "Number of items to retrieve (100 max)."
   338          },
   339          "count": {
   340            "type": "integer",
   341            "format": "int32",
   342            "description": "Total number of items available."
   343          },
   344          "history": {
   345            "type": "array",
   346            "items": {
   347                "$ref": "#/definitions/Activity"
   348             }
   349          }
   350        }
   351      },
   352      "Error": {
   353        "properties": {
   354          "code": {
   355            "type": "integer",
   356            "format": "int32"
   357          },
   358          "message": {
   359            "type": "string"
   360          },
   361          "fields": {
   362            "type": "string"
   363          }
   364        }
   365      }
   366    }
   367  }