/** * Swagger Petstore * This is a sample server Petstore server. You can find out more about Swagger at [http://swagger.io](http://swagger.io) or on [irc.freenode.net, #swagger](http://swagger.io/irc/). For this sample, you can use the api key `special-key` to test the authorization filters. * * OpenAPI spec version: 1.0.0 * Contact: apiteam@swagger.io * * NOTE: This class is auto generated by the swagger code generator 3.0.0-SNAPSHOT. * https://github.com/swagger-api/swagger-codegen.git * Do not edit the class manually. */ /* * PetApi.h * * */ #ifndef IO_SWAGGER_CLIENT_API_PetApi_H_ #define IO_SWAGGER_CLIENT_API_PetApi_H_ #include "../ApiClient.h" #include "ApiResponse.h" #include "HttpContent.h" #include "Pet.h" #include #include 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( Pet pet ); /// /// Deletes a pet /// /// /// /// /// Pet id to delete /// (optional) pplx::task deletePet( int64_t petId, boost::optional 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( Pet pet ); /// /// 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, boost::optional name, boost::optional 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, boost::optional additionalMetadata, boost::optional file ); protected: std::shared_ptr m_ApiClient; }; } } } } #endif /* IO_SWAGGER_CLIENT_API_PetApi_H_ */