routes.php 2.1 KB

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