resource->addContextItem('ApiDocumentation', 'hydra:ApiDocumentation'); $this->resource->addContextItem('supportedClass', 'hydra:supportedClass'); $this->resource->setType('ApiDocumentation'); // Iterate through all of the web services and get their documentation $services = tripal_get_web_services(); foreach ($services as $service_class) { tripal_load_include_web_service_class($service_class); $service = new $service_class($this->base_path); $supported_classes = $service->getSupportedClasses(); foreach ($supported_classes as $supported) { $this->resource->addProperty('supportedClass', $supported); } } } }