springdoc-openapi-demos
springdoc-openapi-demos copied to clipboard
springdoc-openapi-spring-boot-2-webmvc: UserApi#updateUser doesn't work with application/x-www-form-urlencoded
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.