BSRO Catalog (v 1.2.1)
OVERVIEW
This document describes Output REST API Functions. Main API methods helps to search actual sizes of tires , search tires by vehicle, etc.
Methods
# | Api method | Url | description |
|---|---|---|---|
1 | /api/size | Show all AVAILABLE size of catalog | |
2 | /api/size/{cross} | Show all AVAILABLE size of catalog, linked to pointed cross size | |
3 | /api/size/{cross}/{aspect} | Show all AVAILABLE size of catalog, linked to pointed cross and aspect sizes | |
4 | /api/by_vehicle | Year dropdown. Must have only available vehicles | |
5 | /api/by_vehicle/{year} | Make name and id dropdown. Must have only available makes by year | |
6 | /api/by_vehicle/{year}/{makeId} | Model name and id dropdown. Must have only available Model by year and makeid | |
7 | /api/by_vehicle/{year}/{makeId}/{modelId} | submodel (trim) id and name dropdown. Must have only available Model by year,modelid and makeid | |
8 | /api/search/by_size | Show tires, that available in catalog, search by size. | |
9 | /api/search/by_vehicle | Show tires, that available in catalog, by brand and product number. | |
10 | /api/search/by_brand | Show tires, that available in catalog, search by vehicle. | |
11 | /api/vehicle/reverse | Show the entire distinct vehicle makes. | |
12 | /api/vehicle/reverse/{friendlyMakeName} | Show the entire distinct vehicle models for a given make. | |
13 | Vehicle YearVehicle Years List by Make and Models List by Make and Model | /api/vehicle/reverse/{friendlyMakeName}/{friendlyModelName} | Show the entire distinct vehicle models for a given make and model. |
14 | /api/vehicle/reverse/{friendlyMakeName}/{friendlyModelName}/{year} | Show the entire distinct vehicle models for a given make, model and year. | |
15 | /api/vehicle/reverse/{friendlyMakeName}/{friendlyModelName}/{year}/{friendlySubmodelName} | Show the unique Aces vehicle ID for a given year, make and model and submodel friendly names. | |
16 | /api/size/reverse | Show the entire distinct vehicle rim diameter values. | |
17 | /api/size/reverse/{rimSize} | Show the entire distinct tire sizes for the given vehicle rim diameter value by size. | |
18 | /api/vehicle/fitment/{acesVehicleId} | Show vehicle fitment details for the given Aces Vehicle Id. | |
19 | /api/tire/category/{category} | Show tire models by category. | |
20 | /api/vehicle/category/{category} | Show vehicle make and model list by vehicle type. |
Size dictionary must help to know actual sizes from database; it must return known sizes linked one to other;
Search must return known tires, used brand & part number;
Search by size must return size id & founded tires;
METHODS DESCRIPTION
Explanation:
Show all available Cross sizes for drop down list.
Action: GET
URL: https://bsro.tireconnect.ca/api/size
EG. https://bsro.tireconnect.ca/api/size
Output description
value | path | comment |
|---|---|---|
statusCode | root.statusCode | =SUCCESSFUL |
payload | root.payload | NODE |
cross | root.payload.cross | NODE |
value | root.payload.cross[].value | This is an integer value represented as string. 9.5 will be 950 |
text | root.payload.cross[].text | This is a text value. Something, that may be shown in dropdownlistbox. |
Note:
All data actual for our catalog. For example if we do not have any tire with 155 cross size we won’t show it. Output sorted by text.
Explanation:
Show all available Aspect sizes for drop down list.
Action: GET
URL: https://bsro.tireconnect.ca/api/size/cross
EG. https://bsro.tireconnect.ca/api/size/215
Request Parameters
Parameter(s) | example value and explanation if needed | Required |
|---|---|---|
cross | 215 (Cross Section). input | YES |
Output description
value | path | comment |
|---|---|---|
statusCode | root.statusCode | =SUCCESSFUL |
payload | root.payload | NODE |
aspect | root.payload.aspect | NODE |
value | root.payload.aspect[].value | This is an integer value represented as string. 9.5 will be 950 |
text | root.payload.aspect[].text | This is a text value. Something, that may be shown in dropdownlistbox. |
Note:
All data actual for our catalog. For example if we do not have any tire with 70 aspect size we won’t show it.
Exception:
if nothing found : {"statusCode":"VALIDATION_ERROR","message":"Sorry, there is no information available on the requested product."}
Explanation:
To show all available Rims sizes for drop down list.
Action: GET
URL: https://bsro.tireconnect.ca/api/size/cross/aspect
EG. https://bsro.tireconnect.ca/api/size/215/60
Request Parameters
Parameter(s) | example value and explanation if needed | Required |
|---|---|---|
cross | 215 (Cross Section). input | YES |
aspect | 60 (Aspect Ratio). input | YES |
Output description
value | path | comment |
|---|---|---|
statusCode | root.statusCode | =SUCCESSFUL |
payload | root.payload | NODE |
rim | root.payload.aspect | NODE |
value | root.payload.rim[].value | This is an integer value represented as string. 9.5 will be 950 |
text | root.payload.rim[].text | This is a text value. Something, that may be shown in dropdownlistbox. |
Note:
All data actual for our catalog. For example if we do not have any tire with 15 rim size we won’t show it.
Exception:
if nothing found : {"statusCode":"VALIDATION_ERROR","message":"Sorry, there is no information available on the requested product."}
Explanation:
Show all available vehicle years for drop down list.
Action: GET
URL: https://bsro.tireconnect.ca/api/by_vehicle
EG. https://bsro.tireconnect.ca/api/by_vehicle
Output description
Field name(required data) | path | comment | link |
|---|---|---|---|
statusCode | root.statusCode | Const = “SUCCESSFUL” |
|
payload | root.payload | NODE |
|
"year" | root.payload.year | NODE |
|
array | root.payload.year[] | model_year | MODEL_YEAR |
Note:
Service used to get vehicles model Year. Tire search widget will use this service to populate the year drop down.
Explanation:
To show all available vehicles make by year for drop down list.
Action: GET
URL: https://bsro.tireconnect.ca/api/by_vehicle/{year}
EG. https://bsro.tireconnect.ca/api/by_vehicle/2010
Request Parameters
Parameter(s) | example value and explanation if needed | Required |
|---|---|---|
year | 2010 | YES |
Output description
Field name(required data) | path | comment | link |
|---|---|---|---|
statusCode | root.statusCode | Const = “SUCCESSFUL” |
|
payload | root.payload | NODE |
|
"make" | root.payload.make | NODE |
|
"makeId" | root.payload.make[].makeId | string | MAKE_ID |
"name" | root.payload.make[].name | text | MAKE_NAME |
“friendlyName” | root.payload.make[].friendlyName | text | Generated value based on “name” |
Note:
Service used to get vehicle make Id’s and Names by year. Tire search widget will use this service to populate the make drop down.
Explanation:
To show all available vehicles models by year and make for drop down list.
Action: GET
URL: https://bsro.tireconnect.ca/api/by_vehicle/{year}/{makeId}
EG. https://bsro.tireconnect.ca/api/by_vehicle/2010/47
Request Parameters
Parameter(s) | example value and explanation if needed | Required |
|---|---|---|
year | 2010 | YES |
makeId | 47 | YES |
Output description
Field name(required data) | path | comment | link |
|---|---|---|---|
statusCode | root.statusCode | Const = “SUCCESSFUL” |
|
payload | root.payload | NODE |
|
"model" | root.payload.model | NODE |
|
"modelId" |