#80 hide mvc controllers from api
This commit is contained in:
parent
c70c35f4f3
commit
7b0b7a041a
@ -13,6 +13,7 @@ import ru.ulstu.deadline.model.Deadline;
|
|||||||
import ru.ulstu.grant.model.Grant;
|
import ru.ulstu.grant.model.Grant;
|
||||||
import ru.ulstu.grant.model.GrantDto;
|
import ru.ulstu.grant.model.GrantDto;
|
||||||
import ru.ulstu.grant.service.GrantService;
|
import ru.ulstu.grant.service.GrantService;
|
||||||
|
import springfox.documentation.annotations.ApiIgnore;
|
||||||
|
|
||||||
import javax.validation.Valid;
|
import javax.validation.Valid;
|
||||||
import java.io.IOException;
|
import java.io.IOException;
|
||||||
@ -28,6 +29,7 @@ import static ru.ulstu.grant.controller.Navigation.hasErrors;
|
|||||||
|
|
||||||
@Controller()
|
@Controller()
|
||||||
@RequestMapping(value = "/grants")
|
@RequestMapping(value = "/grants")
|
||||||
|
@ApiIgnore
|
||||||
public class GrantController {
|
public class GrantController {
|
||||||
private final GrantService grantService;
|
private final GrantService grantService;
|
||||||
|
|
||||||
|
@ -6,9 +6,11 @@ import org.springframework.web.bind.annotation.GetMapping;
|
|||||||
import org.springframework.web.bind.annotation.RequestMapping;
|
import org.springframework.web.bind.annotation.RequestMapping;
|
||||||
import ru.ulstu.core.controller.AdviceController;
|
import ru.ulstu.core.controller.AdviceController;
|
||||||
import ru.ulstu.user.service.UserService;
|
import ru.ulstu.user.service.UserService;
|
||||||
|
import springfox.documentation.annotations.ApiIgnore;
|
||||||
|
|
||||||
@Controller()
|
@Controller()
|
||||||
@RequestMapping(value = "/index")
|
@RequestMapping(value = "/index")
|
||||||
|
@ApiIgnore
|
||||||
public class IndexController extends AdviceController {
|
public class IndexController extends AdviceController {
|
||||||
public IndexController(UserService userService) {
|
public IndexController(UserService userService) {
|
||||||
super(userService);
|
super(userService);
|
||||||
|
@ -15,6 +15,7 @@ import ru.ulstu.paper.model.PaperDto;
|
|||||||
import ru.ulstu.paper.model.PaperFilterDto;
|
import ru.ulstu.paper.model.PaperFilterDto;
|
||||||
import ru.ulstu.paper.service.PaperService;
|
import ru.ulstu.paper.service.PaperService;
|
||||||
import ru.ulstu.user.model.User;
|
import ru.ulstu.user.model.User;
|
||||||
|
import springfox.documentation.annotations.ApiIgnore;
|
||||||
|
|
||||||
import javax.validation.Valid;
|
import javax.validation.Valid;
|
||||||
import java.io.IOException;
|
import java.io.IOException;
|
||||||
@ -28,6 +29,7 @@ import static org.springframework.util.StringUtils.isEmpty;
|
|||||||
|
|
||||||
@Controller()
|
@Controller()
|
||||||
@RequestMapping(value = "/papers")
|
@RequestMapping(value = "/papers")
|
||||||
|
@ApiIgnore
|
||||||
public class PaperController {
|
public class PaperController {
|
||||||
private final PaperService paperService;
|
private final PaperService paperService;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user