backend-api мелкий рефакторинг
This commit is contained in:
parent
7a858cf422
commit
c46f4ebf07
3 changed files with 6 additions and 4 deletions
|
|
@ -7,7 +7,7 @@ import ru.spcex.clearing.backendapi.service.IOperator;
|
|||
import java.util.Objects;
|
||||
import java.util.concurrent.ExecutionException;
|
||||
|
||||
public class AbstractQueueController {
|
||||
public abstract class AbstractQueueController {
|
||||
private final IOperator operator;
|
||||
|
||||
public AbstractQueueController(IOperator operator) {
|
||||
|
|
|
|||
|
|
@ -16,7 +16,9 @@ import ru.spcex.clearing.imdg.IMDGDistributedNames;
|
|||
import java.util.Collection;
|
||||
import java.util.Map;
|
||||
|
||||
@Deprecated //todo не лишний ли этот контроллер? См. CudMoneyMarketSecurityController @Deprecated
|
||||
/**
|
||||
* SecurityController и MoneyMarketSecurityController разные контроллеры, не путать.
|
||||
*/
|
||||
@Controller
|
||||
@RequestMapping("/securities")
|
||||
public class SecurityController {
|
||||
|
|
|
|||
|
|
@ -22,7 +22,7 @@ public class DefaultController implements InitializingBean {
|
|||
|
||||
@ApiOperation(value = "Test backend-api availability.")
|
||||
@ApiResponses(value = {@ApiResponse(code = 200, message = "OK", response = String.class)})
|
||||
@RequestMapping(method = RequestMethod.GET, path = "/anonymous/method1", produces = MediaType.TEXT_PLAIN_VALUE)
|
||||
@RequestMapping(method = RequestMethod.GET, path = "/api/system/ping", produces = MediaType.TEXT_PLAIN_VALUE)
|
||||
@ResponseBody
|
||||
public String processGet() {
|
||||
log.info("Call test method for backend-api controller");
|
||||
|
|
@ -31,7 +31,7 @@ public class DefaultController implements InitializingBean {
|
|||
|
||||
@ApiOperation(value = "Test backend-api availability (for authorized access). Available for anonymous, if authorization-disabled=true.")
|
||||
@ApiResponses(value = {@ApiResponse(code = 200, message = "OK")})
|
||||
@RequestMapping(method = RequestMethod.GET, path = "/users/method2", produces = MediaType.TEXT_PLAIN_VALUE)
|
||||
@RequestMapping(method = RequestMethod.GET, path = "/api/system/ping/authorized", produces = MediaType.TEXT_PLAIN_VALUE)
|
||||
@ResponseBody
|
||||
public String processProtectedGet() {
|
||||
log.info("controller method2");
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue