Considering this Api-Platform ApiResource declaration in attribute form:
#[ApiResource(
operations: [
new Post(
controller: SomeController::class
inputFormats: ['multipart' => ['multipart/form-data'], 'urlencoded' => ['application/x-www-form-urlencoded'],
)]
class MediaObject
{
// implementation
}
how can the same configuration be performed in XML format?
I got as far as this:
<operation class="ApiPlatformMetadataPost"
controller="AppSomeController">
<inputFormats>
<format name="multipart">multipart/form-data</format>
</inputFormats>
</operation>
I need this endpoint to accept both multipart and www-form-url-encoded.