diff options
-rw-r--r-- | appinfo/api.php | 26 | ||||
-rw-r--r-- | external/feedapi.php | 5 | ||||
-rw-r--r-- | external/folderapi.php | 5 | ||||
-rw-r--r-- | tests/unit/external/NewsAPIResultTest.php | 1 |
4 files changed, 2 insertions, 35 deletions
diff --git a/appinfo/api.php b/appinfo/api.php index 98b9f992a..b2b657cf5 100644 --- a/appinfo/api.php +++ b/appinfo/api.php @@ -40,14 +40,6 @@ use \OCA\AppFramework\External\External; \OC_API::USER_AUTH ); -\OCP\API::register('get', '/apps/news/folders/{folderId}', - function($params) { - return External::main('FolderAPI', 'get', $params, new DIContainer()); - }, - 'news', - \OC_API::USER_AUTH -); - \OCP\API::register('post', '/apps/news/folders', function($params) { return External::main('FolderAPI', 'create', $params, new DIContainer()); @@ -84,14 +76,6 @@ use \OCA\AppFramework\External\External; \OC_API::USER_AUTH ); -\OCP\API::register('get', '/apps/news/feeds/{feedId}', - function($params) { - return External::main('FeedAPI', 'get', $params, new DIContainer()); - }, - 'news', - \OC_API::USER_AUTH -); - \OCP\API::register('post', '/apps/news/feeds/{feedId}', function($params) { return External::main('FeedAPI', 'create', $params, new DIContainer()); @@ -116,7 +100,7 @@ use \OCA\AppFramework\External\External; \OC_API::USER_AUTH ); -\OCP\API::register('get', '/apps/news/feeds/{feedId}/read', +\OCP\API::register('put', '/apps/news/feeds/{feedId}/read', function($params) { return External::main('FeedAPI', 'read', $params, new DIContainer()); }, @@ -143,14 +127,6 @@ use \OCA\AppFramework\External\External; \OC_API::USER_AUTH ); -\OCP\API::register('get', '/apps/news/items/{itemId}', - function($params) { - return External::main('ItemAPI', 'get', $params, new DIContainer()); - }, - 'news', - \OC_API::USER_AUTH -); - \OCP\API::register('put', '/apps/news/items/{itemId}/read', function($params) { return External::main('ItemAPI', 'read', $params, new DIContainer()); diff --git a/external/feedapi.php b/external/feedapi.php index 580d9c2f0..d88eda35f 100644 --- a/external/feedapi.php +++ b/external/feedapi.php @@ -76,11 +76,6 @@ class FeedAPI extends Controller { } - public function get() { - - } - - public function create() { } diff --git a/external/folderapi.php b/external/folderapi.php index 787d1acc4..a7ea2f257 100644 --- a/external/folderapi.php +++ b/external/folderapi.php @@ -59,11 +59,6 @@ class FolderAPI extends Controller { } - public function get() { - - } - - public function create() { } diff --git a/tests/unit/external/NewsAPIResultTest.php b/tests/unit/external/NewsAPIResultTest.php index 46fcd0af8..426198183 100644 --- a/tests/unit/external/NewsAPIResultTest.php +++ b/tests/unit/external/NewsAPIResultTest.php @@ -36,4 +36,5 @@ class NewsAPIResultTest extends \PHPUnit_Framework_TestCase { $this->assertEquals(409, $result->getStatusCode()); } + }
\ No newline at end of file |