Web Api 2.2 OData V4 Function Routing

后端 未结 3 708
春和景丽
春和景丽 2021-01-01 23:19

I have a Web Api 2.2 project working with OData v4. The normal EntitySet configuration is working as desired with all http verbs. Where I am having a problem is trying to

3条回答
  •  自闭症患者
    2021-01-01 23:47

    Please change the element as below, which is the recommended way if there is dot in the request URL:

     
            
     
    

    and if

    http://something/odata/Products/ProductService.MostExpensive()
    

    is requested, I can get the data:

    {
    @odata.context: "http://localhost:14853/odata/$metadata#Edm.Double",
    value: 3
    }
    

提交回复
热议问题