9
Web API Put Request bir Http 405 Yöntemine İzin Verilmez hatası oluşturur
İşte PUTbenim Web API yönteminde çağrı - yöntem üçüncü satır (Ben bir ASP.NET MVC ön ucundan Web API çağırıyorum): client.BaseAddressolduğunu http://localhost/CallCOPAPI/. İşte contactUri: İşte contactUri.PathAndQuery: Ve son olarak, 405 yanıtım: İşte Web API projemdeki WebApi.config: public static void Register(HttpConfiguration config) { config.Routes.MapHttpRoute( name: "DefaultApi", routeTemplate: "api/{controller}/{id}", defaults: new { id …