@@ -17,7 +17,7 @@ updated resource instead of `204 No Content`.
1717
1818Resources that support soft delete **should** have an `expire_time` field as
1919described in AEP-148. Additionally, resources **should** include a `DELETED`
20- state value if the resource includes a `state` field ( AEP-216) .
20+ state value if the resource includes a `state` field [ AEP-216][aep-216] .
2121
2222### Undelete
2323
@@ -64,28 +64,28 @@ A resource that supports soft delete **should** provide an `Undelete` method:
6464
6565Some resources take longer to undelete a resource than is reasonable for a
6666regular API request. In this situation, the API **should** follow the
67- long-running request pattern ( AEP-151) .
67+ long-running request pattern [ AEP-151][aep-151] .
6868
6969### List and Get
7070
71- Soft-deleted resources **should not** be returned in `List` ( AEP-132) responses
72- by default (unless `bool show_deleted` is true).
71+ Soft-deleted resources **should not** be returned in `List` [ AEP-132][aep-132]
72+ responses by default (unless `bool show_deleted` is true).
7373
74- A `Get` ( AEP-131) request for a soft deleted resource **should** error with
75- `410 Gone` unless `bool show_deleted` is true, in which case soft-deleted
74+ A `Get` [ AEP-131][aep-131] request for a soft deleted resource **should** error
75+ with `410 Gone` unless `bool show_deleted` is true, in which case soft-deleted
7676resources **must** return the resource.
7777
7878Services that soft delete resources **may** choose a reasonable strategy for
7979purging those resources, including automatic purging after a reasonable time
80- (such as 30 days), allowing users to set an expiry time ( AEP-214) , or retaining
81- the resources indefinitely. Regardless of what strategy is selected, the
82- service **should** document when soft deleted resources will be completely
80+ (such as 30 days), allowing users to set an expiry time [ AEP-214][aep-214] , or
81+ retaining the resources indefinitely. Regardless of what strategy is selected,
82+ the service **should** document when soft deleted resources will be completely
8383removed.
8484
8585### Declarative-friendly resources
8686
87- A resource that is declarative-friendly ( AEP-128) **should** support soft
88- delete and undelete.
87+ A resource that is declarative-friendly [ AEP-128][aep-128] **should** support
88+ soft delete and undelete.
8989
9090**Important:** There is an ambiguity in declarative tooling between "create"
9191and "undelete". When given an alias which was previously deleted and a
@@ -100,8 +100,8 @@ Declarative-friendly resources **must** use long-running operations for both
100100soft delete and undelete. The service **may** return an LRO that is already set
101101to done if the request is effectively immediate.
102102
103- Declarative-friendly resources **must** include `validate_only` (AEP-163) and
104- `etag` ( AEP-154) in their `Undelete` methods.
103+ Declarative-friendly resources **must** include `validate_only`
104+ [AEP-163][aep-163] and `etag` [ AEP-154][aep-154] in their `Undelete` methods.
105105
106106### Errors
107107
@@ -123,9 +123,17 @@ resource is not deleted, the service **must** error with `409 Conflict`.
123123
124124## Further reading
125125
126- - For the `Delete` standard method, see AEP-135.
127- - For long-running operations, see AEP-151.
128- - For resource freshness validation (`etag`), see AEP-154.
129- - For change validation (`validate_only`), see AEP-163.
126+ - For the `Delete` standard method, see [ AEP-135][aep-135] .
127+ - For long-running operations, see [ AEP-151][aep-151] .
128+ - For resource freshness validation (`etag`), see [ AEP-154][aep-154] .
129+ - For change validation (`validate_only`), see [ AEP-163][aep-163] .
130130
131131[aep-4]: ./0004.md
132+ [aep-128]: ./0128.md
133+ [aep-131]: ./0131.md
134+ [aep-135]: ./0135.md
135+ [aep-151]: ./0151.md
136+ [aep-154]: ./0154.md
137+ [aep-163]: ./0163.md
138+ [aep-214]: ./0214.md
139+ [aep-216]: ./0216.md
0 commit comments