Created a test api for getting user.

This commit is contained in:
harish
2024-08-09 15:11:07 +05:30
parent f8ec4e5bf4
commit 2773dfa034
2 changed files with 7 additions and 6 deletions

View File

@@ -1,10 +1,8 @@
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")
public interface UserApi {
@GetMapping("")
User getUser();
}

View File

@@ -1,11 +1,14 @@
package net.gepafin.tendermanagement.web.rest.api.impl;
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;
@RestController
public class UserControllerImpl implements UserController
@RequestMapping("/v1/user")
public class UserApiController implements UserApi
{
@Override