Add method to get a link to a resource.