All URIs are relative to http://localhost
Method | HTTP request | Description |
---|---|---|
dataSourcesCountDataSourcesAsync | GET /api/data/v1/DataSources/{subscriptionId}/count | Returns a number of data sources in subscription |
dataSourcesCreateDataSource | POST /api/data/v1/DataSources | Create new data source |
dataSourcesDeleteDataSource | DELETE /api/data/v1/DataSources/{id} | Delete data source by id |
dataSourcesFetchData | GET /api/data/v1/DataSources/{id}/fetch | This should connect to a database and set data structure |
dataSourcesGetAvailableDataSources | GET /api/data/v1/DataSources | Returns all of the data sources, that current user have permission for in a subscription <br /> The method will return minimal infomration about the datasources: <br /> id, name, editedTime, status. |
dataSourcesGetDataSource | GET /api/data/v1/DataSources/{id} | Get data source by id |
dataSourcesGetParameterTypes | GET /api/data/v1/DataSources/parameterTypes/{dataSourceType} | Get data source parameter DataType's |
dataSourcesGetPermissions | GET /api/data/v1/DataSources/{id}/permissions | Get all Data source permissions |
dataSourcesRenameDataSource | PUT /api/data/v1/DataSources/{id}/rename | Rename data source by id |
dataSourcesUpdateConnectionString | PUT /api/data/v1/DataSources/{id}/connectionString | Update data source's connection string by id |
dataSourcesUpdatePermissions | POST /api/data/v1/DataSources/{id}/permissions | Update permissions |
dataSourcesUpdateSelectCommands | PUT /api/data/v1/DataSources/{id}/selectCommands | Update data source's select commands by id |
dataSourcesUpdateSubscriptionDataSource | PUT /api/data/v1/DataSources/{id}/updateSubscription | Update data source's subscription |
Number dataSourcesCountDataSourcesAsync(subscriptionId)
Returns a number of data sources in subscription
import FastreportCloudSdk from 'fastreport-cloud-sdk';
let defaultClient = FastreportCloudSdk.ApiClient.instance;
// Configure HTTP basic authorization: ApiKey
let ApiKey = defaultClient.authentications['ApiKey'];
ApiKey.username = 'YOUR USERNAME';
ApiKey.password = 'YOUR PASSWORD';
// Configure Bearer (JWT) access token for authorization: JWT
let JWT = defaultClient.authentications['JWT'];
JWT.accessToken = "YOUR ACCESS TOKEN"
let apiInstance = new FastreportCloudSdk.DataSourcesApi();
let subscriptionId = "subscriptionId_example"; // String | subscripiton id
apiInstance.dataSourcesCountDataSourcesAsync(subscriptionId).then((data) => {
console.log('API called successfully. Returned data: ' + data);
}, (error) => {
console.error(error);
});
Name | Type | Description | Notes |
---|---|---|---|
subscriptionId | String | subscripiton id |
Number
- Content-Type: Not defined
- Accept: application/json
DataSourceVM dataSourcesCreateDataSource(opts)
Create new data source
import FastreportCloudSdk from 'fastreport-cloud-sdk';
let defaultClient = FastreportCloudSdk.ApiClient.instance;
// Configure HTTP basic authorization: ApiKey
let ApiKey = defaultClient.authentications['ApiKey'];
ApiKey.username = 'YOUR USERNAME';
ApiKey.password = 'YOUR PASSWORD';
// Configure Bearer (JWT) access token for authorization: JWT
let JWT = defaultClient.authentications['JWT'];
JWT.accessToken = "YOUR ACCESS TOKEN"
let apiInstance = new FastreportCloudSdk.DataSourcesApi();
let opts = {
'createDataSourceVM': new FastreportCloudSdk.CreateDataSourceVM() // CreateDataSourceVM | create viewmodel
};
apiInstance.dataSourcesCreateDataSource(opts).then((data) => {
console.log('API called successfully. Returned data: ' + data);
}, (error) => {
console.error(error);
});
Name | Type | Description | Notes |
---|---|---|---|
createDataSourceVM | CreateDataSourceVM | create viewmodel | [optional] |
- Content-Type: application/json, text/json, application/*+json
- Accept: application/json
dataSourcesDeleteDataSource(id)
Delete data source by id
import FastreportCloudSdk from 'fastreport-cloud-sdk';
let defaultClient = FastreportCloudSdk.ApiClient.instance;
// Configure HTTP basic authorization: ApiKey
let ApiKey = defaultClient.authentications['ApiKey'];
ApiKey.username = 'YOUR USERNAME';
ApiKey.password = 'YOUR PASSWORD';
// Configure Bearer (JWT) access token for authorization: JWT
let JWT = defaultClient.authentications['JWT'];
JWT.accessToken = "YOUR ACCESS TOKEN"
let apiInstance = new FastreportCloudSdk.DataSourcesApi();
let id = "id_example"; // String | data source id
apiInstance.dataSourcesDeleteDataSource(id).then(() => {
console.log('API called successfully.');
}, (error) => {
console.error(error);
});
Name | Type | Description | Notes |
---|---|---|---|
id | String | data source id |
null (empty response body)
- Content-Type: Not defined
- Accept: application/json
dataSourcesFetchData(id)
This should connect to a database and set data structure
import FastreportCloudSdk from 'fastreport-cloud-sdk';
let defaultClient = FastreportCloudSdk.ApiClient.instance;
// Configure HTTP basic authorization: ApiKey
let ApiKey = defaultClient.authentications['ApiKey'];
ApiKey.username = 'YOUR USERNAME';
ApiKey.password = 'YOUR PASSWORD';
// Configure Bearer (JWT) access token for authorization: JWT
let JWT = defaultClient.authentications['JWT'];
JWT.accessToken = "YOUR ACCESS TOKEN"
let apiInstance = new FastreportCloudSdk.DataSourcesApi();
let id = "id_example"; // String | datasource's id
apiInstance.dataSourcesFetchData(id).then(() => {
console.log('API called successfully.');
}, (error) => {
console.error(error);
});
Name | Type | Description | Notes |
---|---|---|---|
id | String | datasource's id |
null (empty response body)
- Content-Type: Not defined
- Accept: application/json
DataSourcesVM dataSourcesGetAvailableDataSources(opts)
Returns all of the data sources, that current user have permission for in a subscription <br /> The method will return minimal infomration about the datasources: <br /> id, name, editedTime, status.
import FastreportCloudSdk from 'fastreport-cloud-sdk';
let defaultClient = FastreportCloudSdk.ApiClient.instance;
// Configure HTTP basic authorization: ApiKey
let ApiKey = defaultClient.authentications['ApiKey'];
ApiKey.username = 'YOUR USERNAME';
ApiKey.password = 'YOUR PASSWORD';
// Configure Bearer (JWT) access token for authorization: JWT
let JWT = defaultClient.authentications['JWT'];
JWT.accessToken = "YOUR ACCESS TOKEN"
let apiInstance = new FastreportCloudSdk.DataSourcesApi();
let opts = {
'subscriptionId': "subscriptionId_example", // String | id of subscription where the datasources are located
'skip': 0, // Number | how many data sources will be skipped
'take': 10, // Number | how many data sources will be taken
'orderBy': new FastreportCloudSdk.DataSourceSorting(), // DataSourceSorting | field to order by
'desc': false // Boolean | descending sort
};
apiInstance.dataSourcesGetAvailableDataSources(opts).then((data) => {
console.log('API called successfully. Returned data: ' + data);
}, (error) => {
console.error(error);
});
Name | Type | Description | Notes |
---|---|---|---|
subscriptionId | String | id of subscription where the datasources are located | [optional] |
skip | Number | how many data sources will be skipped | [optional] [default to 0] |
take | Number | how many data sources will be taken | [optional] [default to 10] |
orderBy | DataSourceSorting | field to order by | [optional] |
desc | Boolean | descending sort | [optional] [default to false] |
- Content-Type: Not defined
- Accept: application/json
DataSourceVM dataSourcesGetDataSource(id)
Get data source by id
import FastreportCloudSdk from 'fastreport-cloud-sdk';
let defaultClient = FastreportCloudSdk.ApiClient.instance;
// Configure HTTP basic authorization: ApiKey
let ApiKey = defaultClient.authentications['ApiKey'];
ApiKey.username = 'YOUR USERNAME';
ApiKey.password = 'YOUR PASSWORD';
// Configure Bearer (JWT) access token for authorization: JWT
let JWT = defaultClient.authentications['JWT'];
JWT.accessToken = "YOUR ACCESS TOKEN"
let apiInstance = new FastreportCloudSdk.DataSourcesApi();
let id = "id_example"; // String | data source id
apiInstance.dataSourcesGetDataSource(id).then((data) => {
console.log('API called successfully. Returned data: ' + data);
}, (error) => {
console.error(error);
});
Name | Type | Description | Notes |
---|---|---|---|
id | String | data source id |
- Content-Type: Not defined
- Accept: application/json
DataSourceParameterTypesVM dataSourcesGetParameterTypes(dataSourceType)
Get data source parameter DataType's
import FastreportCloudSdk from 'fastreport-cloud-sdk';
let defaultClient = FastreportCloudSdk.ApiClient.instance;
// Configure HTTP basic authorization: ApiKey
let ApiKey = defaultClient.authentications['ApiKey'];
ApiKey.username = 'YOUR USERNAME';
ApiKey.password = 'YOUR PASSWORD';
// Configure Bearer (JWT) access token for authorization: JWT
let JWT = defaultClient.authentications['JWT'];
JWT.accessToken = "YOUR ACCESS TOKEN"
let apiInstance = new FastreportCloudSdk.DataSourcesApi();
let dataSourceType = new FastreportCloudSdk.DataSourceConnectionType(); // DataSourceConnectionType | data source type (MsSql, MySql, etc.)
apiInstance.dataSourcesGetParameterTypes(dataSourceType).then((data) => {
console.log('API called successfully. Returned data: ' + data);
}, (error) => {
console.error(error);
});
Name | Type | Description | Notes |
---|---|---|---|
dataSourceType | DataSourceConnectionType | data source type (MsSql, MySql, etc.) |
- Content-Type: Not defined
- Accept: application/json
DataSourcePermissionsVM dataSourcesGetPermissions(id)
Get all Data source permissions
import FastreportCloudSdk from 'fastreport-cloud-sdk';
let defaultClient = FastreportCloudSdk.ApiClient.instance;
// Configure HTTP basic authorization: ApiKey
let ApiKey = defaultClient.authentications['ApiKey'];
ApiKey.username = 'YOUR USERNAME';
ApiKey.password = 'YOUR PASSWORD';
// Configure Bearer (JWT) access token for authorization: JWT
let JWT = defaultClient.authentications['JWT'];
JWT.accessToken = "YOUR ACCESS TOKEN"
let apiInstance = new FastreportCloudSdk.DataSourcesApi();
let id = "id_example"; // String | data source id
apiInstance.dataSourcesGetPermissions(id).then((data) => {
console.log('API called successfully. Returned data: ' + data);
}, (error) => {
console.error(error);
});
Name | Type | Description | Notes |
---|---|---|---|
id | String | data source id |
- Content-Type: Not defined
- Accept: application/json
DataSourceVM dataSourcesRenameDataSource(id, opts)
Rename data source by id
import FastreportCloudSdk from 'fastreport-cloud-sdk';
let defaultClient = FastreportCloudSdk.ApiClient.instance;
// Configure HTTP basic authorization: ApiKey
let ApiKey = defaultClient.authentications['ApiKey'];
ApiKey.username = 'YOUR USERNAME';
ApiKey.password = 'YOUR PASSWORD';
// Configure Bearer (JWT) access token for authorization: JWT
let JWT = defaultClient.authentications['JWT'];
JWT.accessToken = "YOUR ACCESS TOKEN"
let apiInstance = new FastreportCloudSdk.DataSourcesApi();
let id = "id_example"; // String | data source id
let opts = {
'renameDataSourceVM': new FastreportCloudSdk.RenameDataSourceVM() // RenameDataSourceVM | rename viewmodel
};
apiInstance.dataSourcesRenameDataSource(id, opts).then((data) => {
console.log('API called successfully. Returned data: ' + data);
}, (error) => {
console.error(error);
});
Name | Type | Description | Notes |
---|---|---|---|
id | String | data source id | |
renameDataSourceVM | RenameDataSourceVM | rename viewmodel | [optional] |
- Content-Type: application/json, text/json, application/*+json
- Accept: application/json
DataSourceVM dataSourcesUpdateConnectionString(id, opts)
Update data source's connection string by id
import FastreportCloudSdk from 'fastreport-cloud-sdk';
let defaultClient = FastreportCloudSdk.ApiClient.instance;
// Configure HTTP basic authorization: ApiKey
let ApiKey = defaultClient.authentications['ApiKey'];
ApiKey.username = 'YOUR USERNAME';
ApiKey.password = 'YOUR PASSWORD';
// Configure Bearer (JWT) access token for authorization: JWT
let JWT = defaultClient.authentications['JWT'];
JWT.accessToken = "YOUR ACCESS TOKEN"
let apiInstance = new FastreportCloudSdk.DataSourcesApi();
let id = "id_example"; // String | data source id
let opts = {
'updateDataSourceConnectionStringVM': new FastreportCloudSdk.UpdateDataSourceConnectionStringVM() // UpdateDataSourceConnectionStringVM | update viewmodel
};
apiInstance.dataSourcesUpdateConnectionString(id, opts).then((data) => {
console.log('API called successfully. Returned data: ' + data);
}, (error) => {
console.error(error);
});
Name | Type | Description | Notes |
---|---|---|---|
id | String | data source id | |
updateDataSourceConnectionStringVM | UpdateDataSourceConnectionStringVM | update viewmodel | [optional] |
- Content-Type: application/json, text/json, application/*+json
- Accept: application/json
dataSourcesUpdatePermissions(id, opts)
Update permissions
import FastreportCloudSdk from 'fastreport-cloud-sdk';
let defaultClient = FastreportCloudSdk.ApiClient.instance;
// Configure HTTP basic authorization: ApiKey
let ApiKey = defaultClient.authentications['ApiKey'];
ApiKey.username = 'YOUR USERNAME';
ApiKey.password = 'YOUR PASSWORD';
// Configure Bearer (JWT) access token for authorization: JWT
let JWT = defaultClient.authentications['JWT'];
JWT.accessToken = "YOUR ACCESS TOKEN"
let apiInstance = new FastreportCloudSdk.DataSourcesApi();
let id = "id_example"; // String |
let opts = {
'updateDataSourcePermissionsVM': new FastreportCloudSdk.UpdateDataSourcePermissionsVM() // UpdateDataSourcePermissionsVM |
};
apiInstance.dataSourcesUpdatePermissions(id, opts).then(() => {
console.log('API called successfully.');
}, (error) => {
console.error(error);
});
Name | Type | Description | Notes |
---|---|---|---|
id | String | ||
updateDataSourcePermissionsVM | UpdateDataSourcePermissionsVM | [optional] |
null (empty response body)
- Content-Type: application/json, text/json, application/*+json
- Accept: application/json
DataSourceVM dataSourcesUpdateSelectCommands(id, opts)
Update data source's select commands by id
import FastreportCloudSdk from 'fastreport-cloud-sdk';
let defaultClient = FastreportCloudSdk.ApiClient.instance;
// Configure HTTP basic authorization: ApiKey
let ApiKey = defaultClient.authentications['ApiKey'];
ApiKey.username = 'YOUR USERNAME';
ApiKey.password = 'YOUR PASSWORD';
// Configure Bearer (JWT) access token for authorization: JWT
let JWT = defaultClient.authentications['JWT'];
JWT.accessToken = "YOUR ACCESS TOKEN"
let apiInstance = new FastreportCloudSdk.DataSourcesApi();
let id = "id_example"; // String | data source id
let opts = {
'updateDataSourceSelectCommandsVM': new FastreportCloudSdk.UpdateDataSourceSelectCommandsVM() // UpdateDataSourceSelectCommandsVM | update viewmodel
};
apiInstance.dataSourcesUpdateSelectCommands(id, opts).then((data) => {
console.log('API called successfully. Returned data: ' + data);
}, (error) => {
console.error(error);
});
Name | Type | Description | Notes |
---|---|---|---|
id | String | data source id | |
updateDataSourceSelectCommandsVM | UpdateDataSourceSelectCommandsVM | update viewmodel | [optional] |
- Content-Type: application/json, text/json, application/*+json
- Accept: application/json
dataSourcesUpdateSubscriptionDataSource(id, opts)
Update data source's subscription
import FastreportCloudSdk from 'fastreport-cloud-sdk';
let defaultClient = FastreportCloudSdk.ApiClient.instance;
// Configure HTTP basic authorization: ApiKey
let ApiKey = defaultClient.authentications['ApiKey'];
ApiKey.username = 'YOUR USERNAME';
ApiKey.password = 'YOUR PASSWORD';
// Configure Bearer (JWT) access token for authorization: JWT
let JWT = defaultClient.authentications['JWT'];
JWT.accessToken = "YOUR ACCESS TOKEN"
let apiInstance = new FastreportCloudSdk.DataSourcesApi();
let id = "id_example"; // String | data source id
let opts = {
'updateDataSourceSubscriptionVM': new FastreportCloudSdk.UpdateDataSourceSubscriptionVM() // UpdateDataSourceSubscriptionVM | update subscription viewmodel
};
apiInstance.dataSourcesUpdateSubscriptionDataSource(id, opts).then(() => {
console.log('API called successfully.');
}, (error) => {
console.error(error);
});
Name | Type | Description | Notes |
---|---|---|---|
id | String | data source id | |
updateDataSourceSubscriptionVM | UpdateDataSourceSubscriptionVM | update subscription viewmodel | [optional] |
null (empty response body)
- Content-Type: application/json, text/json, application/*+json
- Accept: application/json