action autodealerdata_get_top_models_top_models_get {
label: "Top models in a given region"
description: "Sales ranking of different models by region over the last 45 days. \nThe percentOfTopSales value is the percent of the top seller the model represents. \n\nFor example: a value of 80% means that model sold 8 vehicles for every 10 of the top model sold.\n\nThe other fields represent the model percent of X. The brandMarketShare field is that brand's market share of the region\nover the report's time interval."
provider: autodealerdata
method: GET
path: "/topModels"
encoding: json
input: {
type: "object"
properties: {
jwt: {
type: "string"
}
regionName: {
type: "string"
}
}
required: ["jwt"]
additionalProperties: false
}
output: {
type: "object"
required: ["data"]
properties: {
brandName: {
type: "string"
}
cacheTimeLimit: {
type: "integer"
}
condition: {
type: "string"
}
data: {
type: "array"
items: {
type: "object"
required: ["percentOfTopSales", "modelName", "brandName", "percentOfBrandSales", "brandMarketShare"]
properties: {
brandMarketShare: {
type: "number"
}
brandName: {
type: "string"
}
modelName: {
type: "string"
}
percentOfBrandSales: {
type: "number"
}
percentOfTopSales: {
type: "number"
}
}
}
}
modelName: {
type: "string"
}
msg: {
type: "string"
}
regionName: {
type: "string"
}
}
}
}