summaryrefslogtreecommitdiff
path: root/obnam.md
diff options
context:
space:
mode:
authorLars Wirzenius <liw@liw.fi>2022-03-21 17:15:51 +0200
committerLars Wirzenius <liw@liw.fi>2022-03-22 19:18:35 +0200
commit7e49a52cee01a26b91253abb38dcc40b5ae727e2 (patch)
tree8077400c09864e3208eb042f7c70d4afae3988b1 /obnam.md
parent48139725676fcce89a70897546969623f2474693 (diff)
downloadobnam2-7e49a52cee01a26b91253abb38dcc40b5ae727e2.tar.gz
feat! drop generation related fields from chunk metadata
Sponsored-by: author
Diffstat (limited to 'obnam.md')
-rw-r--r--obnam.md8
1 files changed, 4 insertions, 4 deletions
diff --git a/obnam.md b/obnam.md
index da641a5..68aa01e 100644
--- a/obnam.md
+++ b/obnam.md
@@ -1112,7 +1112,7 @@ We must be able to retrieve it.
when I GET /chunks/<ID>
then HTTP status code is 200
and content-type is application/octet-stream
-and chunk-meta is {"label":"abc","generation":null,"ended":null}
+and chunk-meta is {"label":"abc"}
and the body matches file data.dat
~~~
@@ -1122,7 +1122,7 @@ We must also be able to find it based on metadata.
when I GET /chunks?label=abc
then HTTP status code is 200
and content-type is application/json
-and the JSON body matches {"<ID>":{"label":"abc","generation":null,"ended":null}}
+and the JSON body matches {"<ID>":{"label":"abc"}}
~~~
Finally, we must be able to delete it. After that, we must not be able
@@ -1204,7 +1204,7 @@ Can we still find it by its metadata?
when I GET /chunks?label=abc
then HTTP status code is 200
and content-type is application/json
-and the JSON body matches {"<ID>":{"label":"abc","generation":null,"ended":null}}
+and the JSON body matches {"<ID>":{"label":"abc"}}
~~~
Can we still retrieve it by its identifier?
@@ -1213,7 +1213,7 @@ Can we still retrieve it by its identifier?
when I GET /chunks/<ID>
then HTTP status code is 200
and content-type is application/octet-stream
-and chunk-meta is {"label":"abc","generation":null,"ended":null}
+and chunk-meta is {"label":"abc"}
and the body matches file data.dat
~~~