Support for multipart/mixed Content-Type
See original GitHub issueI have a use case to support the multipart/mixed
content type as defined in RFC 2049. Use of this content type includes support for:
- multiple parts in sequence
- each part with its own content type and data
- each part separated by a boundary value included in the HTTP request
Content-Type
header
It seems like it would be ideal if Swagger could enable defining each part as a parameter with content type and, on submission, have Swagger UI create the MIME boundary, add the boundary to the HTTP request Content-Type
header, and assemble the multipart parameters into a multi-part request body using the boundary.
It would be great to support this in Swagger natively.
Issue Analytics
- State:
- Created 9 years ago
- Reactions:6
- Comments:17 (5 by maintainers)
Top Results From Across the Web
RFC1341(MIME) : 7 The Multipart content type
The primary subtype for multipart, "mixed", is intended for use when the body parts are independent and intended to be displayed serially. Any...
Read more >Attachment Working with Multipart/Mixed Content Type
Mule runtime handles Multipart content as attachments. This article explains how to access all attachment in case of a Multipart/Mixed Content Type.
Read more >Add support for Multipart/Mixed Content Type #6933 - GitHub
It seems like we need a new multipart body allowing for file uploads and text. That way Postman will know how to generate...
Read more >Sending multipart/mixed content with Postman Chrome ...
Show activity on this post. Set the Header Content-Type to multipart/mixed . Select the form-data option in Body . Convert all of your...
Read more >Re: How to support Content-Type: multipart/mixed
content-disposition: form-data; name="pics" Content-type: multipart/mixed, boundary=BbC04y --BbC04y. Content-disposition: attachment; filename="file1.txt"
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Feature request:
multipart/related
(merging https://github.com/swagger-api/swagger-spec/issues/520 into this)See #878