src/External/Bag/Api/BagClient.php
public function details($type, $id)
    {
      // Concat url
      $url = self::API_URL . '/' . $type . '/' . $id;

      // Create a REST request
      $request = new \LibX\Net\Rest\Request($url, \LibX\Net\Rest\Request::REQUEST_METHOD_GET);

      // Create a REST response
      $response = new \LibX\Net\Rest\Response();

      // Make the call
      $data = $this->call($request, $response);

      //return $data->_embedded;
      return $data;
    }
public function details($type, $id)
    {
      // Concat url
      $url = self::API_URL . '/' . $type . '/' . $id;

      // Create a REST request
      $request = new \LibX\Net\Rest\Request($url, \LibX\Net\Rest\Request::REQUEST_METHOD_GET);

      // Create a REST response
      $response = new \LibX\Net\Rest\Response();

      // Make the call
      $data = $this->call($request, $response);

      //return $data->_embedded;
      return $data;
    }
public function details ( $ type , $ id ) { // Concat url $ url = self :: API_URL . '/' . $ type . '/' . $ id ; // Create a REST request $ request = new \ LibX \ Net \ Rest \ Request ( $ url , \ LibX \ Net \ Rest \ Request :: REQUEST_METHOD_GET ) ; // Create a REST response $ response = new \ LibX \ Net \ Rest \ Response ( ) ; // Make the call $ data = $ this -> call ( $ request , $ response ) ; //return $data->_embedded; return $ data ; }
Retrieve BAG details

@param string $type
@param string $id
Retrieve BAG details