update samples

This commit is contained in:
William Cheng 2023-01-05 15:48:45 +08:00
parent e1220071f0
commit 95eaff0a00
2 changed files with 7 additions and 0 deletions

View File

@ -49,6 +49,9 @@ paths:
x-accepts: application/json
put:
description: ""
externalDocs:
description: API documentation for the updatePet operation
url: http://petstore.swagger.io/v2/doc/updatePet
operationId: updatePet
requestBody:
$ref: '#/components/requestBodies/Pet'

View File

@ -317,6 +317,8 @@ public class PetApi {
* @param pet Pet object that needs to be added to the store (required)
* @return Pet
* @throws RestClientException if an error occurs while attempting to invoke the API
* API documentation for the updatePet operation
* @see <a href="http://petstore.swagger.io/v2/doc/updatePet">Update an existing pet Documentation</a>
*/
public Pet updatePet(Pet pet) throws RestClientException {
return updatePetWithHttpInfo(pet).getBody();
@ -332,6 +334,8 @@ public class PetApi {
* @param pet Pet object that needs to be added to the store (required)
* @return ResponseEntity&lt;Pet&gt;
* @throws RestClientException if an error occurs while attempting to invoke the API
* API documentation for the updatePet operation
* @see <a href="http://petstore.swagger.io/v2/doc/updatePet">Update an existing pet Documentation</a>
*/
public ResponseEntity<Pet> updatePetWithHttpInfo(Pet pet) throws RestClientException {
Object localVarPostBody = pet;