aboutsummaryrefslogtreecommitdiffstats
path: root/apps/files/lib/Controller/ApiController.php
Commit message (Collapse)AuthorAgeFilesLines
* refactor(apps): Use constructor property promotion when possibleprovokateurin2024-10-211-3/+4
| | | | Signed-off-by: provokateurin <kate@provokateurin.de>
* chore(apps): Apply new rector configuration to autouse classesCôme Chilliet2024-10-151-3/+5
| | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* chore(deps): Update nextcloud/coding-standard to v1.3.1provokateurin2024-09-191-1/+2
| | | | Signed-off-by: provokateurin <kate@provokateurin.de>
* feat(files): Update openapiChristopher Ng2024-08-081-1/+6
| | | | Signed-off-by: Christopher Ng <chrng8@gmail.com>
* feat(files): Allow specifying path and depth for returned folder treeChristopher Ng2024-08-081-44/+37
| | | | Signed-off-by: Christopher Ng <chrng8@gmail.com>
* feat(files): Update openapi specChristopher Ng2024-08-011-1/+9
| | | | Signed-off-by: Christopher Ng <chrng8@gmail.com>
* feat(files): Implement endpoint to retrieve a user's folder treeChristopher Ng2024-08-011-25/+89
| | | | Signed-off-by: Christopher Ng <chrng8@gmail.com>
* refactor(files): Replace security annotations with respective attributesprovokateurin2024-07-271-31/+20
| | | | Signed-off-by: provokateurin <kate@provokateurin.de>
* fix: Ignore preview requests for invalid file idsJulius Härtl2024-07-221-0/+4
| | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* perf: Tell browsers to cache storage stats endpoint as it is cachedJulius Härtl2024-06-181-1/+3
| | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* chore: Add SPDX headerAndy Scherzinger2024-05-291-34/+4
| | | | Signed-off-by: Andy Scherzinger <info@andy-scherzinger.de>
* refactor: Migrate IgnoreOpenAPI attributes to OpenAPIprovokateurin2024-01-181-2/+2
| | | | Signed-off-by: provokateurin <kate@provokateurin.de>
* chore: apply changes from Nextcloud coding standards 1.1.1Joas Schilling2023-11-231-9/+9
| | | | | Signed-off-by: Joas Schilling <coding@schilljs.com> Signed-off-by: Benjamin Gaussorgues <benjamin.gaussorgues@nextcloud.com>
* Add single status code descriptions for OpenAPIjld31032023-09-271-6/+2
| | | | Signed-off-by: jld3103 <jld3103yt@gmail.com>
* fix(files): service workerJohn Molakvoæ2023-08-171-0/+1
| | | | Signed-off-by: John Molakvoæ <skjnldsv@protonmail.com>
* files: Add OpenAPI specjld31032023-07-121-5/+13
| | | | Signed-off-by: jld3103 <jld3103yt@gmail.com>
* chore: remove old favorites viewJohn Molakvoæ2023-07-051-14/+0
| | | | Signed-off-by: John Molakvoæ <skjnldsv@protonmail.com>
* fix(files): Don't throw an error when guests access the controllerJoas Schilling2023-04-191-14/+4
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* feat(files): add view config service to store user-config per viewJohn Molakvoæ2023-04-181-48/+26
| | | | Signed-off-by: John Molakvoæ <skjnldsv@protonmail.com>
* feat(files): implement sorting per viewJohn Molakvoæ2023-04-061-10/+19
| | | | Signed-off-by: John Molakvoæ <skjnldsv@protonmail.com>
* feat(files): sortingJohn Molakvoæ2023-04-061-1/+1
| | | | Signed-off-by: John Molakvoæ <skjnldsv@protonmail.com>
* perf(files): fetch previews faster and cache properlyJohn Molakvoæ2023-04-061-0/+20
| | | | Signed-off-by: John Molakvoæ <skjnldsv@protonmail.com>
* Add SHARE_TYPE_SCIENCEMESHMichiel de Jong2023-03-081-0/+1
| | | | Signed-off-by: Michiel de Jong <michiel@unhosted.org>
* feat(files): Quota in navigationJohn Molakvoæ2023-01-171-0/+14
| | | | Signed-off-by: John Molakvoæ <skjnldsv@protonmail.com>
* Fixing testsJohn Molakvoæ2023-01-041-1/+1
| | | | Signed-off-by: John Molakvoæ <skjnldsv@protonmail.com>
* Add component testingJohn Molakvoæ2023-01-041-2/+2
| | | | Signed-off-by: John Molakvoæ <skjnldsv@protonmail.com>
* Port settings to ModalJohn Molakvoæ2023-01-041-19/+48
| | | | Signed-off-by: John Molakvoæ <skjnldsv@protonmail.com>
* Port Files navigation to vueJohn Molakvoæ2023-01-041-11/+11
| | | | Signed-off-by: John Molakvoæ <skjnldsv@protonmail.com>
* Fix typos in apps/ subdirectoryluz paz2022-09-051-1/+1
| | | | | | | Found via `codespell -q 3 -S l10n,./apps/files_external/3rdparty -L adn,ba,boxs,keypair,jus,optionel,ressource,tabel ./apps/` Signed-off-by: luz paz <luzpaz@github.com> Signed-off-by: nextcloud-command <nextcloud-command@users.noreply.github.com>
* Update php licensesJohn Molakvoæ (skjnldsv)2021-06-041-2/+2
| | | | Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
* Fix more psalm warningsRoeland Jago Douma2021-05-211-8/+8
| | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Add proper PHPDoc tags to files ApiControllerMorris Jobke2021-05-211-2/+2
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* optimize getting share types for recent filesRobin Appelman2021-04-211-33/+49
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* Merge pull request #25055 from nina-py/18439-add-crop-image-previews-settingJulius Härtl2021-01-151-0/+14
|\ | | | | Add "Crop image previews" setting to files
| * Add "Crop image previews" setting to filesNina Pypchenko2021-01-141-0/+14
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Added a new user setting that toggles cropping on image previews in grid view. True (default value): crops each image to a square. False: keep original aspect ratio. Signed-off-by: Nina Pypchenko <22447785+nina-py@users.noreply.github.com> Closes #18439. Signed-off-by: npmbuildbot-nextcloud[bot] <npmbuildbot-nextcloud[bot]@users.noreply.github.com>
* | Remove unneeded casts that were found by PsalmMorris Jobke2021-01-111-1/+1
|/ | | | | | In preparation of the update of Psalm from 4.2.1 to 4.3.1+ (see https://github.com/nextcloud/server/pull/24521) Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Update all license headers for Nextcloud 21Christoph Wurst2020-12-161-1/+3
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Indicate preview availability in recent file api responsesRichard Steinmetz2020-12-101-0/+1
| | | | Signed-off-by: Richard Steinmetz <richard@steinmetz.cloud>
* Address minor commentsJulius Härtl2020-12-091-1/+1
| | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* Introduce deck share type to ShareAPIControllerJulius Härtl2020-12-091-1/+2
| | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* Update the license headers for Nextcloud 20Christoph Wurst2020-08-241-2/+1
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Fix some MissingDocblockType or InvalidDocblock warnings.Daniel Kesselberg2020-08-141-1/+1
| | | | Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
* Update share type constant usageJoas Schilling2020-06-241-6/+7
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Format control structures, classes, methods and functionChristoph Wurst2020-04-101-1/+0
| | | | | | | | | | | | | | | To continue this formatting madness, here's a tiny patch that adds unified formatting for control structures like if and loops as well as classes, their methods and anonymous functions. This basically forces the constructs to start on the same line. This is not exactly what PSR2 wants, but I think we can have a few exceptions with "our" style. The starting of braces on the same line is pracrically standard for our code. This also removes and empty lines from method/function bodies at the beginning and end. Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Remove unused importsChristoph Wurst2020-03-251-1/+0
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Update license headersChristoph Wurst2019-12-051-3/+9
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Some php-cs fixesRoeland Jago Douma2019-11-221-9/+9
| | | | | | | | | | | * Order the imports * No leading slash on imports * Empty line before namespace * One line per import * Empty after imports * Emmpty line at bottom of file Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* misc phpdoc fixesMax Kovalenko2019-05-271-0/+6
| | | | Signed-off-by: Max Kovalenko <mxss1998@yandex.ru>
* fixed phpdoc parameter typesMax Kovalenko2019-05-271-2/+2
| | | | Signed-off-by: Max Kovalenko <mxss1998@yandex.ru>
* Fix default filepicker style and gridviewJohn Molakvoæ (skjnldsv)2018-11-291-1/+1
| | | | Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>