[Pkg-owncloud-commits] [owncloud-doc] 59/60: Fix curl syntax

David Prévot taffit at moszumanska.debian.org
Tue Feb 25 19:06:58 UTC 2014


This is an automated email from the git hooks/post-receive script.

taffit pushed a commit to branch master
in repository owncloud-doc.

commit 801f9949650bd2b8e48c4609f313944f38e16caa
Author: David Prévot <taffit at debian.org>
Date:   Tue Feb 25 14:25:56 2014 -0400

    Fix curl syntax
---
 debian/patches/0001-Fix-curl-syntax.patch | 132 ++++++++++++++++++++++++++++++
 debian/patches/series                     |   1 +
 2 files changed, 133 insertions(+)

diff --git a/debian/patches/0001-Fix-curl-syntax.patch b/debian/patches/0001-Fix-curl-syntax.patch
new file mode 100644
index 0000000..ce23047
--- /dev/null
+++ b/debian/patches/0001-Fix-curl-syntax.patch
@@ -0,0 +1,132 @@
+From: =?utf-8?q?David_Pr=C3=A9vot?= <taffit at debian.org>
+Date: Tue, 25 Feb 2014 11:59:52 -0400
+Subject: Fix curl syntax
+
+No spurious hyperlink on examples, and no suggestion to run the commands
+as root.
+
+Forwarded: https://github.com/owncloud/documentation/pull/284
+---
+ admin_manual/sharing_api/Create_a_new_Share.rst            | 14 +++++---------
+ admin_manual/sharing_api/Delete_Share.rst                  |  5 ++---
+ admin_manual/sharing_api/Get_All_Shares.rst                |  5 ++---
+ .../sharing_api/Get_Information_about_a_known_share.rst    |  4 ++--
+ .../Get_Shares_from_a_Specific_File_or_Folder.rst          | 12 ++++++------
+ 5 files changed, 17 insertions(+), 23 deletions(-)
+
+diff --git a/admin_manual/sharing_api/Create_a_new_Share.rst b/admin_manual/sharing_api/Create_a_new_Share.rst
+index f92a83d..c72b49a 100644
+--- a/admin_manual/sharing_api/Create_a_new_Share.rst
++++ b/admin_manual/sharing_api/Create_a_new_Share.rst
+@@ -98,11 +98,9 @@ Select POST.
+ Curl – Share as link
+ --------------------
+ 
+-#curl http://<ip>/ocs/v1.php/apps/files_sharing/api/v1/shares -k -u user:password -X POST –data “path=<file>&shareType=3”
+-
+-#curl
+-`http://192.168.1.63/owncloud/ocs/v1.php/apps/files_sharing/api/v1/shares <http://192.168.1.63/owncloud/ocs/v1.php/apps/files_sharing/api/v1/shares>`_
++$ curl \http://<ip>/ocs/v1.php/apps/files_sharing/api/v1/shares -k -u user:password -X POST –data “path=<file>&shareType=3”
+ 
++$ curl \http://192.168.1.63/owncloud/ocs/v1.php/apps/files_sharing/api/v1/shares
+ -k -u ser72_oc6:Password01 -X POST –data “path=test/Lab.txt&shareType=3”
+ 
+ 
+@@ -192,12 +190,10 @@ Select POST.
+ Curl – Share with User
+ ----------------------
+ 
+-#curl http://<ip>/ocs/v1.php/apps/files_sharing/api/v1/shares -k -u user:password -X POST –data “path=<file>&shareType=0&shareWith=<user>”
+-
+-#curl
+-`http://192.168.1.63/owncloud/ocs/v1.php/apps/files_sharing/api/v1/shares <http://192.168.1.63/owncloud/ocs/v1.php/apps/files_sharing/api/v1/shares>`_
++$ curl \http://<ip>/ocs/v1.php/apps/files_sharing/api/v1/shares -k -u user:password -X POST –data "path=<file>&shareType=0&shareWith=<user>"
+ 
+--k -u ser72_oc6:Password01 -X POST –data “path=test/Lab.txt&shareType=0&shareWith=ser72”
++$ curl \http://192.168.1.63/owncloud/ocs/v1.php/apps/files_sharing/api/v1/shares
++-k -u ser72_oc6:Password01 -X POST –data "path=test/Lab.txt&shareType=0&shareWith=ser72"
+ 
+ 
+ output
+diff --git a/admin_manual/sharing_api/Delete_Share.rst b/admin_manual/sharing_api/Delete_Share.rst
+index a5110a0..f36e1a2 100644
+--- a/admin_manual/sharing_api/Delete_Share.rst
++++ b/admin_manual/sharing_api/Delete_Share.rst
+@@ -43,10 +43,9 @@ Press DELETE
+ Curl
+ ----
+ 
+-#curl –X “DELETE” http://<user>:<password>@<ip>/ocs/v1.php/apps/files_sharing/api/v1/files/<share_id>
++$ curl –X "DELETE" \http://<user>:<password>@<ip>/ocs/v1.php/apps/files_sharing/api/v1/files/<share_id>
+ 
+-#curl –X “DELETE”
+-`http://ser72_oc6:Password01@192.168.1.63/owncloud/ocs/v1.php/apps/files_sharing/api/v1/shares/10 <http://ser72_oc6:Password01@192.168.1.63/owncloud/ocs/v1.php/apps/files_sharing/api/v1/shares/10>`_
++$ curl –X "DELETE" \http://ser72_oc6:Password01@192.168.1.63/owncloud/ocs/v1.php/apps/files_sharing/api/v1/shares/10
+ 
+ 
+ output
+diff --git a/admin_manual/sharing_api/Get_All_Shares.rst b/admin_manual/sharing_api/Get_All_Shares.rst
+index 2f0b45a..00a578e 100644
+--- a/admin_manual/sharing_api/Get_All_Shares.rst
++++ b/admin_manual/sharing_api/Get_All_Shares.rst
+@@ -59,10 +59,9 @@ Curl
+ The user is the id of the user who shares the files.
+ The password belongs to that user as well.
+ 
+-#curl http://<user>:<password>@<ip>/ocs/v1.php/apps/files_sharing/api/v1/shares
++$ curl \http://<user>:<password>@<ip>/ocs/v1.php/apps/files_sharing/api/v1/shares
+ 
+-#curl
+-`http://ser72_oc6:Password01@192.168.1.63/owncloud/ocs/v1.php/appsi/files_sharing/api/v1/shares <http://ser72_oc6:Password01@192.168.1.63/owncloud/ocs/v1.php/appsi/files_sharing/api/v1/shares>`_
++$ curl \http://ser72_oc6:Password01@192.168.1.63/owncloud/ocs/v1.php/appsi/files_sharing/api/v1/shares
+ 
+ 
+ output
+diff --git a/admin_manual/sharing_api/Get_Information_about_a_known_share.rst b/admin_manual/sharing_api/Get_Information_about_a_known_share.rst
+index f472268..a2aa5b7 100644
+--- a/admin_manual/sharing_api/Get_Information_about_a_known_share.rst
++++ b/admin_manual/sharing_api/Get_Information_about_a_known_share.rst
+@@ -63,9 +63,9 @@ This example shows the output of share information for share ID “7”
+ Curl
+ ----
+ 
+-#curl http://<user>:<passowrd>@<ip>/ocs/v1.php/apps/files_sharing/api/v1/shares/<share_id>
++$ curl \http://<user>:<passowrd>@<ip>/ocs/v1.php/apps/files_sharing/api/v1/shares/<share_id>
+ 
+-#curl http://ser72_oc6:Password01@192.168.1.63/owncloud/ocs/v1.php/apps/files_sharing/api/v1/shares/7
++$ curl \http://ser72_oc6:Password01@192.168.1.63/owncloud/ocs/v1.php/apps/files_sharing/api/v1/shares/7
+ 
+ 
+ output
+diff --git a/admin_manual/sharing_api/Get_Shares_from_a_Specific_File_or_Folder.rst b/admin_manual/sharing_api/Get_Shares_from_a_Specific_File_or_Folder.rst
+index a9251c3..09c7123 100644
+--- a/admin_manual/sharing_api/Get_Shares_from_a_Specific_File_or_Folder.rst
++++ b/admin_manual/sharing_api/Get_Shares_from_a_Specific_File_or_Folder.rst
+@@ -90,10 +90,10 @@ Select GET.
+ Curl – default configuration:
+ -----------------------------
+ 
+-#curl –G –data “path=test_share_api/ieee.txt” http://<userid>:<password>@<ip>/ocs/v1.php/apps/files_sharing/api/v1/shares
++$ curl –G –data "path=test_share_api/ieee.txt" \http://<userid>:<password>@<ip>/ocs/v1.php/apps/files_sharing/api/v1/shares
+ 
+-#curl –G –data “path=test_share_api/ieee.txt”
+-`http://ser72_oc6:Password01@192.168.1.63/owncloud/ocs/v1.php/apps/files_sharing/api/v1/shares <http://ser72_oc6:Password01@192.168.1.63/owncloud/ocs/v1.php/apps/files_sharing/api/v1/shares>`_
++$ curl –G –data "path=test_share_api/ieee.txt"
++\http://ser72_oc6:Password01@192.168.1.63/owncloud/ocs/v1.php/apps/files_sharing/api/v1/shares
+ 
+ output
+ ------
+@@ -204,10 +204,10 @@ Select Get
+ Curl – To add another argument, such as re-shares
+ -------------------------------------------------
+ 
+-#curl –G –data “path=test_share_api/ieee.tx&reshares=true” http://<userid>:<password>@<ip>/ocs/v1.php/apps/files_sharing/api/v1/shares
++$ curl –G –data "path=test_share_api/ieee.tx&reshares=true" \http://<userid>:<password>@<ip>/ocs/v1.php/apps/files_sharing/api/v1/shares
+ 
+-#curl –G –data “path=test_share_api/ieee.tx&reshares=true”
+-`http://ser72_oc6:Password01@192.168.1.63/owncloud/ocs/v1.php/apps/files_sharing/api/v1/shares <http://ser72_oc6:Password01@192.168.1.63/owncloud/ocs/v1.php/apps/files_sharing/api/v1/shares>`_
++$ curl –G –data "path=test_share_api/ieee.tx&reshares=true"
++\http://ser72_oc6:Password01@192.168.1.63/owncloud/ocs/v1.php/apps/files_sharing/api/v1/shares
+ 
+ output
+ ------
diff --git a/debian/patches/series b/debian/patches/series
new file mode 100644
index 0000000..2f7cc04
--- /dev/null
+++ b/debian/patches/series
@@ -0,0 +1 @@
+0001-Fix-curl-syntax.patch

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-owncloud/owncloud-doc.git



More information about the Pkg-owncloud-commits mailing list