コード例 #1
0
ファイル: Collection.php プロジェクト: saakaifoundry/fusio
 /**
  * @return \PSX\Api\DocumentationInterface
  */
 public function getDocumentation()
 {
     $resource = new Resource(Resource::STATUS_ACTIVE, $this->context->get(Context::KEY_PATH));
     $resource->addMethod(Resource\Factory::getMethod('GET')->addResponse(200, $this->schemaManager->getSchema('Fusio\\Backend\\Schema\\Routes\\Collection')));
     $resource->addMethod(Resource\Factory::getMethod('POST')->setRequest($this->schemaManager->getSchema('Fusio\\Backend\\Schema\\Routes\\Create'))->addResponse(201, $this->schemaManager->getSchema('Fusio\\Backend\\Schema\\Message')));
     return new Documentation\Simple($resource);
 }
コード例 #2
0
ファイル: ChangePassword.php プロジェクト: uqiauto/fusio
 /**
  * @return \PSX\Api\DocumentationInterface
  */
 public function getDocumentation()
 {
     $resource = new Resource(Resource::STATUS_ACTIVE, $this->context->get(Context::KEY_PATH));
     $resource->addMethod(Resource\Factory::getMethod('PUT')->setRequest($this->schemaManager->getSchema('Fusio\\Impl\\Backend\\Schema\\Account\\ChangePassword'))->addResponse(200, $this->schemaManager->getSchema('Fusio\\Impl\\Backend\\Schema\\Message')));
     return new Documentation\Simple($resource);
 }
コード例 #3
0
ファイル: Entity.php プロジェクト: uqiauto/fusio
 /**
  * @return \PSX\Api\DocumentationInterface
  */
 public function getDocumentation()
 {
     $resource = new Resource(Resource::STATUS_ACTIVE, $this->context->get(Context::KEY_PATH));
     $resource->addMethod(Resource\Factory::getMethod('GET')->addResponse(200, $this->schemaManager->getSchema('Fusio\\Impl\\Backend\\Schema\\Log')));
     return new Documentation\Simple($resource);
 }