fix: add explicit parameter name to ToolReportController
Some checks failed
Deploy to OCIWP / deploy (push) Failing after 12s
Some checks failed
Deploy to OCIWP / deploy (push) Failing after 12s
This commit is contained in:
@@ -52,7 +52,7 @@ public class ToolReportController {
|
|||||||
}
|
}
|
||||||
|
|
||||||
@GetMapping("/report-tools")
|
@GetMapping("/report-tools")
|
||||||
public List<ToolSummary> tools(@RequestParam(required = false) String sourceType) {
|
public List<ToolSummary> tools(@RequestParam(value = "sourceType", required = false) String sourceType) {
|
||||||
return service.findTools(sourceType);
|
return service.findTools(sourceType);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -27,7 +27,7 @@ public class ToolReportProxyController {
|
|||||||
}
|
}
|
||||||
|
|
||||||
@GetMapping(value = "/report/api/report-tools", produces = MediaType.APPLICATION_JSON_VALUE)
|
@GetMapping(value = "/report/api/report-tools", produces = MediaType.APPLICATION_JSON_VALUE)
|
||||||
public List<ReportToolSummary> tools(@RequestParam(required = false) String sourceType) {
|
public List<ReportToolSummary> tools(@RequestParam(value = "sourceType", required = false) String sourceType) {
|
||||||
ReportToolSummary[] tools = restClient.get()
|
ReportToolSummary[] tools = restClient.get()
|
||||||
.uri(reportServiceUrl + "/api/report-tools?sourceType={sourceType}",
|
.uri(reportServiceUrl + "/api/report-tools?sourceType={sourceType}",
|
||||||
sourceType == null ? "DAP_WAS_DAPMT" : sourceType)
|
sourceType == null ? "DAP_WAS_DAPMT" : sourceType)
|
||||||
|
|||||||
Reference in New Issue
Block a user