forked from loafle/openapi-generator-original
[Java][jersey2] Use builder pattern for requests (#4666)
* Use builder pattern for requests * petstore * Add @throws annotation * regenerate jersey2 test files * Also group bodyParam in builder class * petstore java6 * regenerate java8 * ensure up to date
This commit is contained in:
committed by
William Cheng
parent
420039c9eb
commit
ee984c38a5
@@ -12,6 +12,7 @@ Method | HTTP request | Description
|
||||
|
||||
> Client call123testSpecialTags(body)
|
||||
|
||||
|
||||
To test special tags
|
||||
|
||||
To test special tags and operation ID starting with number
|
||||
@@ -33,8 +34,9 @@ public class Example {
|
||||
|
||||
AnotherFakeApi apiInstance = new AnotherFakeApi(defaultClient);
|
||||
Client body = new Client(); // Client | client model
|
||||
try {
|
||||
try {
|
||||
Client result = apiInstance.call123testSpecialTags(body);
|
||||
|
||||
System.out.println(result);
|
||||
} catch (ApiException e) {
|
||||
System.err.println("Exception when calling AnotherFakeApi#call123testSpecialTags");
|
||||
|
||||
Reference in New Issue
Block a user