summaryrefslogtreecommitdiff
path: root/subplot/server.yaml
diff options
context:
space:
mode:
authorLars Wirzenius <liw@liw.fi>2022-04-07 05:46:15 +0000
committerLars Wirzenius <liw@liw.fi>2022-04-07 05:46:15 +0000
commit8da3f80d296dc1891159fe4fdc1787cecd9730d0 (patch)
treef161b7958c3e6975d0bc2dbdef2bf3175e4d6216 /subplot/server.yaml
parent1c6ae813b00e46d2a8061fa480d1780124af1e64 (diff)
parent6defd70a2df0975ee22b09018a9dc709a7933200 (diff)
downloadobnam2-8da3f80d296dc1891159fe4fdc1787cecd9730d0.tar.gz
Merge branch 'liw/api-v1' into 'main'
feat! add chunk server API version to HTTP paths Closes #202 See merge request obnam/obnam!227
Diffstat (limited to 'subplot/server.yaml')
-rw-r--r--subplot/server.yaml10
1 files changed, 5 insertions, 5 deletions
diff --git a/subplot/server.yaml b/subplot/server.yaml
index 7b7d461..ac45cac 100644
--- a/subplot/server.yaml
+++ b/subplot/server.yaml
@@ -21,28 +21,28 @@
python:
function: post_file
-- when: "I GET /chunks/<{var}>"
+- when: "I GET /v1/chunks/<{var}>"
impl:
python:
function: get_chunk_via_var
-- when: "I try to GET /chunks/{chunk_id}"
+- when: "I try to GET /v1/chunks/{chunk_id}"
impl:
python:
function: get_chunk_by_id
-- when: "I GET /chunks?label={sha}"
+- when: "I GET /v1/chunks?label={sha}"
regex: false
impl:
python:
function: find_chunks_with_label
-- when: "I DELETE /chunks/<{var}>"
+- when: "I DELETE /v1/chunks/<{var}>"
impl:
python:
function: delete_chunk_via_var
-- when: "I try to DELETE /chunks/{chunk_id}"
+- when: "I try to DELETE /v1/chunks/{chunk_id}"
impl:
python:
function: delete_chunk_by_id