Replies: 3 comments
-
I like this idea, a couple thoughts on your example:
With those in mind, here's what I'm thinking: chains:
cod_image: !file
path: ./cod_photo.jpg
requests:
upload_fish_image: !request
method: POST
url: "{{host}}/fishes"
headers:
Content-Type: multipart/form-data
body:
fish_id: "cod"
fish_image: "{{chains.cod_image}}" The changes I see immediately here that are needed to support this:
In terms of difficulty/level of effort, I would rank these (most to least) as: 3, 4, 1, 2. It all seems pretty feasible to me though. Does this sound like it would solve your problem? If so I can write out some issues for this and get started on it. |
Beta Was this translation helpful? Give feedback.
-
I haven't used chains yet, but your proposed implementation looks wonderful! You're right about the |
Beta Was this translation helpful? Give feedback.
-
I thought about this a bit more and I think we actually want a hybrid solution: add a |
Beta Was this translation helpful? Give feedback.
-
Would be neat to support FormData requests in a similar fashion to curl. I guess for the
body:
you could use a!formdata
tag?Not sure how viable this approach is, just wanted to get the conversation started :)
Beta Was this translation helpful? Give feedback.
All reactions