您好,我正在使用Swashbuckle,我想为请求和响应负载设置内容类型"application/json and application/xml“。任何人都可以帮助我如何根据我的偏好设置内容类型。HttpPost [Consumes(MediaTypeNames.Application.Json)]
我在我的web项目中使用Swashbuckle包,我试图用这个替换默认的Swagger<?xml version="1.0" encoding="ISO-8859-1"?</Message>
<ExceptionMessage>Embedded resource not found - ReportsAPI.swagger-ui.Index.html</Except