Package org.openwms.tms.routing.ui
Class RouteResource
java.lang.Object
org.openwms.core.http.AbstractWebController
org.openwms.tms.routing.ui.RouteResource
@MeasuredRestController
class RouteResource
extends org.openwms.core.http.AbstractWebController
A RouteResource.
- Author:
- Heiko Scherrer
-
Field Summary
Modifier and TypeFieldDescriptionprivate final LocationRepository
private final RouteMapper
private final RouteRepository
-
Constructor Summary
ConstructorDescriptionRouteResource
(LocationRepository locationRepository, RouteRepository routeRepository, RouteMapper mapper) -
Method Summary
Methods inherited from class org.openwms.core.http.AbstractWebController
buildNOKResponse, buildNOKResponseWithKey, buildOKResponse, buildResponse, buildResponse, getLocationForCreatedResource, getLocationURIForCreatedResource, handleBehaviorAwareException, handleBusinessRuntimeException, handleConstraintViolationException, handleException, handleHttpBusinessException, handleRemovalNotAllowedException, handleTechnicalRuntimeException, handleValidationException, illegalArgumentException, translate
-
Field Details
-
locationRepository
-
routeRepository
-
mapper
-
-
Constructor Details
-
RouteResource
RouteResource(LocationRepository locationRepository, RouteRepository routeRepository, RouteMapper mapper)
-
-
Method Details
-
getAll
-
delete
@DeleteMapping("/v1/api/routes/{persistentKey}") @ResponseStatus(NO_CONTENT) @CacheEvict("routes") @Transactional public void delete(@PathVariable("persistentKey") String persistentKey) -
save
-
create
@PostMapping("/v1/api/routes") @ResponseStatus(CREATED) @CacheEvict("routes") @Transactional public void create(@RequestBody RouteVO routeVO, jakarta.servlet.http.HttpServletRequest req, jakarta.servlet.http.HttpServletResponse resp) -
getCreatedResourceURI
-