Files
nextcloud-docs/developer_manual/access.rst
Daniel Molkentin 35efaf4539 Merge remote-tracking branch 'origin/stable45'
Conflicts:
	developer_manual/conf_release.py
	developer_manual/index.rst
	developer_manual/translation.rst
	user_manual/conf_release.py
	user_manual/sync_kde.rst
2012-12-26 21:33:42 +01:00

36 lines
1.4 KiB
ReStructuredText
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
public.php and remote.php
=========================
public.php
----------
The public.php is used for public sharing like public file sharing, public gallery sharing and public calendar sharing.
Register:
~~~~~~~~~
To register an app for public.php you just have to put the following lines into your apps appinfo/info.xml.
Example from our source code: ``<public> <calendar>share.php</calendar> <caldav>share.php</caldav> </public>``
Now you can reach the file /apps/calendar/share.php through /public.php?service=calendar and through /public.php?service=caldav
Example for syntax: ``<public> <servicename>phpfileforsharing.php</servicename> </public>``
Now you can reach the file */apps/appid/phpfileforsharing.php* through */public.php?service=servicename*
remote.php
----------
The remote.php is used for remote services like webdav, caldav, carddav and ampache.
Register:
~~~~~~~~~
To register an app for remote.php you just have to put the following lines into your apps appinfo/info.xml.
Example from our source code: ``<remote> <calendar>appinfo/remote.php</calendar> <caldav>appinfo/remote.php</caldav> </remote>``
Now you can reach the file /apps/calendar/appinfo/remote.php through /remote.php/calendar and through /remote.php/caldav/
Example for syntax: ``<remote> <servicename>phpfileforremote.php</servicename> </remote>``
Now you can reach the file */apps/appid/phpfileforremote.php* through */remote.php/servicename/*