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 |
Long dataSourcesCountDataSourcesAsync(subscriptionId)
Returns a number of data sources in subscription
// Import classes:
import cloud.fastreport.ApiClient;
import cloud.fastreport.ApiException;
import cloud.fastreport.Configuration;
import cloud.fastreport.auth.*;
import cloud.fastreport.models.*;
import cloud.fastreport.client.DataSourcesApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("http://localhost");
// Configure HTTP basic authorization: ApiKey
HttpBasicAuth ApiKey = (HttpBasicAuth) defaultClient.getAuthentication("ApiKey");
ApiKey.setUsername("YOUR USERNAME");
ApiKey.setPassword("YOUR PASSWORD");
// Configure HTTP bearer authorization: JWT
HttpBearerAuth JWT = (HttpBearerAuth) defaultClient.getAuthentication("JWT");
JWT.setBearerToken("BEARER TOKEN");
DataSourcesApi apiInstance = new DataSourcesApi(defaultClient);
String subscriptionId = "subscriptionId_example"; // String | subscripiton id
try {
Long result = apiInstance.dataSourcesCountDataSourcesAsync(subscriptionId);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling DataSourcesApi#dataSourcesCountDataSourcesAsync");
System.err.println("Status code: " + e.getCode());
System.err.println("Reason: " + e.getResponseBody());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
subscriptionId | String | subscripiton id |
Long
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | Everything is all right | - |
400 | id is not hex24 | - |
402 | Subscription is outdated | - |
403 | You don't have permisison to get data sources from this subscription (or in your default (1st) subscription) | - |
404 | there is no subscription with provided id found, or user don't even have a subscription | - |
DataSourceVM dataSourcesCreateDataSource(createDataSourceVM)
Create new data source
// Import classes:
import cloud.fastreport.ApiClient;
import cloud.fastreport.ApiException;
import cloud.fastreport.Configuration;
import cloud.fastreport.auth.*;
import cloud.fastreport.models.*;
import cloud.fastreport.client.DataSourcesApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("http://localhost");
// Configure HTTP basic authorization: ApiKey
HttpBasicAuth ApiKey = (HttpBasicAuth) defaultClient.getAuthentication("ApiKey");
ApiKey.setUsername("YOUR USERNAME");
ApiKey.setPassword("YOUR PASSWORD");
// Configure HTTP bearer authorization: JWT
HttpBearerAuth JWT = (HttpBearerAuth) defaultClient.getAuthentication("JWT");
JWT.setBearerToken("BEARER TOKEN");
DataSourcesApi apiInstance = new DataSourcesApi(defaultClient);
CreateDataSourceVM createDataSourceVM = new CreateDataSourceVM(); // CreateDataSourceVM | create viewmodel
try {
DataSourceVM result = apiInstance.dataSourcesCreateDataSource(createDataSourceVM);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling DataSourcesApi#dataSourcesCreateDataSource");
System.err.println("Status code: " + e.getCode());
System.err.println("Reason: " + e.getResponseBody());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
createDataSourceVM | CreateDataSourceVM | create viewmodel | [optional] |
- Content-Type: application/json, text/json, application/*+json
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | Everything is all right | - |
400 | VM is not valid | - |
402 | Subscription is outdated or have not enough limits | - |
403 | You don't have permisison to create data sources from this subscription (or in your default (1st) subscription) | - |
404 | There is no subscription with provided id found, or user don't even have a subscription | - |
500 | Try again, if error still here - text our support | - |
dataSourcesDeleteDataSource(id)
Delete data source by id
// Import classes:
import cloud.fastreport.ApiClient;
import cloud.fastreport.ApiException;
import cloud.fastreport.Configuration;
import cloud.fastreport.auth.*;
import cloud.fastreport.models.*;
import cloud.fastreport.client.DataSourcesApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("http://localhost");
// Configure HTTP basic authorization: ApiKey
HttpBasicAuth ApiKey = (HttpBasicAuth) defaultClient.getAuthentication("ApiKey");
ApiKey.setUsername("YOUR USERNAME");
ApiKey.setPassword("YOUR PASSWORD");
// Configure HTTP bearer authorization: JWT
HttpBearerAuth JWT = (HttpBearerAuth) defaultClient.getAuthentication("JWT");
JWT.setBearerToken("BEARER TOKEN");
DataSourcesApi apiInstance = new DataSourcesApi(defaultClient);
String id = "id_example"; // String | data source id
try {
apiInstance.dataSourcesDeleteDataSource(id);
} catch (ApiException e) {
System.err.println("Exception when calling DataSourcesApi#dataSourcesDeleteDataSource");
System.err.println("Status code: " + e.getCode());
System.err.println("Reason: " + e.getResponseBody());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
id | String | data source id |
null (empty response body)
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
204 | Everything is all right | - |
400 | id is not hex24 | - |
402 | Subscription is outdated or have not enough limits | - |
403 | You don't have permisison to delete data sources from this subscription (or in your default (1st) subscription) | - |
404 | There is no data source or subscription with provided id found | - |
500 | Try again, if error still here - text our support | - |
dataSourcesFetchData(id)
This should connect to a database and set data structure
// Import classes:
import cloud.fastreport.ApiClient;
import cloud.fastreport.ApiException;
import cloud.fastreport.Configuration;
import cloud.fastreport.auth.*;
import cloud.fastreport.models.*;
import cloud.fastreport.client.DataSourcesApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("http://localhost");
// Configure HTTP basic authorization: ApiKey
HttpBasicAuth ApiKey = (HttpBasicAuth) defaultClient.getAuthentication("ApiKey");
ApiKey.setUsername("YOUR USERNAME");
ApiKey.setPassword("YOUR PASSWORD");
// Configure HTTP bearer authorization: JWT
HttpBearerAuth JWT = (HttpBearerAuth) defaultClient.getAuthentication("JWT");
JWT.setBearerToken("BEARER TOKEN");
DataSourcesApi apiInstance = new DataSourcesApi(defaultClient);
String id = "id_example"; // String | datasource's id
try {
apiInstance.dataSourcesFetchData(id);
} catch (ApiException e) {
System.err.println("Exception when calling DataSourcesApi#dataSourcesFetchData");
System.err.println("Status code: " + e.getCode());
System.err.println("Reason: " + e.getResponseBody());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
id | String | datasource's id |
null (empty response body)
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
204 | Everything is all right | - |
400 | id is not hex24 | - |
402 | Subscription is outdated or have not enough limits | - |
403 | You don't have permisison to fetch data sources from this subscription (or in your default (1st) subscription) | - |
404 | There is no data source or subscription with provided id found | - |
500 | Try again, if error still here - text our support | - |
DataSourcesVM dataSourcesGetAvailableDataSources(subscriptionId, skip, take, orderBy, desc)
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 classes:
import cloud.fastreport.ApiClient;
import cloud.fastreport.ApiException;
import cloud.fastreport.Configuration;
import cloud.fastreport.auth.*;
import cloud.fastreport.models.*;
import cloud.fastreport.client.DataSourcesApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("http://localhost");
// Configure HTTP basic authorization: ApiKey
HttpBasicAuth ApiKey = (HttpBasicAuth) defaultClient.getAuthentication("ApiKey");
ApiKey.setUsername("YOUR USERNAME");
ApiKey.setPassword("YOUR PASSWORD");
// Configure HTTP bearer authorization: JWT
HttpBearerAuth JWT = (HttpBearerAuth) defaultClient.getAuthentication("JWT");
JWT.setBearerToken("BEARER TOKEN");
DataSourcesApi apiInstance = new DataSourcesApi(defaultClient);
String subscriptionId = "subscriptionId_example"; // String | id of subscription where the datasources are located
Integer skip = 0; // Integer | how many data sources will be skipped
Integer take = 10; // Integer | how many data sources will be taken
DataSourceSorting orderBy = DataSourceSorting.fromValue("CreatedTime"); // DataSourceSorting | field to order by
Boolean desc = false; // Boolean | descending sort
try {
DataSourcesVM result = apiInstance.dataSourcesGetAvailableDataSources(subscriptionId, skip, take, orderBy, desc);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling DataSourcesApi#dataSourcesGetAvailableDataSources");
System.err.println("Status code: " + e.getCode());
System.err.println("Reason: " + e.getResponseBody());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
subscriptionId | String | id of subscription where the datasources are located | [optional] |
skip | Integer | how many data sources will be skipped | [optional] [default to 0] |
take | Integer | how many data sources will be taken | [optional] [default to 10] |
orderBy | DataSourceSorting | field to order by | [optional] [enum: CreatedTime, EditedTime, Name] |
desc | Boolean | descending sort | [optional] [default to false] |
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | Everything is all right | - |
400 | One of params is not valid | - |
402 | Subscription is outdated or have not enough limits | - |
403 | You don't have permisison to get data sources from this subscription (or in your default (1st) subscription) | - |
404 | There is no subscription with provided id found | - |
DataSourceVM dataSourcesGetDataSource(id)
Get data source by id
// Import classes:
import cloud.fastreport.ApiClient;
import cloud.fastreport.ApiException;
import cloud.fastreport.Configuration;
import cloud.fastreport.auth.*;
import cloud.fastreport.models.*;
import cloud.fastreport.client.DataSourcesApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("http://localhost");
// Configure HTTP basic authorization: ApiKey
HttpBasicAuth ApiKey = (HttpBasicAuth) defaultClient.getAuthentication("ApiKey");
ApiKey.setUsername("YOUR USERNAME");
ApiKey.setPassword("YOUR PASSWORD");
// Configure HTTP bearer authorization: JWT
HttpBearerAuth JWT = (HttpBearerAuth) defaultClient.getAuthentication("JWT");
JWT.setBearerToken("BEARER TOKEN");
DataSourcesApi apiInstance = new DataSourcesApi(defaultClient);
String id = "id_example"; // String | data source id
try {
DataSourceVM result = apiInstance.dataSourcesGetDataSource(id);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling DataSourcesApi#dataSourcesGetDataSource");
System.err.println("Status code: " + e.getCode());
System.err.println("Reason: " + e.getResponseBody());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
id | String | data source id |
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | Everything is all right | - |
400 | id is not hex24 | - |
402 | Subscription is outdated or have not enough limits | - |
403 | You don't have permisison to get data sources from this subscription (or in your default (1st) subscription) | - |
404 | There is no data source or subscription with provided id found | - |
500 | Try again, if error still here - text our support | - |
DataSourceParameterTypesVM dataSourcesGetParameterTypes(dataSourceType)
Get data source parameter DataType's
// Import classes:
import cloud.fastreport.ApiClient;
import cloud.fastreport.ApiException;
import cloud.fastreport.Configuration;
import cloud.fastreport.auth.*;
import cloud.fastreport.models.*;
import cloud.fastreport.client.DataSourcesApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("http://localhost");
// Configure HTTP basic authorization: ApiKey
HttpBasicAuth ApiKey = (HttpBasicAuth) defaultClient.getAuthentication("ApiKey");
ApiKey.setUsername("YOUR USERNAME");
ApiKey.setPassword("YOUR PASSWORD");
// Configure HTTP bearer authorization: JWT
HttpBearerAuth JWT = (HttpBearerAuth) defaultClient.getAuthentication("JWT");
JWT.setBearerToken("BEARER TOKEN");
DataSourcesApi apiInstance = new DataSourcesApi(defaultClient);
DataSourceConnectionType dataSourceType = DataSourceConnectionType.fromValue("JSON"); // DataSourceConnectionType | data source type (MsSql, MySql, etc.)
try {
DataSourceParameterTypesVM result = apiInstance.dataSourcesGetParameterTypes(dataSourceType);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling DataSourcesApi#dataSourcesGetParameterTypes");
System.err.println("Status code: " + e.getCode());
System.err.println("Reason: " + e.getResponseBody());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
dataSourceType | DataSourceConnectionType | data source type (MsSql, MySql, etc.) | [enum: JSON, MSSQL, CSV, XML, MySQL, Postgres, OracleDB, FirebirdDB, MongoDB, ClickHouse] |
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | Everything is all right | - |
400 | Data source doesn't support parameters or wrong data source name | - |
500 | Try again, if error still here - text our support | - |
DataSourcePermissionsVM dataSourcesGetPermissions(id)
Get all Data source permissions
// Import classes:
import cloud.fastreport.ApiClient;
import cloud.fastreport.ApiException;
import cloud.fastreport.Configuration;
import cloud.fastreport.auth.*;
import cloud.fastreport.models.*;
import cloud.fastreport.client.DataSourcesApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("http://localhost");
// Configure HTTP basic authorization: ApiKey
HttpBasicAuth ApiKey = (HttpBasicAuth) defaultClient.getAuthentication("ApiKey");
ApiKey.setUsername("YOUR USERNAME");
ApiKey.setPassword("YOUR PASSWORD");
// Configure HTTP bearer authorization: JWT
HttpBearerAuth JWT = (HttpBearerAuth) defaultClient.getAuthentication("JWT");
JWT.setBearerToken("BEARER TOKEN");
DataSourcesApi apiInstance = new DataSourcesApi(defaultClient);
String id = "id_example"; // String | data source id
try {
DataSourcePermissionsVM result = apiInstance.dataSourcesGetPermissions(id);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling DataSourcesApi#dataSourcesGetPermissions");
System.err.println("Status code: " + e.getCode());
System.err.println("Reason: " + e.getResponseBody());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
id | String | data source id |
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | Everything is all right | - |
400 | id is not hex24 | - |
402 | Subscription is outdated or have not enough limits | - |
403 | You don't have permisison to get data sources' permissions from this subscription (or in your default (1st) subscription) | - |
404 | There is no data source or subscription with provided id found | - |
500 | Try again, if error still here - text our support | - |
DataSourceVM dataSourcesRenameDataSource(id, renameDataSourceVM)
Rename data source by id
// Import classes:
import cloud.fastreport.ApiClient;
import cloud.fastreport.ApiException;
import cloud.fastreport.Configuration;
import cloud.fastreport.auth.*;
import cloud.fastreport.models.*;
import cloud.fastreport.client.DataSourcesApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("http://localhost");
// Configure HTTP basic authorization: ApiKey
HttpBasicAuth ApiKey = (HttpBasicAuth) defaultClient.getAuthentication("ApiKey");
ApiKey.setUsername("YOUR USERNAME");
ApiKey.setPassword("YOUR PASSWORD");
// Configure HTTP bearer authorization: JWT
HttpBearerAuth JWT = (HttpBearerAuth) defaultClient.getAuthentication("JWT");
JWT.setBearerToken("BEARER TOKEN");
DataSourcesApi apiInstance = new DataSourcesApi(defaultClient);
String id = "id_example"; // String | data source id
RenameDataSourceVM renameDataSourceVM = new RenameDataSourceVM(); // RenameDataSourceVM | rename viewmodel
try {
DataSourceVM result = apiInstance.dataSourcesRenameDataSource(id, renameDataSourceVM);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling DataSourcesApi#dataSourcesRenameDataSource");
System.err.println("Status code: " + e.getCode());
System.err.println("Reason: " + e.getResponseBody());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}
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
Status code | Description | Response headers |
---|---|---|
200 | Everything is all right | - |
400 | id is not hex24 or VM is not valid | - |
402 | Subscription is outdated or have not enough limits | - |
403 | You don't have permisison to update data sources' name from this subscription (or in your default (1st) subscription) | - |
404 | There is no data source or subscription with provided id found | - |
500 | Try again, if error still here - text our support | - |
DataSourceVM dataSourcesUpdateConnectionString(id, updateDataSourceConnectionStringVM)
Update data source's connection string by id
// Import classes:
import cloud.fastreport.ApiClient;
import cloud.fastreport.ApiException;
import cloud.fastreport.Configuration;
import cloud.fastreport.auth.*;
import cloud.fastreport.models.*;
import cloud.fastreport.client.DataSourcesApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("http://localhost");
// Configure HTTP basic authorization: ApiKey
HttpBasicAuth ApiKey = (HttpBasicAuth) defaultClient.getAuthentication("ApiKey");
ApiKey.setUsername("YOUR USERNAME");
ApiKey.setPassword("YOUR PASSWORD");
// Configure HTTP bearer authorization: JWT
HttpBearerAuth JWT = (HttpBearerAuth) defaultClient.getAuthentication("JWT");
JWT.setBearerToken("BEARER TOKEN");
DataSourcesApi apiInstance = new DataSourcesApi(defaultClient);
String id = "id_example"; // String | data source id
UpdateDataSourceConnectionStringVM updateDataSourceConnectionStringVM = new UpdateDataSourceConnectionStringVM(); // UpdateDataSourceConnectionStringVM | update viewmodel
try {
DataSourceVM result = apiInstance.dataSourcesUpdateConnectionString(id, updateDataSourceConnectionStringVM);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling DataSourcesApi#dataSourcesUpdateConnectionString");
System.err.println("Status code: " + e.getCode());
System.err.println("Reason: " + e.getResponseBody());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}
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
Status code | Description | Response headers |
---|---|---|
200 | Everything is all right | - |
400 | id is not hex24 or VM is not valid | - |
402 | Subscription is outdated or have not enough limits | - |
403 | You don't have permisison to update data sources' connection string from this subscription (or in your default (1st) subscription) | - |
404 | There is no data source or subscription with provided id found | - |
500 | Try again, if error still here - text our support | - |
dataSourcesUpdatePermissions(id, updateDataSourcePermissionsVM)
Update permissions
// Import classes:
import cloud.fastreport.ApiClient;
import cloud.fastreport.ApiException;
import cloud.fastreport.Configuration;
import cloud.fastreport.auth.*;
import cloud.fastreport.models.*;
import cloud.fastreport.client.DataSourcesApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("http://localhost");
// Configure HTTP basic authorization: ApiKey
HttpBasicAuth ApiKey = (HttpBasicAuth) defaultClient.getAuthentication("ApiKey");
ApiKey.setUsername("YOUR USERNAME");
ApiKey.setPassword("YOUR PASSWORD");
// Configure HTTP bearer authorization: JWT
HttpBearerAuth JWT = (HttpBearerAuth) defaultClient.getAuthentication("JWT");
JWT.setBearerToken("BEARER TOKEN");
DataSourcesApi apiInstance = new DataSourcesApi(defaultClient);
String id = "id_example"; // String |
UpdateDataSourcePermissionsVM updateDataSourcePermissionsVM = new UpdateDataSourcePermissionsVM(); // UpdateDataSourcePermissionsVM |
try {
apiInstance.dataSourcesUpdatePermissions(id, updateDataSourcePermissionsVM);
} catch (ApiException e) {
System.err.println("Exception when calling DataSourcesApi#dataSourcesUpdatePermissions");
System.err.println("Status code: " + e.getCode());
System.err.println("Reason: " + e.getResponseBody());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
id | String | ||
updateDataSourcePermissionsVM | UpdateDataSourcePermissionsVM | [optional] |
null (empty response body)
- Content-Type: application/json, text/json, application/*+json
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
204 | Everything is all right | - |
400 | id is not hex24 or VM is not valid | - |
402 | Subscription is outdated or have not enough limits | - |
403 | You don't have permisison to update data sources' permissions from this subscription (or in your default (1st) subscription) | - |
404 | There is no data source or subscription with provided id found | - |
500 | Try again, if error still here - text our support | - |
DataSourceVM dataSourcesUpdateSelectCommands(id, updateDataSourceSelectCommandsVM)
Update data source's select commands by id
// Import classes:
import cloud.fastreport.ApiClient;
import cloud.fastreport.ApiException;
import cloud.fastreport.Configuration;
import cloud.fastreport.auth.*;
import cloud.fastreport.models.*;
import cloud.fastreport.client.DataSourcesApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("http://localhost");
// Configure HTTP basic authorization: ApiKey
HttpBasicAuth ApiKey = (HttpBasicAuth) defaultClient.getAuthentication("ApiKey");
ApiKey.setUsername("YOUR USERNAME");
ApiKey.setPassword("YOUR PASSWORD");
// Configure HTTP bearer authorization: JWT
HttpBearerAuth JWT = (HttpBearerAuth) defaultClient.getAuthentication("JWT");
JWT.setBearerToken("BEARER TOKEN");
DataSourcesApi apiInstance = new DataSourcesApi(defaultClient);
String id = "id_example"; // String | data source id
UpdateDataSourceSelectCommandsVM updateDataSourceSelectCommandsVM = new UpdateDataSourceSelectCommandsVM(); // UpdateDataSourceSelectCommandsVM | update viewmodel
try {
DataSourceVM result = apiInstance.dataSourcesUpdateSelectCommands(id, updateDataSourceSelectCommandsVM);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling DataSourcesApi#dataSourcesUpdateSelectCommands");
System.err.println("Status code: " + e.getCode());
System.err.println("Reason: " + e.getResponseBody());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}
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
Status code | Description | Response headers |
---|---|---|
200 | Everything is all right | - |
400 | id is not hex24 or VM is not valid | - |
402 | Subscription is outdated or have not enough limits | - |
403 | You don't have permisison to update data sources' connection string from this subscription (or in your default (1st) subscription) | - |
404 | There is no data source or subscription with provided id found | - |
500 | Try again, if error still here - text our support | - |
dataSourcesUpdateSubscriptionDataSource(id, updateDataSourceSubscriptionVM)
Update data source's subscription
// Import classes:
import cloud.fastreport.ApiClient;
import cloud.fastreport.ApiException;
import cloud.fastreport.Configuration;
import cloud.fastreport.auth.*;
import cloud.fastreport.models.*;
import cloud.fastreport.client.DataSourcesApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("http://localhost");
// Configure HTTP basic authorization: ApiKey
HttpBasicAuth ApiKey = (HttpBasicAuth) defaultClient.getAuthentication("ApiKey");
ApiKey.setUsername("YOUR USERNAME");
ApiKey.setPassword("YOUR PASSWORD");
// Configure HTTP bearer authorization: JWT
HttpBearerAuth JWT = (HttpBearerAuth) defaultClient.getAuthentication("JWT");
JWT.setBearerToken("BEARER TOKEN");
DataSourcesApi apiInstance = new DataSourcesApi(defaultClient);
String id = "id_example"; // String | data source id
UpdateDataSourceSubscriptionVM updateDataSourceSubscriptionVM = new UpdateDataSourceSubscriptionVM(); // UpdateDataSourceSubscriptionVM | update subscription viewmodel
try {
apiInstance.dataSourcesUpdateSubscriptionDataSource(id, updateDataSourceSubscriptionVM);
} catch (ApiException e) {
System.err.println("Exception when calling DataSourcesApi#dataSourcesUpdateSubscriptionDataSource");
System.err.println("Status code: " + e.getCode());
System.err.println("Reason: " + e.getResponseBody());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}
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
Status code | Description | Response headers |
---|---|---|
200 | Everything is all right | - |
400 | id is not hex24 or VM is not valid | - |
402 | Subscription is outdated or have not enough limits | - |
403 | You don't have permisison to get data sources or create them in new subscription | - |
404 | There is no data source or subscription with provided id found | - |
500 | Try again, if error still here - text our support | - |