3 final class ConduitGetCapabilitiesConduitAPIMethod
extends ConduitAPIMethod
{
5 public function getAPIMethodName() {
6 return 'conduit.getcapabilities';
9 public function shouldRequireAuthentication() {
13 public function getMethodDescription() {
15 'List capabilities, wire formats, and authentication protocols '.
16 'available on this server.');
19 protected function defineParamTypes() {
23 protected function defineReturnType() {
24 return 'dict<string, any>';
27 public function getRequiredScope() {
28 return self
::SCOPE_ALWAYS
;
31 protected function execute(ConduitAPIRequest
$request) {
32 $authentication = array(
39 $oauth_app = 'PhabricatorOAuthServerApplication';
40 if (PhabricatorApplication
::isClassInstalled($oauth_app)) {
41 $authentication[] = 'oauth';
45 'authentication' => $authentication,
46 'signatures' => array(