# Conflicts: # package-lock.json # package.json # src/constants/application-config.js # src/constants/endpoints.js
96 lines
No EOL
2.4 KiB
JavaScript
96 lines
No EOL
2.4 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",
|
|
},
|
|
GetCapabilityQuestions: {
|
|
url: "/parts/api/v1/parts/capability-questions",
|
|
method: "GET",
|
|
},
|
|
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"
|
|
}
|
|
};
|
|
|
|
export { endpoints };
|
|
|