Odata V4 patch & delete api does not get this url format()

Hi

Hope this is just some simple problem with my code cause I am still beginner

I have data grid which is connected to self made .net6 Odata 8 Api

GET [Queryable] works like a charm

but DELETE & PATCH not

ODataV4 connector what I can see and understand sends request

fx delete

DELETE https://localhost:####/odata/path(idnumber)

result is 405

and api works as standard (from swagger & postman )

DELETE https://localhost:####/odata/path?id=idnumber
is there some parameter that makes those PATCH & DELETE requests work as before
( with odata connector GET does not work cause api returns count not inlinecount allready)

Or would some expert give me solution how to make .net odata understand
this request https://localhost:####/odata/path(idnumber) which I suppose is standard v4

with graph and so on but I do not find sample anywhere how to make it work with .net core
controller ( all blogs I find seems to talk about get post and so on cause those work)

I suppose problem may be with api more than with OdataV4 connector

Best regards

Jukka




2 Replies 1 reply marked as answer

JT Jukka Tervonen March 10, 2022 11:44 PM UTC

And I just found out how simple error might be

api just needed () on route at controller [HttpPatch("odata/path({id})")]


/ Jukka


Marked as answer

RN Rahul Narayanasamy Syncfusion Team March 11, 2022 04:54 AM UTC

Hi Jukka, 

Greetings from Syncfusion. 

We are happy to hear that you have found solution for your reported case. Please get back to us if you need further assistance. 

Regards, 
Rahul 


Loader.
Up arrow icon