Commit db84cfe
feat(BA-5830): convert AppConfigFragment REST to bulk-only writes (BEP-1052 §3)
Replaces the single-item `create` / `update` / `purge` endpoints with
bulk equivalents per BEP-1052 §3 (all writes are bulk; pass a
one-element array for a single write).
New REST routes on `/v2/app-config-fragments/`:
- `POST /bulk-create` — superadmin (admin, any scope)
- `POST /bulk-update` — superadmin
- `POST /bulk-purge` — superadmin
- `POST /my/bulk-create` — auth (USER scope, current_user)
- `POST /my/bulk-update` — auth (USER scope, current_user)
Removed: `POST /`, `POST /update`, `POST /purge` — replaced by the
bulk variants above. Reads are unchanged (`POST /get`,
`POST /{scope_type}/{scope_id}/search`, `POST /search`).
Handler methods updated to accept the v2 Bulk* DTOs added in
BA-5829 (#11285) and return the Bulk*Payload DTOs. `my_bulk_*`
resolves the caller via the adapter's `current_user()` call so the
REST handler itself stays auth-agnostic.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>1 parent 4b52adf commit db84cfe
2 files changed
Lines changed: 62 additions & 30 deletions
Lines changed: 47 additions & 17 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
2 | 8 | | |
3 | 9 | | |
4 | 10 | | |
| |||
8 | 14 | | |
9 | 15 | | |
10 | 16 | | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
11 | 20 | | |
12 | | - | |
13 | | - | |
| 21 | + | |
| 22 | + | |
14 | 23 | | |
15 | | - | |
16 | 24 | | |
17 | 25 | | |
18 | 26 | | |
| |||
33 | 41 | | |
34 | 42 | | |
35 | 43 | | |
| 44 | + | |
| 45 | + | |
36 | 46 | | |
37 | 47 | | |
38 | 48 | | |
| |||
64 | 74 | | |
65 | 75 | | |
66 | 76 | | |
67 | | - | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
68 | 88 | | |
69 | | - | |
| 89 | + | |
70 | 90 | | |
71 | | - | |
72 | | - | |
73 | | - | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
74 | 104 | | |
75 | | - | |
| 105 | + | |
76 | 106 | | |
77 | | - | |
| 107 | + | |
78 | 108 | | |
79 | | - | |
80 | | - | |
| 109 | + | |
| 110 | + | |
81 | 111 | | |
82 | 112 | | |
83 | | - | |
| 113 | + | |
84 | 114 | | |
85 | | - | |
| 115 | + | |
86 | 116 | | |
87 | | - | |
88 | | - | |
| 117 | + | |
| 118 | + | |
89 | 119 | | |
90 | 120 | | |
91 | 121 | | |
| |||
Lines changed: 15 additions & 13 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
| |||
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
22 | | - | |
23 | | - | |
24 | | - | |
25 | | - | |
26 | | - | |
27 | | - | |
28 | | - | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
29 | 28 | | |
30 | 29 | | |
31 | 30 | | |
32 | | - | |
| 31 | + | |
33 | 32 | | |
34 | 33 | | |
35 | 34 | | |
| |||
38 | 37 | | |
39 | 38 | | |
40 | 39 | | |
41 | | - | |
42 | | - | |
43 | | - | |
44 | | - | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
45 | 47 | | |
46 | 48 | | |
0 commit comments