created gepafin project
This commit is contained in:
@@ -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();
|
||||
}
|
||||
@@ -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");
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user