From 361f008c705009eee8d7435f46095760ac706456 Mon Sep 17 00:00:00 2001 From: Vincent Petry Date: Mon, 12 Sep 2016 17:09:46 +0200 Subject: Make it possible to filter by tags with REPORT method Enhanced the REPORT method on the Webdav endpoint and added a "oc:favorite" filter rule. When set, it will return a flat list of results filtered with only favorite files. The web UI was also adjusted to use this REPORT method instead of the private API endpoint. Signed-off-by: Roeland Jago Douma --- apps/files/lib/Controller/ApiController.php | 17 ----------------- 1 file changed, 17 deletions(-) (limited to 'apps/files/lib/Controller/ApiController.php') diff --git a/apps/files/lib/Controller/ApiController.php b/apps/files/lib/Controller/ApiController.php index 7ce83bfca15..d6f88581b96 100644 --- a/apps/files/lib/Controller/ApiController.php +++ b/apps/files/lib/Controller/ApiController.php @@ -173,23 +173,6 @@ class ApiController extends Controller { }, $nodes)); } - /** - * Returns a list of all files tagged with the given tag. - * - * @NoAdminRequired - * - * @param string $tagName tag name to filter by - * @return DataResponse - */ - public function getFilesByTag($tagName) { - $nodes = $this->tagService->getFilesByTag($tagName); - $files = $this->formatNodes($nodes); - foreach ($files as &$file) { - $file['tags'] = [$tagName]; - } - return new DataResponse(['files' => $files]); - } - /** * Returns a list of recently modifed files. * -- cgit v1.2.3