awslabs / aws-api-gateway-developer-portal

A Serverless Developer Portal for easily publishing and cataloging APIs
Apache License 2.0
927 stars 399 forks source link

Can we upload any file from developer portal on post method api with request body with multipart form data type? #442

Open hk1313 opened 3 years ago

hk1313 commented 3 years ago

I have one api which support to upload image as file from form-data from postman, same api I can see in developer portal but don't know, how can I upload image?

Emmanuel-D-coface commented 2 years ago

indeed , when you define a multipart form data in the portal, the try it out method does not work. The swaggerUi plugin seems to hold and the curl generated and json structure is totally false for multipart data .. there is no field for uploading the file

pedro-sphere commented 1 year ago

I faced the same situation. I have a method that supports file upload. On Postman I could do it using the form-data but could not find a way to make it so that the developer Portal understands it. :-|