Skip to content

Multipart with JSON and files payload #833

Closed
@blaluc

Description

@blaluc

I didn't catch if this issue has a solution or if it depends on the standard swagger-ui.
There's one of the test cases:
https://github.com/springdoc/springdoc-openapi/blob/master/springdoc-openapi-webmvc-core/src/test/java/test/org/springdoc/api/app119/HelloController.java
that does not work when invoked from the UI.

The error reported in the console is:

Resolved [org.springframework.web.HttpMediaTypeNotAcceptableException: Could not find acceptable representation]

Is it possible to annotate a mulitpart post request in a way that it allows to submit both a json payload and one or more files from the swagger-ui?

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