Class TestController

java.lang.Object
app.keyconnect.server.controllers.TestController

@RestController
@ConditionalOnProperty(name="runtime-mode",
                       havingValue="test")
public class TestController
extends java.lang.Object
  • Constructor Summary

    Constructors
    Constructor Description
    TestController​(TestRepo testRepo)  
  • Method Summary

    Modifier and Type Method Description
    org.springframework.http.ResponseEntity<TestObject> getTestObject​(java.lang.String id)  
    org.springframework.http.ResponseEntity<TestObject> putTestObject​(java.lang.String value)  

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • TestController

      public TestController​(TestRepo testRepo)
  • Method Details

    • putTestObject

      @PostMapping(path="/api/v1/test", produces="application/json") public org.springframework.http.ResponseEntity<TestObject> putTestObject​(@RequestParam("value") java.lang.String value)
    • getTestObject

      @GetMapping(path="/api/v1/test", produces="application/json") public org.springframework.http.ResponseEntity<TestObject> getTestObject​(@RequestParam("id") java.lang.String id)