created gepafin project

This commit is contained in:
harish
2024-08-09 14:26:15 +05:30
parent 824f79079e
commit f8ec4e5bf4
11 changed files with 561 additions and 0 deletions

View File

@@ -0,0 +1,14 @@
package net.gepafin.tendermanagement;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
@SpringBootApplication
public class TendermanagementApplication {
public static void main(String[] args) {
SpringApplication.run(TendermanagementApplication.class, args);
}
}

View File

@@ -0,0 +1,38 @@
package net.gepafin.tendermanagement.model;
public class User {
private Long id;
private String name;
private String email;
public User() {}
public User(Long id, String name, String email) {
this.id = id;
this.name = name;
this.email = email;
}
public Long getId() {
return id;
}
public void setId(Long id) {
this.id = id;
}
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
public String getEmail() {
return email;
}
public void setEmail(String email) {
this.email = email;
}
}

View File

@@ -0,0 +1,10 @@
package net.gepafin.tendermanagement.web.rest.api;
import net.gepafin.tendermanagement.model.User;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
@RequestMapping("/api")
public interface UserController {
@GetMapping("/user")
User getUser();
}

View File

@@ -0,0 +1,15 @@
package net.gepafin.tendermanagement.web.rest.api.impl;
import net.gepafin.tendermanagement.model.User;
import net.gepafin.tendermanagement.web.rest.api.UserController;
import org.springframework.web.bind.annotation.RestController;
@RestController
public class UserControllerImpl implements UserController
{
@Override
public User getUser() {
return new User(1L, "John Doe", "john.doe@test.test");
}
}

View File

@@ -0,0 +1,3 @@
spring.application.name=tendermanagement
server.port=8080