blob: db7059fbbcc4690ec1858a33a240bc0d3bb5602f [file] [log] [blame]
package net.floodlightcontroller.devicemanager.web;
import java.util.Iterator;
import net.floodlightcontroller.core.INetMapTopologyObjects.IDeviceObject;
import net.onrc.onos.util.GraphDBConnection;
import org.restlet.resource.Get;
import org.restlet.resource.ServerResource;
public class TopoDevicesResource extends ServerResource {
@Get("json")
public Iterator<IDeviceObject> retrieve() {
GraphDBConnection conn = GraphDBConnection.getInstance("");
return conn.utils().getDevices(conn).iterator();
}
}