Skip to content

Commit 95eaff0

Browse files
committed
update samples
1 parent e122007 commit 95eaff0

File tree

2 files changed

+7
-0
lines changed
  • samples/client/petstore/java/resttemplate-jakarta

2 files changed

+7
-0
lines changed

samples/client/petstore/java/resttemplate-jakarta/api/openapi.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,9 @@ paths:
4949
x-accepts: application/json
5050
put:
5151
description: ""
52+
externalDocs:
53+
description: API documentation for the updatePet operation
54+
url: http://petstore.swagger.io/v2/doc/updatePet
5255
operationId: updatePet
5356
requestBody:
5457
$ref: '#/components/requestBodies/Pet'

samples/client/petstore/java/resttemplate-jakarta/src/main/java/org/openapitools/client/api/PetApi.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -317,6 +317,8 @@ public ResponseEntity<Pet> getPetByIdWithHttpInfo(Long petId) throws RestClientE
317317
* @param pet Pet object that needs to be added to the store (required)
318318
* @return Pet
319319
* @throws RestClientException if an error occurs while attempting to invoke the API
320+
* API documentation for the updatePet operation
321+
* @see <a href="http://petstore.swagger.io/v2/doc/updatePet">Update an existing pet Documentation</a>
320322
*/
321323
public Pet updatePet(Pet pet) throws RestClientException {
322324
return updatePetWithHttpInfo(pet).getBody();
@@ -332,6 +334,8 @@ public Pet updatePet(Pet pet) throws RestClientException {
332334
* @param pet Pet object that needs to be added to the store (required)
333335
* @return ResponseEntity&lt;Pet&gt;
334336
* @throws RestClientException if an error occurs while attempting to invoke the API
337+
* API documentation for the updatePet operation
338+
* @see <a href="http://petstore.swagger.io/v2/doc/updatePet">Update an existing pet Documentation</a>
335339
*/
336340
public ResponseEntity<Pet> updatePetWithHttpInfo(Pet pet) throws RestClientException {
337341
Object localVarPostBody = pet;

0 commit comments

Comments
 (0)