Exemplo n.º 1
0
 /**
  * Execute schema request
  *
  * @return void
  */
 protected function processSchemaRequest()
 {
     $requestedServices = $this->_request->getRequestedServices('all');
     $requestedServices = $requestedServices == Request::ALL_SERVICES ? array_keys($this->swaggerGenerator->getListOfServices()) : $requestedServices;
     $responseBody = $this->swaggerGenerator->generate($requestedServices, $this->_request->getScheme(), $this->_request->getHttpHost(), $this->_request->getRequestUri());
     $this->_response->setBody($responseBody)->setHeader('Content-Type', 'application/json');
 }