|
@@ -1,6 +1,9 @@
|
|
package cn.com.qmth.examcloud.core.basic.api.controller;
|
|
package cn.com.qmth.examcloud.core.basic.api.controller;
|
|
|
|
|
|
|
|
+import org.springframework.web.bind.annotation.DeleteMapping;
|
|
import org.springframework.web.bind.annotation.GetMapping;
|
|
import org.springframework.web.bind.annotation.GetMapping;
|
|
|
|
+import org.springframework.web.bind.annotation.PostMapping;
|
|
|
|
+import org.springframework.web.bind.annotation.PutMapping;
|
|
import org.springframework.web.bind.annotation.RequestMapping;
|
|
import org.springframework.web.bind.annotation.RequestMapping;
|
|
import org.springframework.web.bind.annotation.RestController;
|
|
import org.springframework.web.bind.annotation.RestController;
|
|
|
|
|
|
@@ -14,7 +17,25 @@ public class TestController extends ControllerSupport {
|
|
|
|
|
|
@ApiOperation(value = "测试")
|
|
@ApiOperation(value = "测试")
|
|
@GetMapping()
|
|
@GetMapping()
|
|
- public String info() {
|
|
|
|
|
|
+ public String get() {
|
|
|
|
+ return DateUtil.getNowISO();
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ @ApiOperation(value = "测试")
|
|
|
|
+ @PostMapping()
|
|
|
|
+ public String post() {
|
|
|
|
+ return DateUtil.getNowISO();
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ @ApiOperation(value = "测试")
|
|
|
|
+ @PutMapping()
|
|
|
|
+ public String put() {
|
|
|
|
+ return DateUtil.getNowISO();
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ @ApiOperation(value = "测试")
|
|
|
|
+ @DeleteMapping()
|
|
|
|
+ public String delete() {
|
|
return DateUtil.getNowISO();
|
|
return DateUtil.getNowISO();
|
|
}
|
|
}
|
|
|
|
|