Class UrlResolverEndpoint
java.lang.Object
com.broadleafcommerce.tenant.web.endpoint.UrlResolverEndpoint
@FrameworkRestController
@FrameworkMapping("/url-resolver")
@DataRouteByExample(Tenant.class)
public class UrlResolverEndpoint
extends Object
Endpoint used for resolving the URL for applications and admins.
- Author:
- Nick Crum (ncrum)
-
Field Summary
-
Constructor Summary
ConstructorDescriptionUrlResolverEndpoint
(ApplicationService<Application> applicationService, TenantService<Tenant> tenantService, UrlResolver urlResolver) -
Method Summary
Modifier and TypeMethodDescriptionorg.springframework.http.ResponseEntity<com.broadleafcommerce.tenant.web.endpoint.UrlResolverEndpoint.UrlResolverResponse>
getAdminUrl
(String tenantId) org.springframework.http.ResponseEntity<com.broadleafcommerce.tenant.web.endpoint.UrlResolverEndpoint.UrlResolverResponse>
getApplicationUrl
(String applicationId)
-
Field Details
-
URL_RESOLVER_URI
- See Also:
-
-
Constructor Details
-
UrlResolverEndpoint
public UrlResolverEndpoint(ApplicationService<Application> applicationService, TenantService<Tenant> tenantService, UrlResolver urlResolver)
-
-
Method Details
-
getApplicationUrl
@FrameworkGetMapping("/application") public org.springframework.http.ResponseEntity<com.broadleafcommerce.tenant.web.endpoint.UrlResolverEndpoint.UrlResolverResponse> getApplicationUrl(@RequestParam String applicationId) -
getAdminUrl
@FrameworkGetMapping("/admin") public org.springframework.http.ResponseEntity<com.broadleafcommerce.tenant.web.endpoint.UrlResolverEndpoint.UrlResolverResponse> getAdminUrl(@RequestParam String tenantId)
-