/** * 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 program. * https://github.com/swagger-api/swagger-codegen.git * Do not edit the class manually. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ /* * ApiClient.h * * This is an API client responsible for stating the HTTP calls */ #ifndef ApiClient_H_ #define ApiClient_H_ #include "ApiConfiguration.h" #include "ApiException.h" #include "IHttpBody.h" #include "HttpContent.h" #include #include #include #include namespace io { namespace swagger { namespace client { namespace api { using namespace io::swagger::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); template static utility::string_t parameterToArrayString(std::vector value) { utility::stringstream_t ss; for( size_t i = 0; i < value.size(); i++) { if( i > 0) ss << U(", "); ss << ApiClient::parameterToString(value[i]); } return ss.str(); } 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; }; } } } } #endif /* ApiClient_H_ */