@RestController @RequestMapping(value="/v1/{tenant}/resources") @ConditionalOnBean(value=ResourcesManagerConfiguration.class) public class ResourcesManagerRoute extends Object
Constructor and Description |
---|
ResourcesManagerRoute(ResourcesManagerService service) |
Modifier and Type | Method and Description |
---|---|
org.springframework.http.ResponseEntity<org.thales.punch.settings.api.ISettingsMap> |
copy(String tenant,
String destination,
Long version,
javax.servlet.http.HttpServletRequest request) |
void |
delete(String tenant,
List<Long> versions,
javax.servlet.http.HttpServletRequest request) |
org.springframework.http.ResponseEntity<org.springframework.core.io.InputStreamResource> |
download(String tenant,
Long version,
javax.servlet.http.HttpServletRequest request) |
org.springframework.http.ResponseEntity<org.thales.punch.settings.api.ISettingsMap> |
list(String tenant,
String pattern,
boolean all,
List<String> filter) |
org.springframework.http.ResponseEntity<org.thales.punch.settings.api.ISettingsMap> |
move(String tenant,
String destination,
Long version,
javax.servlet.http.HttpServletRequest request) |
org.springframework.http.ResponseEntity<org.thales.punch.libraries.resources.manager.metadata.pojo.Metadata> |
register(String tenant,
String url,
Long version,
String properties,
javax.servlet.http.HttpServletRequest request) |
org.springframework.http.ResponseEntity<org.thales.punch.libraries.resources.manager.metadata.pojo.Metadata> |
updateResource(String tenant,
Long version,
String properties,
javax.servlet.http.HttpServletRequest request) |
org.springframework.http.ResponseEntity<org.thales.punch.settings.api.ISettingsMap> |
upload(String tenant,
org.springframework.web.multipart.MultipartFile input,
Long version,
String properties,
javax.servlet.http.HttpServletRequest request) |
public ResourcesManagerRoute(ResourcesManagerService service)
@PutMapping(value="/upload/**", consumes={"application/json","multipart/mixed","multipart/form-data"}, produces="application/json") public org.springframework.http.ResponseEntity<org.thales.punch.settings.api.ISettingsMap> upload(@PathVariable String tenant, @RequestPart org.springframework.web.multipart.MultipartFile input, @RequestPart(required=false) Long version, @RequestParam(required=false) String properties, javax.servlet.http.HttpServletRequest request)
@GetMapping(value="/download/**") public org.springframework.http.ResponseEntity<org.springframework.core.io.InputStreamResource> download(@PathVariable String tenant, @RequestParam(value="version",required=false) Long version, javax.servlet.http.HttpServletRequest request)
@ResponseStatus(code=OK) @GetMapping(value="/list", produces="application/json") public org.springframework.http.ResponseEntity<org.thales.punch.settings.api.ISettingsMap> list(@PathVariable String tenant, @RequestParam(required=false) String pattern, @RequestParam(required=false) boolean all, @RequestParam(required=false) List<String> filter)
@DeleteMapping(value="/delete/**", produces="application/json") public void delete(@PathVariable String tenant, @RequestParam(value="version",required=false) List<Long> versions, javax.servlet.http.HttpServletRequest request)
@PutMapping(value="/copy/**", consumes={"application/json","multipart/mixed","multipart/form-data"}, produces="application/json") public org.springframework.http.ResponseEntity<org.thales.punch.settings.api.ISettingsMap> copy(@PathVariable String tenant, @RequestParam String destination, @RequestParam(required=false) Long version, javax.servlet.http.HttpServletRequest request)
@PutMapping(value="/move/**", consumes={"application/json","multipart/mixed","multipart/form-data"}, produces="application/json") public org.springframework.http.ResponseEntity<org.thales.punch.settings.api.ISettingsMap> move(@PathVariable String tenant, @RequestParam String destination, @RequestParam(required=false) Long version, javax.servlet.http.HttpServletRequest request)
@PutMapping(value="/register/**", consumes={"application/json","multipart/mixed","multipart/form-data"}, produces="application/json") public org.springframework.http.ResponseEntity<org.thales.punch.libraries.resources.manager.metadata.pojo.Metadata> register(@PathVariable String tenant, @RequestParam String url, @RequestParam(required=false) Long version, @RequestParam(required=false) String properties, javax.servlet.http.HttpServletRequest request)
@PostMapping(value="/update/**", consumes={"application/json","multipart/form-data"}, produces="application/json") public org.springframework.http.ResponseEntity<org.thales.punch.libraries.resources.manager.metadata.pojo.Metadata> updateResource(@PathVariable String tenant, @RequestParam(required=false) Long version, @RequestParam String properties, javax.servlet.http.HttpServletRequest request)
Copyright © 2023. All rights reserved.