Esempio n. 1
0
 /**
  *
  * @param ApiDefinition $apiDefinition
  * @param string $file
  */
 public function resource(Resource $resource)
 {
     $serializer = $this->getSerializer();
     $structure = [];
     $structure['displayName'] = $resource->getDisplayName();
     $structure['description'] = $resource->getDescription();
     $structure['uriParameters'] = $resource->getBaseUriParameters();
     foreach ($resource->getMethods() as $method) {
         $structure[$method->getType()] = $this->serializeMethod($method);
     }
     $resource->getResources();
     $resource->getSecuritySchemes();
     $resource->getUri();
     $structure['responses'] = array('200');
 }