forked from loafle/openapi-generator-original
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:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user