/**
  * Gets the parents routes for a given child resource.
  *
  * @param ResourceConfiguration $config
  * @return string
  */
 protected function parentRoutesFor(ResourceConfiguration $config)
 {
     if ($config->getParent()) {
         $parentConfig = $this->configuration->resourceConfigurationFor($config->getParent());
         return $this->parentRoutesFor($parentConfig) . "/{$config->getParent()}/{{$config->getParent()}_id}";
     }
 }