Class DataDrivenEnumDetailsEndpoint
java.lang.Object
com.broadleafcommerce.catalog.web.endpoint.commerce.DataDrivenEnumDetailsEndpoint
@FrameworkRestController
@FrameworkMapping("/data-driven-enum-details")
@DataRouteByExample(DataDrivenEnumDetails.class)
public class DataDrivenEnumDetailsEndpoint
extends Object
- Author:
- Sunny Yu
-
Constructor Summary
ConstructorDescriptionDataDrivenEnumDetailsEndpoint
(DataDrivenEnumDetailsService dataDrivenEnumDetailsService) -
Method Summary
Modifier and TypeMethodDescriptionprotected DataDrivenEnumDetailsService
org.springframework.http.ResponseEntity<DataDrivenEnumDetailsList>
readDetailsForRequest
(jakarta.servlet.http.HttpServletRequest request, com.broadleafcommerce.data.tracking.core.context.ContextInfo context, DataDrivenEnumDetailsRequest detailsRequest, org.springframework.util.MultiValueMap<String, String> parameters) Returns aDataDrivenEnumDetailsList
for the givenDataDrivenEnumDetailsRequest
.
-
Constructor Details
-
DataDrivenEnumDetailsEndpoint
-
-
Method Details
-
readDetailsForRequest
@FrameworkGetMapping public org.springframework.http.ResponseEntity<DataDrivenEnumDetailsList> readDetailsForRequest(jakarta.servlet.http.HttpServletRequest request, @ContextOperation com.broadleafcommerce.data.tracking.core.context.ContextInfo context, DataDrivenEnumDetailsRequest detailsRequest, @RequestParam org.springframework.util.MultiValueMap<String, String> parameters) Returns aDataDrivenEnumDetailsList
for the givenDataDrivenEnumDetailsRequest
. If the request is missing or has insufficient information (e.g., is missingDataDrivenEnumDetailsRequest.getDataDrivenEnumIds()
), then this returns a 400 error. If no data driven enum matches the request, then this returns a 404.- Parameters:
request
-HttpServletRequest
for the requestcontext
- Context info for multitenant and sandbox conditionsdetailsRequest
- TheDataDrivenEnumDetailsRequest
- Returns:
- a
DataDrivenEnumDetails
matching theDataDrivenEnumDetailsRequest
.
-
getDataDrivenEnumDetailsService
-