Class InjectController
- java.lang.Object
-
- net.officefloor.tutorial.springapp.InjectController
-
@RestController @RequestMapping("/complex") public class InjectController extends java.lang.Object
InjectRestController
.- Author:
- Daniel Sagenschneider
-
-
Constructor Summary
Constructors Constructor Description InjectController()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
header(java.lang.String header)
java.lang.String
inject()
java.lang.String
pathParam(java.lang.String parameter)
java.lang.String
post(java.lang.String requestBody)
java.lang.String
requestParam(java.lang.String parameter)
java.lang.String
status()
-
-
-
Method Detail
-
inject
@GetMapping("/inject") public java.lang.String inject()
-
status
@GetMapping("/status") @ResponseStatus(CREATED) public java.lang.String status()
-
pathParam
@GetMapping("/path/{param}") public java.lang.String pathParam(@PathVariable("param") java.lang.String parameter)
-
requestParam
@GetMapping(path="/query", params="param") public java.lang.String requestParam(@RequestParam("param") java.lang.String parameter)
-
header
@GetMapping(path="/header", headers="header") public java.lang.String header(@RequestHeader("header") java.lang.String header)
-
post
@PostMapping public java.lang.String post(@RequestBody java.lang.String requestBody)
-
-