All checks were successful
CI fuzzy controller / container-test-job (push) Successful in 3m0s
21 lines
775 B
Java
21 lines
775 B
Java
package ru.ulstu.fc.rule.controller;
|
|
|
|
import org.springframework.web.bind.annotation.PathVariable;
|
|
import org.springframework.web.bind.annotation.PostMapping;
|
|
import org.springframework.web.bind.annotation.RestController;
|
|
import ru.ulstu.fc.rule.service.FuzzyRuleParseService;
|
|
|
|
@RestController("fuzzyRuleParseRest")
|
|
public class FuzzyRuleParseRestController {
|
|
private final FuzzyRuleParseService fuzzyRuleParseService;
|
|
|
|
public FuzzyRuleParseRestController(FuzzyRuleParseService fuzzyRuleParseService) {
|
|
this.fuzzyRuleParseService = fuzzyRuleParseService;
|
|
}
|
|
|
|
@PostMapping("parse/{projectId}")
|
|
public void parseRule(@PathVariable("projectId") Integer projectId, String data) {
|
|
fuzzyRuleParseService.parseFuzzyRules(data, projectId);
|
|
}
|
|
}
|