Provide access to Phriction via Conduit
Summary: Provide three Phriction methods for programmatic access to Phriction: - phriction.info: get information about a document - phriction.history: get change history for a document - phriction.edit: create or update a document I moved all the editing/creation logic into a new PhrictionDocumentEditor to share code between the Conduit and Web edit pathways. Test Plan: Got info and history via conduit. Edited and created new pages via conduit and web. Reviewers: hsb, jungejason, tuomaspelkonen, aran, hunterbridges Reviewed By: hunterbridges CC: skrul, aran, hunterbridges Differential Revision: 866
This commit is contained in:
@@ -124,6 +124,10 @@ phutil_register_library_map(array(
|
||||
'ConduitAPI_path_getowners_Method' => 'applications/conduit/method/path/getowners',
|
||||
'ConduitAPI_phid_Method' => 'applications/conduit/method/phid/base',
|
||||
'ConduitAPI_phid_info_Method' => 'applications/conduit/method/phid/info',
|
||||
'ConduitAPI_phriction_Method' => 'applications/conduit/method/phriction/base',
|
||||
'ConduitAPI_phriction_edit_Method' => 'applications/conduit/method/phriction/edit',
|
||||
'ConduitAPI_phriction_history_Method' => 'applications/conduit/method/phriction/history',
|
||||
'ConduitAPI_phriction_info_Method' => 'applications/conduit/method/phriction/info',
|
||||
'ConduitAPI_slowvote_info_Method' => 'applications/conduit/method/slowvote/info',
|
||||
'ConduitAPI_user_Method' => 'applications/conduit/method/user/base',
|
||||
'ConduitAPI_user_find_Method' => 'applications/conduit/method/user/find',
|
||||
@@ -673,6 +677,7 @@ phutil_register_library_map(array(
|
||||
'PhrictionDiffController' => 'applications/phriction/controller/diff',
|
||||
'PhrictionDocument' => 'applications/phriction/storage/document',
|
||||
'PhrictionDocumentController' => 'applications/phriction/controller/document',
|
||||
'PhrictionDocumentEditor' => 'applications/phriction/editor/document',
|
||||
'PhrictionDocumentPreviewController' => 'applications/phriction/controller/documentpreview',
|
||||
'PhrictionDocumentTestCase' => 'applications/phriction/storage/document/__tests__',
|
||||
'PhrictionEditController' => 'applications/phriction/controller/edit',
|
||||
@@ -805,6 +810,10 @@ phutil_register_library_map(array(
|
||||
'ConduitAPI_path_getowners_Method' => 'ConduitAPIMethod',
|
||||
'ConduitAPI_phid_Method' => 'ConduitAPIMethod',
|
||||
'ConduitAPI_phid_info_Method' => 'ConduitAPI_phid_Method',
|
||||
'ConduitAPI_phriction_Method' => 'ConduitAPIMethod',
|
||||
'ConduitAPI_phriction_edit_Method' => 'ConduitAPI_phriction_Method',
|
||||
'ConduitAPI_phriction_history_Method' => 'ConduitAPI_phriction_Method',
|
||||
'ConduitAPI_phriction_info_Method' => 'ConduitAPI_phriction_Method',
|
||||
'ConduitAPI_slowvote_info_Method' => 'ConduitAPIMethod',
|
||||
'ConduitAPI_user_Method' => 'ConduitAPIMethod',
|
||||
'ConduitAPI_user_find_Method' => 'ConduitAPI_user_Method',
|
||||
|
||||
Reference in New Issue
Block a user