Page Menu
Home
Software Heritage
Search
Configure Global Search
Log In
Files
F9749411
D674.id2121.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
829 B
Subscribers
None
D674.id2121.diff
View Options
diff --git a/docs/api.rst b/docs/api.rst
--- a/docs/api.rst
+++ b/docs/api.rst
@@ -103,8 +103,8 @@
before it can be retrieved. Cooking is idempotent, and a no-op in between a
previous cooking operation and expiration.
-.. http:post:: /vault/:objectkind/:objectid/:format
-.. http:get:: /vault/:objectkind/:objectid/:format
+.. http:post:: /vault/:objectkind/:objectid[/:format]
+.. http:get:: /vault/:objectkind/:objectid[/:format]
**Request body**: optionally, an ``email`` POST parameter containing an
e-mail to notify when the bundle cooking has ended.
@@ -166,7 +166,7 @@
Retrieve a specific bundle from the vault with:
-.. http:get:: /vault/:objectkind/:objectid/:format/raw
+.. http:get:: /vault/:objectkind/:objectid[/:format]/raw
Where ``:format`` is optional, depending on the object kind.
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sun, Aug 24, 5:05 PM (1 w, 1 d ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
3232939
Attached To
D674: Properly mark the /:format URL fragment as optional in examples
Event Timeline
Log In to Comment