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

    Fields
    Modifier and Type
    Field
    Description
    private final RouteUIService
     
  • Constructor Summary

    Constructors
    Constructor
    Description
    RouteResource(org.springframework.context.MessageSource messageSource, RouteUIService routeUIService)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    create(RouteVO routeVO, jakarta.servlet.http.HttpServletRequest req, jakarta.servlet.http.HttpServletResponse resp)
     
    void
    delete(String pKey)
     
     
     
    save(RouteVO routeVO)
     

    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

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

  • Constructor Details

    • RouteResource

      RouteResource(org.springframework.context.MessageSource messageSource, RouteUIService routeUIService)
  • Method Details

    • getAll

      @GetMapping("/v1/api/routes") public List<RouteVO> getAll()
    • findByPKey

      @GetMapping("/v1/api/routes/{pKey}") public RouteVO findByPKey(@PathVariable String pKey)
    • delete

      @DeleteMapping("/v1/api/routes/{pKey}") @ResponseStatus(NO_CONTENT) @CacheEvict("routes") public void delete(@PathVariable("pKey") String pKey)
    • save

      @PutMapping("/v1/api/routes") @CacheEvict("routes") public RouteVO save(@RequestBody RouteVO routeVO)
    • create

      @PostMapping("/v1/api/routes") @ResponseStatus(CREATED) @CacheEvict("routes") public void create(@RequestBody RouteVO routeVO, jakarta.servlet.http.HttpServletRequest req, jakarta.servlet.http.HttpServletResponse resp)