routes.php 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384
  1. <?php
  2. /**
  3. * @copyright Copyright (c) 2016, ownCloud, Inc.
  4. *
  5. * @author Christoph Wurst <christoph@winzerhof-wurst.at>
  6. * @author Joas Schilling <coding@schilljs.com>
  7. * @author Lukas Reschke <lukas@statuscode.ch>
  8. * @author Roeland Jago Douma <roeland@famdouma.nl>
  9. *
  10. * @license AGPL-3.0
  11. *
  12. * This code is free software: you can redistribute it and/or modify
  13. * it under the terms of the GNU Affero General Public License, version 3,
  14. * as published by the Free Software Foundation.
  15. *
  16. * This program is distributed in the hope that it will be useful,
  17. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  18. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  19. * GNU Affero General Public License for more details.
  20. *
  21. * You should have received a copy of the GNU Affero General Public License, version 3,
  22. * along with this program. If not, see <http://www.gnu.org/licenses/>
  23. *
  24. */
  25. return [
  26. 'routes' => [
  27. [
  28. 'name' => 'RateLimitTest#userAndAnonProtected',
  29. 'url' => '/userAndAnonProtected',
  30. 'verb' => 'GET',
  31. ],
  32. [
  33. 'name' => 'RateLimitTest#onlyAnonProtected',
  34. 'url' => '/anonProtected',
  35. 'verb' => 'GET',
  36. ],
  37. ],
  38. 'ocs' => [
  39. [
  40. 'name' => 'Config#setAppValue',
  41. 'url' => '/api/v1/app/{appid}/{configkey}',
  42. 'verb' => 'POST',
  43. ],
  44. [
  45. 'name' => 'Config#deleteAppValue',
  46. 'url' => '/api/v1/app/{appid}/{configkey}',
  47. 'verb' => 'DELETE',
  48. ],
  49. [
  50. 'name' => 'Locking#isLockingEnabled',
  51. 'url' => '/api/v1/lockprovisioning',
  52. 'verb' => 'GET',
  53. ],
  54. [
  55. 'name' => 'Locking#isLocked',
  56. 'url' => '/api/v1/lockprovisioning/{type}/{user}',
  57. 'verb' => 'GET',
  58. ],
  59. [
  60. 'name' => 'Locking#acquireLock',
  61. 'url' => '/api/v1/lockprovisioning/{type}/{user}',
  62. 'verb' => 'POST',
  63. ],
  64. [
  65. 'name' => 'Locking#changeLock',
  66. 'url' => '/api/v1/lockprovisioning/{type}/{user}',
  67. 'verb' => 'PUT',
  68. ],
  69. [
  70. 'name' => 'Locking#releaseLock',
  71. 'url' => '/api/v1/lockprovisioning/{type}/{user}',
  72. 'verb' => 'DELETE',
  73. ],
  74. [
  75. 'name' => 'Locking#releaseAll',
  76. 'url' => '/api/v1/lockprovisioning/{type}',
  77. 'verb' => 'DELETE',
  78. 'defaults' => [
  79. 'type' => null
  80. ]
  81. ],
  82. ],
  83. ];