forked from loafle/openapi-generator-original
update cpprest petstore sample
This commit is contained in:
@@ -518,7 +518,7 @@ pplx::task<std::vector<std::shared_ptr<Pet>>> PetApi::findPetsByTags(std::vector
|
||||
else
|
||||
{
|
||||
throw ApiException(500
|
||||
, U("error calling findPetsByStatus: unsupported response type"));
|
||||
, U("error calling findPetsByTags: unsupported response type"));
|
||||
}
|
||||
|
||||
return result;
|
||||
@@ -644,7 +644,7 @@ pplx::task<std::shared_ptr<Pet>> PetApi::getPetById(int64_t petId)
|
||||
else
|
||||
{
|
||||
throw ApiException(500
|
||||
, U("error calling findPetsByStatus: unsupported response type"));
|
||||
, U("error calling getPetById: unsupported response type"));
|
||||
}
|
||||
|
||||
return result;
|
||||
@@ -1005,7 +1005,7 @@ pplx::task<std::shared_ptr<ApiResponse>> PetApi::uploadFile(int64_t petId, utili
|
||||
else
|
||||
{
|
||||
throw ApiException(500
|
||||
, U("error calling findPetsByStatus: unsupported response type"));
|
||||
, U("error calling uploadFile: unsupported response type"));
|
||||
}
|
||||
|
||||
return result;
|
||||
|
||||
Reference in New Issue
Block a user