@RestController public class DemoController extends Object
| Constructor and Description |
|---|
DemoController(DomainUserService domainUserService)
Instantiates a new demo controller.
|
| Modifier and Type | Method and Description |
|---|---|
org.springframework.http.ResponseEntity<Void> |
resetData()
Resets demo data.
|
org.springframework.http.ResponseEntity<Void> |
throwError()
Throws an error.
|
public DemoController(DomainUserService domainUserService)
domainUserService - the domain user service@GetMapping(path="/api/error",
produces="application/json")
public org.springframework.http.ResponseEntity<Void> throwError()
@PostMapping(path="/api/reset",
produces="application/json")
public org.springframework.http.ResponseEntity<Void> resetData()
Copyright © 2020 bremersee.org. All rights reserved.