@RestController @RequestMapping(value="/v1/{tenant}/archives") public class ArchivesRoute extends Object
Constructor and Description |
---|
ArchivesRoute(ResourcesService service) |
Modifier and Type | Method and Description |
---|---|
void |
delete(String tenant,
String id)
Delete specific archive
|
org.springframework.http.ResponseEntity<org.springframework.web.servlet.mvc.method.annotation.StreamingResponseBody> |
download(String tenant,
String id)
Download an archive (Punchline extraction).
|
void |
purgeTenant(String tenant)
Purge all archive for tenant
|
public ArchivesRoute(ResourcesService service)
@GetMapping(value="/{id}", produces="application/zip") public org.springframework.http.ResponseEntity<org.springframework.web.servlet.mvc.method.annotation.StreamingResponseBody> download(@PathVariable String tenant, @PathVariable String id)
tenant
- tenantid
- archive id@DeleteMapping public void purgeTenant(@PathVariable String tenant)
tenant
- tenant nameCopyright © 2023. All rights reserved.