base of backend
Co-authored-by: Debucquoy <debucqquoy.anthony@gmail.com> Reviewed-on: #29 Co-authored-by: Anthony Debucquoy <debucquoy.anthony@gmail.com> Co-committed-by: Anthony Debucquoy <debucquoy.anthony@gmail.com>
This commit is contained in:
		| @ -0,0 +1,12 @@ | ||||
| package ovh.herisson.Clyde; | ||||
|  | ||||
| import org.springframework.boot.SpringApplication; | ||||
| import org.springframework.boot.autoconfigure.SpringBootApplication; | ||||
|  | ||||
| @SpringBootApplication | ||||
| public class ClydeApplication { | ||||
|  | ||||
| 	public static void main(String[] args) { | ||||
| 		SpringApplication.run(ClydeApplication.class, args); | ||||
| 	} | ||||
| } | ||||
| @ -0,0 +1,18 @@ | ||||
| package ovh.herisson.Clyde.EndPoints; | ||||
|  | ||||
| import org.springframework.web.bind.annotation.GetMapping; | ||||
| import org.springframework.web.bind.annotation.RestController; | ||||
|  | ||||
| import ovh.herisson.Clyde.Ping; | ||||
|  | ||||
| @RestController | ||||
| public class PingController { | ||||
|  | ||||
| 	@GetMapping("/ping") | ||||
| 	public Ping ping(){ | ||||
| 		return new Ping(1, "test"); | ||||
| 	} | ||||
| 	 | ||||
| } | ||||
|  | ||||
|  | ||||
							
								
								
									
										3
									
								
								backend/src/main/java/ovh/herisson/Clyde/Ping.java
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										3
									
								
								backend/src/main/java/ovh/herisson/Clyde/Ping.java
									
									
									
									
									
										Normal file
									
								
							| @ -0,0 +1,3 @@ | ||||
| package ovh.herisson.Clyde; | ||||
|  | ||||
| public record Ping(int id, String txt){}; | ||||
							
								
								
									
										1
									
								
								backend/src/main/resources/application.properties
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										1
									
								
								backend/src/main/resources/application.properties
									
									
									
									
									
										Normal file
									
								
							| @ -0,0 +1 @@ | ||||
|  | ||||
| @ -0,0 +1,13 @@ | ||||
| package ovh.herisson.Clyde; | ||||
|  | ||||
| import org.junit.jupiter.api.Test; | ||||
| // import org.springframework.boot.test.context.SpringBootTest; | ||||
|  | ||||
| // @SpringBootTest | ||||
| class ClydeApplicationTests { | ||||
|  | ||||
| 	@Test | ||||
| 	void contextLoads() { | ||||
| 	} | ||||
|  | ||||
| } | ||||
		Reference in New Issue
	
	Block a user