Endpoint should also accept application/xml
Closed this issue · 0 comments
tomwetjens commented
Change in UftpInternalController
:
@PostMapping(value = "/message", consumes = MediaType.TEXT_XML_VALUE)
to
@PostMapping(value = "/message", consumes = [MediaType.APPLICATION_XML_VALUE, MediaType.TEXT_XML_VALUE)]
So application/xml is accepted and the correct OpenAPI spec is generated