Beispiel #1
0
class ExchangesDataResource(BaseResource):

    delete_schema = ExchangesDataResourceSchema()

    @use_kwargs(delete_schema, location='view_args')
    def delete(self, location: Optional[Location]) -> Response:
        return self.rest_api.purge_exchange_data(location=location)
Beispiel #2
0
class ExchangesDataResource(BaseResource):

    delete_schema = ExchangesDataResourceSchema()

    @use_kwargs(delete_schema, location='view_args')  # type: ignore
    def delete(self, name: Optional[str]) -> Response:
        return self.rest_api.purge_exchange_data(name=name)