Quantcast
Channel: ASP.NET MVC / Web API / Web Pages
Viewing all articles
Browse latest Browse all 7925

New Post: Enum support for Delta Patch

$
0
0

Thanks for that information. I tried that before in both the latest nightly build and stable. No mater what I try I can't get it to work with my ajax call.

 

$.ajax('/api/v1/test/1', {
    type: 'PATCH',
    dataType: 'json',
    contentType: 'application/json;charset=utf-8',
    data: JSON.stringify({ Mode: 'Running' })
});

 

Every time, my delta doesn't contain any changed values. I can send/attach a sample app if you would like that reproduces this with any version of the webapi odata libs.

Also, one would think you would post an number value as it's serialized over webapi as an int and not a string. Which would make it difficult to pull down an entity, make one change and patch it back to the server using a delta.


Viewing all articles
Browse latest Browse all 7925

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>