adding URL mapping to the resource objects