/** * OpenAPI Petstore * This is a sample server Petstore server. For this sample, you can use the api key `special-key` to test the authorization filters. * * The version of the OpenAPI document: 1.0.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ /* * PetApiController.hpp * * */ #ifndef PET_API_IMPL_H_ #define PET_API_IMPL_H_ #include #include "oatpp/core/Types.hpp" #include "ApiResponse.hpp" #include "Pet.hpp" namespace org::openapitools::server::api { class PetApiController : public PetApi { public: /// /// Add a new pet to the store /// /// /// /// /// HTTP Request /// Pet object that needs to be added to the store virtual std::shared_ptr add_pet(const std::shared_ptr &request, const oatpp::Object &pet); /// /// Deletes a pet /// /// /// /// /// HTTP Request /// Pet id to delete /// (optional, default to "") virtual std::shared_ptr delete_pet(const std::shared_ptr &request, const oatpp::Int64 &petId, const oatpp::String &apiKey); /// /// Finds Pets by status /// /// /// Multiple status values can be provided with comma separated strings /// /// HTTP Request /// Status values that need to be considered for filter virtual std::shared_ptr find_pets_by_status(const std::shared_ptr &request, const oatpp::Vector &status); /// /// Finds Pets by tags /// /// /// Multiple tags can be provided with comma separated strings. Use tag1, tag2, tag3 for testing. /// /// HTTP Request /// Tags to filter by virtual std::shared_ptr find_pets_by_tags(const std::shared_ptr &request, const oatpp::Vector &tags); /// /// Find pet by ID /// /// /// Returns a single pet /// /// HTTP Request /// ID of pet to return virtual std::shared_ptr get_pet_by_id(const std::shared_ptr &request, const oatpp::Int64 &petId); /// /// Update an existing pet /// /// /// /// /// HTTP Request /// Pet object that needs to be added to the store virtual std::shared_ptr update_pet(const std::shared_ptr &request, const oatpp::Object &pet); /// /// Updates a pet in the store with form data /// /// /// /// /// HTTP Request /// ID of pet that needs to be updated virtual std::shared_ptr update_pet_with_form(const std::shared_ptr &request, const oatpp::Int64 &petId); /// /// uploads an image /// /// /// /// /// HTTP Request /// ID of pet to update virtual std::shared_ptr upload_file(const std::shared_ptr &request, const oatpp::Int64 &petId); }; } // namespace org::openapitools::server::api #endif