Exemplo n.º 1
0
 /**
  * Will handle the current request and returns the correct response
  */
 public function handleRequest()
 {
     $version = $this->versionEngine->getVersion();
     $queryConfiguration = $version->parseRequest($this->columnConfigurations);
     $this->provider->prepareForProcessing($queryConfiguration, $this->columnConfigurations);
     $data = $this->provider->process();
     return $version->createResponse($data, $queryConfiguration, $this->columnConfigurations);
 }
Exemplo n.º 2
0
 /**
  * Will handle the current request and returns the correct response
  * @return JsonResponse the response that should be returned to the client.
  */
 public function handleRequest()
 {
     $request = $this->prepareRequest();
     $version = $request['version'];
     $queryConfiguration = $request['queryConfiguration'];
     $data = $this->provider->process();
     return $version->createResponse($data, $queryConfiguration, $this->columnConfigurations);
 }