Jersey2 Patch Support (#4110)

* Fix for issue 2848 Adding support for PATH in jersey2

* Updating petstore sample for PATCH update
This commit is contained in:
sutdisi
2016-11-01 18:43:29 -07:00
committed by wing328
parent 1ef9480ecf
commit 819a8648d5
34 changed files with 185 additions and 149 deletions

View File

@@ -635,6 +635,8 @@ public class ApiClient {
response = invocationBuilder.put(entity);
} else if ("DELETE".equals(method)) {
response = invocationBuilder.delete();
} else if ("PATCH".equals(method)) {
response = invocationBuilder.header("X-HTTP-Method-Override", "PATCH").post(entity);
} else {
throw new ApiException(500, "unknown method type " + method);
}