Commit 423b587
Patch endpoints (#744)
* Adding patch endpoints.
* Adding annotated from main.
* Fixing and adding tests.
* Updating changelog.
* Fixing ruff errors.
* Ruff format.
* Switching to List for python 3.8.
* Updating docs make file.
* Switching from Item/Collection to Dict to allow partial updates.
* Ruff format fix.
* Fixing broken tests.
* Adding missing asyncs for patchs.
* Moving request to kwargs for patch item and collection.
* Switching to TypedDict.
* Adding hearder parameter to the input models.
* Removing print statement.
Adding default for content_type.
* Removing basemodel from patch types.
Moving transaction types back to extensions.transaction.
Adding literals for content_type.
Removing sys check for TypedDict import.
* Fixing imports.
* Moving models to correct locations.
* Switching from attrs to basemodel for patch operations.
* Switching to stac.PartialItem etc.
* Updating PatchMoveCopy model.
* Updating type for 3.8.
* Switching to StacBaseModels for patch operations.
* pre-commits.
* Add json dump of operation value.
* remove computed field decorator.
* Adding default "not implemented" for JSON Patch.
* pre-commit.
* Add default raise not implement to collection JSON Patch.
* removing json merge and patch.
* content_type None default.
* Fixing test.
* back to PartialItem & PatchOperation
* using openapi_extra for Content-Type.
* PartialCollection not PartialItem.
* Adding merge to operations.
* Adding example code for patch.
* Adding default None to partials.
* patch not update for backend.
* patch_collection not patch_item.
* Add tests for merge to operations.
* Switch to model_json_schema for patch schema.
* update from main
* update changelog
* Removing numberMatched & numberReturned.
* fix openapi schemas
---------
Co-authored-by: vincentsarago <vincent.sarago@gmail.com>1 parent 5333806 commit 423b587
6 files changed
Lines changed: 549 additions & 17 deletions
File tree
- stac_fastapi
- api/tests
- extensions
- stac_fastapi/extensions/core
- tests
- types/stac_fastapi/types
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
| 7 | + | |
7 | 8 | | |
8 | 9 | | |
9 | 10 | | |
| |||
175 | 176 | | |
176 | 177 | | |
177 | 178 | | |
178 | | - | |
179 | 179 | | |
180 | 180 | | |
181 | 181 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
6 | | - | |
7 | | - | |
8 | | - | |
9 | | - | |
| 6 | + | |
10 | 7 | | |
11 | 8 | | |
12 | 9 | | |
| |||
430 | 427 | | |
431 | 428 | | |
432 | 429 | | |
| 430 | + | |
| 431 | + | |
| 432 | + | |
433 | 433 | | |
434 | 434 | | |
435 | 435 | | |
| |||
439 | 439 | | |
440 | 440 | | |
441 | 441 | | |
| 442 | + | |
| 443 | + | |
| 444 | + | |
442 | 445 | | |
443 | 446 | | |
444 | 447 | | |
| |||
Lines changed: 184 additions & 9 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
| 8 | + | |
8 | 9 | | |
9 | 10 | | |
10 | 11 | | |
| |||
15 | 16 | | |
16 | 17 | | |
17 | 18 | | |
| 19 | + | |
18 | 20 | | |
19 | 21 | | |
20 | 22 | | |
| |||
42 | 44 | | |
43 | 45 | | |
44 | 46 | | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
45 | 57 | | |
46 | 58 | | |
47 | 59 | | |
48 | 60 | | |
49 | 61 | | |
50 | 62 | | |
51 | 63 | | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
52 | 153 | | |
53 | 154 | | |
54 | 155 | | |
| |||
126 | 227 | | |
127 | 228 | | |
128 | 229 | | |
| 230 | + | |
| 231 | + | |
| 232 | + | |
| 233 | + | |
| 234 | + | |
| 235 | + | |
| 236 | + | |
| 237 | + | |
| 238 | + | |
| 239 | + | |
| 240 | + | |
| 241 | + | |
| 242 | + | |
| 243 | + | |
| 244 | + | |
| 245 | + | |
| 246 | + | |
| 247 | + | |
| 248 | + | |
| 249 | + | |
| 250 | + | |
| 251 | + | |
| 252 | + | |
| 253 | + | |
| 254 | + | |
| 255 | + | |
| 256 | + | |
| 257 | + | |
| 258 | + | |
| 259 | + | |
| 260 | + | |
| 261 | + | |
| 262 | + | |
| 263 | + | |
| 264 | + | |
| 265 | + | |
| 266 | + | |
| 267 | + | |
| 268 | + | |
| 269 | + | |
| 270 | + | |
129 | 271 | | |
130 | 272 | | |
131 | 273 | | |
| |||
148 | 290 | | |
149 | 291 | | |
150 | 292 | | |
151 | | - | |
152 | | - | |
153 | | - | |
154 | | - | |
155 | | - | |
156 | 293 | | |
157 | 294 | | |
158 | 295 | | |
| |||
196 | 333 | | |
197 | 334 | | |
198 | 335 | | |
| 336 | + | |
| 337 | + | |
| 338 | + | |
| 339 | + | |
| 340 | + | |
| 341 | + | |
| 342 | + | |
| 343 | + | |
| 344 | + | |
| 345 | + | |
| 346 | + | |
| 347 | + | |
| 348 | + | |
| 349 | + | |
| 350 | + | |
| 351 | + | |
| 352 | + | |
| 353 | + | |
| 354 | + | |
| 355 | + | |
| 356 | + | |
| 357 | + | |
| 358 | + | |
| 359 | + | |
| 360 | + | |
| 361 | + | |
| 362 | + | |
| 363 | + | |
| 364 | + | |
| 365 | + | |
| 366 | + | |
| 367 | + | |
| 368 | + | |
| 369 | + | |
| 370 | + | |
| 371 | + | |
| 372 | + | |
| 373 | + | |
| 374 | + | |
| 375 | + | |
199 | 376 | | |
200 | 377 | | |
201 | 378 | | |
| |||
217 | 394 | | |
218 | 395 | | |
219 | 396 | | |
220 | | - | |
221 | | - | |
222 | | - | |
223 | | - | |
224 | 397 | | |
225 | 398 | | |
226 | 399 | | |
| |||
233 | 406 | | |
234 | 407 | | |
235 | 408 | | |
| 409 | + | |
236 | 410 | | |
237 | 411 | | |
238 | 412 | | |
| 413 | + | |
239 | 414 | | |
240 | 415 | | |
0 commit comments