circles/appinfo/routes.php
Maxence Lange b660360446 some cleaning and /search/
Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
2021-05-03 11:33:48 -01:00

101 lines
5.6 KiB
PHP

<?php
/**
* Circles - Bring cloud-users closer together.
*
* This file is licensed under the Affero General Public License version 3 or
* later. See the COPYING file.
*
* @author Maxence Lange <maxence@pontapreta.net>
* @copyright 2017
* @license GNU AGPL version 3 or any later version
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as
* published by the Free Software Foundation, either version 3 of the
* License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Affero General Public License for more details.
*
* You should have received a copy of the GNU Affero General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*
*/
return [
'ocs' => [
['name' => 'Local#circles', 'url' => '/circles/', 'verb' => 'GET'],
['name' => 'Local#create', 'url' => '/circles/', 'verb' => 'POST'],
['name' => 'Local#search', 'url' => '/search/', 'verb' => 'POST'],
['name' => 'Local#members', 'url' => '/circles/{circleId}/members/', 'verb' => 'GET'],
['name' => 'Local#memberAdd', 'url' => '/circles/{circleId}/members/', 'verb' => 'POST'],
[
'name' => 'Local#memberRemove', 'url' => '/circles/{circleId}/members/{memberId}/',
'verb' => 'DELETE'
],
[
'name' => 'Local#memberLevel', 'url' => '/circles/{circleId}/members/{memberId}/level/',
'verb' => 'PUT'
],
// to implement
['name' => 'Local#getSettings', 'url' => '/circles/{circleId}/settings/', 'verb' => 'GET'],
['name' => 'Local#setSettings', 'url' => '/circles/{circleId}/settings/', 'verb' => 'PUT'],
['name' => 'Local#circleJoin', 'url' => '/circles/{circleId}/join/', 'verb' => 'PUT'],
['name' => 'Local#circleLeave', 'url' => '/circles/{circleId}/leave/', 'verb' => 'PUT']
],
'routes' => [
['name' => 'Settings#getSettings', 'url' => '/admin/settings', 'verb' => 'GET'],
['name' => 'Settings#setSettings', 'url' => '/admin/settings', 'verb' => 'POST'],
['name' => 'Test#testAsyncStart', 'url' => '/admin/testAsync', 'verb' => 'POST'],
['name' => 'Test#testAsyncStatus', 'url' => '/admin/testAsync', 'verb' => 'GET'],
['name' => 'Test#testAsyncReset', 'url' => '/admin/testAsync', 'verb' => 'DELETE'],
['name' => 'Test#testAsyncRun', 'url' => '/admin/testAsync', 'verb' => 'PUT'],
['name' => 'Navigation#settings', 'url' => '/settings', 'verb' => 'GET'],
['name' => 'Circles#create', 'url' => '/v1/circles', 'verb' => 'PUT'],
['name' => 'Circles#listing', 'url' => '/v1/circles', 'verb' => 'GET'],
['name' => 'Circles#details', 'url' => '/v1/circles/{uniqueId}', 'verb' => 'GET'],
['name' => 'Circles#settings', 'url' => '/v1/circles/{uniqueId}/settings', 'verb' => 'POST'],
['name' => 'Circles#destroy', 'url' => '/v1/circles/{uniqueId}', 'verb' => 'DELETE'],
['name' => 'Circles#join', 'url' => '/v1/circles/{uniqueId}/join', 'verb' => 'GET'],
['name' => 'Circles#leave', 'url' => '/v1/circles/{uniqueId}/leave', 'verb' => 'GET'],
['name' => 'Links#createLink', 'url' => '/v1/circles/{uniqueId}/link', 'verb' => 'POST'],
['name' => 'Links#updateLinkStatus', 'url' => '/v1/link/{linkId}/status', 'verb' => 'POST'],
['name' => 'Federated#requestedLink', 'url' => '/v1/link', 'verb' => 'PUT'],
['name' => 'Federated#updateLink', 'url' => '/v1/link', 'verb' => 'POST'],
['name' => 'Shares#initShareDelivery', 'url' => '/v1/payload', 'verb' => 'POST'],
['name' => 'Federated#receiveFederatedDelivery', 'url' => '/v1/payload', 'verb' => 'PUT'],
['name' => 'Members#searchGlobal', 'url' => '/v1/globalsearch', 'verb' => 'GET'],
// [
// 'name' => 'Members#importFromGroup', 'url' => '/v1/circles/{uniqueId}/groupmembers',
// 'verb' => 'PUT'
// ],
['name' => 'Members#addMember', 'url' => '/v1/circles/{uniqueId}/member', 'verb' => 'PUT'],
['name' => 'Members#removeMember', 'url' => '/v1/circles/{uniqueId}/member', 'verb' => 'DELETE'],
['name' => 'Members#addMemberById', 'url' => '/v1/circles/member/{memberId}', 'verb' => 'PUT'],
['name' => 'Members#removeMemberById', 'url' => '/v1/circles/member/{memberId}', 'verb' => 'DELETE'],
['name' => 'Members#levelMember', 'url' => '/v1/circles/{uniqueId}/level', 'verb' => 'POST'],
['name' => 'Groups#add', 'url' => '/v1/circles/{uniqueId}/groups', 'verb' => 'PUT'],
['name' => 'Groups#level', 'url' => '/v1/circles/{uniqueId}/group/level', 'verb' => 'POST'],
['name' => 'Groups#remove', 'url' => '/v1/circles/{uniqueId}/groups', 'verb' => 'DELETE'],
['name' => 'Shares#create', 'url' => '/v1/circles/{circleUniqueId}/share', 'verb' => 'PUT'],
['name' => 'RemoteWrapper#asyncBroadcast', 'url' => '/async/{token}/', 'verb' => 'POST'],
// ['name' => 'RemoteWrapper#broadcast', 'url' => '/v1/gs/broadcast', 'verb' => 'POST'],
// ['name' => 'RemoteWrapper#status', 'url' => '/v1/gs/status', 'verb' => 'POST'],
['name' => 'Remote#appService', 'url' => '/', 'verb' => 'GET'],
['name' => 'Remote#test', 'url' => '/test/', 'verb' => 'GET'],
['name' => 'Remote#event', 'url' => '/event/', 'verb' => 'POST'],
['name' => 'Remote#incoming', 'url' => '/incoming/', 'verb' => 'POST'],
['name' => 'Remote#circles', 'url' => '/circles/', 'verb' => 'GET'],
['name' => 'Remote#circle', 'url' => '/circle/{circleId}/', 'verb' => 'GET'],
['name' => 'Remote#members', 'url' => '/members/{circleId}/', 'verb' => 'GET'],
['name' => 'Remote#member', 'url' => '/member/{type}/{userId}/', 'verb' => 'GET']
]
];