You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@couchdb.apache.org by GitBox <gi...@apache.org> on 2017/10/30 11:52:28 UTC
[GitHub] janl closed pull request #191: Corrected documentation to fix https://github.com/apache/couchdb/issu?
janl closed pull request #191: Corrected documentation to fix https://github.com/apache/couchdb/issu?
URL: https://github.com/apache/couchdb-documentation/pull/191
This is a PR merged from a forked repository.
As GitHub hides the original diff on merge, it is displayed below for
the sake of provenance:
As this is a foreign pull request (from a fork), the diff is supplied
below (as it won't show otherwise due to GitHub magic):
diff --git a/src/api/document/common.rst b/src/api/document/common.rst
index 492bbdd..58c423f 100644
--- a/src/api/document/common.rst
+++ b/src/api/document/common.rst
@@ -335,7 +335,8 @@
:synopsis: Copies the document within the same database
The :method:`COPY` (which is non-standard HTTP) copies an existing
- document to a new or existing document.
+ document to a new or existing document. Copying a document is only possible
+ within the same database.
The source document is specified on the request line, with the
:header:`Destination` header of the request specifying the target
@@ -1150,7 +1151,7 @@ or :header:`If-Match`:
COPY /recipes/SpaghettiWithMeatballs HTTP/1.1
Accept: application/json
- Destination: http://localhost:5984/recipes_old/SpaghettiWithMeatballs_Original
+ Destination: SpaghettiWithMeatballs_Original
If-Match: 1-917fa2381192822767f010b95b45325b
Host: localhost:5984
@@ -1164,7 +1165,7 @@ or :header:`If-Match`:
Content-Type: application/json
Date: Wed, 14 Aug 2013 14:21:00 GMT
ETag: "1-917fa2381192822767f010b95b45325b"
- Location: http://localhost:5984/recipes_old/SpaghettiWithMeatballs_Original
+ Location: http://localhost:5984/recipes/SpaghettiWithMeatballs_Original
Server: CouchDB (Erlang/OTP)
{
@@ -1188,7 +1189,7 @@ for the target document by appending the ``rev`` parameter to the
COPY /recipes/SpaghettiWithMeatballs?rev=8-6f5ad8db0f34af24a6e0984cd1a6cfb9 HTTP/1.1
Accept: application/json
- Destination: http://localhost:5984/recipes_old/SpaghettiWithMeatballs_Original?rev=1-917fa2381192822767f010b95b45325b
+ Destination: SpaghettiWithMeatballs_Original?rev=1-917fa2381192822767f010b95b45325b
Host: localhost:5984
**Response**:
@@ -1201,7 +1202,7 @@ for the target document by appending the ``rev`` parameter to the
Content-Type: application/json
Date: Wed, 14 Aug 2013 14:21:00 GMT
ETag: "2-62e778c9ec09214dd685a981dcc24074""
- Location: http://localhost:5984/recipes_old/SpaghettiWithMeatballs_Original
+ Location: http://localhost:5984/recipes/SpaghettiWithMeatballs_Original
Server: CouchDB (Erlang/OTP)
{
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
With regards,
Apache Git Services