From b801a9e2459b2faa0bf5aeb3a29a4e90796a820c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ricardo=20S=C3=A1nchez?= Date: Wed, 26 May 2021 12:14:39 -0500 Subject: [PATCH] Adding request --- fast_agave/blueprints/rest_api.py | 4 ++-- fast_agave/version.py | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/fast_agave/blueprints/rest_api.py b/fast_agave/blueprints/rest_api.py index 4fc1b2f..e94b537 100644 --- a/fast_agave/blueprints/rest_api.py +++ b/fast_agave/blueprints/rest_api.py @@ -81,9 +81,9 @@ def wrapper_resource_class(cls): @self.delete(path + '/{id}') @copy_attributes(cls) - async def delete(id: str): + async def delete(id: str, request: Request): obj = await self.retrieve_object(cls, id) - return await cls.delete(obj) + return await cls.delete(obj, request) """ PATCH /resource/{id} Enable PATCH method if Resource.update method exist. It validates diff --git a/fast_agave/version.py b/fast_agave/version.py index 67a3e46..157c668 100644 --- a/fast_agave/version.py +++ b/fast_agave/version.py @@ -1 +1 @@ -__version__ = '0.0.2.dev5' +__version__ = '0.0.2.dev6'