Created a test api for getting user.
This commit is contained in:
@@ -1,10 +1,8 @@
|
|||||||
package net.gepafin.tendermanagement.web.rest.api;
|
package net.gepafin.tendermanagement.web.rest.api;
|
||||||
import net.gepafin.tendermanagement.model.User;
|
import net.gepafin.tendermanagement.model.User;
|
||||||
import org.springframework.web.bind.annotation.GetMapping;
|
import org.springframework.web.bind.annotation.GetMapping;
|
||||||
import org.springframework.web.bind.annotation.RequestMapping;
|
|
||||||
|
|
||||||
@RequestMapping("/api")
|
public interface UserApi {
|
||||||
public interface UserController {
|
@GetMapping("")
|
||||||
@GetMapping("/user")
|
|
||||||
User getUser();
|
User getUser();
|
||||||
}
|
}
|
||||||
@@ -1,11 +1,14 @@
|
|||||||
package net.gepafin.tendermanagement.web.rest.api.impl;
|
package net.gepafin.tendermanagement.web.rest.api.impl;
|
||||||
|
|
||||||
import net.gepafin.tendermanagement.model.User;
|
import net.gepafin.tendermanagement.model.User;
|
||||||
import net.gepafin.tendermanagement.web.rest.api.UserController;
|
import net.gepafin.tendermanagement.web.rest.api.UserApi;
|
||||||
|
import org.springframework.web.bind.annotation.RequestMapping;
|
||||||
import org.springframework.web.bind.annotation.RestController;
|
import org.springframework.web.bind.annotation.RestController;
|
||||||
|
|
||||||
|
|
||||||
@RestController
|
@RestController
|
||||||
public class UserControllerImpl implements UserController
|
@RequestMapping("/v1/user")
|
||||||
|
public class UserApiController implements UserApi
|
||||||
{
|
{
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
Reference in New Issue
Block a user