Skip to content

Commit 3335bcb

Browse files
author
epriestley
committedDec 28, 2015
Add a phame.blog.edit Conduit API endpoint
Summary: Ref T9897. Test Plan: Used API to make a few changes to a blog. Reviewers: chad Reviewed By: chad Maniphest Tasks: T9897 Differential Revision: https://secure.phabricator.com/D14899
1 parent 6cb0137 commit 3335bcb

File tree

3 files changed

+22
-2
lines changed

3 files changed

+22
-2
lines changed
 

‎src/__phutil_library_map__.php

+3-1
Original file line numberDiff line numberDiff line change
@@ -3402,6 +3402,7 @@
34023402
'PhameBlogArchiveController' => 'applications/phame/controller/blog/PhameBlogArchiveController.php',
34033403
'PhameBlogController' => 'applications/phame/controller/blog/PhameBlogController.php',
34043404
'PhameBlogCreateCapability' => 'applications/phame/capability/PhameBlogCreateCapability.php',
3405+
'PhameBlogEditConduitAPIMethod' => 'applications/phame/conduit/PhameBlogEditConduitAPIMethod.php',
34053406
'PhameBlogEditController' => 'applications/phame/controller/blog/PhameBlogEditController.php',
34063407
'PhameBlogEditEngine' => 'applications/phame/editor/PhameBlogEditEngine.php',
34073408
'PhameBlogEditor' => 'applications/phame/editor/PhameBlogEditor.php',
@@ -4164,7 +4165,7 @@
41644165
'ConduitResultSearchEngineExtension' => 'PhabricatorSearchEngineExtension',
41654166
'ConduitSSHWorkflow' => 'PhabricatorSSHWorkflow',
41664167
'ConduitStringListParameterType' => 'ConduitListParameterType',
4167-
'ConduitStringParameterType' => 'ConduitListParameterType',
4168+
'ConduitStringParameterType' => 'ConduitParameterType',
41684169
'ConduitTokenGarbageCollector' => 'PhabricatorGarbageCollector',
41694170
'ConduitUserListParameterType' => 'ConduitListParameterType',
41704171
'ConduitWildParameterType' => 'ConduitListParameterType',
@@ -7849,6 +7850,7 @@
78497850
'PhameBlogArchiveController' => 'PhameBlogController',
78507851
'PhameBlogController' => 'PhameController',
78517852
'PhameBlogCreateCapability' => 'PhabricatorPolicyCapability',
7853+
'PhameBlogEditConduitAPIMethod' => 'PhabricatorEditEngineAPIMethod',
78527854
'PhameBlogEditController' => 'PhameBlogController',
78537855
'PhameBlogEditEngine' => 'PhabricatorEditEngine',
78547856
'PhameBlogEditor' => 'PhabricatorApplicationTransactionEditor',

‎src/applications/conduit/parametertype/ConduitStringParameterType.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<?php
22

33
final class ConduitStringParameterType
4-
extends ConduitListParameterType {
4+
extends ConduitParameterType {
55

66
protected function getParameterValue(array $request, $key) {
77
$value = parent::getParameterValue($request, $key);
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
<?php
2+
3+
final class PhameBlogEditConduitAPIMethod
4+
extends PhabricatorEditEngineAPIMethod {
5+
6+
public function getAPIMethodName() {
7+
return 'phame.blog.edit';
8+
}
9+
10+
public function newEditEngine() {
11+
return new PhameBlogEditEngine();
12+
}
13+
14+
public function getMethodSummary() {
15+
return pht('Create or edit blogs in Phame.');
16+
}
17+
18+
}

0 commit comments

Comments
 (0)
Failed to load comments.