Skip to content

Commit fcc2940

Browse files
Add passwor
1 parent e3d97bf commit fcc2940

File tree

1 file changed

+16
-3
lines changed

1 file changed

+16
-3
lines changed

softdelete.md

+16-3
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,21 @@ Entities that has soft-delete enabled cannot be deleted outright from storage at
4040

4141
## Various Conditions
4242

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+
4553
1. Is there a data about who deleted it?
54+
At the moment, there is no data about who deleted it.
55+
4656
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

Comments
 (0)