setName of resource has an extra boolean to change the name of the url