Class DocRestController

java.lang.Object
sk.iway.iwcm.rest.RestController
sk.iway.iwcm.rest.DocRestController

@RestController public class DocRestController extends RestController
DocRestController.java

Returns DocDetails object of requested document(web-page) Title webjet8 Company Interway s.r.o. (www.interway.sk) Copyright Interway s.r.o. (c) 2001-2017
  • Constructor Details

    • DocRestController

      public DocRestController()
  • Method Details

    • getDoc

      @RequestMapping(path="/rest/documents/{param}/**", method=GET) public DocDetails getDoc(javax.servlet.http.HttpServletRequest request, @PathVariable String param)
      Returns DocDetails object for given docId or virtualPath. If virtualPath contains .html it has to be replaced to -html

      Examples:

      1)
      URL - /rest/documents/50124
      2)
      URL - /rest/documents/en/gallery/kitchen
      3)
      URL - /rest/documents/en/home-html
      Parameters:
      request - - http request
      param - docId, or virtualPath
      Returns:
      DocDetails object