We would like to send file to the backend service through the gateway.
How can we do this on gateway?
We would like to call the PAPI /asset endpoint on gateway. But we don't know how to achieve sending json file (content-type=multipart/form-data request) on gateway.
Postman call like below:
POST /apiportal/api-management/1.0/apis/####################/assets HTTP/1.1
Host:#########:9443
Authorization: Bearer ####################
Content-Length: 196
Content-Type: multipart/form-data; boundary=----WebKitFormBoundary7MA4YWxkTrZu0gW
----WebKitFormBoundary7MA4YWxkTrZu0gW
Content-Disposition: form-data; name="files"; filename="/path/to/file"
Content-Type: <Content-Type header here>
(data)
----WebKitFormBoundary7MA4YWxkTrZu0gW
Release : 10.0
Component : API GATEWAY
you have to request the "assemble mime message" tactical assertion to be able to create the correct message format multipart/form-data