added dummy application

This commit is contained in:
hirst 2024-05-27 17:21:49 +02:00
parent 035eb6ffb2
commit a36c9d778b
2 changed files with 19 additions and 0 deletions

View file

@ -2,8 +2,11 @@ package com.learningpulse.dummy;
import org.springframework.boot.SpringApplication; import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication; import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
@SpringBootApplication @SpringBootApplication
@EnableDiscoveryClient
public class DummyApplication { public class DummyApplication {
public static void main(String[] args) { public static void main(String[] args) {

View file

@ -0,0 +1,16 @@
package com.learningpulse.dummy;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
@RestController
@RequestMapping("/api/v1/dummy")
public class Test {
@GetMapping("/test")
public ResponseEntity<String> test() {
return ResponseEntity.ok("Hello, World!");
}
}