Class PluginController
- java.lang.Object
-
- org.craftercms.studio.controller.web.v1.PluginController
-
@RestController @RequestMapping("/1/plugin") public class PluginController extends Object
Controller that provides the UI with plugin related files- Since:
- 4.0
- Author:
- joseross
-
-
Field Summary
Fields Modifier and Type Field Description protected org.springframework.http.CacheControl
cacheControl
protected ConfigurationService
configurationService
The configuration service
-
Constructor Summary
Constructors Constructor Description PluginController(ConfigurationService configurationService, org.springframework.http.CacheControl cacheControl)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description @Valid org.springframework.http.ResponseEntity<org.springframework.core.io.Resource>
getPluginFile(String siteId, String type, String name, String filename, String pluginId)
Returns a single file for a given plugin
-
-
-
Field Detail
-
configurationService
protected final ConfigurationService configurationService
The configuration service
-
cacheControl
protected final org.springframework.http.CacheControl cacheControl
-
-
Constructor Detail
-
PluginController
@ConstructorProperties({"configurationService","cacheControl"}) public PluginController(ConfigurationService configurationService, org.springframework.http.CacheControl cacheControl)
-
-
Method Detail
-
getPluginFile
@Valid @GetMapping("/file") public @Valid org.springframework.http.ResponseEntity<org.springframework.core.io.Resource> getPluginFile(@RequestParam String siteId, @RequestParam String type, @RequestParam String name, @RequestParam(required=false) String filename, String pluginId) throws ContentNotFoundException
Returns a single file for a given plugin- Throws:
ContentNotFoundException
-
-