124 lines
No EOL
3.1 KiB
JavaScript
124 lines
No EOL
3.1 KiB
JavaScript
const endpoints = {
|
|
GetRouteInfo: {
|
|
url: (applicationAbbreviation) => `/content/api/v1/content/${applicationAbbreviation}/RouteInfo`,
|
|
method: "POST",
|
|
},
|
|
GetHomepageInfo: {
|
|
url: (applicationAbbreviation) => `/content/api/v1/content/${applicationAbbreviation}/HomepageInfo`,
|
|
method: "GET",
|
|
},
|
|
GetPageData: {
|
|
url: (applicationAbbreviation, pageName) => `/content/api/v1/content/${applicationAbbreviation}/${pageName}`,
|
|
method: "GET",
|
|
},
|
|
GetVehicleYears: {
|
|
url: "/vehicle/api/v1/vehicle/years",
|
|
method: "GET",
|
|
},
|
|
GetVehicleMakes: {
|
|
url: "/vehicle/api/v1/vehicle/makes/",
|
|
method: "GET",
|
|
},
|
|
GetVehicleModels: {
|
|
url: "/vehicle/api/v1/vehicle/models",
|
|
method: "GET",
|
|
},
|
|
GetVehicleStyles: {
|
|
url: "/vehicle/api/v1/vehicle/styles",
|
|
method: "GET",
|
|
},
|
|
GetDamageOptions: {
|
|
url: "/parts/api/v1/parts/damage-options",
|
|
method: "GET",
|
|
},
|
|
GetPartsOrQuestions: {
|
|
url: "/parts/api/v1/parts/parts-or-questions",
|
|
method: "POST",
|
|
},
|
|
GetParts: {
|
|
url: "/parts/api/v1/parts/parts",
|
|
method: "POST",
|
|
},
|
|
GetPriceOrderItems: {
|
|
url: '/price/api/v1/price/order-items',
|
|
method: 'GET'
|
|
},
|
|
GetCapabilityQuestions: {
|
|
url: "/parts/api/v1/parts/capability-questions",
|
|
method: "GET",
|
|
},
|
|
GetPartFromCapabilityAnswer: {
|
|
url: "/parts/api/v1/parts/part-from-capability-answer",
|
|
method: "POST",
|
|
},
|
|
GetWipers: {
|
|
url: '/parts/api/v1/parts/wipers',
|
|
method: 'GET'
|
|
},
|
|
GetRainDefense: {
|
|
url: '/parts/api/v1/parts/rain-defense',
|
|
method: 'GET'
|
|
},
|
|
GetSupportingItems: {
|
|
url: '/parts/api/v1/parts/supporting-items',
|
|
method: 'POST'
|
|
},
|
|
GetVehicle: {
|
|
url: "/vehicle/api/v1/vehicle/lookup",
|
|
method: "GET",
|
|
},
|
|
LogExperimentExposureIfAssigned: {
|
|
url: "/experiments/api/v1/experiments/log-exposure",
|
|
method: "POST",
|
|
},
|
|
LogPageView: {
|
|
url: "/analytics/api/v1/analytics/log-page-view",
|
|
method: "POST",
|
|
},
|
|
LogCustomEvent: {
|
|
url: "/analytics/api/v1/analytics/log-custom-event",
|
|
method: "POST",
|
|
},
|
|
LookupVehicleByVin: {
|
|
url: "/vehicle/api/v1/vehicle/lookup",
|
|
method: "POST",
|
|
},
|
|
LookupVinByAddress: {
|
|
url: "/vehicle/api/v1/vehicle/lookup-vin-by-address",
|
|
method: "POST",
|
|
},
|
|
LookupVinByPlate: {
|
|
url: "/vehicle/api/v1/vehicle/lookup-vin-by-plate",
|
|
method: "POST",
|
|
},
|
|
InitializeSession: {
|
|
url: "/analytics/api/v1/analytics/initialize",
|
|
method: "POST",
|
|
},
|
|
GetExperimentsByUser: {
|
|
url: "/analytics/api/v1/analytics/get-experiments",
|
|
method: "GET",
|
|
},
|
|
RunExperimentsForTrigger: {
|
|
url: "/experiments/api/v1/experiments/run",
|
|
method: "POST",
|
|
},
|
|
ValidateZip: {
|
|
url: "/location/api/v1/location/zip",
|
|
method: "GET",
|
|
},
|
|
GooglePlaces: {
|
|
url: "https://maps.googleapis.com/maps/api/js?key={apiKey}&libraries=places"
|
|
},
|
|
ValidateClientTag: {
|
|
url: "/clientauth/api/v1/clientauth/validate-client-tag",
|
|
method: "GET",
|
|
},
|
|
IsVinbyAddressPermissible:{
|
|
url:"/vehicle/api/v1/vehicle/is-vin-by-address-permissible",
|
|
method:"Get",
|
|
}
|
|
};
|
|
|
|
export { endpoints };
|
|
|