cancel
Showing results for 
Search instead for 
Did you mean: 

Upload multiple files using openapi.

Ashuptdr
New Contributor

Upload multiple files using openapi.

I'm not able to create API for multiple file upload.
Please suggest request body and response body for upload multiple files using multipart form data.
2 REPLIES 2
HKosova
Moderator

Re: Upload multiple files using openapi.

Hi @Ashuptdr, check out the examples here:

https://swagger.io/docs/specification/describing-request-body/file-upload/

 

Please note that multiple file upload is only supported in OpenAPI 3.0 (openapi: 3.0.x), it's not supported in OpenAPI 2.0 (swagger: '2.0').


Helen Kosova
SmartBear Documentation Team Lead
________________________
Did my reply answer your question? Give Kudos or Accept it as a Solution to help others. ⬇️⬇️⬇️
Ashuptdr
New Contributor

Re: Upload multiple files using openapi.

Thanks for quick response.
I created swagger yaml file but while creating API , I am not getting any parameter in method body.like @RequestPart or @RequestBody
New Here?
Join us and watch the welcome video:
Top Kudoed Authors
Top Kudoed Posts