Switch to OCSv2

All Nextcloud versions support OCSv2 so our documentation should recommend to use this API which result in a more restful behaviour.
This commit is contained in:
Björn Schießle 2017-07-04 14:05:58 +02:00 committed by Morris Jobke
parent b42988a244
commit 8dc968c36a

View File

@ -5,7 +5,7 @@ OCS Share API
The OCS Share API allows you to access the sharing API from outside over
pre-defined OCS calls.
The base URL for all calls to the share API is: *<nextcloud_base_url>/ocs/v1.php/apps/files_sharing/api/v1*
The base URL for all calls to the share API is: *<nextcloud_base_url>/ocs/v2.php/apps/files_sharing/api/v1*
All calls to OCS endpoints require the ``OCS-APIRequest`` header to be set to ``true``.