Class RestController

java.lang.Object
com.aquima.web.aaas.AbstractEndpoint
com.aquima.web.aaas.RestController

@Controller public class RestController extends AbstractEndpoint
  • Field Details

  • Constructor Details

    • RestController

      @Autowired public RestController(com.aquima.interactions.portal.IPortalEngine engine, IShortcutPathService shortcutPathService, BaasFlowStarter flowStarter, com.blueriq.component.api.security.IAuthorisationManager authorizationManager, com.blueriq.component.api.shortcut.IShortcutManager shortcutManager)
  • Method Details

    • handle

      @RequestMapping(value="/rest/**", params="!project") public org.springframework.web.servlet.View handle(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws Exception
      Throws:
      Exception
    • shortcutSwaggerFeed

      @GetMapping(path="/rest/docs", params="shortcut", produces="application/json") @ResponseBody public String shortcutSwaggerFeed(@RequestParam("shortcut") String shortcutName, @RequestParam(name="spec",defaultValue="3") String spec, javax.servlet.http.HttpServletRequest request) throws Exception
      Throws:
      Exception
    • projectSwaggerFeed

      @GetMapping(path="/rest/docs", params="project", produces="application/json") @ResponseBody public org.springframework.http.ResponseEntity<String> projectSwaggerFeed(@RequestParam("project") String project, @RequestParam("version") String version, @RequestParam(name="spec",defaultValue="3") String spec, javax.servlet.http.HttpServletRequest request) throws com.fasterxml.jackson.core.JsonProcessingException
      Throws:
      com.fasterxml.jackson.core.JsonProcessingException
    • handleErrorMessage

      @ResponseBody @ExceptionHandler(WebServiceCallException.class) public org.springframework.http.ResponseEntity<RestErrorResponse> handleErrorMessage(WebServiceCallException ex)