# Multipart Encoding Demo API

Version: `1.0.0`

Demonstrates OAS `encoding.contentType` support for `multipart/form-data` parts.

Per the OAS spec, the `encoding` object lets you declare the Content-Type for
individual form parts. Without this fix, all parts sent `application/octet-stream`
regardless of the declared encoding.

**Cases covered:**
- File part with explicit `contentType` (e.g. `text/plain`, `image/png`)
- String/JSON part with explicit `contentType: application/json`
- Multiple parts with mixed encoding
- Parts without encoding (default browser behaviour)

## Operations

- [File part with explicit contentType](/tests/file-part-with-explicit-content-type.md): `POST /anything/file-with-content-type`
- [JSON metadata part + binary file part](/tests/json-metadata-part-binary-file-part.md): `POST /anything/json-metadata-and-file`
- [File part with multiple selectable Content-Types](/tests/file-part-with-multiple-selectable-content-types.md): `POST /anything/multi-content-type`
- [Mixed — some parts with encoding, some without](/tests/mixed-some-parts-with-encoding-some-without.md): `POST /anything/mixed-encoding`
