Studio Developer Manual / Version 2010
Table Of ContentsThe preview url service in the studio server can be obtained simply by referencing it by its' interface. Let's say, we want to implement a new REST service and want to use the preview url service. The basic approach using plain spring boot would be:
@RestController
public class CustomRestController {
private final PreviewUrlService previewUrlService;
public CustomRestController(PreviewUrlService previewUrlService) {
this.previewUrlService = previewUrlService;
}
...
}