@shaggytools/nhtsa-api-wrapper / Exports / api/endpoints/GetMakeForManufacturer
Module: api/endpoints/GetMakeForManufacturer
Table of contents
Functions
Type Aliases
Functions
GetMakeForManufacturer
▸ GetMakeForManufacturer(manufacturer, doFetch?): Promise<NhtsaResponse<GetMakeForManufacturerResults>>
💡 More Information
GetMakeForManufacturer returns all the Makes in the vPIC dataset for a specified manufacturer that is requested. Multiple results are returned in case of multiple matches.
manufacturer name can be a partial name, or a full name for more specificity, e.g. "988", "honda", "HONDA OF CANADA MFG., INC.", etc.
- If supplied
manufactureris a number - method will do exact match on Manufacturer's Id. - If supplied
manufactureris a string - it will look for manufacturers whose name is LIKE the provided name. It accepts a partial manufacturer name as an input.
Parameters
| Name | Type | Description |
|---|---|---|
manufacturer | string | number | Manufacturer Name or ID |
doFetch? | true | Whether to fetch the data or just return the URL (default: true) |
Returns
Promise<NhtsaResponse<GetMakeForManufacturerResults>>
- Api Response
object-or- urlstringifdoFetch = false
Defined in
api/endpoints/GetMakeForManufacturer.ts:31
▸ GetMakeForManufacturer(manufacturer, doFetch): Promise<string>
Parameters
| Name | Type |
|---|---|
manufacturer | string | number |
doFetch | false |
Returns
Promise<string>
Defined in
api/endpoints/GetMakeForManufacturer.ts:36
Type Aliases
GetMakeForManufacturerResults
Ƭ GetMakeForManufacturerResults: Object
Objects found in the Results array of GetMakeForManufacturer endpoint response.
Type declaration
| Name | Type |
|---|---|
Make_ID | number |
Make_Name | string |
Mfr_Name | string |