Package sk.iway.iwcm.rest
Class DocRestController
java.lang.Object
sk.iway.iwcm.rest.RestController
sk.iway.iwcm.rest.DocRestController
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
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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns DocDetails object for given docId or virtualPath.Methods inherited from class sk.iway.iwcm.rest.RestController
isIpAddressAllowed
-
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 requestparam
- docId, or virtualPath- Returns:
- DocDetails object
-