| POST | /Core/Dynamic/DataSources/Validate |
|---|
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| DataSource | body | DynamicDataSource | No | |
| DsParams | body | Dictionary<string, string> | No |
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| DsId | form | Guid | No | |
| Name | form | string | No | |
| Description | form | string | No | |
| Query | form | string | No | |
| HasDates | form | bool | No | |
| CategoryId | form | Guid | No | |
| Params | form | List<DynamicDataSourceParam> | No | |
| Hccrt | form | string | No | |
| Used | form | bool? | No | |
| HasParams | form | bool? | No | |
| HCode | form | string | No |
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| Id | form | Guid | No | |
| Name | form | string | No | |
| Description | form | string | No | |
| DataSourceId | form | Guid | No | |
| DbType | form | string | No | |
| Size | form | int | No | |
| QueryId | form | Guid? | No | |
| Format | form | string | No | |
| IsNullable | form | bool | No | |
| OrderIndex | form | int | No |
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| ResponseStatus | form | ResponseStatus | No |
To override the Content-type in your clients, use the HTTP Accept Header, append the .jsv suffix or ?format=jsv
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
POST /Core/Dynamic/DataSources/Validate HTTP/1.1
Host: 10.10.0.107
Accept: text/jsv
Content-Type: text/jsv
Content-Length: length
{
DataSource:
{
DsId: 00000000000000000000000000000000,
Name: String,
Description: String,
Query: String,
HasDates: False,
CategoryId: 00000000000000000000000000000000,
Params:
[
{
Id: 00000000000000000000000000000000,
Name: String,
Description: String,
DataSourceId: 00000000000000000000000000000000,
DbType: String,
Size: 0,
QueryId: 00000000000000000000000000000000,
Format: String,
IsNullable: False,
OrderIndex: 0
}
],
Hccrt: String,
Used: False,
HasParams: False,
HCode: String
},
DsParams:
{
String: String
}
}
HTTP/1.1 200 OK
Content-Type: text/jsv
Content-Length: length
{
ResponseStatus:
{
ErrorCode: String,
Message: String,
StackTrace: String,
Errors:
[
{
ErrorCode: String,
FieldName: String,
Message: String,
Meta:
{
String: String
}
}
],
Meta:
{
String: String
}
}
}