adding resourceApi to all assets calls