Class WebResourceService
java.lang.Object
overit.geocallapp.utilities.rs.common.PrivateService
overit.geocallapp.wfm.mobile.core.rs3.webresource.WebResourceService
@RestController
@RequestMapping("mobile/r3/webresources")
@Resource(logging=true)
public class WebResourceService
extends PrivateService
Services to manage upload and download of files connected to Web Resources
- Since:
- 19.0
- GCApi:
- rest
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.springframework.http.ResponseEntity<DTOWebResourceURL> getDownloadUrl(@Valid DTOWebResourceRequest request) Retrieve the URL and data required to perform the download of a certain web resourceorg.springframework.http.ResponseEntity<DTOWebResourceURL> getUploadUrl(@Valid DTOWebResourceRequest request) Retrieve the URL and data required to perform an upload of a certain web resource.
-
Constructor Details
-
WebResourceService
public WebResourceService()
-
-
Method Details
-
getUploadUrl
@GetMapping(value="upload-url", produces="application/json") public org.springframework.http.ResponseEntity<DTOWebResourceURL> getUploadUrl(@RequestParam("request") @Valid @Valid DTOWebResourceRequest request) throws DAValidateException Retrieve the URL and data required to perform an upload of a certain web resource.- Parameters:
request- the path of the Web Resource on the server- Returns:
- An object containing the presigned url and any information required for the upload
- Throws:
DAValidateException- See Also:
-
getDownloadUrl
@GetMapping(value="download-url", produces="application/json") public org.springframework.http.ResponseEntity<DTOWebResourceURL> getDownloadUrl(@RequestParam("request") @Valid @Valid DTOWebResourceRequest request) throws DAValidateException Retrieve the URL and data required to perform the download of a certain web resource- Parameters:
request- the path of the Web Resource on the server- Returns:
- An object containing the presigned url and any information required for the download
- Throws:
DAValidateException- See Also:
-