add default resource to some apis