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 Link icon

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

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

    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 Link icon

    buildNOKResponse, buildNOKResponseWithKey, buildOKResponse, buildResponse, buildResponse, getLocationForCreatedResource, getLocationURIForCreatedResource, handleBehaviorAwareException, handleBusinessRuntimeException, handleConstraintViolationException, handleException, handleHttpBusinessException, handleRemovalNotAllowedException, handleTechnicalRuntimeException, handleValidationException, illegalArgumentException, translate

    Methods inherited from class java.lang.Object Link icon

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

  • Constructor Details Link icon

    • RouteResource Link icon

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

    • getAll Link icon

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

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

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

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

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