1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-11-28 17:52:43 +01:00
phorge-phorge/src/applications/phame/conduit/PhamePostSearchConduitAPIMethod.php
epriestley 00f1389f72 Add phame.post.search Conduit API endpoint
Summary: Ref T9897. Mostly straightforward, but also modernize/fixup the Query a little so that posts never load with no blog.

Test Plan: Queried posts via API.

Reviewers: chad

Reviewed By: chad

Maniphest Tasks: T9897

Differential Revision: https://secure.phabricator.com/D14901
2015-12-28 06:49:43 -08:00

18 lines
356 B
PHP

<?php
final class PhamePostSearchConduitAPIMethod
extends PhabricatorSearchEngineAPIMethod {
public function getAPIMethodName() {
return 'phame.post.search';
}
public function newSearchEngine() {
return new PhamePostSearchEngine();
}
public function getMethodSummary() {
return pht('Read information about blog posts.');
}
}