/**
  * register OCS API Calls
  */
 public function registerOCSApi()
 {
     $container = $this->getContainer();
     $server = $container->getServer();
     $api = new ExternalApi($server->getRequest(), $container->query('statisticService'));
     API::register('post', '/apps/popularitycontestserver/api/v1/survey', array($api, 'receiveSurveyResults'), 'popularitycontestserver', API::GUEST_AUTH);
 }
Пример #2
0
 /**
  * register OCS API Calls
  */
 public function registerOCSApi()
 {
     $container = $this->getContainer();
     $server = $container->getServer();
     $auth = new OCSAuthAPI($server->getRequest(), $server->getSecureRandom(), $server->getJobList(), $container->query('TrustedServers'), $container->query('DbHandler'));
     API::register('get', '/apps/federation/api/v1/shared-secret', array($auth, 'getSharedSecret'), 'federation', API::GUEST_AUTH);
     API::register('post', '/apps/federation/api/v1/request-shared-secret', array($auth, 'requestSharedSecret'), 'federation', API::GUEST_AUTH);
 }
Пример #3
0
 * along with this program.  If not, see <http://www.gnu.org/licenses/>
 *
 */
use OCP\API;
$application = new \OCA\Files_Sharing\AppInfo\Application();
$application->registerRoutes($this, ['resources' => ['ExternalShares' => ['url' => '/api/externalShares']], 'routes' => [['name' => 'externalShares#testRemote', 'url' => '/testremote', 'verb' => 'GET']]]);
/** @var $this \OCP\Route\IRouter */
$this->create('core_ajax_public_preview', '/publicpreview')->action(function () {
    require_once __DIR__ . '/../ajax/publicpreview.php';
});
$this->create('files_sharing_ajax_list', 'ajax/list.php')->actionInclude('files_sharing/ajax/list.php');
$this->create('files_sharing_ajax_publicpreview', 'ajax/publicpreview.php')->actionInclude('files_sharing/ajax/publicpreview.php');
$this->create('sharing_external_shareinfo', '/shareinfo')->actionInclude('files_sharing/ajax/shareinfo.php');
$this->create('sharing_external_add', '/external')->actionInclude('files_sharing/ajax/external.php');
// OCS API
//TODO: SET: mail notification, waiting for PR #4689 to be accepted
$OCSShare = new \OCA\Files_Sharing\API\OCSShareWrapper();
API::register('get', '/apps/files_sharing/api/v1/shares', [$OCSShare, 'getAllShares'], 'files_sharing');
API::register('post', '/apps/files_sharing/api/v1/shares', [$OCSShare, 'createShare'], 'files_sharing');
API::register('get', '/apps/files_sharing/api/v1/shares/{id}', [$OCSShare, 'getShare'], 'files_sharing');
API::register('put', '/apps/files_sharing/api/v1/shares/{id}', [$OCSShare, 'updateShare'], 'files_sharing');
API::register('delete', '/apps/files_sharing/api/v1/shares/{id}', [$OCSShare, 'deleteShare'], 'files_sharing');
API::register('get', '/apps/files_sharing/api/v1/remote_shares', array('\\OCA\\Files_Sharing\\API\\Remote', 'getShares'), 'files_sharing');
API::register('get', '/apps/files_sharing/api/v1/remote_shares/pending', array('\\OCA\\Files_Sharing\\API\\Remote', 'getOpenShares'), 'files_sharing');
API::register('post', '/apps/files_sharing/api/v1/remote_shares/pending/{id}', array('\\OCA\\Files_Sharing\\API\\Remote', 'acceptShare'), 'files_sharing');
API::register('delete', '/apps/files_sharing/api/v1/remote_shares/pending/{id}', array('\\OCA\\Files_Sharing\\API\\Remote', 'declineShare'), 'files_sharing');
API::register('get', '/apps/files_sharing/api/v1/remote_shares/{id}', array('\\OCA\\Files_Sharing\\API\\Remote', 'getShare'), 'files_sharing');
API::register('delete', '/apps/files_sharing/api/v1/remote_shares/{id}', array('\\OCA\\Files_Sharing\\API\\Remote', 'unshare'), 'files_sharing');
$sharees = new \OCA\Files_Sharing\API\Sharees(\OC::$server->getGroupManager(), \OC::$server->getUserManager(), \OC::$server->getContactsManager(), \OC::$server->getConfig(), \OC::$server->getUserSession(), \OC::$server->getURLGenerator(), \OC::$server->getRequest(), \OC::$server->getLogger(), \OC::$server->getShareManager());
API::register('get', '/apps/files_sharing/api/v1/sharees', [$sharees, 'search'], 'files_sharing', API::USER_AUTH);
Пример #4
0
 * @author Morris Jobke <*****@*****.**>
 * @author Ross Nicoll <*****@*****.**>
 * @author Vincent Petry <*****@*****.**>
 *
 * @copyright Copyright (c) 2015, ownCloud, Inc.
 * @license AGPL-3.0
 *
 * This code is free software: you can redistribute it and/or modify
 * it under the terms of the GNU Affero General Public License, version 3,
 * as published by the Free Software Foundation.
 *
 * 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, version 3,
 * along with this program.  If not, see <http://www.gnu.org/licenses/>
 *
 */
namespace OCA\Files_External\AppInfo;

/**
 * @var $this \OCP\Route\IRouter
 **/
\OC_Mount_Config::$app->registerRoutes($this, array('resources' => array('global_storages' => array('url' => '/globalstorages'), 'user_storages' => array('url' => '/userstorages')), 'routes' => array(array('name' => 'Ajax#getSshKeys', 'url' => '/ajax/sftp_key.php', 'verb' => 'POST', 'requirements' => array()))));
$this->create('files_external_dropbox', 'ajax/dropbox.php')->actionInclude('files_external/ajax/dropbox.php');
$this->create('files_external_google', 'ajax/google.php')->actionInclude('files_external/ajax/google.php');
$this->create('files_external_list_applicable', '/applicable')->actionInclude('files_external/ajax/applicable.php');
\OCP\API::register('get', '/apps/files_external/api/v1/mounts', array('\\OCA\\Files\\External\\Api', 'getUserMounts'), 'files_external');
Пример #5
0
<?php

// Users
use OCP\API;
API::register('get', '/cloud/users', array('OCA\\Provisioning_API\\Users', 'getUsers'), 'provisioning_api', API::ADMIN_AUTH);
API::register('post', '/cloud/users', array('OCA\\Provisioning_API\\Users', 'addUser'), 'provisioning_api', API::ADMIN_AUTH);
API::register('get', '/cloud/users/{userid}', array('OCA\\Provisioning_API\\Users', 'getUser'), 'provisioning_api', API::USER_AUTH);
API::register('put', '/cloud/users/{userid}', array('OCA\\Provisioning_API\\Users', 'editUser'), 'provisioning_api', API::USER_AUTH);
API::register('delete', '/cloud/users/{userid}', array('OCA\\Provisioning_API\\Users', 'deleteUser'), 'provisioning_api', API::SUBADMIN_AUTH);
API::register('get', '/cloud/users/{userid}/groups', array('OCA\\Provisioning_API\\Users', 'getUsersGroups'), 'provisioning_api', API::USER_AUTH);
API::register('post', '/cloud/users/{userid}/groups', array('OCA\\Provisioning_API\\Users', 'addToGroup'), 'provisioning_api', API::SUBADMIN_AUTH);
API::register('delete', '/cloud/users/{userid}/groups', array('OCA\\Provisioning_API\\Users', 'removeFromGroup'), 'provisioning_api', API::SUBADMIN_AUTH);
API::register('post', '/cloud/users/{userid}/subadmins', array('OCA\\Provisioning_API\\Users', 'addSubAdmin'), 'provisioning_api', API::ADMIN_AUTH);
API::register('delete', '/cloud/users/{userid}/subadmins', array('OCA\\Provisioning_API\\Users', 'removeSubAdmin'), 'provisioning_api', API::ADMIN_AUTH);
API::register('get', '/cloud/users/{userid}/subadmins', array('OCA\\Provisioning_API\\Users', 'getUserSubAdminGroups'), 'provisioning_api', API::ADMIN_AUTH);
// Groups
API::register('get', '/cloud/groups', array('OCA\\Provisioning_API\\Groups', 'getGroups'), 'provisioning_api', API::SUBADMIN_AUTH);
API::register('post', '/cloud/groups', array('OCA\\Provisioning_API\\Groups', 'addGroup'), 'provisioning_api', API::SUBADMIN_AUTH);
API::register('get', '/cloud/groups/{groupid}', array('OCA\\Provisioning_API\\Groups', 'getGroup'), 'provisioning_api', API::SUBADMIN_AUTH);
API::register('delete', '/cloud/groups/{groupid}', array('OCA\\Provisioning_API\\Groups', 'deleteGroup'), 'provisioning_api', API::ADMIN_AUTH);
API::register('get', '/cloud/groups/{groupid}/subadmins', array('OCA\\Provisioning_API\\Groups', 'getSubAdminsOfGroup'), 'provisioning_api', API::ADMIN_AUTH);
// Apps
API::register('get', '/cloud/apps', array('OCA\\Provisioning_API\\Apps', 'getApps'), 'provisioning_api', API::ADMIN_AUTH);
API::register('get', '/cloud/apps/{appid}', array('OCA\\Provisioning_API\\Apps', 'getAppInfo'), 'provisioning_api', API::ADMIN_AUTH);
API::register('post', '/cloud/apps/{appid}', array('OCA\\Provisioning_API\\Apps', 'enable'), 'provisioning_api', API::ADMIN_AUTH);
API::register('delete', '/cloud/apps/{appid}', array('OCA\\Provisioning_API\\Apps', 'disable'), 'provisioning_api', API::ADMIN_AUTH);
Пример #6
0
<?php

namespace OCA\Files\Appinfo;

$application = new Application();
$application->registerRoutes($this, array('routes' => array(array('name' => 'API#getThumbnail', 'url' => '/api/v1/thumbnail/{x}/{y}/{file}', 'verb' => 'GET', 'requirements' => array('file' => '.+')), array('name' => 'API#updateFileTags', 'url' => '/api/v1/files/{path}', 'verb' => 'POST', 'requirements' => array('path' => '.+')), array('name' => 'API#getFilesByTag', 'url' => '/api/v1/tags/{tagName}/files', 'verb' => 'GET', 'requirements' => array('tagName' => '.+')))));
/** @var $this \OC\Route\Router */
$this->create('files_index', '/')->actionInclude('files/index.php');
$this->create('files_ajax_delete', 'ajax/delete.php')->actionInclude('files/ajax/delete.php');
$this->create('files_ajax_download', 'ajax/download.php')->actionInclude('files/ajax/download.php');
$this->create('files_ajax_getstoragestats', 'ajax/getstoragestats.php')->actionInclude('files/ajax/getstoragestats.php');
$this->create('files_ajax_list', 'ajax/list.php')->actionInclude('files/ajax/list.php');
$this->create('files_ajax_mimeicon', 'ajax/mimeicon.php')->actionInclude('files/ajax/mimeicon.php');
$this->create('files_ajax_move', 'ajax/move.php')->actionInclude('files/ajax/move.php');
$this->create('files_ajax_newfile', 'ajax/newfile.php')->actionInclude('files/ajax/newfile.php');
$this->create('files_ajax_newfolder', 'ajax/newfolder.php')->actionInclude('files/ajax/newfolder.php');
$this->create('files_ajax_rename', 'ajax/rename.php')->actionInclude('files/ajax/rename.php');
$this->create('files_ajax_scan', 'ajax/scan.php')->actionInclude('files/ajax/scan.php');
$this->create('files_ajax_upload', 'ajax/upload.php')->actionInclude('files/ajax/upload.php');
$this->create('download', 'download{file}')->requirements(array('file' => '.*'))->actionInclude('files/download.php');
// Register with the capabilities API
\OCP\API::register('get', '/cloud/capabilities', array('OCA\\Files\\Capabilities', 'getCapabilities'), 'files', \OCP\API::USER_AUTH);
Пример #7
0
 */
namespace OCA\Provisioning_API\AppInfo;

use OCP\API;
// Users
$users = new \OCA\Provisioning_API\Users(\OC::$server->getUserManager(), \OC::$server->getConfig(), \OC::$server->getGroupManager(), \OC::$server->getUserSession(), \OC::$server->getLogger());
API::register('get', '/cloud/users', [$users, 'getUsers'], 'provisioning_api', API::SUBADMIN_AUTH);
API::register('post', '/cloud/users', [$users, 'addUser'], 'provisioning_api', API::SUBADMIN_AUTH);
API::register('get', '/cloud/users/{userid}', [$users, 'getUser'], 'provisioning_api', API::USER_AUTH);
API::register('put', '/cloud/users/{userid}', [$users, 'editUser'], 'provisioning_api', API::USER_AUTH);
API::register('delete', '/cloud/users/{userid}', [$users, 'deleteUser'], 'provisioning_api', API::SUBADMIN_AUTH);
API::register('get', '/cloud/users/{userid}/groups', [$users, 'getUsersGroups'], 'provisioning_api', API::USER_AUTH);
API::register('post', '/cloud/users/{userid}/groups', [$users, 'addToGroup'], 'provisioning_api', API::SUBADMIN_AUTH);
API::register('delete', '/cloud/users/{userid}/groups', [$users, 'removeFromGroup'], 'provisioning_api', API::SUBADMIN_AUTH);
API::register('post', '/cloud/users/{userid}/subadmins', [$users, 'addSubAdmin'], 'provisioning_api', API::ADMIN_AUTH);
API::register('delete', '/cloud/users/{userid}/subadmins', [$users, 'removeSubAdmin'], 'provisioning_api', API::ADMIN_AUTH);
API::register('get', '/cloud/users/{userid}/subadmins', [$users, 'getUserSubAdminGroups'], 'provisioning_api', API::ADMIN_AUTH);
// Groups
$groups = new \OCA\Provisioning_API\Groups(\OC::$server->getGroupManager(), \OC::$server->getUserSession(), \OC::$server->getRequest());
API::register('get', '/cloud/groups', [$groups, 'getGroups'], 'provisioning_api', API::SUBADMIN_AUTH);
API::register('post', '/cloud/groups', [$groups, 'addGroup'], 'provisioning_api', API::SUBADMIN_AUTH);
API::register('get', '/cloud/groups/{groupid}', [$groups, 'getGroup'], 'provisioning_api', API::SUBADMIN_AUTH);
API::register('delete', '/cloud/groups/{groupid}', [$groups, 'deleteGroup'], 'provisioning_api', API::ADMIN_AUTH);
API::register('get', '/cloud/groups/{groupid}/subadmins', [$groups, 'getSubAdminsOfGroup'], 'provisioning_api', API::ADMIN_AUTH);
// Apps
$apps = new \OCA\Provisioning_API\Apps(\OC::$server->getAppManager(), \OC::$server->getOcsClient());
API::register('get', '/cloud/apps', [$apps, 'getApps'], 'provisioning_api', API::ADMIN_AUTH);
API::register('get', '/cloud/apps/{appid}', [$apps, 'getAppInfo'], 'provisioning_api', API::ADMIN_AUTH);
API::register('post', '/cloud/apps/{appid}', [$apps, 'enable'], 'provisioning_api', API::ADMIN_AUTH);
API::register('delete', '/cloud/apps/{appid}', [$apps, 'disable'], 'provisioning_api', API::ADMIN_AUTH);
Пример #8
0
<?php

/**
 * @author Joas Schilling <*****@*****.**>
 *
 * @copyright Copyright (c) 2016, ownCloud, Inc.
 * @license AGPL-3.0
 *
 * This code is free software: you can redistribute it and/or modify
 * it under the terms of the GNU Affero General Public License, version 3,
 * as published by the Free Software Foundation.
 *
 * 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, version 3,
 * along with this program.  If not, see <http://www.gnu.org/licenses/>
 *
 */
namespace OCA\Testing\AppInfo;

use OCA\Testing\Config;
use OCP\API;
$config = new Config(\OC::$server->getConfig(), \OC::$server->getRequest());
API::register('post', '/apps/testing/api/v1/app/{appid}/{configkey}', [$config, 'setAppValue'], 'testing', API::ADMIN_AUTH);
API::register('delete', '/apps/testing/api/v1/app/{appid}/{configkey}', [$config, 'deleteAppValue'], 'testing', API::ADMIN_AUTH);
Пример #9
0
<?php

/**
 * ownCloud - CalendarPlus
 *
 * @author Sebastian Doell
 * @copyright 2015 sebastian doell sebastian@libasys.de
 *
 * This library is free software; you can redistribute it and/or
 * modify it under the terms of the GNU AFFERO GENERAL PUBLIC LICENSE
 * License as published by the Free Software Foundation; either
 * version 3 of the License, or any later version.
 *
 * This library 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 library.  If not, see <http://www.gnu.org/licenses/>.
 *
 */
namespace OCA\CalendarPlus;

use OCA\CalendarPlus\AppInfo\Application;
$application = new Application();
$application->registerRoutes($this, ['routes' => [['name' => 'page#index', 'url' => '/', 'verb' => 'GET'], ['name' => 'public#index', 'url' => '/s/{token}', 'verb' => 'GET'], ['name' => 'public#index', 'url' => '/s/{token}', 'verb' => 'POST', 'postfix' => 'auth'], ['name' => 'public#getGuestSettingsCalendar', 'url' => '/publicgetguestsettingscalendar', 'verb' => 'GET'], ['name' => 'public#getGuessTimeZone', 'url' => '/publicgetguesstimezone', 'verb' => 'POST'], ['name' => 'public#getDateTimeFormat', 'url' => '/publicgetdatetimeformat', 'verb' => 'POST'], ['name' => 'public#getEventsPublic', 'url' => '/geteventspublic', 'verb' => 'GET'], ['name' => 'event#getEvents', 'url' => '/getevents', 'verb' => 'GET'], ['name' => 'public#changeViewCalendarPublic', 'url' => '/changeviewcalendarpublic', 'verb' => 'POST'], ['name' => 'calendar#changeViewCalendar', 'url' => '/changeviewcalendar', 'verb' => 'POST'], ['name' => 'event#getReminderEvents', 'url' => '/getreminderevents', 'verb' => 'POST'], ['name' => 'event#getEventsDayView', 'url' => '/geteventsdayview', 'verb' => 'POST'], ['name' => 'event#addCategorieToEvent', 'url' => '/addcategorietoevent', 'verb' => 'POST'], ['name' => 'event#addSharedEvent', 'url' => '/addsharedevent', 'verb' => 'POST'], ['name' => 'event#addSubscriberEvent', 'url' => '/addsubscriberevent', 'verb' => 'POST'], ['name' => 'event#deleteExdateEvent', 'url' => '/deleteexdateevent', 'verb' => 'POST'], ['name' => 'event#deleteSingleRepeatingEvent', 'url' => '/deletesinglerepeatingevent', 'verb' => 'POST'], ['name' => 'event#deleteEvent', 'url' => '/deleteevent', 'verb' => 'POST'], ['name' => 'event#moveEvent', 'url' => '/moveevent', 'verb' => 'POST'], ['name' => 'event#resizeEvent', 'url' => '/resizeevent', 'verb' => 'POST'], ['name' => 'event#getShowEvent', 'url' => '/getshowevent', 'verb' => 'POST'], ['name' => 'event#getEditFormEvent', 'url' => '/geteditformevent', 'verb' => 'GET'], ['name' => 'event#getQuickInfoEvent', 'url' => '/getquickinfoevent', 'verb' => 'GET'], ['name' => 'event#editEvent', 'url' => '/editevent', 'verb' => 'POST'], ['name' => 'event#getNewFormEvent', 'url' => '/getnewformevent', 'verb' => 'GET'], ['name' => 'event#autoComplete', 'url' => '/autocompletelocation', 'verb' => 'GET'], ['name' => 'event#newEvent', 'url' => '/newevent', 'verb' => 'POST'], ['name' => 'event#sendEmailEventIcs', 'url' => '/sendemaileventics', 'verb' => 'POST'], ['name' => 'calendarSettings#index', 'url' => '/calendarsettingsindex', 'verb' => 'GET'], ['name' => 'calendarSettings#setTimeZone', 'url' => '/calendarsettingssettimezone', 'verb' => 'POST'], ['name' => 'calendarSettings#setTimeFormat', 'url' => '/calendarsettingssettimeformat', 'verb' => 'POST'], ['name' => 'calendarSettings#setDateFormat', 'url' => '/calendarsettingssetdateformat', 'verb' => 'POST'], ['name' => 'calendarSettings#setFirstDay', 'url' => '/calendarsettingssetfirstday', 'verb' => 'POST'], ['name' => 'calendarSettings#timeZoneDectection', 'url' => '/calendarsettingstimezonedetection', 'verb' => 'POST'], ['name' => 'calendarSettings#reScanCal', 'url' => '/calendarsettingsrescancal', 'verb' => 'GET'], ['name' => 'calendarSettings#setTaskNavActive', 'url' => '/calendarsettingssettasknavactive', 'verb' => 'POST'], ['name' => 'calendarSettings#setCalendarNavActive', 'url' => '/calendarsettingssetcalendarnavactive', 'verb' => 'POST'], ['name' => 'calendarSettings#getUserSettingsCalendar', 'url' => '/calendarsettingsgetusersettingscalendar', 'verb' => 'GET'], ['name' => 'calendarSettings#saveUserViewSettings', 'url' => '/calendarsettingssaveuserview', 'verb' => 'POST'], ['name' => 'calendarSettings#getGuessTimeZoneUser', 'url' => '/calendarsettingsgetguesstimezoneuser', 'verb' => 'POST'], ['name' => 'calendar#getNewFormCalendar', 'url' => '/getnewformcalendar', 'verb' => 'GET'], ['name' => 'calendar#getEditFormCalendar', 'url' => '/geteditformcalendar', 'verb' => 'POST'], ['name' => 'calendar#newCalendar', 'url' => '/newcalendar', 'verb' => 'POST'], ['name' => 'calendar#editCalendar', 'url' => '/editcalendar', 'verb' => 'POST'], ['name' => 'calendar#deleteCalendar', 'url' => '/deletecalendar', 'verb' => 'POST'], ['name' => 'calendar#setActiveCalendar', 'url' => '/setactivecalendar', 'verb' => 'POST'], ['name' => 'calendar#setMyActiveCalendar', 'url' => '/setmyactivecalendar', 'verb' => 'POST'], ['name' => 'calendar#touchCalendar', 'url' => '/touchcalendar', 'verb' => 'POST'], ['name' => 'calendar#rebuildLeftNavigation', 'url' => '/rebuildleftnavigationcalendar', 'verb' => 'POST'], ['name' => 'calendar#refreshSubscribedCalendar', 'url' => '/refreshsubscribedcalendar', 'verb' => 'POST'], ['name' => 'calendar#checkImportUrl', 'url' => '/checkimporturl', 'verb' => 'POST'], ['name' => 'calendar#updateTag', 'url' => '/updatetag', 'verb' => 'GET'], ['name' => 'tasks#rebuildTaskViewRight', 'url' => '/rebuildtaskviewrightcalendar', 'verb' => 'POST'], ['name' => 'tasks#setCompletedTask', 'url' => '/setcompletedtaskcalendar', 'verb' => 'POST'], ['name' => 'import#getImportDialogTpl', 'url' => '/getimportdialogtplcalendar', 'verb' => 'POST'], ['name' => 'import#checkCalendarExists', 'url' => '/checkcalendarexistsimport', 'verb' => 'POST'], ['name' => 'import#importEvents', 'url' => '/importeventscalendar', 'verb' => 'POST'], ['name' => 'import#importEventsPerDrop', 'url' => '/importeventsperdropcalendar', 'verb' => 'POST'], ['name' => 'export#exportEvents', 'url' => '/exporteventscalendar', 'verb' => 'GET']]]);
\OCP\API::register('get', '/apps/calendarplus/api/v1/shares', array('\\OCA\\CalendarPlus\\API\\Local', 'getAllShares'), 'calendarplus');
\OCP\API::register('get', '/apps/calendarplus/api/v1/shares/{id}', array('\\OCA\\CalendarPlus\\API\\Local', 'getShare'), 'calendarplus');
Пример #10
0
<?php

/**
 * @author Joas Schilling <*****@*****.**>
 *
 * @copyright Copyright (c) 2015, ownCloud, Inc.
 * @license AGPL-3.0
 *
 * This code is free software: you can redistribute it and/or modify
 * it under the terms of the GNU Affero General Public License, version 3,
 * as published by the Free Software Foundation.
 *
 * 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, version 3,
 * along with this program.  If not, see <http://www.gnu.org/licenses/>
 *
 */
$application = new \OCA\PopularityContestClient\AppInfo\Application();
\OCP\API::register('post', '/apps/popularitycontestclient/api/v1/report', [$application->getContainer()->query('EndpointController'), 'sendReport'], 'popularitycontestclient', \OCP\API::ADMIN_AUTH);
\OCP\API::register('post', '/apps/popularitycontestclient/api/v1/monthly', [$application->getContainer()->query('EndpointController'), 'enableMonthly'], 'popularitycontestclient', \OCP\API::ADMIN_AUTH);
\OCP\API::register('delete', '/apps/popularitycontestclient/api/v1/monthly', [$application->getContainer()->query('EndpointController'), 'disableMonthly'], 'popularitycontestclient', \OCP\API::ADMIN_AUTH);
Пример #11
0
<?php

/**
 * ownCloud - ocDownloader
 *
 * This file is licensed under the Creative Commons BY-SA License version 3 or
 * later. See the COPYING file.
 *
 * @author Xavier Beurois <www.sgc-univ.net>
 * @copyright Xavier Beurois 2015
 */
namespace OCA\ocDownloader\AppInfo;

$Application = new Application();
$Application->registerRoutes($this, array('routes' => [['name' => 'Index#Add', 'url' => '/add', 'verb' => 'GET'], ['name' => 'Index#All', 'url' => '/all', 'verb' => 'GET'], ['name' => 'Index#Completes', 'url' => '/completes', 'verb' => 'GET'], ['name' => 'Index#Actives', 'url' => '/actives', 'verb' => 'GET'], ['name' => 'Index#Waitings', 'url' => '/waitings', 'verb' => 'GET'], ['name' => 'Index#Stopped', 'url' => '/stopped', 'verb' => 'GET'], ['name' => 'Index#Removed', 'url' => '/removed', 'verb' => 'GET'], ['name' => 'HttpDownloader#Add', 'url' => '/httpdownloader/add', 'verb' => 'POST'], ['name' => 'FtpDownloader#Add', 'url' => '/ftpdownloader/add', 'verb' => 'POST'], ['name' => 'YTDownloader#Add', 'url' => '/ytdownloader/add', 'verb' => 'POST'], ['name' => 'BTDownloader#Add', 'url' => '/btdownloader/add', 'verb' => 'POST'], ['name' => 'BTDownloader#ListTorrentFiles', 'url' => '/btdownloader/listtorrentfiles', 'verb' => 'POST'], ['name' => 'BTDownloader#UploadFiles', 'url' => '/btdownloader/uploadfiles', 'verb' => 'POST'], ['name' => 'Queue#Get', 'url' => '/queue/get', 'verb' => 'POST'], ['name' => 'Queue#Count', 'url' => '/queue/count', 'verb' => 'POST'], ['name' => 'Queue#Hide', 'url' => '/queue/hide', 'verb' => 'POST'], ['name' => 'Queue#HideAll', 'url' => '/queue/hideall', 'verb' => 'POST'], ['name' => 'Queue#Remove', 'url' => '/queue/remove', 'verb' => 'POST'], ['name' => 'Queue#CompletelyRemove', 'url' => '/queue/completelyremove', 'verb' => 'POST'], ['name' => 'Queue#Pause', 'url' => '/queue/pause', 'verb' => 'POST'], ['name' => 'Queue#UnPause', 'url' => '/queue/unpause', 'verb' => 'POST'], ['name' => 'Queue#RemoveAll', 'url' => '/queue/removeall', 'verb' => 'POST'], ['name' => 'Queue#CompletelyRemoveAll', 'url' => '/queue/completelyremoveall', 'verb' => 'POST'], ['name' => 'AdminSettings#Save', 'url' => '/adminsettings/save', 'verb' => 'POST'], ['name' => 'AdminSettings#Get', 'url' => '/adminsettings/get', 'verb' => 'POST'], ['name' => 'PersonalSettings#Save', 'url' => '/personalsettings/save', 'verb' => 'POST'], ['name' => 'PersonalSettings#Get', 'url' => '/personalsettings/get', 'verb' => 'GET'], ['name' => 'Updater#Check', 'url' => '/updater/check', 'verb' => 'GET']]));
$APIBasePath = '/apps/ocdownloader/api/';
\OCP\API::register('POST', $APIBasePath . 'version', function ($URLParams) {
    return new \OC_OCS_Result(\OCA\ocDownloader\Controller\Lib\API::CheckAddonVersion($_POST['AddonVersion']));
}, 'ocdownloader', \OC_API::USER_AUTH);
\OCP\API::register('GET', $APIBasePath . 'queue/get', function ($URLParams) {
    return new \OC_OCS_Result(\OCA\ocDownloader\Controller\Lib\API::GetQueue());
}, 'ocdownloader', \OC_API::USER_AUTH);
\OCP\API::register('POST', $APIBasePath . 'add', function ($URLParams) {
    return new \OC_OCS_Result(\OCA\ocDownloader\Controller\Lib\API::Add($_POST['URL']));
}, 'ocdownloader', \OC_API::USER_AUTH);
Пример #12
0
<?php

use OCA\ContactsPlus\AppInfo\Application;
$application = new Application();
$application->registerRoutes($this, ['routes' => [['name' => 'page#index', 'url' => '/', 'verb' => 'GET'], ['name' => 'photo#getImageFromCloud', 'url' => '/getimagefromcloud', 'verb' => 'GET'], ['name' => 'photo#cropPhoto', 'url' => '/cropphoto', 'verb' => 'POST'], ['name' => 'photo#saveCropPhotoContact', 'url' => '/savecropphotocontact', 'verb' => 'POST'], ['name' => 'photo#uploadPhoto', 'url' => '/uploadphoto', 'verb' => 'POST'], ['name' => 'photo#deletePhoto', 'url' => '/deletephoto', 'verb' => 'GET'], ['name' => 'photo#clearPhotoCache', 'url' => '/clearphotocache', 'verb' => 'POST'], ['name' => 'contacts#getNewFormContact', 'url' => '/getnewformcontact', 'verb' => 'POST'], ['name' => 'contacts#newContactSave', 'url' => '/newcontactsave', 'verb' => 'POST'], ['name' => 'contacts#getEditFormContact', 'url' => '/geteditformcontact', 'verb' => 'POST'], ['name' => 'contacts#editContactSave', 'url' => '/editcontactsave', 'verb' => 'POST'], ['name' => 'contacts#showContact', 'url' => '/showcontact', 'verb' => 'POST'], ['name' => 'contacts#deleteContact', 'url' => '/deletecontact', 'verb' => 'POST'], ['name' => 'contacts#deleteContactFromGroup', 'url' => '/deletecontactfromgroup', 'verb' => 'POST'], ['name' => 'contacts#addProbertyToContact', 'url' => '/addprobertytocontact', 'verb' => 'POST'], ['name' => 'contacts#copyContact', 'url' => '/copycontact', 'verb' => 'POST'], ['name' => 'contacts#moveContact', 'url' => '/movecontact', 'verb' => 'POST'], ['name' => 'contacts#getContactCards', 'url' => '/getcontactcards', 'verb' => 'POST'], ['name' => 'export#exportContacts', 'url' => '/exportcontacts', 'verb' => 'GET'], ['name' => 'export#exportBirthdays', 'url' => '/exportbirthdays', 'verb' => 'GET'], ['name' => 'import#getImportDialogTpl', 'url' => '/getimportdialogtplcontacts', 'verb' => 'POST'], ['name' => 'import#checkAddressbookExists', 'url' => '/checkaddressbookexists', 'verb' => 'POST'], ['name' => 'import#importVcards', 'url' => '/importvcards', 'verb' => 'POST'], ['name' => 'addressbook#getAddressBooks', 'url' => '/getaddressbooks', 'verb' => 'GET'], ['name' => 'addressbook#add', 'url' => '/addaddrbook', 'verb' => 'POST'], ['name' => 'addressbook#update', 'url' => '/updateaddrbook', 'verb' => 'POST'], ['name' => 'addressbook#delete', 'url' => '/deleteaddrbook', 'verb' => 'POST'], ['name' => 'addressbook#activate', 'url' => '/activateaddrbook', 'verb' => 'POST'], ['name' => 'addressbook#getCategories', 'url' => '/getcategoriesaddrbook', 'verb' => 'POST'], ['name' => 'addressbook#addIosGroupsSupport', 'url' => '/addiosgroupssupport', 'verb' => 'POST'], ['name' => 'addressbook#prepareIosGroups', 'url' => '/prepareiosgroups', 'verb' => 'POST'], ['name' => 'addressbook#saveSortOrderGroups', 'url' => '/savesortordergroups', 'verb' => 'POST']]]);
\OCP\API::register('get', '/apps/kontakte/api/v1/shares', array('\\OCA\\ContactsPlus\\API\\Local', 'getAllShares'), 'contactsplus');
\OCP\API::register('get', '/apps/kontakte/api/v1/shares/{id}', array('\\OCA\\ContactsPlus\\API\\Local', 'getShare'), 'contactsplus');
Пример #13
0
 *
 * This code is free software: you can redistribute it and/or modify
 * it under the terms of the GNU Affero General Public License, version 3,
 * as published by the Free Software Foundation.
 *
 * 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, version 3,
 * along with this program.  If not, see <http://www.gnu.org/licenses/>
 *
 */
namespace OCA\Testing\AppInfo;

use OCA\Testing\Config;
use OCA\Testing\Locking\Provisioning;
use OCP\API;
$config = new Config(\OC::$server->getConfig(), \OC::$server->getRequest());
API::register('post', '/apps/testing/api/v1/app/{appid}/{configkey}', [$config, 'setAppValue'], 'testing', API::ADMIN_AUTH);
API::register('delete', '/apps/testing/api/v1/app/{appid}/{configkey}', [$config, 'deleteAppValue'], 'testing', API::ADMIN_AUTH);
$locking = new Provisioning(\OC::$server->getLockingProvider(), \OC::$server->getDatabaseConnection(), \OC::$server->getConfig(), \OC::$server->getRequest());
API::register('get', '/apps/testing/api/v1/lockprovisioning', [$locking, 'isLockingEnabled'], 'files_lockprovisioning', API::ADMIN_AUTH);
API::register('get', '/apps/testing/api/v1/lockprovisioning/{type}/{user}', [$locking, 'isLocked'], 'files_lockprovisioning', API::ADMIN_AUTH);
API::register('post', '/apps/testing/api/v1/lockprovisioning/{type}/{user}', [$locking, 'acquireLock'], 'files_lockprovisioning', API::ADMIN_AUTH);
API::register('put', '/apps/testing/api/v1/lockprovisioning/{type}/{user}', [$locking, 'changeLock'], 'files_lockprovisioning', API::ADMIN_AUTH);
API::register('delete', '/apps/testing/api/v1/lockprovisioning/{type}/{user}', [$locking, 'releaseLock'], 'files_lockprovisioning', API::ADMIN_AUTH);
API::register('delete', '/apps/testing/api/v1/lockprovisioning/{type}', [$locking, 'releaseAll'], 'files_lockprovisioning', API::ADMIN_AUTH);
API::register('delete', '/apps/testing/api/v1/lockprovisioning', [$locking, 'releaseAll'], 'files_lockprovisioning', API::ADMIN_AUTH);
Пример #14
0
 * 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, version 3,
 * along with this program.  If not, see <http://www.gnu.org/licenses/>
 *
 */
namespace OCA\Files_Sharing\AppInfo;

use OCP\API;
$application = new Application();
$application->registerRoutes($this, ['resources' => ['ExternalShares' => ['url' => '/api/externalShares']]]);
/** @var $this \OCP\Route\IRouter */
$this->create('core_ajax_public_preview', '/publicpreview')->action(function () {
    require_once __DIR__ . '/../ajax/publicpreview.php';
});
$this->create('files_sharing_ajax_list', 'ajax/list.php')->actionInclude('files_sharing/ajax/list.php');
$this->create('files_sharing_ajax_publicpreview', 'ajax/publicpreview.php')->actionInclude('files_sharing/ajax/publicpreview.php');
$this->create('sharing_external_shareinfo', '/shareinfo')->actionInclude('files_sharing/ajax/shareinfo.php');
$this->create('sharing_external_add', '/external')->actionInclude('files_sharing/ajax/external.php');
$this->create('sharing_external_test_remote', '/testremote')->actionInclude('files_sharing/ajax/testremote.php');
// OCS API
//TODO: SET: mail notification, waiting for PR #4689 to be accepted
API::register('get', '/apps/files_sharing/api/v1/shares', array('\\OCA\\Files_Sharing\\API\\Local', 'getAllShares'), 'files_sharing');
API::register('post', '/apps/files_sharing/api/v1/shares', array('\\OCA\\Files_Sharing\\API\\Local', 'createShare'), 'files_sharing');
API::register('get', '/apps/files_sharing/api/v1/shares/{id}', array('\\OCA\\Files_Sharing\\API\\Local', 'getShare'), 'files_sharing');
API::register('put', '/apps/files_sharing/api/v1/shares/{id}', array('\\OCA\\Files_Sharing\\API\\Local', 'updateShare'), 'files_sharing');
API::register('delete', '/apps/files_sharing/api/v1/shares/{id}', array('\\OCA\\Files_Sharing\\API\\Local', 'deleteShare'), 'files_sharing');
// Register with the capabilities API
API::register('get', '/cloud/capabilities', array('OCA\\Files_Sharing\\Capabilities', 'getCapabilities'), 'files_sharing', API::USER_AUTH);
Пример #15
0
 *
 * This code is free software: you can redistribute it and/or modify
 * it under the terms of the GNU Affero General Public License, version 3,
 * as published by the Free Software Foundation.
 *
 * 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, version 3,
 * along with this program.  If not, see <http://www.gnu.org/licenses/>
 *
 */
use OCP\API;
$app = new \OCA\Activity\AppInfo\Application();
// Register an OCS API call
//API::register(
//	'get',
//	'/apps/activity/api/v2/activity',
//	array($application->getContainer()->query('OCA\Activity\Controller\OCSEndPoint'), 'getDefault'),
//	'activity'
//);
//API::register(
//	'get',
//	'/apps/activity/api/v2/activity/{filter}',
//	array($application->getContainer()->query('OCA\Activity\Controller\OCSEndPoint'), 'getFilter'),
//	'activity'
//);
API::register('get', '/cloud/activity', array('OCA\\Activity\\Api', 'get'), 'activity');
$app->registerRoutes($this, ['routes' => [['name' => 'Settings#personal', 'url' => '/settings', 'verb' => 'POST'], ['name' => 'Settings#feed', 'url' => '/settings/feed', 'verb' => 'POST'], ['name' => 'Activities#showList', 'url' => '/', 'verb' => 'GET'], ['name' => 'Feed#show', 'url' => '/rss.php', 'verb' => 'GET'], ['name' => 'EndPoint#getDefault', 'url' => '/api/v2/activity', 'verb' => 'GET'], ['name' => 'EndPoint#getFilter', 'url' => '/api/v2/activity/{filter}', 'verb' => 'GET']]]);
Пример #16
0
 * 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, version 3,
 * along with this program.  If not, see <http://www.gnu.org/licenses/>
 *
 */
use OCP\API;
// Config
API::register('get', '/config', array('OC_OCS_Config', 'apiConfig'), 'core', API::GUEST_AUTH);
// Person
API::register('post', '/person/check', array('OC_OCS_Person', 'check'), 'core', API::GUEST_AUTH);
// Privatedata
API::register('get', '/privatedata/getattribute', array('OC_OCS_Privatedata', 'get'), 'core', API::USER_AUTH, array('app' => '', 'key' => ''));
API::register('get', '/privatedata/getattribute/{app}', array('OC_OCS_Privatedata', 'get'), 'core', API::USER_AUTH, array('key' => ''));
API::register('get', '/privatedata/getattribute/{app}/{key}', array('OC_OCS_Privatedata', 'get'), 'core', API::USER_AUTH);
API::register('post', '/privatedata/setattribute/{app}/{key}', array('OC_OCS_Privatedata', 'set'), 'core', API::USER_AUTH);
API::register('post', '/privatedata/deleteattribute/{app}/{key}', array('OC_OCS_Privatedata', 'delete'), 'core', API::USER_AUTH);
// cloud
API::register('get', '/cloud/capabilities', array('OC_OCS_Cloud', 'getCapabilities'), 'core', API::USER_AUTH);
API::register('get', '/cloud/user', array('OC_OCS_Cloud', 'getCurrentUser'), 'core', API::USER_AUTH);
// Server-to-Server Sharing
if (\OC::$server->getAppManager()->isEnabledForUser('files_sharing')) {
    $s2s = new \OCA\Files_Sharing\API\Server2Server();
    API::register('post', '/cloud/shares', array($s2s, 'createShare'), 'files_sharing', API::GUEST_AUTH);
    API::register('post', '/cloud/shares/{id}/accept', array($s2s, 'acceptShare'), 'files_sharing', API::GUEST_AUTH);
    API::register('post', '/cloud/shares/{id}/decline', array($s2s, 'declineShare'), 'files_sharing', API::GUEST_AUTH);
    API::register('post', '/cloud/shares/{id}/unshare', array($s2s, 'unshare'), 'files_sharing', API::GUEST_AUTH);
}
Пример #17
0
 * 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, version 3,
 * along with this program.  If not, see <http://www.gnu.org/licenses/>
 *
 */
namespace OCA\Files_Sharing\AppInfo;

use OCP\API;
$application = new Application();
$application->registerRoutes($this, ['resources' => ['ExternalShares' => ['url' => '/api/externalShares']], 'routes' => [['name' => 'externalShares#testRemote', 'url' => '/testremote', 'verb' => 'GET']]]);
/** @var $this \OCP\Route\IRouter */
$this->create('core_ajax_public_preview', '/publicpreview')->action(function () {
    require_once __DIR__ . '/../ajax/publicpreview.php';
});
$this->create('files_sharing_ajax_list', 'ajax/list.php')->actionInclude('files_sharing/ajax/list.php');
$this->create('files_sharing_ajax_publicpreview', 'ajax/publicpreview.php')->actionInclude('files_sharing/ajax/publicpreview.php');
$this->create('sharing_external_shareinfo', '/shareinfo')->actionInclude('files_sharing/ajax/shareinfo.php');
$this->create('sharing_external_add', '/external')->actionInclude('files_sharing/ajax/external.php');
// OCS API
//TODO: SET: mail notification, waiting for PR #4689 to be accepted
API::register('get', '/apps/files_sharing/api/v1/shares', array('\\OCA\\Files_Sharing\\API\\Local', 'getAllShares'), 'files_sharing');
API::register('post', '/apps/files_sharing/api/v1/shares', array('\\OCA\\Files_Sharing\\API\\Local', 'createShare'), 'files_sharing');
API::register('get', '/apps/files_sharing/api/v1/shares/{id}', array('\\OCA\\Files_Sharing\\API\\Local', 'getShare'), 'files_sharing');
API::register('put', '/apps/files_sharing/api/v1/shares/{id}', array('\\OCA\\Files_Sharing\\API\\Local', 'updateShare'), 'files_sharing');
API::register('delete', '/apps/files_sharing/api/v1/shares/{id}', array('\\OCA\\Files_Sharing\\API\\Local', 'deleteShare'), 'files_sharing');
API::register('get', '/apps/files_sharing/api/v1/remote_shares', array('\\OCA\\Files_Sharing\\API\\Remote', 'getOpenShares'), 'files_sharing');
API::register('post', '/apps/files_sharing/api/v1/remote_shares/{id}', array('\\OCA\\Files_Sharing\\API\\Remote', 'acceptShare'), 'files_sharing');
API::register('delete', '/apps/files_sharing/api/v1/remote_shares/{id}', array('\\OCA\\Files_Sharing\\API\\Remote', 'declineShare'), 'files_sharing');
Пример #18
0
<?php

/**
 * @author Joas Schilling <*****@*****.**>
 *
 * @copyright Copyright (c) 2016, ownCloud, Inc.
 * @license AGPL-3.0
 *
 * This code is free software: you can redistribute it and/or modify
 * it under the terms of the GNU Affero General Public License, version 3,
 * as published by the Free Software Foundation.
 *
 * 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, version 3,
 * along with this program.  If not, see <http://www.gnu.org/licenses/>
 *
 */
$application = new \OCA\Notifications\AppInfo\Application();
\OCP\API::register('get', '/apps/notifications/api/v1/notifications', [$application->getContainer()->query('EndpointController'), 'listNotifications'], 'notifications');
\OCP\API::register('get', '/apps/notifications/api/v1/notifications/{id}', [$application->getContainer()->query('EndpointController'), 'getNotification'], 'notifications');
\OCP\API::register('delete', '/apps/notifications/api/v1/notifications/{id}', [$application->getContainer()->query('EndpointController'), 'deleteNotification'], 'notifications');
Пример #19
0
<?php

/**
 * ownCloud - owncollab
 *
 * This file is licensed under the Affero General Public License version 3 or
 * later. See the COPYING file.
 *
 * @author ownCollab Team <*****@*****.**>
 * @copyright ownCollab Team 2015
 */
/**
 * Create your routes in here. The name is the lowercase name of the controller
 * without the controller part, the stuff after the hash is the method.
 * e.g. page#index -> OCA\OwnCollab\Controller\PageController->index()
 *
 * The controller class has to be registered in the application.php file since
 * it's instantiated in there
 */
$application = new \OCA\Owncollab_Talks\AppInfo\Application();
$application->registerRoutes($this, ['routes' => [['name' => 'main#index', 'url' => '/', 'verb' => 'GET'], ['name' => 'api#index', 'url' => '/api', 'verb' => 'POST'], ['name' => 'main#page', 'url' => '/page', 'verb' => 'GET'], ['name' => 'main#do_echo', 'url' => '/echo', 'verb' => 'POST'], ['name' => 'main#index', 'url' => '/all', 'verb' => 'GET'], ['name' => 'main#mytalks', 'url' => '/mytalks', 'verb' => 'GET'], ['name' => 'main#startedtalks', 'url' => '/startedtalks', 'verb' => 'GET'], ['name' => 'main#talk', 'url' => '/talk/{id}', 'verb' => 'GET'], ['name' => 'main#read', 'url' => '/read/{id}', 'verb' => 'GET'], ['name' => 'main#begin', 'url' => '/begin', 'verb' => 'GET'], ['name' => 'main#selectSubscribers', 'url' => '/subscribers', 'verb' => 'GET'], ['name' => 'main#attachments', 'url' => '/attachments', 'verb' => 'GET'], ['name' => 'main#saveTalk', 'url' => '/send', 'verb' => 'POST'], ['name' => 'main#reply', 'url' => '/reply/{id}', 'verb' => 'GET'], ['name' => 'main#addUser', 'url' => '/adduser/{id}', 'verb' => 'GET'], ['name' => 'main#removeUser', 'url' => '/removeuser/{talk}/{user}', 'verb' => 'GET'], ['name' => 'main#markMessage', 'url' => '/mark/{id}/{flag}', 'verb' => 'GET'], ['name' => 'main#getUserFiles', 'url' => '/getfiles', 'verb' => 'GET'], ['name' => 'main#parseMessages', 'url' => '/parsemessages', 'verb' => 'GET'], ['name' => 'main#saveemailanswer', 'url' => '/savemail', 'verb' => 'GET|POST'], ['name' => 'main#saveemailtalk', 'url' => '/savemailtalk', 'verb' => 'GET|POST']]]);
\OCP\API::register('get', '/apps/owncollab_talks/url', function ($urlParameters) {
    return new \OC_OCS_Result($data);
}, 'owncollab_talks', \OC_API::ADMIN_AUTH);