Skip to content

Can't make insert when calls to API make with Doctrine Api Plataform. Shows MIME not supported error. #75

@Bizkaitarra

Description

@Bizkaitarra

When I try to use this driver to call an standard Doctrine API plataform works well with selection operations but I can't make any insert.

When I try to insert API complais about the MIME Type:

The content-type \u0022application/x-www-form-urlencoded\u0022 is not supported. Supported MIME types are \u0022application/json\u0022

I tried to make Doctrine API Plataform to work with x-www-form-urlencoded but I can't:

https://api-platform.com/docs/core/form-data/#accept-applicationx-www-form-urlencoded-form-data

¿Is there anything I can configure in Doctrine Rest Driver to send request using json and not x-www-form-urlencoded?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions