1
0

routes.php 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  1. <?php
  2. /**
  3. * SPDX-FileCopyrightText: 2017-2024 Nextcloud GmbH and Nextcloud contributors
  4. * SPDX-FileCopyrightText: 2015-2016 ownCloud, Inc.
  5. * SPDX-License-Identifier: AGPL-3.0-only
  6. */
  7. return [
  8. 'routes' => [
  9. [
  10. 'name' => 'RateLimitTest#userAndAnonProtected',
  11. 'url' => '/userAndAnonProtected',
  12. 'verb' => 'GET',
  13. ],
  14. [
  15. 'name' => 'RateLimitTest#onlyAnonProtected',
  16. 'url' => '/anonProtected',
  17. 'verb' => 'GET',
  18. ],
  19. ],
  20. 'ocs' => [
  21. [
  22. 'name' => 'Config#setAppValue',
  23. 'url' => '/api/v1/app/{appid}/{configkey}',
  24. 'verb' => 'POST',
  25. ],
  26. [
  27. 'name' => 'Config#deleteAppValue',
  28. 'url' => '/api/v1/app/{appid}/{configkey}',
  29. 'verb' => 'DELETE',
  30. ],
  31. [
  32. 'name' => 'Locking#isLockingEnabled',
  33. 'url' => '/api/v1/lockprovisioning',
  34. 'verb' => 'GET',
  35. ],
  36. [
  37. 'name' => 'Locking#isLocked',
  38. 'url' => '/api/v1/lockprovisioning/{type}/{user}',
  39. 'verb' => 'GET',
  40. ],
  41. [
  42. 'name' => 'Locking#acquireLock',
  43. 'url' => '/api/v1/lockprovisioning/{type}/{user}',
  44. 'verb' => 'POST',
  45. ],
  46. [
  47. 'name' => 'Locking#changeLock',
  48. 'url' => '/api/v1/lockprovisioning/{type}/{user}',
  49. 'verb' => 'PUT',
  50. ],
  51. [
  52. 'name' => 'Locking#releaseLock',
  53. 'url' => '/api/v1/lockprovisioning/{type}/{user}',
  54. 'verb' => 'DELETE',
  55. ],
  56. [
  57. 'name' => 'Locking#releaseAll',
  58. 'url' => '/api/v1/lockprovisioning/{type}',
  59. 'verb' => 'DELETE',
  60. 'defaults' => [
  61. 'type' => null
  62. ]
  63. ],
  64. ],
  65. ];