mirror of
https://github.com/tribufu/sdk-cpp
synced 2025-06-19 17:14:19 +00:00
Generate project with openapi generator
This commit is contained in:
.gitattributes.gitignore.openapi-generator-ignore
.openapi-generator
CMakeLists.txtConfig.cmake.inbootstrap.ps1include/tribufu++
AnyType.hApiClient.hApiConfiguration.hApiException.hHttpContent.hIHttpBody.hJsonBody.hModelBase.hMultipartFormData.hObject.h
api
model
Account.hApplication.hApplicationType.hAuthorizeRequest.hCodeChallengeMethod.hCryptoViewModel.hGame.hGameServer.hGameServerCluster.hGrantType.hGroup.hGroupGame.hGroupMember.hGroupRank.hHashViewModel.hIntrospectRequest.hIpAddress.hLeaderboardItem.hLeaderboardOrder.hLoginProvider.hLoginRequest.hLoginResponse.hPackage.hProfile.hProfileGame.hProfileGroup.hRefreshRequest.hRegisterRequest.hResponseType.hRevokeRequest.hSearchRequest.hSearchType.hServerMetrics.hServerStatus.hSubscription.hTokenHintType.hTokenRequest.hTokenResponse.hTokenType.hUpdateProfile.hUserInfo.hUserType.h
scripts
src
AnyType.cppApiClient.cppApiConfiguration.cppApiException.cppHttpContent.cppJsonBody.cppModelBase.cppMultipartFormData.cppObject.cpp
api
model
Account.cppApplication.cppApplicationType.cppAuthorizeRequest.cppCodeChallengeMethod.cppCryptoViewModel.cppGame.cppGameServer.cppGameServerCluster.cppGrantType.cppGroup.cppGroupGame.cppGroupMember.cppGroupRank.cppHashViewModel.cppIntrospectRequest.cppIpAddress.cppLeaderboardItem.cppLeaderboardOrder.cppLoginProvider.cppLoginRequest.cppLoginResponse.cppPackage.cppProfile.cppProfileGame.cppProfileGroup.cppRefreshRequest.cppRegisterRequest.cppResponseType.cppRevokeRequest.cppSearchRequest.cppSearchType.cppServerMetrics.cppServerStatus.cppSubscription.cppTokenHintType.cppTokenRequest.cppTokenResponse.cppTokenType.cppUpdateProfile.cppUserInfo.cppUserType.cpp
premake5.lua
63
include/tribufu++/ApiConfiguration.h
Normal file
63
include/tribufu++/ApiConfiguration.h
Normal file
@ -0,0 +1,63 @@
|
||||
/**
|
||||
* Tribufu API
|
||||
* REST API to access Tribufu services.
|
||||
*
|
||||
* The version of the OpenAPI document: 1.1.0
|
||||
* Contact: contact@tribufu.com
|
||||
*
|
||||
* NOTE: This class is auto generated by OpenAPI-Generator 7.12.0.
|
||||
* https://openapi-generator.tech
|
||||
* Do not edit the class manually.
|
||||
*/
|
||||
|
||||
/*
|
||||
* ApiConfiguration.h
|
||||
*
|
||||
* This class represents a single item of a multipart-formdata request.
|
||||
*/
|
||||
|
||||
#ifndef TRIBUFU_API_ApiConfiguration_H_
|
||||
#define TRIBUFU_API_ApiConfiguration_H_
|
||||
|
||||
|
||||
|
||||
#include <cpprest/details/basic_types.h>
|
||||
#include <cpprest/http_client.h>
|
||||
|
||||
#include <map>
|
||||
|
||||
namespace tribufu {
|
||||
namespace api {
|
||||
|
||||
class ApiConfiguration
|
||||
{
|
||||
public:
|
||||
ApiConfiguration();
|
||||
virtual ~ApiConfiguration();
|
||||
|
||||
const web::http::client::http_client_config& getHttpConfig() const;
|
||||
void setHttpConfig( web::http::client::http_client_config& value );
|
||||
|
||||
utility::string_t getBaseUrl() const;
|
||||
void setBaseUrl( const utility::string_t value );
|
||||
|
||||
utility::string_t getUserAgent() const;
|
||||
void setUserAgent( const utility::string_t value );
|
||||
|
||||
std::map<utility::string_t, utility::string_t>& getDefaultHeaders();
|
||||
const std::map<utility::string_t, utility::string_t>& getDefaultHeaders() const;
|
||||
|
||||
utility::string_t getApiKey( const utility::string_t& prefix) const;
|
||||
void setApiKey( const utility::string_t& prefix, const utility::string_t& apiKey );
|
||||
|
||||
protected:
|
||||
utility::string_t m_BaseUrl;
|
||||
std::map<utility::string_t, utility::string_t> m_DefaultHeaders;
|
||||
std::map<utility::string_t, utility::string_t> m_ApiKeys;
|
||||
web::http::client::http_client_config m_HttpConfig;
|
||||
utility::string_t m_UserAgent;
|
||||
};
|
||||
|
||||
}
|
||||
}
|
||||
#endif /* TRIBUFU_API_ApiConfiguration_H_ */
|
Reference in New Issue
Block a user