You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: softdelete.md
+16-3
Original file line number
Diff line number
Diff line change
@@ -40,8 +40,21 @@ Entities that has soft-delete enabled cannot be deleted outright from storage at
40
40
41
41
## Various Conditions
42
42
43
-
1. What happens when you GET/PATCH/PUT on a soft-deleted item? Do i have to apply the query param to access it?
44
-
1. Can i PATCH/PUT on a soft-deleted item? If not, what is required? aka: you must un-delete the item fist, aka soft-delete is a hardened snapshot in time.
43
+
1. What happens when you issue a GET request on soft-deleted item(s)? Do i have to apply the query param to access it?
44
+
By default, only non-deleted items are returned. If the query param `deleted` is provided, then the expected behavior is as below:
45
+
46
+
-`null`: (literal word) Returns all entities, whether they have been deleted or not.
47
+
-`false`: Returns entities that are not deleted.
48
+
-`true`: Returns entities that have been deleted.
49
+
50
+
1. Can I PATCH/PUT on a soft-deleted item?
51
+
The item will get updated as normal. No additional parameters are needed.
52
+
45
53
1. Is there a data about who deleted it?
54
+
At the moment, there is no data about who deleted it.
55
+
46
56
1. Is there data about who Un-deleted it?
47
-
1. Are there specific error messages about soft-deleted content?
57
+
At the moment, there is no data about who un-deleted it.
58
+
59
+
1. Are there specific error messages about soft-deleted content?
60
+
At the moment, there are no specific error messages about soft-deleted content.
0 commit comments