POST api/DataSource
Request Information
URI Parameters
None.
Body Parameters
Collection of DataSource| Name | Description | Type | Additional information |
|---|---|---|---|
| DataSourceId | globally unique identifier |
None. |
|
| ProjectId | globally unique identifier |
None. |
|
| ReferenceId | globally unique identifier |
None. |
|
| Reference | string |
None. |
|
| Name | string |
None. |
|
| Description | string |
None. |
|
| Type | DataSourceType |
None. |
|
| Schema | string |
None. |
|
| Content | string |
None. |
|
| EncodedConnection | string |
None. |
|
| Connection | string |
None. |
|
| Period | PeriodType |
None. |
|
| DynamicPara | DynamicParaType |
None. |
|
| BeginDate | string |
None. |
|
| EndDate | string |
None. |
|
| PeriodNumber | integer |
None. |
|
| PeriodDimension | PeriodDimensionType |
None. |
|
| Compare | CompareType |
None. |
|
| IsReadOnly | boolean |
None. |
|
| CacheInterval | integer |
None. |
|
| TableName | string |
None. |
Request Formats
application/json, text/json
Sample:
[
{
"dataSourceId": "2bdb6d8a-0ab9-4757-a5c2-7f515abf2c3c",
"projectId": "6ca9aa09-5935-40d2-b41a-57c767f57374",
"referenceId": "d5eab29c-053d-4a4e-8dd7-514eb58617dc",
"reference": "sample string 2",
"name": "sample string 3",
"description": "sample string 4",
"type": 0,
"schema": "sample string 5",
"content": "sample string 6",
"encodedConnection": "c2FtcGxlIHN0cmluZyA4",
"connection": "sample string 8",
"period": 0,
"dynamicPara": 0,
"beginDate": "sample string 9",
"endDate": "sample string 10",
"periodNumber": 11,
"periodDimension": 1,
"compare": 0,
"isReadOnly": true,
"cacheInterval": 1,
"tableName": "sample string 13"
},
{
"dataSourceId": "2bdb6d8a-0ab9-4757-a5c2-7f515abf2c3c",
"projectId": "6ca9aa09-5935-40d2-b41a-57c767f57374",
"referenceId": "d5eab29c-053d-4a4e-8dd7-514eb58617dc",
"reference": "sample string 2",
"name": "sample string 3",
"description": "sample string 4",
"type": 0,
"schema": "sample string 5",
"content": "sample string 6",
"encodedConnection": "c2FtcGxlIHN0cmluZyA4",
"connection": "sample string 8",
"period": 0,
"dynamicPara": 0,
"beginDate": "sample string 9",
"endDate": "sample string 10",
"periodNumber": 11,
"periodDimension": 1,
"compare": 0,
"isReadOnly": true,
"cacheInterval": 1,
"tableName": "sample string 13"
}
]
application/xml, text/xml
Sample:
<ArrayOfDataSource xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Margin.Core.Data.Entities">
<DataSource>
<BeginDate>sample string 9</BeginDate>
<CacheInterval>1</CacheInterval>
<Compare>Normal</Compare>
<Connection>sample string 8</Connection>
<Content>sample string 6</Content>
<DataSourceId>2bdb6d8a-0ab9-4757-a5c2-7f515abf2c3c</DataSourceId>
<Description>sample string 4</Description>
<DynamicPara>Interval</DynamicPara>
<EncodedConnection>c2FtcGxlIHN0cmluZyA4</EncodedConnection>
<EndDate>sample string 10</EndDate>
<IsReadOnly>true</IsReadOnly>
<Name>sample string 3</Name>
<Period>RealTime</Period>
<PeriodDimension>Day</PeriodDimension>
<PeriodNumber>11</PeriodNumber>
<ProjectId>6ca9aa09-5935-40d2-b41a-57c767f57374</ProjectId>
<Reference>sample string 2</Reference>
<ReferenceId>d5eab29c-053d-4a4e-8dd7-514eb58617dc</ReferenceId>
<Schema>sample string 5</Schema>
<TableName>sample string 13</TableName>
<Type>SQL</Type>
</DataSource>
<DataSource>
<BeginDate>sample string 9</BeginDate>
<CacheInterval>1</CacheInterval>
<Compare>Normal</Compare>
<Connection>sample string 8</Connection>
<Content>sample string 6</Content>
<DataSourceId>2bdb6d8a-0ab9-4757-a5c2-7f515abf2c3c</DataSourceId>
<Description>sample string 4</Description>
<DynamicPara>Interval</DynamicPara>
<EncodedConnection>c2FtcGxlIHN0cmluZyA4</EncodedConnection>
<EndDate>sample string 10</EndDate>
<IsReadOnly>true</IsReadOnly>
<Name>sample string 3</Name>
<Period>RealTime</Period>
<PeriodDimension>Day</PeriodDimension>
<PeriodNumber>11</PeriodNumber>
<ProjectId>6ca9aa09-5935-40d2-b41a-57c767f57374</ProjectId>
<Reference>sample string 2</Reference>
<ReferenceId>d5eab29c-053d-4a4e-8dd7-514eb58617dc</ReferenceId>
<Schema>sample string 5</Schema>
<TableName>sample string 13</TableName>
<Type>SQL</Type>
</DataSource>
</ArrayOfDataSource>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
Collection of ObjectNone.
Response Formats
application/json, text/json
Sample:
[
{},
{}
]
application/xml, text/xml
Sample:
<ArrayOfanyType xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.microsoft.com/2003/10/Serialization/Arrays"> <anyType /> <anyType /> </ArrayOfanyType>