close

Filter

loading table of contents...

Studio Developer Manual / Version 2010

Table Of Contents

7.28.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, 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;
    }
    ...
  }

Search Results

Table Of Contents