use of org.ovirt.engine.api.v3.types.V3Capabilities in project ovirt-engine by oVirt.
the class V3CapabilitiesServer method get.
@GET
@Path("/{id}")
public V3VersionCaps get(@PathParam("id") String id) {
V3Capabilities capabilities = list();
Optional<V3VersionCaps> caps = capabilities.getVersions().stream().filter(x -> x.getId().equals(id)).findFirst();
if (caps.isPresent()) {
return caps.get();
}
throw new WebApplicationException(Response.Status.NOT_FOUND);
}
Aggregations