From 34f6eb7d554a9cf39dd25d480645f436ed7f28e0 Mon Sep 17 00:00:00 2001 From: Evgeniy Kulikov Date: Thu, 20 Aug 2020 22:35:39 +0300 Subject: [PATCH] Add note about multiple delete of objects Could not find how to use it. I propose open issue and describe how to use it and then implement method. Signed-off-by: Evgeniy Kulikov --- api/handler/delete.go | 12 ++++++++++++ api/handler/unimplemented.go | 8 -------- 2 files changed, 12 insertions(+), 8 deletions(-) diff --git a/api/handler/delete.go b/api/handler/delete.go index 1798317bf..11daaa806 100644 --- a/api/handler/delete.go +++ b/api/handler/delete.go @@ -34,3 +34,15 @@ func (h *handler) DeleteObjectHandler(w http.ResponseWriter, r *http.Request) { w.WriteHeader(http.StatusNoContent) } + +// DeleteMultipleObjectsHandler : +// +// CyberDuck doesn't use that method for multiple delete. +// Open issue and describe how to test that method. +func (h *handler) DeleteMultipleObjectsHandler(w http.ResponseWriter, r *http.Request) { + api.WriteErrorResponse(r.Context(), w, api.Error{ + Code: "XNeoFSUnimplemented", + Description: "implement me " + mux.CurrentRoute(r).GetName(), + HTTPStatusCode: http.StatusNotImplemented, + }, r.URL) +} diff --git a/api/handler/unimplemented.go b/api/handler/unimplemented.go index 39e2c5928..378efc052 100644 --- a/api/handler/unimplemented.go +++ b/api/handler/unimplemented.go @@ -358,11 +358,3 @@ func (h *handler) PostPolicyBucketHandler(w http.ResponseWriter, r *http.Request HTTPStatusCode: http.StatusNotImplemented, }, r.URL) } - -func (h *handler) DeleteMultipleObjectsHandler(w http.ResponseWriter, r *http.Request) { - api.WriteErrorResponse(r.Context(), w, api.Error{ - Code: "XNeoFSUnimplemented", - Description: "implement me " + mux.CurrentRoute(r).GetName(), - HTTPStatusCode: http.StatusNotImplemented, - }, r.URL) -}