Skip to content

Commit e30ab2c

Browse files
committed
Auto-generate SDK for CoinAPI Indexes API REST Historical
1 parent c19e697 commit e30ab2c

File tree

160 files changed

+1035
-1884
lines changed

Some content is hidden

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

160 files changed

+1035
-1884
lines changed

coinapi/indexes-api-rest/sdk/android/README.md

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -123,10 +123,7 @@ Authentication schemes defined for the API:
123123

124124
### JWT
125125

126-
- **Type**: API key
127-
128-
- **API key parameter name**: Authorization
129-
- **Location**: HTTP header
126+
- **Type**: HTTP Bearer Token authentication (JWT)
130127

131128

132129
## Recommendation

coinapi/indexes-api-rest/sdk/android/src/main/java/org/openapitools/client/ApiInvoker.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -204,7 +204,6 @@ public static void initializeInstance(Cache cache, Network network, int threadPo
204204
// Setup authentications (key: authentication name, value: authentication).
205205
INSTANCE.authentications = new HashMap<String, Authentication>();
206206
INSTANCE.authentications.put("APIKey", new ApiKeyAuth("header", "Authorization"));
207-
INSTANCE.authentications.put("JWT", new ApiKeyAuth("header", "Authorization"));
208207
// Prevent the authentications from being modified.
209208
INSTANCE.authentications = Collections.unmodifiableMap(INSTANCE.authentications);
210209
}

coinapi/indexes-api-rest/sdk/apex/README.md

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -105,9 +105,7 @@ Authentication schemes defined for the API:
105105

106106
### JWT
107107

108-
- **Type**: API key
109-
- **API key parameter name**: Authorization
110-
- **Location**: HTTP header
108+
- **Type**: HTTP Bearer Token authentication (JWT)
111109

112110

113111
## Author

coinapi/indexes-api-rest/sdk/apex/force-app/main/default/classes/OASClient.cls

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,5 @@ public class OASClient extends OAS.ApiClient {
33
basePath = 'https://rest-api.indexes.coinapi.io';
44
calloutName = 'CoinAPI_Indexes_REST_API';
55
authentications.put('APIKey', new OAS.ApiKeyHeaderAuth('Authorization'));
6-
authentications.put('JWT', new OAS.ApiKeyHeaderAuth('Authorization'));
76
}
87
}

coinapi/indexes-api-rest/sdk/apex/force-app/main/default/classes/OASIndexesApiTest.cls

Lines changed: 0 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,6 @@ private class OASIndexesApiTest {
3535
System.assertEquals(expectedResponse, response);
3636
client = new OASClient();
3737
api = new OASIndexesApi(client);
38-
((OAS.ApiKeyAuth)client.getAuthentication('JWT')).setApiKey('foo-bar-api-key');
39-
4038

4139
js = JSON.serialize(new List<OASIndexesIndexDefinitionInputData>{OASIndexesIndexDefinitionInputData.getExample()});
4240
res.setHeader('Content-Type', 'application/json');
@@ -86,8 +84,6 @@ private class OASIndexesApiTest {
8684
System.assertEquals(expectedResponse, response);
8785
client = new OASClient();
8886
api = new OASIndexesApi(client);
89-
((OAS.ApiKeyAuth)client.getAuthentication('JWT')).setApiKey('foo-bar-api-key');
90-
9187

9288
js = JSON.serialize(new List<OASIndexesIndexDefinitionSnapshotEnt>{OASIndexesIndexDefinitionSnapshotEnt.getExample()});
9389
res.setHeader('Content-Type', 'application/json');
@@ -128,8 +124,6 @@ private class OASIndexesApiTest {
128124
System.assertEquals(expectedResponse, response);
129125
client = new OASClient();
130126
api = new OASIndexesApi(client);
131-
((OAS.ApiKeyAuth)client.getAuthentication('JWT')).setApiKey('foo-bar-api-key');
132-
133127

134128
js = JSON.serialize(new List<OASIndexesIndexMultiAssetWeight>{OASIndexesIndexMultiAssetWeight.getExample()});
135129
res.setHeader('Content-Type', 'application/json');
@@ -174,8 +168,6 @@ private class OASIndexesApiTest {
174168
System.assertEquals(expectedResponse, response);
175169
client = new OASClient();
176170
api = new OASIndexesApi(client);
177-
((OAS.ApiKeyAuth)client.getAuthentication('JWT')).setApiKey('foo-bar-api-key');
178-
179171

180172
js = JSON.serialize(new List<OASIndexesIndexMultiAssetWeight>{OASIndexesIndexMultiAssetWeight.getExample()});
181173
res.setHeader('Content-Type', 'application/json');
@@ -216,8 +208,6 @@ private class OASIndexesApiTest {
216208
System.assertEquals(expectedResponse, response);
217209
client = new OASClient();
218210
api = new OASIndexesApi(client);
219-
((OAS.ApiKeyAuth)client.getAuthentication('JWT')).setApiKey('foo-bar-api-key');
220-
221211

222212
js = JSON.serialize(new List<OASIndexesIndexIdentifier>{OASIndexesIndexIdentifier.getExample()});
223213
res.setHeader('Content-Type', 'application/json');
@@ -262,8 +252,6 @@ private class OASIndexesApiTest {
262252
System.assertEquals(expectedResponse, response);
263253
client = new OASClient();
264254
api = new OASIndexesApi(client);
265-
((OAS.ApiKeyAuth)client.getAuthentication('JWT')).setApiKey('foo-bar-api-key');
266-
267255

268256
js = JSON.serialize(new List<OASIndexesIndexDefinitionSnapshotEnt>{OASIndexesIndexDefinitionSnapshotEnt.getExample()});
269257
res.setHeader('Content-Type', 'application/json');
@@ -309,8 +297,6 @@ private class OASIndexesApiTest {
309297
System.assertEquals(expectedResponse, response);
310298
client = new OASClient();
311299
api = new OASIndexesApi(client);
312-
((OAS.ApiKeyAuth)client.getAuthentication('JWT')).setApiKey('foo-bar-api-key');
313-
314300

315301
js = JSON.serialize(new List<OASIndexesIndexDefinitionSnapshotEnt>{OASIndexesIndexDefinitionSnapshotEnt.getExample()});
316302
res.setHeader('Content-Type', 'application/json');
@@ -379,8 +365,6 @@ private class OASIndexesApiTest {
379365
System.assertEquals(expectedResponse, response);
380366
client = new OASClient();
381367
api = new OASIndexesApi(client);
382-
((OAS.ApiKeyAuth)client.getAuthentication('JWT')).setApiKey('foo-bar-api-key');
383-
384368

385369
js = JSON.serialize(OASIndexesIndexValue.getExample());
386370
res.setHeader('Content-Type', 'application/json');
@@ -452,8 +436,6 @@ private class OASIndexesApiTest {
452436
System.assertEquals(expectedResponse, response);
453437
client = new OASClient();
454438
api = new OASIndexesApi(client);
455-
((OAS.ApiKeyAuth)client.getAuthentication('JWT')).setApiKey('foo-bar-api-key');
456-
457439

458440
js = JSON.serialize(new List<OASIndexesIndexValue>{OASIndexesIndexValue.getExample()});
459441
res.setHeader('Content-Type', 'application/json');
@@ -502,8 +484,6 @@ private class OASIndexesApiTest {
502484
System.assertEquals(expectedResponse, response);
503485
client = new OASClient();
504486
api = new OASIndexesApi(client);
505-
((OAS.ApiKeyAuth)client.getAuthentication('JWT')).setApiKey('foo-bar-api-key');
506-
507487

508488
js = JSON.serialize(new List<OASIndexesIndexTimeseriesItem>{OASIndexesIndexTimeseriesItem.getExample()});
509489
res.setHeader('Content-Type', 'application/json');

coinapi/indexes-api-rest/sdk/apex/force-app/main/default/classes/OASMetadataApiTest.cls

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,6 @@ private class OASMetadataApiTest {
3535
System.assertEquals(expectedResponse, response);
3636
client = new OASClient();
3737
api = new OASMetadataApi(client);
38-
((OAS.ApiKeyAuth)client.getAuthentication('JWT')).setApiKey('foo-bar-api-key');
39-
4038

4139
js = JSON.serialize(new List<OASMetadataExchange>{OASMetadataExchange.getExample()});
4240
res.setHeader('Content-Type', 'application/json');
@@ -81,8 +79,6 @@ private class OASMetadataApiTest {
8179
System.assertEquals(expectedResponse, response);
8280
client = new OASClient();
8381
api = new OASMetadataApi(client);
84-
((OAS.ApiKeyAuth)client.getAuthentication('JWT')).setApiKey('foo-bar-api-key');
85-
8682

8783
js = JSON.serialize(new List<OASMetadataExchange>{OASMetadataExchange.getExample()});
8884
res.setHeader('Content-Type', 'application/json');

coinapi/indexes-api-rest/sdk/apex/force-app/main/default/classes/OASPeriodsApiTest.cls

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,6 @@ private class OASPeriodsApiTest {
3131
System.assertEquals(expectedResponse, response);
3232
client = new OASClient();
3333
api = new OASPeriodsApi(client);
34-
((OAS.ApiKeyAuth)client.getAuthentication('JWT')).setApiKey('foo-bar-api-key');
35-
3634

3735
js = JSON.serialize(new List<OASMetadataTimeseriesPeriod>{OASMetadataTimeseriesPeriod.getExample()});
3836
res.setHeader('Content-Type', 'application/json');

coinapi/indexes-api-rest/sdk/bash/Dockerfile

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,6 @@ For convenience, you can export the following environment variables:\n\
3838
\n\
3939
4040
41-
4241
\n\
4342
$(tput setaf 7)Basic usage:$(tput sgr0)\n\
4443
\n\

coinapi/indexes-api-rest/sdk/bash/README.md

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,5 @@ Class | Method | HTTP request | Description
144144
## JWT
145145

146146

147-
- **Type**: API key
148-
- **API key parameter name**: Authorization
149-
- **Location**: HTTP header
147+
- **Type**: HTTP Bearer Token authentication (JWT)
150148

0 commit comments

Comments
 (0)