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,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");
}
}