From 6defd70a2df0975ee22b09018a9dc709a7933200 Mon Sep 17 00:00:00 2001 From: Lars Wirzenius Date: Wed, 6 Apr 2022 09:51:31 +0300 Subject: feat! add chunk server API version to HTTP paths What was /chunks is now /v1/chunks. This is the minimal step to start supporting multiple API versions. Also, /v1/chunks/foo/bar is no longer supported. Sponsored-by: author --- subplot/server.yaml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'subplot/server.yaml') 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 -- cgit v1.2.1