public function onGet() { $this->setBody($this->statisticService->getErrorsPerRoute(QueryFilter::create($this->getParameters()))); }
public function testCreateSearchBody() { $filter = QueryFilter::create(['search' => '{"foo": "bar"}']); $this->assertEquals('{"foo": "bar"}', $filter->getBody()); }
public function onGet() { $this->setBody($this->statisticService->getIncomingRequests(QueryFilter::create($this->getParameters()))); }
public function onGet() { $this->setBody($this->statisticService->getMostUsedRoutes(QueryFilter::create($this->getParameters()))); }
/** * Returns the GET response * * @return array|\PSX\Record\RecordInterface */ protected function doGet() { return $this->logService->getAll($this->getParameter('startIndex', Validate::TYPE_INTEGER) ?: null, QueryFilter::create($this->getParameters())); }