forked from loafle/openapi-generator-original
[java-client][jersey2][resteasy] add support for OPTIONS method (#3677)
* [java-client][jersey2][resteasy] add support for OPTIONS method * Update samples
This commit is contained in:
committed by
William Cheng
parent
a5ab60bec8
commit
8c498fb08a
@@ -705,6 +705,8 @@ public class ApiClient {
|
||||
response = invocationBuilder.method("PATCH", entity);
|
||||
} else if ("HEAD".equals(method)) {
|
||||
response = invocationBuilder.head();
|
||||
} else if ("OPTIONS".equals(method)) {
|
||||
response = invocationBuilder.options();
|
||||
} else if ("TRACE".equals(method)) {
|
||||
response = invocationBuilder.trace();
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user