Differential D12380 Diff 29771 src/applications/conduit/method/ConduitGetCapabilitiesConduitAPIMethod.php
Changeset View
Changeset View
Standalone View
Standalone View
src/applications/conduit/method/ConduitGetCapabilitiesConduitAPIMethod.php
Show All 10 Lines | final class ConduitGetCapabilitiesConduitAPIMethod extends ConduitAPIMethod { | ||||
} | } | ||||
public function getMethodDescription() { | public function getMethodDescription() { | ||||
return pht( | return pht( | ||||
'List capabilities, wire formats, and authentication protocols '. | 'List capabilities, wire formats, and authentication protocols '. | ||||
'available on this server.'); | 'available on this server.'); | ||||
} | } | ||||
public function defineParamTypes() { | protected function defineParamTypes() { | ||||
return array(); | return array(); | ||||
} | } | ||||
public function defineReturnType() { | protected function defineReturnType() { | ||||
return 'dict<string, any>'; | return 'dict<string, any>'; | ||||
} | } | ||||
public function defineErrorTypes() { | |||||
return array(); | |||||
} | |||||
protected function execute(ConduitAPIRequest $request) { | protected function execute(ConduitAPIRequest $request) { | ||||
$authentication = array( | $authentication = array( | ||||
'token', | 'token', | ||||
'asymmetric', | 'asymmetric', | ||||
'session', | 'session', | ||||
'sessionless', | 'sessionless', | ||||
); | ); | ||||
Show All 22 Lines |