Skip to content

Commit 04ee7b0

Browse files
committed
Auto-generate SDK for CoinAPI Exchange Rates API REST Realtime
1 parent 4b12c9b commit 04ee7b0

File tree

102 files changed

+295
-295
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

102 files changed

+295
-295
lines changed

coinapi/exchange-rates-api-rest-realtime/sdk/android/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ Authentication schemes defined for the API:
108108

109109
- **Type**: API key
110110

111-
- **API key parameter name**: X-CoinAPI-Key
111+
- **API key parameter name**: Authorization
112112
- **Location**: HTTP header
113113

114114

coinapi/exchange-rates-api-rest-realtime/sdk/android/src/main/java/org/openapitools/client/ApiInvoker.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -203,7 +203,7 @@ public static void initializeInstance(Cache cache, Network network, int threadPo
203203

204204
// Setup authentications (key: authentication name, value: authentication).
205205
INSTANCE.authentications = new HashMap<String, Authentication>();
206-
INSTANCE.authentications.put("APIKey", new ApiKeyAuth("header", "X-CoinAPI-Key"));
206+
INSTANCE.authentications.put("APIKey", new ApiKeyAuth("header", "Authorization"));
207207
// Prevent the authentications from being modified.
208208
INSTANCE.authentications = Collections.unmodifiableMap(INSTANCE.authentications);
209209
}

coinapi/exchange-rates-api-rest-realtime/sdk/apex/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ Authentication schemes defined for the API:
9090
### APIKey
9191

9292
- **Type**: API key
93-
- **API key parameter name**: X-CoinAPI-Key
93+
- **API key parameter name**: Authorization
9494
- **Location**: HTTP header
9595

9696

coinapi/exchange-rates-api-rest-realtime/sdk/apex/force-app/main/default/classes/OASClient.cls

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,6 @@ public class OASClient extends OAS.ApiClient {
22
public OASClient() {
33
basePath = 'https://api-realtime.exrates.coinapi.io';
44
calloutName = 'Exchange_Rates_Realtime_REST_API';
5-
authentications.put('APIKey', new OAS.ApiKeyHeaderAuth('X-CoinAPI-Key'));
5+
authentications.put('APIKey', new OAS.ApiKeyHeaderAuth('Authorization'));
66
}
77
}

coinapi/exchange-rates-api-rest-realtime/sdk/bash/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,6 +127,6 @@ Class | Method | HTTP request | Description
127127

128128

129129
- **Type**: API key
130-
- **API key parameter name**: X-CoinAPI-Key
130+
- **API key parameter name**: Authorization
131131
- **Location**: HTTP header
132132

coinapi/exchange-rates-api-rest-realtime/sdk/bash/client.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -260,7 +260,7 @@ header_arguments_to_curl() {
260260
local headers_curl=""
261261
local api_key_header=""
262262
local api_key_header_in_cli=""
263-
api_key_header="X-CoinAPI-Key"
263+
api_key_header="Authorization"
264264

265265
for key in "${!header_arguments[@]}"; do
266266
headers_curl+="-H \"${key}: ${header_arguments[${key}]}\" "
@@ -535,7 +535,7 @@ ${BOLD}${WHITE}Usage${OFF}
535535
EOF
536536
echo -e "${BOLD}${WHITE}Authentication methods${OFF}"
537537
echo -e ""
538-
echo -e " - ${BLUE}Api-key${OFF} - add '${RED}X-CoinAPI-Key:<api-key>${OFF}' after ${YELLOW}<operation>${OFF}"
538+
echo -e " - ${BLUE}Api-key${OFF} - add '${RED}Authorization:<api-key>${OFF}' after ${YELLOW}<operation>${OFF}"
539539

540540
echo ""
541541
echo -e "${BOLD}${WHITE}Operations (grouped by tags)${OFF}"
@@ -1050,7 +1050,7 @@ case $key in
10501050
# If the header key is the same as the api_key expected by API in the
10511051
# header, override the ${apikey_auth_credential} variable
10521052
#
1053-
if [[ $header_name == "X-CoinAPI-Key" ]]; then
1053+
if [[ $header_name == "Authorization" ]]; then
10541054
apikey_auth_credential=$header_value
10551055
fi
10561056
header_arguments[$header_name]=$header_value

coinapi/exchange-rates-api-rest-realtime/sdk/c/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ Authentication schemes defined for the API:
9191

9292
- **Type**: API key
9393

94-
- **API key parameter name**: X-CoinAPI-Key
94+
- **API key parameter name**: Authorization
9595
- **Location**: HTTP header
9696

9797

coinapi/exchange-rates-api-rest-realtime/sdk/clojure/src/exchange_rates_realtime_rest_api/core.clj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
(java.text SimpleDateFormat)))
99

1010
(def auth-definitions
11-
{"APIKey" {:type :api-key :in :header :param-name "X-CoinAPI-Key"}})
11+
{"APIKey" {:type :api-key :in :header :param-name "Authorization"}})
1212

1313
(def default-api-context
1414
"Default API context."

coinapi/exchange-rates-api-rest-realtime/sdk/cpp-restsdk/src/api/ExchangeRatesApi.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -107,10 +107,10 @@ pplx::task<std::shared_ptr<V1_ExchangeRate>> ExchangeRatesApi::get_specific_rate
107107

108108
// authentication (APIKey) required
109109
{
110-
utility::string_t localVarApiKey = localVarApiConfiguration->getApiKey(utility::conversions::to_string_t("X-CoinAPI-Key"));
110+
utility::string_t localVarApiKey = localVarApiConfiguration->getApiKey(utility::conversions::to_string_t("Authorization"));
111111
if ( localVarApiKey.size() > 0 )
112112
{
113-
localVarHeaderParams[utility::conversions::to_string_t("X-CoinAPI-Key")] = localVarApiKey;
113+
localVarHeaderParams[utility::conversions::to_string_t("Authorization")] = localVarApiKey;
114114
}
115115
}
116116

@@ -249,10 +249,10 @@ pplx::task<std::shared_ptr<V1_ExchangeRates>> ExchangeRatesApi::v1ExchangerateAs
249249

250250
// authentication (APIKey) required
251251
{
252-
utility::string_t localVarApiKey = localVarApiConfiguration->getApiKey(utility::conversions::to_string_t("X-CoinAPI-Key"));
252+
utility::string_t localVarApiKey = localVarApiConfiguration->getApiKey(utility::conversions::to_string_t("Authorization"));
253253
if ( localVarApiKey.size() > 0 )
254254
{
255-
localVarHeaderParams[utility::conversions::to_string_t("X-CoinAPI-Key")] = localVarApiKey;
255+
localVarHeaderParams[utility::conversions::to_string_t("Authorization")] = localVarApiKey;
256256
}
257257
}
258258

coinapi/exchange-rates-api-rest-realtime/sdk/cpp-restsdk/src/api/MetadataApi.cpp

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -106,10 +106,10 @@ pplx::task<std::vector<std::shared_ptr<V1_Asset>>> MetadataApi::v1AssetsAssetIdG
106106

107107
// authentication (APIKey) required
108108
{
109-
utility::string_t localVarApiKey = localVarApiConfiguration->getApiKey(utility::conversions::to_string_t("X-CoinAPI-Key"));
109+
utility::string_t localVarApiKey = localVarApiConfiguration->getApiKey(utility::conversions::to_string_t("Authorization"));
110110
if ( localVarApiKey.size() > 0 )
111111
{
112-
localVarHeaderParams[utility::conversions::to_string_t("X-CoinAPI-Key")] = localVarApiKey;
112+
localVarHeaderParams[utility::conversions::to_string_t("Authorization")] = localVarApiKey;
113113
}
114114
}
115115

@@ -247,10 +247,10 @@ pplx::task<std::vector<std::shared_ptr<V1_Asset>>> MetadataApi::v1AssetsGet(boos
247247

248248
// authentication (APIKey) required
249249
{
250-
utility::string_t localVarApiKey = localVarApiConfiguration->getApiKey(utility::conversions::to_string_t("X-CoinAPI-Key"));
250+
utility::string_t localVarApiKey = localVarApiConfiguration->getApiKey(utility::conversions::to_string_t("Authorization"));
251251
if ( localVarApiKey.size() > 0 )
252252
{
253-
localVarHeaderParams[utility::conversions::to_string_t("X-CoinAPI-Key")] = localVarApiKey;
253+
localVarHeaderParams[utility::conversions::to_string_t("Authorization")] = localVarApiKey;
254254
}
255255
}
256256

@@ -385,10 +385,10 @@ pplx::task<std::vector<std::shared_ptr<V1_Icon>>> MetadataApi::v1AssetsIconsSize
385385

386386
// authentication (APIKey) required
387387
{
388-
utility::string_t localVarApiKey = localVarApiConfiguration->getApiKey(utility::conversions::to_string_t("X-CoinAPI-Key"));
388+
utility::string_t localVarApiKey = localVarApiConfiguration->getApiKey(utility::conversions::to_string_t("Authorization"));
389389
if ( localVarApiKey.size() > 0 )
390390
{
391-
localVarHeaderParams[utility::conversions::to_string_t("X-CoinAPI-Key")] = localVarApiKey;
391+
localVarHeaderParams[utility::conversions::to_string_t("Authorization")] = localVarApiKey;
392392
}
393393
}
394394

0 commit comments

Comments
 (0)