[Openstack] suggesting a change to the documentation about "Creating a dynamic large object"
Erik Sjölund
erik.sjolund at gmail.com
Tue Jan 26 12:17:26 UTC 2016
I wonder if the documentation about "Creating a dynamic large object"
is correct?
http://docs.openstack.org/developer/swift/api/large_objects.html
The examples all use the same URL after PUT:
Example Upload segment of large object request: HTTP
PUT /{api_version}/{account}/{container}/{object} HTTP/1.1
Example Upload next segment of large object request: HTTP
PUT /{api_version}/{account}/{container}/{object} HTTP/1.1
Example Upload manifest request: HTTP
PUT /{api_version}/{account}/{container}/{object} HTTP/1.1
but I guess the segments need to have different URL:s.
The attached patch is a suggestion of how to change the segment URLs.
Yours sincerely,
Erik Sjölund
-------------- next part --------------
From a1aa6166d10c9688a0fce5ddf461fe6e2b05ca75 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Erik=20Sj=C3=B6lund?= <erik.sjolund at gmail.com>
Date: Tue, 26 Jan 2016 12:57:51 +0100
Subject: [PATCH] Documentation fix
---
doc/source/api/large_objects.rst | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/doc/source/api/large_objects.rst b/doc/source/api/large_objects.rst
index 144605f..1a7f29d 100644
--- a/doc/source/api/large_objects.rst
+++ b/doc/source/api/large_objects.rst
@@ -172,7 +172,7 @@ manifest is still available to download the first set of segments.
.. code::
- PUT /{api_version}/{account}/{container}/{object} HTTP/1.1
+ PUT /{api_version}/{account}/{container}/{object}.01 HTTP/1.1
Host: storage.clouddrive.com
X-Auth-Token: eaaafd18-0fed-4b3a-81b4-663c99ec1cbb
ETag: 8a964ee2a5e88be344f36c22562a6486
@@ -194,7 +194,7 @@ uploading the manifest.
.. code::
- PUT /{api_version}/{account}/{container}/{object} HTTP/1.1
+ PUT /{api_version}/{account}/{container}/{object}.02 HTTP/1.1
Host: storage.clouddrive.com
X-Auth-Token: eaaafd18-0fed-4b3a-81b4-663c99ec1cbb
ETag: 8a964ee2a5e88be344f36c22562a6486
--
2.5.0
More information about the Openstack
mailing list