{"components":{"schemas":{"Brand":{"description":"Manufacturers, per vehicle type.","properties":{"Code":{"description":"Brand code","type":"string"},"Id":{"description":"Surrogate key: \u003cVehicleType\u003e-\u003cCode\u003e","type":"string"},"Models":{"description":"Navigation property; only present with $expand=Models","items":{"$ref":"#/components/schemas/Model"},"type":"array"},"Name":{"description":"Brand name","type":"string"},"VehicleType":{"description":"cars | motorcycles | trucks","type":"string"},"VehicleTypeId":{"description":"1 = cars, 2 = motorcycles, 3 = trucks","format":"int32","type":"integer"}},"type":"object"},"BrandCollection":{"properties":{"@odata.context":{"type":"string"},"@odata.count":{"description":"Only with $count=true","type":"integer"},"@odata.nextLink":{"description":"Present when more pages are available","type":"string"},"value":{"items":{"$ref":"#/components/schemas/Brand"},"type":"array"}},"type":"object"},"Error":{"properties":{"error":{"properties":{"code":{"type":"string"},"message":{"type":"string"}},"type":"object"}},"type":"object"},"Model":{"description":"Vehicle models of a brand.","properties":{"Brand":{"allOf":[{"$ref":"#/components/schemas/Brand"}],"description":"Navigation property; only present with $expand=Brand"},"BrandId":{"description":"Id of the owning brand","type":"string"},"BrandName":{"description":"Brand name","type":"string"},"Code":{"description":"Model code","type":"string"},"Id":{"description":"Surrogate key: \u003cBrandId\u003e-\u003cCode\u003e","type":"string"},"Name":{"description":"Model name","type":"string"},"VehicleType":{"description":"cars | motorcycles | trucks","type":"string"},"Vehicles":{"description":"Navigation property; only present with $expand=Vehicles","items":{"$ref":"#/components/schemas/Vehicle"},"type":"array"}},"type":"object"},"ModelCollection":{"properties":{"@odata.context":{"type":"string"},"@odata.count":{"description":"Only with $count=true","type":"integer"},"@odata.nextLink":{"description":"Present when more pages are available","type":"string"},"value":{"items":{"$ref":"#/components/schemas/Model"},"type":"array"}},"type":"object"},"PriceEntry":{"description":"One price per vehicle and reference month.","properties":{"CodeFipe":{"description":"Vehicle code","type":"string"},"Id":{"description":"Surrogate key: \u003cVehicleId\u003e-\u003cReference\u003e","type":"string"},"Month":{"description":"Reference month","type":"string"},"Price":{"description":"Price in BRL","format":"double","type":"number"},"PriceFormatted":{"description":"Price as published","type":"string"},"Reference":{"description":"Reference code","type":"string"},"Vehicle":{"allOf":[{"$ref":"#/components/schemas/Vehicle"}],"description":"Navigation property; only present with $expand=Vehicle"},"VehicleId":{"description":"Id of the vehicle","type":"string"}},"type":"object"},"PriceEntryCollection":{"properties":{"@odata.context":{"type":"string"},"@odata.count":{"description":"Only with $count=true","type":"integer"},"@odata.nextLink":{"description":"Present when more pages are available","type":"string"},"value":{"items":{"$ref":"#/components/schemas/PriceEntry"},"type":"array"}},"type":"object"},"Reference":{"description":"Month references.","properties":{"Code":{"description":"Reference code, e.g. 325","type":"string"},"Month":{"description":"Month label, e.g. \"outubro de 2025\"","type":"string"}},"type":"object"},"ReferenceCollection":{"properties":{"@odata.context":{"type":"string"},"@odata.count":{"description":"Only with $count=true","type":"integer"},"@odata.nextLink":{"description":"Present when more pages are available","type":"string"},"value":{"items":{"$ref":"#/components/schemas/Reference"},"type":"array"}},"type":"object"},"Vehicle":{"description":"Model-year/fuel variants with their latest price.","properties":{"BrandName":{"description":"Brand name","type":"string"},"CodeFipe":{"description":"Vehicle code, e.g. 004278-1","type":"string"},"Fuel":{"description":"Fuel name","type":"string"},"FuelAcronym":{"description":"Fuel acronym, e.g. G","type":"string"},"Id":{"description":"Surrogate key: \u003cModelId\u003e-\u003cYearCode\u003e","type":"string"},"Model":{"allOf":[{"$ref":"#/components/schemas/Model"}],"description":"Navigation property; only present with $expand=Model"},"ModelId":{"description":"Id of the owning model","type":"string"},"ModelName":{"description":"Model name","type":"string"},"ModelYear":{"description":"Model year (32000 = zero km)","format":"int32","type":"integer"},"Price":{"description":"Latest price in BRL","format":"double","type":"number"},"PriceFormatted":{"description":"Latest price as published, e.g. \"R$ 45.321,00\"","type":"string"},"PriceHistory":{"description":"Navigation property; only present with $expand=PriceHistory","items":{"$ref":"#/components/schemas/PriceEntry"},"type":"array"},"ReferenceCode":{"description":"Reference code of the latest price","type":"string"},"ReferenceMonth":{"description":"Reference month of the latest price","type":"string"},"VehicleType":{"description":"cars | motorcycles | trucks","type":"string"},"VehicleTypeId":{"description":"1 = cars, 2 = motorcycles, 3 = trucks","format":"int32","type":"integer"},"YearCode":{"description":"Year code, e.g. 2014-3","type":"string"},"YearName":{"description":"Year label, e.g. \"2014 Diesel\"","type":"string"}},"type":"object"},"VehicleCollection":{"properties":{"@odata.context":{"type":"string"},"@odata.count":{"description":"Only with $count=true","type":"integer"},"@odata.nextLink":{"description":"Present when more pages are available","type":"string"},"value":{"items":{"$ref":"#/components/schemas/Vehicle"},"type":"array"}},"type":"object"}}},"info":{"description":"\u003e **Study project - not for production.** Static data that is never updated. Brand and model names are real vehicles, but prices and codes are invented. No support, no warranty, no affiliation with any organization or data provider. Read the full [disclaimer](/disclaimer).\n\u003e\n\u003e **Your IP address is stored.** Every call is logged (IP address and the country derived from it, date and time, path and query string, user agent, HTTP status, response size) for **statistical purposes only**. **If you do not agree, do not call this API.**\n\n\u003e **Projeto de estudo - não use em produção.** Dados estáticos, nunca atualizados. Os nomes de marcas e modelos são de veículos reais, mas preços e códigos são inventados. Sem suporte, sem garantia e sem vínculo com qualquer organização ou provedor de dados. Leia o [aviso legal completo](/disclaimer).\n\u003e\n\u003e **Seu endereço IP é armazenado.** Toda chamada é registrada (endereço IP e o país derivado dele, data e hora, caminho e query string, user agent, status HTTP, tamanho da resposta) **apenas para fins estatísticos**. **Se você não concorda, não chame esta API.**\n\nRead-only **OData v4.0** view of a static vehicle dataset (brands, models, years and prices), for study purposes only.\n\nSupported query options: `$filter`, `$select`, `$orderby`, `$top`, `$skip`, `$count`, `$expand` (plain navigation names, one level).\n`$filter` supports `eq ne gt ge lt le and or not`, arithmetic (`add sub mul div mod`), and the functions\n`contains startswith endswith length tolower toupper trim concat substring indexof round floor ceiling`.\nString comparison and `contains()` are case-sensitive; use `contains(tolower(Name),'fiat')` for case-insensitive matching.\nString keys are quoted: `/Brands('cars-21')`.\nResults are server-paged (default page size 1000) and carry `@odata.nextLink` when more data is available.\n\nNot implemented: `$search`, `$apply`, `$compute`, nested `$expand` options, lambda operators (`any`/`all`), write operations.","title":"Vehicle Data OData API","version":"1.0.0"},"openapi":"3.0.3","paths":{"/":{"get":{"description":"Lists the entity sets exposed by the service.","operationId":"getServiceDocument","responses":{"200":{"content":{"application/json":{"schema":{"type":"object"}}},"description":"Service document"}},"summary":"Service document","tags":["Metadata"]}},"/$metadata":{"get":{"description":"Describes entity types, properties and navigation properties.","operationId":"getMetadata","responses":{"200":{"content":{"application/xml":{"schema":{"type":"string"}}},"description":"EDMX"}},"summary":"Metadata document (CSDL/XML)","tags":["Metadata"]}},"/Brands":{"get":{"description":"Manufacturers, per vehicle type.","operationId":"listBrands","parameters":[{"description":"Filter expression","example":"VehicleType eq 'cars' and contains(Name,'Fiat')","in":"query","name":"$filter","schema":{"type":"string"}},{"explode":false,"in":"query","name":"$select","schema":{"items":{"enum":["Id","VehicleType","VehicleTypeId","Code","Name"],"type":"string"},"type":"array"},"style":"form"},{"explode":false,"in":"query","name":"$orderby","schema":{"items":{"enum":["Id","Id desc","VehicleType","VehicleType desc","VehicleTypeId","VehicleTypeId desc","Code","Code desc","Name","Name desc"],"type":"string"},"type":"array"},"style":"form"},{"in":"query","name":"$top","schema":{"minimum":0,"type":"integer"}},{"in":"query","name":"$skip","schema":{"minimum":0,"type":"integer"}},{"description":"Include @odata.count with the total number of matches","in":"query","name":"$count","schema":{"type":"boolean"}},{"explode":false,"in":"query","name":"$expand","schema":{"items":{"enum":["Models"],"type":"string"},"type":"array"},"style":"form"}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BrandCollection"}}},"description":"Collection"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Error"}},"summary":"Query Brands","tags":["Brands"]}},"/Brands('{Id}')":{"get":{"operationId":"getBrand","parameters":[{"description":"Entity key","in":"path","name":"Id","required":true,"schema":{"type":"string"}},{"explode":false,"in":"query","name":"$select","schema":{"items":{"enum":["Id","VehicleType","VehicleTypeId","Code","Name"],"type":"string"},"type":"array"},"style":"form"},{"explode":false,"in":"query","name":"$expand","schema":{"items":{"enum":["Models"],"type":"string"},"type":"array"},"style":"form"}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Brand"}}},"description":"Brand"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Error"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Error"}},"summary":"Get Brand by key","tags":["Brands"]}},"/Brands('{Id}')/Models":{"get":{"operationId":"getBrandModels","parameters":[{"description":"Entity key","in":"path","name":"Id","required":true,"schema":{"type":"string"}},{"description":"Filter expression","example":"BrandName eq 'VW - VolksWagen' and contains(Name,'Polo')","in":"query","name":"$filter","schema":{"type":"string"}},{"explode":false,"in":"query","name":"$select","schema":{"items":{"enum":["Id","BrandId","BrandName","VehicleType","Code","Name"],"type":"string"},"type":"array"},"style":"form"},{"explode":false,"in":"query","name":"$orderby","schema":{"items":{"enum":["Id","Id desc","BrandId","BrandId desc","BrandName","BrandName desc","VehicleType","VehicleType desc","Code","Code desc","Name","Name desc"],"type":"string"},"type":"array"},"style":"form"},{"in":"query","name":"$top","schema":{"minimum":0,"type":"integer"}},{"in":"query","name":"$skip","schema":{"minimum":0,"type":"integer"}},{"description":"Include @odata.count with the total number of matches","in":"query","name":"$count","schema":{"type":"boolean"}},{"explode":false,"in":"query","name":"$expand","schema":{"items":{"enum":["Brand","Vehicles"],"type":"string"},"type":"array"},"style":"form"}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ModelCollection"}}},"description":"Collection"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Error"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Error"}},"summary":"Models of a Brand","tags":["Brands"]}},"/Brands('{Id}')/Models/$count":{"get":{"operationId":"countBrandModels","parameters":[{"description":"Entity key","in":"path","name":"Id","required":true,"schema":{"type":"string"}},{"example":"VehicleType eq 'cars' and contains(Name,'Fiat')","in":"query","name":"$filter","schema":{"type":"string"}}],"responses":{"200":{"content":{"text/plain":{"schema":{"type":"integer"}}},"description":"Number of entities"}},"summary":"Count Models of a Brand","tags":["Brands"]}},"/Brands/$count":{"get":{"operationId":"countBrands","parameters":[{"example":"VehicleType eq 'cars' and contains(Name,'Fiat')","in":"query","name":"$filter","schema":{"type":"string"}}],"responses":{"200":{"content":{"text/plain":{"schema":{"type":"integer"}}},"description":"Number of entities"}},"summary":"Count Brands","tags":["Brands"]}},"/Models":{"get":{"description":"Vehicle models of a brand.","operationId":"listModels","parameters":[{"description":"Filter expression","example":"BrandName eq 'VW - VolksWagen' and contains(Name,'Polo')","in":"query","name":"$filter","schema":{"type":"string"}},{"explode":false,"in":"query","name":"$select","schema":{"items":{"enum":["Id","BrandId","BrandName","VehicleType","Code","Name"],"type":"string"},"type":"array"},"style":"form"},{"explode":false,"in":"query","name":"$orderby","schema":{"items":{"enum":["Id","Id desc","BrandId","BrandId desc","BrandName","BrandName desc","VehicleType","VehicleType desc","Code","Code desc","Name","Name desc"],"type":"string"},"type":"array"},"style":"form"},{"in":"query","name":"$top","schema":{"minimum":0,"type":"integer"}},{"in":"query","name":"$skip","schema":{"minimum":0,"type":"integer"}},{"description":"Include @odata.count with the total number of matches","in":"query","name":"$count","schema":{"type":"boolean"}},{"explode":false,"in":"query","name":"$expand","schema":{"items":{"enum":["Brand","Vehicles"],"type":"string"},"type":"array"},"style":"form"}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ModelCollection"}}},"description":"Collection"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Error"}},"summary":"Query Models","tags":["Models"]}},"/Models('{Id}')":{"get":{"operationId":"getModel","parameters":[{"description":"Entity key","in":"path","name":"Id","required":true,"schema":{"type":"string"}},{"explode":false,"in":"query","name":"$select","schema":{"items":{"enum":["Id","BrandId","BrandName","VehicleType","Code","Name"],"type":"string"},"type":"array"},"style":"form"},{"explode":false,"in":"query","name":"$expand","schema":{"items":{"enum":["Brand","Vehicles"],"type":"string"},"type":"array"},"style":"form"}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Model"}}},"description":"Model"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Error"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Error"}},"summary":"Get Model by key","tags":["Models"]}},"/Models('{Id}')/Brand":{"get":{"operationId":"getModelBrand","parameters":[{"description":"Entity key","in":"path","name":"Id","required":true,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Brand"}}},"description":"Brand"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Error"}},"summary":"Brand of a Model","tags":["Models"]}},"/Models('{Id}')/Vehicles":{"get":{"operationId":"getModelVehicles","parameters":[{"description":"Entity key","in":"path","name":"Id","required":true,"schema":{"type":"string"}},{"description":"Filter expression","example":"Price gt 50000 and Fuel eq 'Gasolina' and ModelYear ge 2024","in":"query","name":"$filter","schema":{"type":"string"}},{"explode":false,"in":"query","name":"$select","schema":{"items":{"enum":["Id","ModelId","VehicleType","VehicleTypeId","BrandName","ModelName","ModelYear","YearCode","YearName","Fuel","FuelAcronym","CodeFipe","Price","PriceFormatted","ReferenceCode","ReferenceMonth"],"type":"string"},"type":"array"},"style":"form"},{"explode":false,"in":"query","name":"$orderby","schema":{"items":{"enum":["Id","Id desc","ModelId","ModelId desc","VehicleType","VehicleType desc","VehicleTypeId","VehicleTypeId desc","BrandName","BrandName desc","ModelName","ModelName desc","ModelYear","ModelYear desc","YearCode","YearCode desc","YearName","YearName desc","Fuel","Fuel desc","FuelAcronym","FuelAcronym desc","CodeFipe","CodeFipe desc","Price","Price desc","PriceFormatted","PriceFormatted desc","ReferenceCode","ReferenceCode desc","ReferenceMonth","ReferenceMonth desc"],"type":"string"},"type":"array"},"style":"form"},{"in":"query","name":"$top","schema":{"minimum":0,"type":"integer"}},{"in":"query","name":"$skip","schema":{"minimum":0,"type":"integer"}},{"description":"Include @odata.count with the total number of matches","in":"query","name":"$count","schema":{"type":"boolean"}},{"explode":false,"in":"query","name":"$expand","schema":{"items":{"enum":["Model","PriceHistory"],"type":"string"},"type":"array"},"style":"form"}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/VehicleCollection"}}},"description":"Collection"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Error"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Error"}},"summary":"Vehicles of a Model","tags":["Models"]}},"/Models('{Id}')/Vehicles/$count":{"get":{"operationId":"countModelVehicles","parameters":[{"description":"Entity key","in":"path","name":"Id","required":true,"schema":{"type":"string"}},{"example":"BrandName eq 'VW - VolksWagen' and contains(Name,'Polo')","in":"query","name":"$filter","schema":{"type":"string"}}],"responses":{"200":{"content":{"text/plain":{"schema":{"type":"integer"}}},"description":"Number of entities"}},"summary":"Count Vehicles of a Model","tags":["Models"]}},"/Models/$count":{"get":{"operationId":"countModels","parameters":[{"example":"BrandName eq 'VW - VolksWagen' and contains(Name,'Polo')","in":"query","name":"$filter","schema":{"type":"string"}}],"responses":{"200":{"content":{"text/plain":{"schema":{"type":"integer"}}},"description":"Number of entities"}},"summary":"Count Models","tags":["Models"]}},"/PriceHistory":{"get":{"description":"One price per vehicle and reference month.","operationId":"listPriceHistory","parameters":[{"description":"Filter expression","example":"CodeFipe eq '990001-1' and Price lt 100000","in":"query","name":"$filter","schema":{"type":"string"}},{"explode":false,"in":"query","name":"$select","schema":{"items":{"enum":["Id","VehicleId","CodeFipe","Reference","Month","Price","PriceFormatted"],"type":"string"},"type":"array"},"style":"form"},{"explode":false,"in":"query","name":"$orderby","schema":{"items":{"enum":["Id","Id desc","VehicleId","VehicleId desc","CodeFipe","CodeFipe desc","Reference","Reference desc","Month","Month desc","Price","Price desc","PriceFormatted","PriceFormatted desc"],"type":"string"},"type":"array"},"style":"form"},{"in":"query","name":"$top","schema":{"minimum":0,"type":"integer"}},{"in":"query","name":"$skip","schema":{"minimum":0,"type":"integer"}},{"description":"Include @odata.count with the total number of matches","in":"query","name":"$count","schema":{"type":"boolean"}},{"explode":false,"in":"query","name":"$expand","schema":{"items":{"enum":["Vehicle"],"type":"string"},"type":"array"},"style":"form"}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PriceEntryCollection"}}},"description":"Collection"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Error"}},"summary":"Query PriceHistory","tags":["PriceHistory"]}},"/PriceHistory('{Id}')":{"get":{"operationId":"getPriceEntry","parameters":[{"description":"Entity key","in":"path","name":"Id","required":true,"schema":{"type":"string"}},{"explode":false,"in":"query","name":"$select","schema":{"items":{"enum":["Id","VehicleId","CodeFipe","Reference","Month","Price","PriceFormatted"],"type":"string"},"type":"array"},"style":"form"},{"explode":false,"in":"query","name":"$expand","schema":{"items":{"enum":["Vehicle"],"type":"string"},"type":"array"},"style":"form"}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PriceEntry"}}},"description":"PriceEntry"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Error"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Error"}},"summary":"Get PriceEntry by key","tags":["PriceHistory"]}},"/PriceHistory('{Id}')/Vehicle":{"get":{"operationId":"getPriceEntryVehicle","parameters":[{"description":"Entity key","in":"path","name":"Id","required":true,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Vehicle"}}},"description":"Vehicle"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Error"}},"summary":"Vehicle of a PriceEntry","tags":["PriceHistory"]}},"/PriceHistory/$count":{"get":{"operationId":"countPriceHistory","parameters":[{"example":"CodeFipe eq '990001-1' and Price lt 100000","in":"query","name":"$filter","schema":{"type":"string"}}],"responses":{"200":{"content":{"text/plain":{"schema":{"type":"integer"}}},"description":"Number of entities"}},"summary":"Count PriceHistory","tags":["PriceHistory"]}},"/References":{"get":{"description":"Month references.","operationId":"listReferences","parameters":[{"description":"Filter expression","example":"contains(Month,'2026')","in":"query","name":"$filter","schema":{"type":"string"}},{"explode":false,"in":"query","name":"$select","schema":{"items":{"enum":["Code","Month"],"type":"string"},"type":"array"},"style":"form"},{"explode":false,"in":"query","name":"$orderby","schema":{"items":{"enum":["Code","Code desc","Month","Month desc"],"type":"string"},"type":"array"},"style":"form"},{"in":"query","name":"$top","schema":{"minimum":0,"type":"integer"}},{"in":"query","name":"$skip","schema":{"minimum":0,"type":"integer"}},{"description":"Include @odata.count with the total number of matches","in":"query","name":"$count","schema":{"type":"boolean"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReferenceCollection"}}},"description":"Collection"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Error"}},"summary":"Query References","tags":["References"]}},"/References('{Code}')":{"get":{"operationId":"getReference","parameters":[{"description":"Entity key","in":"path","name":"Code","required":true,"schema":{"type":"string"}},{"explode":false,"in":"query","name":"$select","schema":{"items":{"enum":["Code","Month"],"type":"string"},"type":"array"},"style":"form"}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Reference"}}},"description":"Reference"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Error"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Error"}},"summary":"Get Reference by key","tags":["References"]}},"/References/$count":{"get":{"operationId":"countReferences","parameters":[{"example":"contains(Month,'2026')","in":"query","name":"$filter","schema":{"type":"string"}}],"responses":{"200":{"content":{"text/plain":{"schema":{"type":"integer"}}},"description":"Number of entities"}},"summary":"Count References","tags":["References"]}},"/Vehicles":{"get":{"description":"Model-year/fuel variants with their latest price.","operationId":"listVehicles","parameters":[{"description":"Filter expression","example":"Price gt 50000 and Fuel eq 'Gasolina' and ModelYear ge 2024","in":"query","name":"$filter","schema":{"type":"string"}},{"explode":false,"in":"query","name":"$select","schema":{"items":{"enum":["Id","ModelId","VehicleType","VehicleTypeId","BrandName","ModelName","ModelYear","YearCode","YearName","Fuel","FuelAcronym","CodeFipe","Price","PriceFormatted","ReferenceCode","ReferenceMonth"],"type":"string"},"type":"array"},"style":"form"},{"explode":false,"in":"query","name":"$orderby","schema":{"items":{"enum":["Id","Id desc","ModelId","ModelId desc","VehicleType","VehicleType desc","VehicleTypeId","VehicleTypeId desc","BrandName","BrandName desc","ModelName","ModelName desc","ModelYear","ModelYear desc","YearCode","YearCode desc","YearName","YearName desc","Fuel","Fuel desc","FuelAcronym","FuelAcronym desc","CodeFipe","CodeFipe desc","Price","Price desc","PriceFormatted","PriceFormatted desc","ReferenceCode","ReferenceCode desc","ReferenceMonth","ReferenceMonth desc"],"type":"string"},"type":"array"},"style":"form"},{"in":"query","name":"$top","schema":{"minimum":0,"type":"integer"}},{"in":"query","name":"$skip","schema":{"minimum":0,"type":"integer"}},{"description":"Include @odata.count with the total number of matches","in":"query","name":"$count","schema":{"type":"boolean"}},{"explode":false,"in":"query","name":"$expand","schema":{"items":{"enum":["Model","PriceHistory"],"type":"string"},"type":"array"},"style":"form"}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/VehicleCollection"}}},"description":"Collection"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Error"}},"summary":"Query Vehicles","tags":["Vehicles"]}},"/Vehicles('{Id}')":{"get":{"operationId":"getVehicle","parameters":[{"description":"Entity key","in":"path","name":"Id","required":true,"schema":{"type":"string"}},{"explode":false,"in":"query","name":"$select","schema":{"items":{"enum":["Id","ModelId","VehicleType","VehicleTypeId","BrandName","ModelName","ModelYear","YearCode","YearName","Fuel","FuelAcronym","CodeFipe","Price","PriceFormatted","ReferenceCode","ReferenceMonth"],"type":"string"},"type":"array"},"style":"form"},{"explode":false,"in":"query","name":"$expand","schema":{"items":{"enum":["Model","PriceHistory"],"type":"string"},"type":"array"},"style":"form"}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Vehicle"}}},"description":"Vehicle"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Error"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Error"}},"summary":"Get Vehicle by key","tags":["Vehicles"]}},"/Vehicles('{Id}')/Model":{"get":{"operationId":"getVehicleModel","parameters":[{"description":"Entity key","in":"path","name":"Id","required":true,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Model"}}},"description":"Model"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Error"}},"summary":"Model of a Vehicle","tags":["Vehicles"]}},"/Vehicles('{Id}')/PriceHistory":{"get":{"operationId":"getVehiclePriceHistory","parameters":[{"description":"Entity key","in":"path","name":"Id","required":true,"schema":{"type":"string"}},{"description":"Filter expression","example":"CodeFipe eq '990001-1' and Price lt 100000","in":"query","name":"$filter","schema":{"type":"string"}},{"explode":false,"in":"query","name":"$select","schema":{"items":{"enum":["Id","VehicleId","CodeFipe","Reference","Month","Price","PriceFormatted"],"type":"string"},"type":"array"},"style":"form"},{"explode":false,"in":"query","name":"$orderby","schema":{"items":{"enum":["Id","Id desc","VehicleId","VehicleId desc","CodeFipe","CodeFipe desc","Reference","Reference desc","Month","Month desc","Price","Price desc","PriceFormatted","PriceFormatted desc"],"type":"string"},"type":"array"},"style":"form"},{"in":"query","name":"$top","schema":{"minimum":0,"type":"integer"}},{"in":"query","name":"$skip","schema":{"minimum":0,"type":"integer"}},{"description":"Include @odata.count with the total number of matches","in":"query","name":"$count","schema":{"type":"boolean"}},{"explode":false,"in":"query","name":"$expand","schema":{"items":{"enum":["Vehicle"],"type":"string"},"type":"array"},"style":"form"}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PriceEntryCollection"}}},"description":"Collection"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Error"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Error"}},"summary":"PriceHistory of a Vehicle","tags":["Vehicles"]}},"/Vehicles('{Id}')/PriceHistory/$count":{"get":{"operationId":"countVehiclePriceHistory","parameters":[{"description":"Entity key","in":"path","name":"Id","required":true,"schema":{"type":"string"}},{"example":"Price gt 50000 and Fuel eq 'Gasolina' and ModelYear ge 2024","in":"query","name":"$filter","schema":{"type":"string"}}],"responses":{"200":{"content":{"text/plain":{"schema":{"type":"integer"}}},"description":"Number of entities"}},"summary":"Count PriceHistory of a Vehicle","tags":["Vehicles"]}},"/Vehicles/$count":{"get":{"operationId":"countVehicles","parameters":[{"example":"Price gt 50000 and Fuel eq 'Gasolina' and ModelYear ge 2024","in":"query","name":"$filter","schema":{"type":"string"}}],"responses":{"200":{"content":{"text/plain":{"schema":{"type":"integer"}}},"description":"Number of entities"}},"summary":"Count Vehicles","tags":["Vehicles"]}}},"servers":[{"url":"/odata"}],"tags":[{"name":"Metadata"},{"description":"Month references.","name":"References"},{"description":"Manufacturers, per vehicle type.","name":"Brands"},{"description":"Vehicle models of a brand.","name":"Models"},{"description":"Model-year/fuel variants with their latest price.","name":"Vehicles"},{"description":"One price per vehicle and reference month.","name":"PriceHistory"}]}
