remote console; web api with diagram query