diff --git a/src/main/java/edu/kit/provideq/toolbox/ProblemSolverInfo.java b/src/main/java/edu/kit/provideq/toolbox/ProblemSolverInfo.java index d05058ce..72f0b170 100644 --- a/src/main/java/edu/kit/provideq/toolbox/ProblemSolverInfo.java +++ b/src/main/java/edu/kit/provideq/toolbox/ProblemSolverInfo.java @@ -1,5 +1,5 @@ package edu.kit.provideq.toolbox; -public record ProblemSolverInfo(String id, String name) { +public record ProblemSolverInfo(String id, String name, String description) { } \ No newline at end of file diff --git a/src/main/java/edu/kit/provideq/toolbox/api/SolversRouter.java b/src/main/java/edu/kit/provideq/toolbox/api/SolversRouter.java index 4a0630bd..7c174b4d 100644 --- a/src/main/java/edu/kit/provideq/toolbox/api/SolversRouter.java +++ b/src/main/java/edu/kit/provideq/toolbox/api/SolversRouter.java @@ -65,7 +65,8 @@ private Mono handleSolversRouteForManager(ProblemManager m private static List getAllSolverInfos(ProblemManager manager) { return manager.getSolvers().stream() - .map(solver -> new ProblemSolverInfo(solver.getId(), solver.getName())) + .map(solver -> new ProblemSolverInfo(solver.getId(), solver.getName(), + solver.getDescription())) .toList(); }