FAQ Database Discussion Community


HTTP Patch Verb not working on windows server 2012 r2

asp.net,asp.net-web-api,windows-server-2012-r2,iis-8.5,http-patch
I'm working on single page application which consumes WebApi for data manipulation. My site was hosted on Windows Server 2008 R2 (IIS 7.5.7600.16385) and working fine, however after migration to Windows Server 2012 R2 (IIS 8.5.9600.16384) HTTP PATCH VERBS are not working, api call returns with status code 400 "Bad...

PATCH multiple resources

json,rest,http,api-design,http-patch
Short: Is it standard-compliant, RESTful and otherwise good idea to enable PATCH requests to update a collection of resources, not just a single one, but still individually? Long: I'm considering exposing a method for enabling batch, atomic updates to my collection of resources. Example: PATCH /url/myresources [ { "op": "add",...

Can the HTTP method “PATCH” be safely used across proxies etc.?

http,caching,filter,proxy,http-patch
Suppose my server exposes an HTTP-based API that uses the PATCH method introduced by RFC 5789. Is it possible that clients (browsers or otherwise) behind corporate firewalls, proxies, caches, parental controls filters and the like will encounter any problems using this method? If so, how likely is this? Given that...

Web API 2 does not process PATCH requests for Integers

asp.net,rest,asp.net-web-api,integer,http-patch
I'm having a problem with Web API 2 (.net 4.5.1) in that it seems to ignore PATCH requests where the property is an integer, but processes other types without a problem (I've tested string and decimal). I’ve setup an unsecured test API with a 'products' controller at http://playapi.azurewebsites.net/api/products. If you...

Is 202 Accepted an acceptable response to an http patch?

rest,http,http-patch
I need to do asynchronous updates to a resource. Is there definitive statement on whether or not a 202 Accepted is an appropriate response to a PATCH? The official documentation here, never mentions a 202, and appears to be assuming that resource changes due to a PATCH are made synchronously,...

Azure AD Change Password with patch call

c#,azure,azure-active-directory,change-password,http-patch
I'm currently developing a web app in C#. I'm using Azure AD to store the user infomation, so I would like to be able to change the password at some point if the user wishes to do so. Currently the way I'm changing the password is by using a http-patch...