Studio Developer Manual / Version 2401
Table Of ContentsThe preview URL service in the Studio server can be obtained simply by referencing it by its interface. Let's say, you 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;
}
...
}