api package now holds resource interface definition