added savePreset handler
parent
0c82358cfb
commit
41b229e8b3
|
|
@ -1,6 +1,7 @@
|
||||||
package com.nttdata.calender.api;
|
package com.nttdata.calender.api;
|
||||||
|
|
||||||
import java.util.ArrayList;
|
import java.util.ArrayList;
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
import org.apache.logging.log4j.LogManager;
|
import org.apache.logging.log4j.LogManager;
|
||||||
import org.apache.logging.log4j.Logger;
|
import org.apache.logging.log4j.Logger;
|
||||||
|
|
@ -309,12 +310,11 @@ public class KalenderRestController {
|
||||||
@CrossOrigin("*")
|
@CrossOrigin("*")
|
||||||
@PostMapping("/api/savePreset")
|
@PostMapping("/api/savePreset")
|
||||||
@ResponseBody
|
@ResponseBody
|
||||||
public Preset savePreset(@RequestBody Preset request)
|
public List<Preset> savePreset(@RequestBody Preset request)
|
||||||
throws ARException, ValidationError {
|
throws ARException, ValidationError, NotFoundError {
|
||||||
change.modifyTimestamp(request);
|
Presets presets = new Presets(javaAPI);
|
||||||
return request;
|
return presets.getAll();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Logs the received request with the endpoint and request body.
|
* Logs the received request with the endpoint and request body.
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue