Skip to content

Commit b8d80cb

Browse files
committed
update samples
1 parent c795a65 commit b8d80cb

File tree

10 files changed

+831
-2
lines changed

10 files changed

+831
-2
lines changed

modules/openapi-generator/src/test/resources/3_1/java/petstore.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,11 @@ webhooks:
4242
properties:
4343
event_id:
4444
type: string
45+
responses:
46+
'200':
47+
description: successful operation
48+
'405':
49+
description: Invalid input
4550
paths:
4651
/pet:
4752
post:

samples/client/petstore/java/okhttp-gson-3.1/.openapi-generator/FILES

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -98,5 +98,3 @@ src/main/java/org/openapitools/client/model/SimpleModelWithArrayProperty.java
9898
src/main/java/org/openapitools/client/model/StringOrInt.java
9999
src/main/java/org/openapitools/client/model/Tag.java
100100
src/main/java/org/openapitools/client/model/User.java
101-
src/test/java/org/openapitools/client/model/FakeWebhooksSourcesDeletedPostRequestEventTest.java
102-
src/test/java/org/openapitools/client/model/FakeWebhooksSourcesDeletedPostRequestTest.java

samples/client/petstore/java/okhttp-gson-3.1/docs/DefaultApi.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,4 +61,9 @@ No authorization required
6161
- **Content-Type**: application/json
6262
- **Accept**: Not defined
6363

64+
### HTTP response details
65+
| Status code | Description | Response headers |
66+
|-------------|-------------|------------------|
67+
| **200** | successful operation | - |
68+
| **405** | Invalid input | - |
6469

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
2+
3+
# FakeWebhooksSourcesDeletedPostRequest
4+
5+
inline schema in webhooks
6+
7+
## Properties
8+
9+
| Name | Type | Description | Notes |
10+
|------------ | ------------- | ------------- | -------------|
11+
|**eventTimestamp** | **OffsetDateTime** | | |
12+
|**eventType** | **String** | | |
13+
|**event** | [**FakeWebhooksSourcesDeletedPostRequestEvent**](FakeWebhooksSourcesDeletedPostRequestEvent.md) | | |
14+
15+
16+
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
2+
3+
# FakeWebhooksSourcesDeletedPostRequestEvent
4+
5+
6+
## Properties
7+
8+
| Name | Type | Description | Notes |
9+
|------------ | ------------- | ------------- | -------------|
10+
|**eventId** | **String** | | |
11+
12+
13+

samples/client/petstore/java/okhttp-gson-3.1/src/main/java/org/openapitools/client/api/DefaultApi.java

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,13 @@ public void setCustomBaseUrl(String customBaseUrl) {
7878
* @param _callback Callback for upload/download progress
7979
* @return Call to execute
8080
* @throws ApiException If fail to serialize the request body object
81+
* @http.response.details
82+
<table border="1">
83+
<caption>Response Details</caption>
84+
<tr><td> Status Code </td><td> Description </td><td> Response Headers </td></tr>
85+
<tr><td> 200 </td><td> successful operation </td><td> - </td></tr>
86+
<tr><td> 405 </td><td> Invalid input </td><td> - </td></tr>
87+
</table>
8188
*/
8289
public okhttp3.Call fakeWebhooksSourcesDeletedPostCall(FakeWebhooksSourcesDeletedPostRequest fakeWebhooksSourcesDeletedPostRequest, final ApiCallback _callback) throws ApiException {
8390
String basePath = null;
@@ -134,6 +141,13 @@ private okhttp3.Call fakeWebhooksSourcesDeletedPostValidateBeforeCall(FakeWebhoo
134141
*
135142
* @param fakeWebhooksSourcesDeletedPostRequest (optional)
136143
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
144+
* @http.response.details
145+
<table border="1">
146+
<caption>Response Details</caption>
147+
<tr><td> Status Code </td><td> Description </td><td> Response Headers </td></tr>
148+
<tr><td> 200 </td><td> successful operation </td><td> - </td></tr>
149+
<tr><td> 405 </td><td> Invalid input </td><td> - </td></tr>
150+
</table>
137151
*/
138152
public void fakeWebhooksSourcesDeletedPost(FakeWebhooksSourcesDeletedPostRequest fakeWebhooksSourcesDeletedPostRequest) throws ApiException {
139153
fakeWebhooksSourcesDeletedPostWithHttpInfo(fakeWebhooksSourcesDeletedPostRequest);
@@ -145,6 +159,13 @@ public void fakeWebhooksSourcesDeletedPost(FakeWebhooksSourcesDeletedPostRequest
145159
* @param fakeWebhooksSourcesDeletedPostRequest (optional)
146160
* @return ApiResponse&lt;Void&gt;
147161
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
162+
* @http.response.details
163+
<table border="1">
164+
<caption>Response Details</caption>
165+
<tr><td> Status Code </td><td> Description </td><td> Response Headers </td></tr>
166+
<tr><td> 200 </td><td> successful operation </td><td> - </td></tr>
167+
<tr><td> 405 </td><td> Invalid input </td><td> - </td></tr>
168+
</table>
148169
*/
149170
public ApiResponse<Void> fakeWebhooksSourcesDeletedPostWithHttpInfo(FakeWebhooksSourcesDeletedPostRequest fakeWebhooksSourcesDeletedPostRequest) throws ApiException {
150171
okhttp3.Call localVarCall = fakeWebhooksSourcesDeletedPostValidateBeforeCall(fakeWebhooksSourcesDeletedPostRequest, null);
@@ -158,6 +179,13 @@ public ApiResponse<Void> fakeWebhooksSourcesDeletedPostWithHttpInfo(FakeWebhooks
158179
* @param _callback The callback to be executed when the API call finishes
159180
* @return The request call
160181
* @throws ApiException If fail to process the API call, e.g. serializing the request body object
182+
* @http.response.details
183+
<table border="1">
184+
<caption>Response Details</caption>
185+
<tr><td> Status Code </td><td> Description </td><td> Response Headers </td></tr>
186+
<tr><td> 200 </td><td> successful operation </td><td> - </td></tr>
187+
<tr><td> 405 </td><td> Invalid input </td><td> - </td></tr>
188+
</table>
161189
*/
162190
public okhttp3.Call fakeWebhooksSourcesDeletedPostAsync(FakeWebhooksSourcesDeletedPostRequest fakeWebhooksSourcesDeletedPostRequest, final ApiCallback<Void> _callback) throws ApiException {
163191

0 commit comments

Comments
 (0)