예제 #1
0
 /**
  * @param integer $version
  * @return \PSX\Api\Resource
  */
 public function getDocumentation($version = null)
 {
     $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\\Connection\\Collection')));
     $resource->addMethod(Resource\Factory::getMethod('POST')->setRequest($this->schemaManager->getSchema('Fusio\\Impl\\Backend\\Schema\\Connection\\Create'))->addResponse(201, $this->schemaManager->getSchema('Fusio\\Impl\\Backend\\Schema\\Message')));
     return $resource;
 }
예제 #2
0
파일: Entity.php 프로젝트: apioo/fusio-impl
 /**
  * @param integer $version
  * @return \PSX\Api\Resource
  */
 public function getDocumentation($version = null)
 {
     $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\\Consumer\\Schema\\App\\Meta')));
     return $resource;
 }