|
@@ -264,6 +264,15 @@ class Webservice
|
|
|
return array("error" => "Webservice({$webservice}) not found.");
|
|
|
}
|
|
|
|
|
|
+ public function buildUrlForId($ws,$id = null, $extra= null){
|
|
|
+ $url = $this->serviceContainer->getParameter($ws);
|
|
|
+ if(!is_null($id)){
|
|
|
+ $url = str_replace(".json", "/{$id}", $url);
|
|
|
+ }
|
|
|
+ return $url . $extra;
|
|
|
+
|
|
|
+ }
|
|
|
+
|
|
|
/**
|
|
|
* @return ContainerInterface
|
|
|
*/
|