ut for ResourceApi