在我尝试在"GET“only端点上执行"PUT”请求的情况下,旧API在Postman中返回以下内容,状态代码为405:"Message": "The requestedresourcedoesnot supporthttpmethod 'PUT'."}(int)HttpStatusCode.MethodNotAllowed)
我按照建议使用了System.Web.Http命名空间。然而,在将其部署到共享主机服务器后,我得到以下错误: Token接口: "error": "unsupported_grant_type" Post接口(带有System.Web.Http的HttpPost的方法): "Message": "The requestedresourcedoes not supporthttp
action = "Test" constraints: new httpMethod = new HttpMethodConstraint(HttpMethod.Get)但是,如果我尝试使用GET调用该方法,则会得到以下响应。{
Message: "The requestedresourcedoes not supporthttpmethod<