WebAPI and ODataController return 406 Not Acceptable

前端 未结 13 1305
余生分开走
余生分开走 2020-12-02 12:25

Before adding OData to my project, my routes where set up like this:

       config.Routes.MapHttpRoute(
            name: \"ApiById\",
            routeTempl         


        
13条回答
  •  旧时难觅i
    2020-12-02 12:59

    Another thing to be taken into consideration is that the URL is case sensitive so:

    localhost:xxx/api/Sites -> OK
    localhost:xxx/api/sites -> HTTP 406

提交回复
热议问题