/* * PetApi.h * * */ #ifndef PetApi_H_ #define PetApi_H_ #include "ApiClient.h" #include "Pet.h" #include #include "ApiResponse.h" #include "HttpContent.h" namespace io { namespace swagger { namespace client { namespace api { using namespace io::swagger::client::model; class PetApi { public: PetApi( std::shared_ptr apiClient ); virtual ~PetApi(); /// /// Add a new pet to the store /// /// /// /// /// Pet object that needs to be added to the store pplx::task addPet(std::shared_ptr body); /// /// Deletes a pet /// /// /// /// /// Pet id to delete/// (optional) pplx::task deletePet(int64_t petId, utility::string_t apiKey); /// /// Finds Pets by status /// /// /// Multiple status values can be provided with comma separated strings /// /// Status values that need to be considered for filter pplx::task>> findPetsByStatus(std::vector status); /// /// Finds Pets by tags /// /// /// Multiple tags can be provided with comma separated strings. Use tag1, tag2, tag3 for testing. /// /// Tags to filter by pplx::task>> findPetsByTags(std::vector tags); /// /// Find pet by ID /// /// /// Returns a single pet /// /// ID of pet to return pplx::task> getPetById(int64_t petId); /// /// Update an existing pet /// /// /// /// /// Pet object that needs to be added to the store pplx::task updatePet(std::shared_ptr body); /// /// Updates a pet in the store with form data /// /// /// /// /// ID of pet that needs to be updated/// Updated name of the pet (optional)/// Updated status of the pet (optional) pplx::task updatePetWithForm(int64_t petId, utility::string_t name, utility::string_t status); /// /// uploads an image /// /// /// /// /// ID of pet to update/// Additional data to pass to server (optional)/// file to upload (optional) pplx::task> uploadFile(int64_t petId, utility::string_t additionalMetadata, std::shared_ptr file); protected: std::shared_ptr m_ApiClient; }; } } } } #endif /* PetApi_H_ */