Updated api viewer with query support