Skip to content

Commit

Permalink
test method for bot
Browse files Browse the repository at this point in the history
  • Loading branch information
MarenHanke committed Feb 21, 2024
1 parent 3f73e93 commit a3b5886
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -3535,6 +3535,7 @@ public Response getAlgorithmCompatibleGraphTypes(@PathParam("CoverCreationType")
@ApiOperation(tags = {"names"}, value = "Algorithms information", notes = "Returns all algorithm type names.")
public Response getAlgorithmNames() {
try {
System.out.println(Response.ok(requestHandler.writeAlgorithmNames()).build());
return Response.ok(requestHandler.writeAlgorithmNames()).build();
} catch (Exception e) {
requestHandler.log(Level.SEVERE, "", e);
Expand All @@ -3561,6 +3562,19 @@ public Response getMultiplexAlgorithmNames() {
return requestHandler.writeError(Error.INTERNAL, "Internal system error.");
}
}

@GET
@Path("testforbot")
@Produces(MediaType.TEXT_XML)
@ApiResponses(value = { @ApiResponse(code = 200, message = "Success"),
@ApiResponse(code = 401, message = "Unauthorized") })
@ApiOperation(tags = {"names"}, value = "Algorithms information", notes = "Returns all algorithm type names.")
public Response testforbot() {
System.out.println("testforbot");
String jsonResponse = "{\"text\": \"test successfull\", \"closeContext\": \"\"}";
System.out.println(Response.ok(jsonResponse).build());
return Response.ok(jsonResponse).build();
}

/**
* Returns all centrality measure names.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
import java.util.List;
import java.util.Map;
import java.util.Set;
//import ca.pfv.spmf.algorithms.frequentpatterns.apriori_close.AlgoAprioriClose;


/**
Expand Down
2 changes: 1 addition & 1 deletion time_seed.dat
Original file line number Diff line number Diff line change
@@ -1 +1 @@
21113359
21113554

0 comments on commit a3b5886

Please sign in to comment.