summaryrefslogtreecommitdiffstats
path: root/apps/files/lib/Controller/ApiController.php
diff options
context:
space:
mode:
authorVincent Petry <pvince81@owncloud.com>2016-09-12 17:09:46 +0200
committerRoeland Jago Douma <roeland@famdouma.nl>2016-10-19 11:06:29 +0200
commit361f008c705009eee8d7435f46095760ac706456 (patch)
tree95e7033befa4ff0fc20e60f5df2a4b249575d636 /apps/files/lib/Controller/ApiController.php
parent5e48ce98c70fa511ea2c1caeb332594912c9d96a (diff)
downloadnextcloud-server-361f008c705009eee8d7435f46095760ac706456.tar.gz
nextcloud-server-361f008c705009eee8d7435f46095760ac706456.zip
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 <roeland@famdouma.nl>
Diffstat (limited to 'apps/files/lib/Controller/ApiController.php')
-rw-r--r--apps/files/lib/Controller/ApiController.php17
1 files changed, 0 insertions, 17 deletions
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
@@ -174,23 +174,6 @@ class ApiController extends Controller {
}
/**
- * 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.
*
* @NoAdminRequired