/** * 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. * * OpenAPI spec version: 1.0.0 * * NOTE: This class is auto generated by OpenAPI-Generator 3.1.2-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ /* * ApiClient.h * * This is an API client responsible for stating the HTTP calls */ #ifndef ORG_OPENAPITOOLS_CLIENT_API_ApiClient_H_ #define ORG_OPENAPITOOLS_CLIENT_API_ApiClient_H_ #include "ApiConfiguration.h" #include "ApiException.h" #include "IHttpBody.h" #include "HttpContent.h" #include #include #include #include namespace org { namespace openapitools { namespace client { namespace api { using namespace org::openapitools::client::model; class ApiClient { public: ApiClient( std::shared_ptr configuration = nullptr ); virtual ~ApiClient(); std::shared_ptr getConfiguration() const; void setConfiguration(std::shared_ptr configuration); static utility::string_t parameterToString(utility::string_t value); static utility::string_t parameterToString(int32_t value); static utility::string_t parameterToString(int64_t value); static utility::string_t parameterToString(float value); static utility::string_t parameterToString(double value); static utility::string_t parameterToString(const utility::datetime &value); template static utility::string_t parameterToString(const std::vector& value); pplx::task callApi( const utility::string_t& path, const utility::string_t& method, const std::map& queryParams, const std::shared_ptr postBody, const std::map& headerParams, const std::map& formParams, const std::map>& fileParams, const utility::string_t& contentType ) const; protected: std::shared_ptr m_Configuration; }; template utility::string_t ApiClient::parameterToString(const std::vector& value) { utility::stringstream_t ss; for( size_t i = 0; i < value.size(); i++) { if( i > 0) ss << utility::conversions::to_string_t(", "); ss << ApiClient::parameterToString(value[i]); } return ss.str(); } } } } } #endif /* ORG_OPENAPITOOLS_CLIENT_API_ApiClient_H_ */