use of org.wso2.ei.dashboard.micro.integrator.delegates.ApisDelegate in project product-mi-tooling by wso2.
the class GroupsApi method getApisByNodeIds.
@GET
@Path("/{group-id}/apis")
@Produces({ "application/json" })
@Operation(summary = "Get APIs by node ids", description = "", tags = { "apis" })
@ApiResponses(value = { @ApiResponse(responseCode = "200", description = "List of APIs deployed in provided nodes", content = @Content(schema = @Schema(implementation = Artifacts.class))), @ApiResponse(responseCode = "200", description = "Unexpected error", content = @Content(schema = @Schema(implementation = Error.class))) })
public Response getApisByNodeIds(@PathParam("group-id") @Parameter(description = "Group ID of the node") String groupId, @NotNull @QueryParam("nodes") @Parameter(description = "ID/IDs of the nodes") List<String> nodes) {
ApisDelegate apisDelegate = new ApisDelegate();
Artifacts apiList = apisDelegate.getArtifactsList(groupId, nodes);
Response.ResponseBuilder responseBuilder = Response.ok().entity(apiList);
HttpUtils.setHeaders(responseBuilder);
return responseBuilder.build();
}
Aggregations