eiagov-typescript-fetch-client 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.openapi-generator/FILES +73 -0
- package/.openapi-generator/VERSION +1 -0
- package/.openapi-generator-ignore +23 -0
- package/apis/AEOApi.ts +415 -0
- package/apis/COALApi.ts +3645 -0
- package/apis/CRUDIMPORTSApi.ts +322 -0
- package/apis/DBFApi.ts +2260 -0
- package/apis/ELECApi.ts +1180 -0
- package/apis/EMISSApi.ts +640 -0
- package/apis/IEOApi.ts +415 -0
- package/apis/INTLApi.ts +322 -0
- package/apis/NGApi.ts +511 -0
- package/apis/NUCSTATUSApi.ts +910 -0
- package/apis/RTOApi.ts +2260 -0
- package/apis/RootApi.ts +66 -0
- package/apis/SEDSApi.ts +322 -0
- package/apis/SEPApi.ts +1990 -0
- package/apis/STEOApi.ts +322 -0
- package/apis/TOTALApi.ts +322 -0
- package/apis/index.ts +18 -0
- package/docs/AEOApi.md +456 -0
- package/docs/COALApi.md +4847 -0
- package/docs/CRUDIMPORTSApi.md +371 -0
- package/docs/DBFApi.md +2976 -0
- package/docs/DataParams.md +48 -0
- package/docs/DataResponse.md +42 -0
- package/docs/DataResponseContainer.md +38 -0
- package/docs/ELECApi.md +1524 -0
- package/docs/EMISSApi.md +798 -0
- package/docs/Facet.md +38 -0
- package/docs/FacetDetails.md +36 -0
- package/docs/FacetDetailsContainer.md +38 -0
- package/docs/FacetMetaData.md +36 -0
- package/docs/FacetOptionList.md +36 -0
- package/docs/FacetOptionListContainer.md +38 -0
- package/docs/FinalRoute.md +52 -0
- package/docs/FinalRouteResponse.md +36 -0
- package/docs/FinalRouteResponseContainer.md +38 -0
- package/docs/Frequency.md +40 -0
- package/docs/IEOApi.md +456 -0
- package/docs/INTLApi.md +371 -0
- package/docs/NGApi.md +541 -0
- package/docs/NUCSTATUSApi.md +1161 -0
- package/docs/RTOApi.md +2976 -0
- package/docs/RootApi.md +70 -0
- package/docs/RouteRequest.md +36 -0
- package/docs/RouteResponse.md +36 -0
- package/docs/RouteResponseContainer.md +38 -0
- package/docs/Routes.md +40 -0
- package/docs/SEDSApi.md +372 -0
- package/docs/SEPApi.md +2613 -0
- package/docs/STEOApi.md +371 -0
- package/docs/Sort.md +36 -0
- package/docs/TOTALApi.md +371 -0
- package/index.ts +5 -0
- package/models/DataParams.ts +129 -0
- package/models/DataResponse.ts +97 -0
- package/models/DataResponseContainer.ts +96 -0
- package/models/Facet.ts +81 -0
- package/models/FacetDetails.ts +81 -0
- package/models/FacetDetailsContainer.ts +96 -0
- package/models/FacetMetaData.ts +73 -0
- package/models/FacetOptionList.ts +73 -0
- package/models/FacetOptionListContainer.ts +96 -0
- package/models/FinalRoute.ts +152 -0
- package/models/FinalRouteResponse.ts +88 -0
- package/models/FinalRouteResponseContainer.ts +96 -0
- package/models/Frequency.ts +89 -0
- package/models/RouteRequest.ts +73 -0
- package/models/RouteResponse.ts +88 -0
- package/models/RouteResponseContainer.ts +96 -0
- package/models/Routes.ts +89 -0
- package/models/Sort.ts +73 -0
- package/models/index.ts +20 -0
- package/package.json +15 -0
- package/runtime.ts +449 -0
package/docs/IEOApi.md
ADDED
|
@@ -0,0 +1,456 @@
|
|
|
1
|
+
# IEOApi
|
|
2
|
+
|
|
3
|
+
All URIs are relative to *https://api.eia.gov*
|
|
4
|
+
|
|
5
|
+
| Method | HTTP request | Description |
|
|
6
|
+
|------------- | ------------- | -------------|
|
|
7
|
+
| [**eIAAPIControllersDatasetAeoIeoIeoControllerConstruct**](IEOApi.md#eiaapicontrollersdatasetaeoieoieocontrollerconstruct) | **GET** /v2/ieo/{route1} | |
|
|
8
|
+
| [**eIAAPIControllersDatasetAeoIeoIeoControllerGetData**](IEOApi.md#eiaapicontrollersdatasetaeoieoieocontrollergetdata) | **GET** /v2/ieo/{route1}/data | |
|
|
9
|
+
| [**eIAAPIControllersDatasetAeoIeoIeoControllerIeo**](IEOApi.md#eiaapicontrollersdatasetaeoieoieocontrollerieo) | **GET** /v2/ieo | |
|
|
10
|
+
| [**eIAAPIControllersDatasetAeoIeoIeoControllerPostData**](IEOApi.md#eiaapicontrollersdatasetaeoieoieocontrollerpostdata) | **POST** /v2/ieo/{route1}/data | Return IEO Data |
|
|
11
|
+
| [**eIAAPIControllersDatasetAeoIeoIeoControllerRouteFacet**](IEOApi.md#eiaapicontrollersdatasetaeoieoieocontrollerroutefacet) | **GET** /v2/ieo/{route1}/facet | |
|
|
12
|
+
| [**eIAAPIControllersDatasetAeoIeoIeoControllerRouteFacetId**](IEOApi.md#eiaapicontrollersdatasetaeoieoieocontrollerroutefacetid) | **GET** /v2/ieo/{route1}/facet/{facet_id} | |
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
## eIAAPIControllersDatasetAeoIeoIeoControllerConstruct
|
|
17
|
+
|
|
18
|
+
> FinalRouteResponseContainer eIAAPIControllersDatasetAeoIeoIeoControllerConstruct(route1)
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
### Example
|
|
23
|
+
|
|
24
|
+
```ts
|
|
25
|
+
import {
|
|
26
|
+
Configuration,
|
|
27
|
+
IEOApi,
|
|
28
|
+
} from '';
|
|
29
|
+
import type { EIAAPIControllersDatasetAeoIeoIeoControllerConstructRequest } from '';
|
|
30
|
+
|
|
31
|
+
async function example() {
|
|
32
|
+
console.log("🚀 Testing SDK...");
|
|
33
|
+
const config = new Configuration({
|
|
34
|
+
// To configure API key authorization: api_key
|
|
35
|
+
apiKey: "YOUR API KEY",
|
|
36
|
+
});
|
|
37
|
+
const api = new IEOApi(config);
|
|
38
|
+
|
|
39
|
+
const body = {
|
|
40
|
+
// string | First level Sub route
|
|
41
|
+
route1: route1_example,
|
|
42
|
+
} satisfies EIAAPIControllersDatasetAeoIeoIeoControllerConstructRequest;
|
|
43
|
+
|
|
44
|
+
try {
|
|
45
|
+
const data = await api.eIAAPIControllersDatasetAeoIeoIeoControllerConstruct(body);
|
|
46
|
+
console.log(data);
|
|
47
|
+
} catch (error) {
|
|
48
|
+
console.error(error);
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
// Run the test
|
|
53
|
+
example().catch(console.error);
|
|
54
|
+
```
|
|
55
|
+
|
|
56
|
+
### Parameters
|
|
57
|
+
|
|
58
|
+
|
|
59
|
+
| Name | Type | Description | Notes |
|
|
60
|
+
|------------- | ------------- | ------------- | -------------|
|
|
61
|
+
| **route1** | `string` | First level Sub route | [Defaults to `undefined`] |
|
|
62
|
+
|
|
63
|
+
### Return type
|
|
64
|
+
|
|
65
|
+
[**FinalRouteResponseContainer**](FinalRouteResponseContainer.md)
|
|
66
|
+
|
|
67
|
+
### Authorization
|
|
68
|
+
|
|
69
|
+
[api_key](../README.md#api_key)
|
|
70
|
+
|
|
71
|
+
### HTTP request headers
|
|
72
|
+
|
|
73
|
+
- **Content-Type**: Not defined
|
|
74
|
+
- **Accept**: `application/json`
|
|
75
|
+
|
|
76
|
+
|
|
77
|
+
### HTTP response details
|
|
78
|
+
| Status code | Description | Response headers |
|
|
79
|
+
|-------------|-------------|------------------|
|
|
80
|
+
| **200** | List of API data sets | - |
|
|
81
|
+
|
|
82
|
+
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
83
|
+
|
|
84
|
+
|
|
85
|
+
## eIAAPIControllersDatasetAeoIeoIeoControllerGetData
|
|
86
|
+
|
|
87
|
+
> DataResponseContainer eIAAPIControllersDatasetAeoIeoIeoControllerGetData(route1, data, facets, frequency, start, end, sort, length, offset)
|
|
88
|
+
|
|
89
|
+
|
|
90
|
+
|
|
91
|
+
API data with query params
|
|
92
|
+
|
|
93
|
+
### Example
|
|
94
|
+
|
|
95
|
+
```ts
|
|
96
|
+
import {
|
|
97
|
+
Configuration,
|
|
98
|
+
IEOApi,
|
|
99
|
+
} from '';
|
|
100
|
+
import type { EIAAPIControllersDatasetAeoIeoIeoControllerGetDataRequest } from '';
|
|
101
|
+
|
|
102
|
+
async function example() {
|
|
103
|
+
console.log("🚀 Testing SDK...");
|
|
104
|
+
const config = new Configuration({
|
|
105
|
+
// To configure API key authorization: api_key
|
|
106
|
+
apiKey: "YOUR API KEY",
|
|
107
|
+
});
|
|
108
|
+
const api = new IEOApi(config);
|
|
109
|
+
|
|
110
|
+
const body = {
|
|
111
|
+
// string | First level Sub route
|
|
112
|
+
route1: route1_example,
|
|
113
|
+
// Array<string> | Data columns to filter by (optional)
|
|
114
|
+
data: ...,
|
|
115
|
+
// object | Facets to filter by (optional)
|
|
116
|
+
facets: Object,
|
|
117
|
+
// string | Frequency to filter by (optional)
|
|
118
|
+
frequency: frequency_example,
|
|
119
|
+
// string | Start date to filter by (optional)
|
|
120
|
+
start: start_example,
|
|
121
|
+
// string | End date to filter by (optional)
|
|
122
|
+
end: end_example,
|
|
123
|
+
// Sort | How to sort returned data (optional)
|
|
124
|
+
sort: ...,
|
|
125
|
+
// number | Max length of returned data (optional)
|
|
126
|
+
length: 56,
|
|
127
|
+
// number | Offset of returned data (optional)
|
|
128
|
+
offset: 56,
|
|
129
|
+
} satisfies EIAAPIControllersDatasetAeoIeoIeoControllerGetDataRequest;
|
|
130
|
+
|
|
131
|
+
try {
|
|
132
|
+
const data = await api.eIAAPIControllersDatasetAeoIeoIeoControllerGetData(body);
|
|
133
|
+
console.log(data);
|
|
134
|
+
} catch (error) {
|
|
135
|
+
console.error(error);
|
|
136
|
+
}
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
// Run the test
|
|
140
|
+
example().catch(console.error);
|
|
141
|
+
```
|
|
142
|
+
|
|
143
|
+
### Parameters
|
|
144
|
+
|
|
145
|
+
|
|
146
|
+
| Name | Type | Description | Notes |
|
|
147
|
+
|------------- | ------------- | ------------- | -------------|
|
|
148
|
+
| **route1** | `string` | First level Sub route | [Defaults to `undefined`] |
|
|
149
|
+
| **data** | `Array<string>` | Data columns to filter by | [Optional] |
|
|
150
|
+
| **facets** | `object` | Facets to filter by | [Optional] [Defaults to `undefined`] |
|
|
151
|
+
| **frequency** | `string` | Frequency to filter by | [Optional] [Defaults to `undefined`] |
|
|
152
|
+
| **start** | `string` | Start date to filter by | [Optional] [Defaults to `undefined`] |
|
|
153
|
+
| **end** | `string` | End date to filter by | [Optional] [Defaults to `undefined`] |
|
|
154
|
+
| **sort** | [](.md) | How to sort returned data | [Optional] [Defaults to `undefined`] |
|
|
155
|
+
| **length** | `number` | Max length of returned data | [Optional] [Defaults to `undefined`] |
|
|
156
|
+
| **offset** | `number` | Offset of returned data | [Optional] [Defaults to `undefined`] |
|
|
157
|
+
|
|
158
|
+
### Return type
|
|
159
|
+
|
|
160
|
+
[**DataResponseContainer**](DataResponseContainer.md)
|
|
161
|
+
|
|
162
|
+
### Authorization
|
|
163
|
+
|
|
164
|
+
[api_key](../README.md#api_key)
|
|
165
|
+
|
|
166
|
+
### HTTP request headers
|
|
167
|
+
|
|
168
|
+
- **Content-Type**: Not defined
|
|
169
|
+
- **Accept**: `application/json`
|
|
170
|
+
|
|
171
|
+
|
|
172
|
+
### HTTP response details
|
|
173
|
+
| Status code | Description | Response headers |
|
|
174
|
+
|-------------|-------------|------------------|
|
|
175
|
+
| **400** | Invalid input | - |
|
|
176
|
+
| **200** | API Data | - |
|
|
177
|
+
|
|
178
|
+
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
179
|
+
|
|
180
|
+
|
|
181
|
+
## eIAAPIControllersDatasetAeoIeoIeoControllerIeo
|
|
182
|
+
|
|
183
|
+
> RouteResponseContainer eIAAPIControllersDatasetAeoIeoIeoControllerIeo()
|
|
184
|
+
|
|
185
|
+
|
|
186
|
+
|
|
187
|
+
### Example
|
|
188
|
+
|
|
189
|
+
```ts
|
|
190
|
+
import {
|
|
191
|
+
Configuration,
|
|
192
|
+
IEOApi,
|
|
193
|
+
} from '';
|
|
194
|
+
import type { EIAAPIControllersDatasetAeoIeoIeoControllerIeoRequest } from '';
|
|
195
|
+
|
|
196
|
+
async function example() {
|
|
197
|
+
console.log("🚀 Testing SDK...");
|
|
198
|
+
const config = new Configuration({
|
|
199
|
+
// To configure API key authorization: api_key
|
|
200
|
+
apiKey: "YOUR API KEY",
|
|
201
|
+
});
|
|
202
|
+
const api = new IEOApi(config);
|
|
203
|
+
|
|
204
|
+
try {
|
|
205
|
+
const data = await api.eIAAPIControllersDatasetAeoIeoIeoControllerIeo();
|
|
206
|
+
console.log(data);
|
|
207
|
+
} catch (error) {
|
|
208
|
+
console.error(error);
|
|
209
|
+
}
|
|
210
|
+
}
|
|
211
|
+
|
|
212
|
+
// Run the test
|
|
213
|
+
example().catch(console.error);
|
|
214
|
+
```
|
|
215
|
+
|
|
216
|
+
### Parameters
|
|
217
|
+
|
|
218
|
+
This endpoint does not need any parameter.
|
|
219
|
+
|
|
220
|
+
### Return type
|
|
221
|
+
|
|
222
|
+
[**RouteResponseContainer**](RouteResponseContainer.md)
|
|
223
|
+
|
|
224
|
+
### Authorization
|
|
225
|
+
|
|
226
|
+
[api_key](../README.md#api_key)
|
|
227
|
+
|
|
228
|
+
### HTTP request headers
|
|
229
|
+
|
|
230
|
+
- **Content-Type**: Not defined
|
|
231
|
+
- **Accept**: `application/json`
|
|
232
|
+
|
|
233
|
+
|
|
234
|
+
### HTTP response details
|
|
235
|
+
| Status code | Description | Response headers |
|
|
236
|
+
|-------------|-------------|------------------|
|
|
237
|
+
| **200** | List of API data sets | - |
|
|
238
|
+
|
|
239
|
+
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
240
|
+
|
|
241
|
+
|
|
242
|
+
## eIAAPIControllersDatasetAeoIeoIeoControllerPostData
|
|
243
|
+
|
|
244
|
+
> DataResponseContainer eIAAPIControllersDatasetAeoIeoIeoControllerPostData(route1, dataParams)
|
|
245
|
+
|
|
246
|
+
Return IEO Data
|
|
247
|
+
|
|
248
|
+
### Example
|
|
249
|
+
|
|
250
|
+
```ts
|
|
251
|
+
import {
|
|
252
|
+
Configuration,
|
|
253
|
+
IEOApi,
|
|
254
|
+
} from '';
|
|
255
|
+
import type { EIAAPIControllersDatasetAeoIeoIeoControllerPostDataRequest } from '';
|
|
256
|
+
|
|
257
|
+
async function example() {
|
|
258
|
+
console.log("🚀 Testing SDK...");
|
|
259
|
+
const config = new Configuration({
|
|
260
|
+
// To configure API key authorization: api_key
|
|
261
|
+
apiKey: "YOUR API KEY",
|
|
262
|
+
});
|
|
263
|
+
const api = new IEOApi(config);
|
|
264
|
+
|
|
265
|
+
const body = {
|
|
266
|
+
// string | First level Sub route
|
|
267
|
+
route1: route1_example,
|
|
268
|
+
// DataParams | Parameters for data call
|
|
269
|
+
dataParams: ...,
|
|
270
|
+
} satisfies EIAAPIControllersDatasetAeoIeoIeoControllerPostDataRequest;
|
|
271
|
+
|
|
272
|
+
try {
|
|
273
|
+
const data = await api.eIAAPIControllersDatasetAeoIeoIeoControllerPostData(body);
|
|
274
|
+
console.log(data);
|
|
275
|
+
} catch (error) {
|
|
276
|
+
console.error(error);
|
|
277
|
+
}
|
|
278
|
+
}
|
|
279
|
+
|
|
280
|
+
// Run the test
|
|
281
|
+
example().catch(console.error);
|
|
282
|
+
```
|
|
283
|
+
|
|
284
|
+
### Parameters
|
|
285
|
+
|
|
286
|
+
|
|
287
|
+
| Name | Type | Description | Notes |
|
|
288
|
+
|------------- | ------------- | ------------- | -------------|
|
|
289
|
+
| **route1** | `string` | First level Sub route | [Defaults to `undefined`] |
|
|
290
|
+
| **dataParams** | [DataParams](DataParams.md) | Parameters for data call | |
|
|
291
|
+
|
|
292
|
+
### Return type
|
|
293
|
+
|
|
294
|
+
[**DataResponseContainer**](DataResponseContainer.md)
|
|
295
|
+
|
|
296
|
+
### Authorization
|
|
297
|
+
|
|
298
|
+
[api_key](../README.md#api_key)
|
|
299
|
+
|
|
300
|
+
### HTTP request headers
|
|
301
|
+
|
|
302
|
+
- **Content-Type**: `application/json`
|
|
303
|
+
- **Accept**: `application/json`
|
|
304
|
+
|
|
305
|
+
|
|
306
|
+
### HTTP response details
|
|
307
|
+
| Status code | Description | Response headers |
|
|
308
|
+
|-------------|-------------|------------------|
|
|
309
|
+
| **400** | Invalid input | - |
|
|
310
|
+
| **200** | API Data | - |
|
|
311
|
+
|
|
312
|
+
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
313
|
+
|
|
314
|
+
|
|
315
|
+
## eIAAPIControllersDatasetAeoIeoIeoControllerRouteFacet
|
|
316
|
+
|
|
317
|
+
> FacetOptionListContainer eIAAPIControllersDatasetAeoIeoIeoControllerRouteFacet(route1)
|
|
318
|
+
|
|
319
|
+
|
|
320
|
+
|
|
321
|
+
### Example
|
|
322
|
+
|
|
323
|
+
```ts
|
|
324
|
+
import {
|
|
325
|
+
Configuration,
|
|
326
|
+
IEOApi,
|
|
327
|
+
} from '';
|
|
328
|
+
import type { EIAAPIControllersDatasetAeoIeoIeoControllerRouteFacetRequest } from '';
|
|
329
|
+
|
|
330
|
+
async function example() {
|
|
331
|
+
console.log("🚀 Testing SDK...");
|
|
332
|
+
const config = new Configuration({
|
|
333
|
+
// To configure API key authorization: api_key
|
|
334
|
+
apiKey: "YOUR API KEY",
|
|
335
|
+
});
|
|
336
|
+
const api = new IEOApi(config);
|
|
337
|
+
|
|
338
|
+
const body = {
|
|
339
|
+
// string | First level Sub route
|
|
340
|
+
route1: route1_example,
|
|
341
|
+
} satisfies EIAAPIControllersDatasetAeoIeoIeoControllerRouteFacetRequest;
|
|
342
|
+
|
|
343
|
+
try {
|
|
344
|
+
const data = await api.eIAAPIControllersDatasetAeoIeoIeoControllerRouteFacet(body);
|
|
345
|
+
console.log(data);
|
|
346
|
+
} catch (error) {
|
|
347
|
+
console.error(error);
|
|
348
|
+
}
|
|
349
|
+
}
|
|
350
|
+
|
|
351
|
+
// Run the test
|
|
352
|
+
example().catch(console.error);
|
|
353
|
+
```
|
|
354
|
+
|
|
355
|
+
### Parameters
|
|
356
|
+
|
|
357
|
+
|
|
358
|
+
| Name | Type | Description | Notes |
|
|
359
|
+
|------------- | ------------- | ------------- | -------------|
|
|
360
|
+
| **route1** | `string` | First level Sub route | [Defaults to `undefined`] |
|
|
361
|
+
|
|
362
|
+
### Return type
|
|
363
|
+
|
|
364
|
+
[**FacetOptionListContainer**](FacetOptionListContainer.md)
|
|
365
|
+
|
|
366
|
+
### Authorization
|
|
367
|
+
|
|
368
|
+
[api_key](../README.md#api_key)
|
|
369
|
+
|
|
370
|
+
### HTTP request headers
|
|
371
|
+
|
|
372
|
+
- **Content-Type**: Not defined
|
|
373
|
+
- **Accept**: `application/json`
|
|
374
|
+
|
|
375
|
+
|
|
376
|
+
### HTTP response details
|
|
377
|
+
| Status code | Description | Response headers |
|
|
378
|
+
|-------------|-------------|------------------|
|
|
379
|
+
| **400** | Invalid input | - |
|
|
380
|
+
| **200** | List of facet options | - |
|
|
381
|
+
|
|
382
|
+
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
383
|
+
|
|
384
|
+
|
|
385
|
+
## eIAAPIControllersDatasetAeoIeoIeoControllerRouteFacetId
|
|
386
|
+
|
|
387
|
+
> FacetDetailsContainer eIAAPIControllersDatasetAeoIeoIeoControllerRouteFacetId(route1, facetId)
|
|
388
|
+
|
|
389
|
+
|
|
390
|
+
|
|
391
|
+
### Example
|
|
392
|
+
|
|
393
|
+
```ts
|
|
394
|
+
import {
|
|
395
|
+
Configuration,
|
|
396
|
+
IEOApi,
|
|
397
|
+
} from '';
|
|
398
|
+
import type { EIAAPIControllersDatasetAeoIeoIeoControllerRouteFacetIdRequest } from '';
|
|
399
|
+
|
|
400
|
+
async function example() {
|
|
401
|
+
console.log("🚀 Testing SDK...");
|
|
402
|
+
const config = new Configuration({
|
|
403
|
+
// To configure API key authorization: api_key
|
|
404
|
+
apiKey: "YOUR API KEY",
|
|
405
|
+
});
|
|
406
|
+
const api = new IEOApi(config);
|
|
407
|
+
|
|
408
|
+
const body = {
|
|
409
|
+
// string | First level Sub route
|
|
410
|
+
route1: route1_example,
|
|
411
|
+
// string | Facet ID
|
|
412
|
+
facetId: facetId_example,
|
|
413
|
+
} satisfies EIAAPIControllersDatasetAeoIeoIeoControllerRouteFacetIdRequest;
|
|
414
|
+
|
|
415
|
+
try {
|
|
416
|
+
const data = await api.eIAAPIControllersDatasetAeoIeoIeoControllerRouteFacetId(body);
|
|
417
|
+
console.log(data);
|
|
418
|
+
} catch (error) {
|
|
419
|
+
console.error(error);
|
|
420
|
+
}
|
|
421
|
+
}
|
|
422
|
+
|
|
423
|
+
// Run the test
|
|
424
|
+
example().catch(console.error);
|
|
425
|
+
```
|
|
426
|
+
|
|
427
|
+
### Parameters
|
|
428
|
+
|
|
429
|
+
|
|
430
|
+
| Name | Type | Description | Notes |
|
|
431
|
+
|------------- | ------------- | ------------- | -------------|
|
|
432
|
+
| **route1** | `string` | First level Sub route | [Defaults to `undefined`] |
|
|
433
|
+
| **facetId** | `string` | Facet ID | [Defaults to `undefined`] |
|
|
434
|
+
|
|
435
|
+
### Return type
|
|
436
|
+
|
|
437
|
+
[**FacetDetailsContainer**](FacetDetailsContainer.md)
|
|
438
|
+
|
|
439
|
+
### Authorization
|
|
440
|
+
|
|
441
|
+
[api_key](../README.md#api_key)
|
|
442
|
+
|
|
443
|
+
### HTTP request headers
|
|
444
|
+
|
|
445
|
+
- **Content-Type**: Not defined
|
|
446
|
+
- **Accept**: `application/json`
|
|
447
|
+
|
|
448
|
+
|
|
449
|
+
### HTTP response details
|
|
450
|
+
| Status code | Description | Response headers |
|
|
451
|
+
|-------------|-------------|------------------|
|
|
452
|
+
| **400** | Invalid input | - |
|
|
453
|
+
| **200** | Facet details | - |
|
|
454
|
+
|
|
455
|
+
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
456
|
+
|