#479 WebAPI: when getting widgets, implemented get of widget type