api: adds resources for Obj and Widget