@@ -83,26 +83,20 @@ Please follow the [installation](#installation) instruction and execute the foll
83
83
import org.openapitools.client.ApiClient ;
84
84
import org.openapitools.client.ApiException ;
85
85
import org.openapitools.client.Configuration ;
86
- import org.openapitools.client.auth.* ;
87
86
import org.openapitools.client.model.* ;
88
- import org.openapitools.client.api.PetApi ;
87
+ import org.openapitools.client.api.FakeApi ;
89
88
90
89
public class Example {
91
90
public static void main (String [] args ) {
92
91
ApiClient defaultClient = Configuration . getDefaultApiClient();
93
92
defaultClient. setBasePath(" http://petstore.swagger.io/v2" );
94
-
95
- // Configure OAuth2 access token for authorization: petstore_auth
96
- OAuth petstore_auth = (OAuth ) defaultClient. getAuthentication(" petstore_auth" );
97
- petstore_auth. setAccessToken(" YOUR ACCESS TOKEN" );
98
93
99
- PetApi apiInstance = new PetApi (defaultClient);
100
- Pet pet = new Pet (); // Pet | Pet object that needs to be added to the store
94
+ FakeApi apiInstance = new FakeApi (defaultClient);
101
95
try {
102
- Pet result = apiInstance. addPet(pet );
96
+ Object result = apiInstance. fakeInlineSchemaAnyofPath1Get( );
103
97
System . out. println(result);
104
98
} catch (ApiException e) {
105
- System . err. println(" Exception when calling PetApi#addPet " );
99
+ System . err. println(" Exception when calling FakeApi#fakeInlineSchemaAnyofPath1Get " );
106
100
System . err. println(" Status code: " + e. getCode());
107
101
System . err. println(" Reason: " + e. getResponseBody());
108
102
System . err. println(" Response headers: " + e. getResponseHeaders());
@@ -119,6 +113,18 @@ All URIs are relative to *http://petstore.swagger.io/v2*
119
113
120
114
Class | Method | HTTP request | Description
121
115
------------ | ------------- | ------------- | -------------
116
+ * FakeApi* | [ ** fakeInlineSchemaAnyofPath1Get** ] ( docs/FakeApi.md#fakeInlineSchemaAnyofPath1Get ) | ** GET** /fake/inline/schema/anyof/path1 |
117
+ * FakeApi* | [ ** fakeInlineSchemaAnyofPath2Get** ] ( docs/FakeApi.md#fakeInlineSchemaAnyofPath2Get ) | ** GET** /fake/inline/schema/anyof/path2 |
118
+ * FakeApi* | [ ** fakeInlineSchemaAnyofPath3Get** ] ( docs/FakeApi.md#fakeInlineSchemaAnyofPath3Get ) | ** GET** /fake/inline/schema/anyof/path3 |
119
+ * FakeApi* | [ ** op1** ] ( docs/FakeApi.md#op1 ) | ** POST** /fake/api/changeowner | op1
120
+ * FakeApi* | [ ** op2** ] ( docs/FakeApi.md#op2 ) | ** POST** /fake/api/changename | op2
121
+ * FakeApi* | [ ** op3** ] ( docs/FakeApi.md#op3 ) | ** POST** /fake/api/query/enum | op3
122
+ * FakeApi* | [ ** refToRefParameter** ] ( docs/FakeApi.md#refToRefParameter ) | ** GET** /ref/ref_to_parameter |
123
+ * FakeApi* | [ ** refToRefParameterAnyof** ] ( docs/FakeApi.md#refToRefParameterAnyof ) | ** GET** /ref/ref_to_operation_level_parameter_oneof |
124
+ * FakeApi* | [ ** refToRefParameterOneof** ] ( docs/FakeApi.md#refToRefParameterOneof ) | ** GET** /ref/ref_to_path_level_parameter_oneof |
125
+ * FakeApi* | [ ** responseNoRef** ] ( docs/FakeApi.md#responseNoRef ) | ** GET** /no_ref |
126
+ * FakeApi* | [ ** responseRefToNoRef** ] ( docs/FakeApi.md#responseRefToNoRef ) | ** GET** /ref/no_ref |
127
+ * FakeApi* | [ ** responseRefToRef** ] ( docs/FakeApi.md#responseRefToRef ) | ** GET** /ref/ref |
122
128
* PetApi* | [ ** addPet** ] ( docs/PetApi.md#addPet ) | ** POST** /pet | Add a new pet to the store
123
129
* PetApi* | [ ** deletePet** ] ( docs/PetApi.md#deletePet ) | ** DELETE** /pet/{petId} | Deletes a pet
124
130
* PetApi* | [ ** findPetsByStatus** ] ( docs/PetApi.md#findPetsByStatus ) | ** GET** /pet/findByStatus | Finds Pets by status
@@ -143,10 +149,30 @@ Class | Method | HTTP request | Description
143
149
144
150
## Documentation for Models
145
151
152
+ - [ AllOfSimpleModel] ( docs/AllOfSimpleModel.md )
153
+ - [ Animal] ( docs/Animal.md )
154
+ - [ AnyTypeTest] ( docs/AnyTypeTest.md )
155
+ - [ ArrayOfSameRef] ( docs/ArrayOfSameRef.md )
156
+ - [ Cat] ( docs/Cat.md )
146
157
- [ Category] ( docs/Category.md )
158
+ - [ CircularReference1] ( docs/CircularReference1.md )
159
+ - [ CircularReference2] ( docs/CircularReference2.md )
160
+ - [ CircularReference3] ( docs/CircularReference3.md )
161
+ - [ CodesEnum] ( docs/CodesEnum.md )
162
+ - [ Dog] ( docs/Dog.md )
163
+ - [ FakeWebhooksSourcesDeletedPostRequest] ( docs/FakeWebhooksSourcesDeletedPostRequest.md )
164
+ - [ FakeWebhooksSourcesDeletedPostRequestEvent] ( docs/FakeWebhooksSourcesDeletedPostRequestEvent.md )
147
165
- [ ModelApiResponse] ( docs/ModelApiResponse.md )
166
+ - [ OneOfStringOrInt] ( docs/OneOfStringOrInt.md )
148
167
- [ Order] ( docs/Order.md )
149
168
- [ Pet] ( docs/Pet.md )
169
+ - [ RefRefToPathLevelParameterOneofRefToOneofParameter] ( docs/RefRefToPathLevelParameterOneofRefToOneofParameter.md )
170
+ - [ RefToRefParameterAnyofRefToAnyofParameter] ( docs/RefToRefParameterAnyofRefToAnyofParameter.md )
171
+ - [ SelfReferenceAdditionalProperties] ( docs/SelfReferenceAdditionalProperties.md )
172
+ - [ SelfReferenceAnyOf] ( docs/SelfReferenceAnyOf.md )
173
+ - [ SelfReferenceOneOf] ( docs/SelfReferenceOneOf.md )
174
+ - [ SimpleModelWithArrayProperty] ( docs/SimpleModelWithArrayProperty.md )
175
+ - [ StringOrInt] ( docs/StringOrInt.md )
150
176
- [ Tag] ( docs/Tag.md )
151
177
- [ User] ( docs/User.md )
152
178
0 commit comments