aboutsummaryrefslogtreecommitdiffstats
path: root/apps/testing/appinfo/routes.php
blob: 862f63ef4c2fbe94768e2479675b97392b2ed5f8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
<?php

/**
 * SPDX-FileCopyrightText: 2017-2024 Nextcloud GmbH and Nextcloud contributors
 * SPDX-FileCopyrightText: 2015-2016 ownCloud, Inc.
 * SPDX-License-Identifier: AGPL-3.0-only
 */
return [
	'routes' => [
		[
			'name' => 'RateLimitTest#userAndAnonProtected',
			'url' => '/userAndAnonProtected',
			'verb' => 'GET',
		],
		[
			'name' => 'RateLimitTest#onlyAnonProtected',
			'url' => '/anonProtected',
			'verb' => 'GET',
		],
	],

	'ocs' => [
		[
			'name' => 'Config#setAppValue',
			'url' => '/api/v1/app/{appid}/{configkey}',
			'verb' => 'POST',
		],
		[
			'name' => 'Config#deleteAppValue',
			'url' => '/api/v1/app/{appid}/{configkey}',
			'verb' => 'DELETE',
		],
		[
			'name' => 'Locking#isLockingEnabled',
			'url' => '/api/v1/lockprovisioning',
			'verb' => 'GET',
		],
		[
			'name' => 'Locking#isLocked',
			'url' => '/api/v1/lockprovisioning/{type}/{user}',
			'verb' => 'GET',
		],
		[
			'name' => 'Locking#acquireLock',
			'url' => '/api/v1/lockprovisioning/{type}/{user}',
			'verb' => 'POST',
		],
		[
			'name' => 'Locking#changeLock',
			'url' => '/api/v1/lockprovisioning/{type}/{user}',
			'verb' => 'PUT',
		],
		[
			'name' => 'Locking#releaseLock',
			'url' => '/api/v1/lockprovisioning/{type}/{user}',
			'verb' => 'DELETE',
		],
		[
			'name' => 'Locking#releaseAll',
			'url' => '/api/v1/lockprovisioning/{type}',
			'verb' => 'DELETE',
			'defaults' => [
				'type' => null
			]
		],
	],
];