@RestController
@RequestMapping(path="/v1/workbasketdefinitions",
produces="application/json")
public class WorkbasketDefinitionController
extends java.lang.Object
WorkbasketDefinition related endpoints.| Constructor and Description |
|---|
WorkbasketDefinitionController() |
| Modifier and Type | Method and Description |
|---|---|
org.springframework.http.ResponseEntity<java.util.List<WorkbasketDefinition>> |
exportWorkbaskets(java.lang.String domain) |
org.springframework.http.ResponseEntity<java.lang.String> |
importWorkbaskets(java.util.List<WorkbasketDefinition> definitions)
This method imports a list of
WorkbasketDefinition. |
@GetMapping
@Transactional(readOnly=true,
rollbackFor=java.lang.Exception.class)
public org.springframework.http.ResponseEntity<java.util.List<WorkbasketDefinition>> exportWorkbaskets(@RequestParam(required=false)
java.lang.String domain)
@PostMapping(path="/import")
@Transactional(rollbackFor=java.lang.Exception.class)
public org.springframework.http.ResponseEntity<java.lang.String> importWorkbaskets(@RequestBody
java.util.List<WorkbasketDefinition> definitions)
WorkbasketDefinition. This does not exactly match the REST norm, but
we want to have an option to import all settings at once. When a logical equal (key and domain are equal)
workbasket already exists an update will be executed. Otherwise a new workbasket will be created.definitions - the list of workbasket definitions which will be imported to the current system.Copyright © 2018. All rights reserved.