/**
* 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.
*/
/*
* PetApi.h
*
*
*/
#ifndef PetApi_H_
#define PetApi_H_
#include "oatpp/web/client/ApiClient.hpp"
#include "oatpp/web/protocol/http/outgoing/MultipartBody.hpp"
#include "oatpp/core/macro/codegen.hpp"
#include "ApiResponse.hpp"
#include "Pet.hpp"
#include OATPP_CODEGEN_BEGIN(ApiClient) ///< Begin code-gen section
namespace org::openapitools::client::api
{
class PetApi : public oatpp::web::client::ApiClient {
public:
API_CLIENT_INIT(PetApi)
///
/// Add a new pet to the store
///
///
///
///
/// Pet object that needs to be added to the store
API_CALL("POST", "/pet", add_pet, BODY_DTO(oatpp::Object, pet))
///
/// Deletes a pet
///
///
///
///
/// Pet id to delete
/// (optional, default to "")
API_CALL("DELETE", "/pet/{petId}", delete_pet, PATH(oatpp::Int64, petId), HEADER(oatpp::String, apiKey, "apiKey"))
///
/// Finds Pets by status
///
///
/// Multiple status values can be provided with comma separated strings
///
/// Status values that need to be considered for filter
API_CALL("GET", "/pet/findByStatus", find_pets_by_status, QUERY(oatpp::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
API_CALL("GET", "/pet/findByTags", find_pets_by_tags, QUERY(oatpp::Vector, tags))
///
/// Find pet by ID
///
///
/// Returns a single pet
///
/// ID of pet to return
API_CALL("GET", "/pet/{petId}", get_pet_by_id, PATH(oatpp::Int64, petId))
///
/// Update an existing pet
///
///
///
///
/// Pet object that needs to be added to the store
API_CALL("PUT", "/pet", update_pet, BODY_DTO(oatpp::Object, pet))
///
/// Updates a pet in the store with form data
///
///
///
///
/// ID of pet that needs to be updated
/// Updated name of the pet (optional, default to "")
/// Updated status of the pet (optional, default to "")
API_CALL("POST", "/pet/{petId}", update_pet_with_form, PATH(oatpp::Int64, petId), BODY(std::shared_ptr, formData))
///
/// uploads an image
///
///
///
///
/// ID of pet to update
/// Additional data to pass to server (optional, default to "")
/// file to upload (optional, default to "")
API_CALL("POST", "/pet/{petId}/uploadImage", upload_file, PATH(oatpp::Int64, petId), BODY(std::shared_ptr, formData))
};
#include OATPP_CODEGEN_END(ApiClient) ///< End code-gen section
} // namespace org::openapitools::client::api
#endif /* PetApi_H_ */