Improve "addResource" Api Method