close

Filter

loading table of contents...

Studio Developer Manual / Version 2307

Table Of Contents

9.32.8.3 Obtaining the PreviewUrlService in Studio Server

The 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;
    }
    ...
  }

Search Results

Table Of Contents
warning

Your Internet Explorer is no longer supported.

Please use Mozilla Firefox, Google Chrome, or Microsoft Edge.