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": "f7f35129-c324-446f-a93d-6433dae1bf1a",
"projectId": "183bba2d-e515-427b-9882-6ea1f29e37be",
"referenceId": "958fd5ae-b7dd-4173-b98e-99ec4dbc540b",
"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": "f7f35129-c324-446f-a93d-6433dae1bf1a",
"projectId": "183bba2d-e515-427b-9882-6ea1f29e37be",
"referenceId": "958fd5ae-b7dd-4173-b98e-99ec4dbc540b",
"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>f7f35129-c324-446f-a93d-6433dae1bf1a</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>183bba2d-e515-427b-9882-6ea1f29e37be</ProjectId>
<Reference>sample string 2</Reference>
<ReferenceId>958fd5ae-b7dd-4173-b98e-99ec4dbc540b</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>f7f35129-c324-446f-a93d-6433dae1bf1a</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>183bba2d-e515-427b-9882-6ea1f29e37be</ProjectId>
<Reference>sample string 2</Reference>
<ReferenceId>958fd5ae-b7dd-4173-b98e-99ec4dbc540b</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>