springdoc-openapi-demos icon indicating copy to clipboard operation
springdoc-openapi-demos copied to clipboard

springdoc-openapi-spring-boot-2-webmvc: UserApi#updateUser doesn't work with application/x-www-form-urlencoded

Open Frettman opened this issue 2 years ago • 0 comments

When I try to execute the mentioned method through the Swagger UI at http://158.101.191.70:8081/swagger-ui/4.10.3/index.html#/user/updateUser with application/x-www-form-urlencoded, then I get a HTTP status 415 (Unsupported Media Type) response. Do you know what's wrong here? Has this worked at some point? The accept header of the response has this value: application/xml;charset=UTF-8,text/xml;charset=UTF-8,application/json,application/*+xml;charset=UTF-8,application/*+json So it doesn't even mention the application/x-www-form-urlencoded even though the @PutMapping clearly contains it.

Frettman avatar May 19 '22 13:05 Frettman