Commit 47f9617
committed
Add PUT request support at
This path already supports GET, HEAD and POST requests; add support for PUT requests. There is a significant difference in behavior between POST and PUT requests:
- POST requests take `path` and `job_key` both as query parameters or as body parameters belonging to a multipart request. PUT requests take them only as query parameters (just like GET and HEAD).
- POST requests submit a file as one of the fields of the multipart request, whereas the submitted file is the whole body of the request for PUT requests.
- POST requests can append to the `tool_stdout` and `tool_stderr`, PUT requests can only create new files or overwrite whole files.
- POST requests support resumable uploads but PUT requests do not.
- POST requests take the form parameters `__file_path` (path of a file uploaded via the nginx upload module) and `__file` but PUT requests do not./api/jobs/{job_id}/files to FastAPIJobFiles
1 parent 071d2d5 commit 47f9617
File tree
5 files changed
+172
-1
lines changed- client/src/api/schema
- lib/galaxy
- webapps/galaxy/api
- work
- test/integration
5 files changed
+172
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3012 | 3012 | | |
3013 | 3013 | | |
3014 | 3014 | | |
3015 | | - | |
| 3015 | + | |
| 3016 | + | |
3016 | 3017 | | |
3017 | 3018 | | |
3018 | 3019 | | |
| |||
31286 | 31287 | | |
31287 | 31288 | | |
31288 | 31289 | | |
| 31290 | + | |
| 31291 | + | |
| 31292 | + | |
| 31293 | + | |
| 31294 | + | |
| 31295 | + | |
| 31296 | + | |
| 31297 | + | |
| 31298 | + | |
| 31299 | + | |
| 31300 | + | |
| 31301 | + | |
| 31302 | + | |
| 31303 | + | |
| 31304 | + | |
| 31305 | + | |
| 31306 | + | |
| 31307 | + | |
| 31308 | + | |
| 31309 | + | |
| 31310 | + | |
| 31311 | + | |
| 31312 | + | |
| 31313 | + | |
| 31314 | + | |
| 31315 | + | |
| 31316 | + | |
| 31317 | + | |
| 31318 | + | |
| 31319 | + | |
| 31320 | + | |
| 31321 | + | |
| 31322 | + | |
| 31323 | + | |
| 31324 | + | |
| 31325 | + | |
| 31326 | + | |
| 31327 | + | |
| 31328 | + | |
| 31329 | + | |
| 31330 | + | |
| 31331 | + | |
| 31332 | + | |
| 31333 | + | |
| 31334 | + | |
| 31335 | + | |
| 31336 | + | |
| 31337 | + | |
| 31338 | + | |
| 31339 | + | |
| 31340 | + | |
| 31341 | + | |
| 31342 | + | |
| 31343 | + | |
| 31344 | + | |
| 31345 | + | |
| 31346 | + | |
| 31347 | + | |
| 31348 | + | |
| 31349 | + | |
| 31350 | + | |
| 31351 | + | |
| 31352 | + | |
| 31353 | + | |
| 31354 | + | |
| 31355 | + | |
| 31356 | + | |
| 31357 | + | |
| 31358 | + | |
| 31359 | + | |
31289 | 31360 | | |
31290 | 31361 | | |
31291 | 31362 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
242 | 242 | | |
243 | 243 | | |
244 | 244 | | |
| 245 | + | |
| 246 | + | |
| 247 | + | |
245 | 248 | | |
246 | 249 | | |
247 | 250 | | |
| |||
250 | 253 | | |
251 | 254 | | |
252 | 255 | | |
| 256 | + | |
| 257 | + | |
| 258 | + | |
| 259 | + | |
253 | 260 | | |
254 | 261 | | |
255 | 262 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
| 5 | + | |
5 | 6 | | |
6 | 7 | | |
7 | 8 | | |
| |||
19 | 20 | | |
20 | 21 | | |
21 | 22 | | |
| 23 | + | |
22 | 24 | | |
23 | 25 | | |
24 | 26 | | |
| |||
36 | 38 | | |
37 | 39 | | |
38 | 40 | | |
| 41 | + | |
39 | 42 | | |
40 | 43 | | |
41 | 44 | | |
| |||
179 | 182 | | |
180 | 183 | | |
181 | 184 | | |
| 185 | + | |
| 186 | + | |
| 187 | + | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
| 192 | + | |
| 193 | + | |
| 194 | + | |
| 195 | + | |
| 196 | + | |
| 197 | + | |
| 198 | + | |
| 199 | + | |
| 200 | + | |
| 201 | + | |
| 202 | + | |
| 203 | + | |
| 204 | + | |
| 205 | + | |
| 206 | + | |
| 207 | + | |
| 208 | + | |
| 209 | + | |
| 210 | + | |
| 211 | + | |
| 212 | + | |
| 213 | + | |
| 214 | + | |
| 215 | + | |
| 216 | + | |
| 217 | + | |
| 218 | + | |
| 219 | + | |
| 220 | + | |
| 221 | + | |
| 222 | + | |
| 223 | + | |
| 224 | + | |
| 225 | + | |
| 226 | + | |
| 227 | + | |
| 228 | + | |
| 229 | + | |
| 230 | + | |
| 231 | + | |
| 232 | + | |
| 233 | + | |
| 234 | + | |
| 235 | + | |
| 236 | + | |
| 237 | + | |
| 238 | + | |
| 239 | + | |
| 240 | + | |
| 241 | + | |
182 | 242 | | |
183 | 243 | | |
184 | 244 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
| 4 | + | |
4 | 5 | | |
5 | 6 | | |
6 | 7 | | |
| |||
87 | 88 | | |
88 | 89 | | |
89 | 90 | | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
90 | 95 | | |
91 | 96 | | |
92 | 97 | | |
93 | 98 | | |
94 | 99 | | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
95 | 105 | | |
96 | 106 | | |
97 | 107 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
251 | 251 | | |
252 | 252 | | |
253 | 253 | | |
| 254 | + | |
| 255 | + | |
| 256 | + | |
| 257 | + | |
| 258 | + | |
| 259 | + | |
| 260 | + | |
| 261 | + | |
| 262 | + | |
| 263 | + | |
| 264 | + | |
| 265 | + | |
| 266 | + | |
| 267 | + | |
| 268 | + | |
| 269 | + | |
| 270 | + | |
| 271 | + | |
| 272 | + | |
| 273 | + | |
| 274 | + | |
| 275 | + | |
| 276 | + | |
254 | 277 | | |
255 | 278 | | |
256 | 279 | | |
| |||
0 commit comments