apicrud.controllers.trashcan

trashcan.py

Trashcan

created 22-apr-2021 by richb@instantlinux.net

Classes

TrashcanController()

class apicrud.controllers.trashcan.TrashcanController
static delete(ids)

Remove resources

Parameters

ids (list of str) – record IDs to be flagged for removal

Returns

first element is a dict with the id, second element is response code (200 on success)

Return type

tuple

static find(**kwargs)

Find deleted resources

Parameters

kwargs – as defined in openapi.yaml

static get(id)

Get one deleted resource by ID

Parameters

id (str) – Database or hybrid grant ID

static update(id, body)

Update deleted resource - undelete