예제 #1
0
 public function onGet()
 {
     $this->setBody($this->statisticService->getErrorsPerRoute(QueryFilter::create($this->getParameters())));
 }
예제 #2
0
 public function testCreateSearchBody()
 {
     $filter = QueryFilter::create(['search' => '{"foo": "bar"}']);
     $this->assertEquals('{"foo": "bar"}', $filter->getBody());
 }
예제 #3
0
 public function onGet()
 {
     $this->setBody($this->statisticService->getIncomingRequests(QueryFilter::create($this->getParameters())));
 }
예제 #4
0
 public function onGet()
 {
     $this->setBody($this->statisticService->getMostUsedRoutes(QueryFilter::create($this->getParameters())));
 }
예제 #5
0
 /**
  * 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()));
 }