POST api/data_source/proj
Request Information
URI Parameters
None.
Body Parameters
DSProjectModel| Name | Description | Type | Additional information |
|---|---|---|---|
| ProjectId | globally unique identifier |
None. |
|
| Name | string |
None. |
|
| Show | boolean |
None. |
|
| DataSources | Collection of DataSourceModel |
None. |
Request Formats
application/json, text/json
Sample:
{
"projectId": "7335fcb8-54c8-4a91-b542-6b5c79376647",
"name": "sample string 2",
"show": true,
"dataSources": [
{
"projectId": "17bf1afe-aee1-4f87-8c87-e3bd90560372",
"projectName": "sample string 2",
"dataSourceId": "8b8c28f2-6b64-418f-923c-09abb1162f27",
"reference": "sample string 4",
"name": "sample string 5",
"description": "sample string 6",
"selected": true,
"type": 0,
"content": "sample string 8",
"connection": "sample string 9",
"isReadOnly": true,
"cacheInterval": 1,
"tableName": "sample string 11"
},
{
"projectId": "17bf1afe-aee1-4f87-8c87-e3bd90560372",
"projectName": "sample string 2",
"dataSourceId": "8b8c28f2-6b64-418f-923c-09abb1162f27",
"reference": "sample string 4",
"name": "sample string 5",
"description": "sample string 6",
"selected": true,
"type": 0,
"content": "sample string 8",
"connection": "sample string 9",
"isReadOnly": true,
"cacheInterval": 1,
"tableName": "sample string 11"
}
]
}
application/xml, text/xml
Sample:
<DSProjectModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Margin.Models">
<DataSources>
<DataSourceModel>
<CacheInterval>1</CacheInterval>
<Connection>sample string 9</Connection>
<Content>sample string 8</Content>
<DataSourceId>8b8c28f2-6b64-418f-923c-09abb1162f27</DataSourceId>
<Description>sample string 6</Description>
<IsReadOnly>true</IsReadOnly>
<Name>sample string 5</Name>
<ProjectId>17bf1afe-aee1-4f87-8c87-e3bd90560372</ProjectId>
<ProjectName>sample string 2</ProjectName>
<Reference>sample string 4</Reference>
<Selected>true</Selected>
<TableName>sample string 11</TableName>
<Type>SQL</Type>
</DataSourceModel>
<DataSourceModel>
<CacheInterval>1</CacheInterval>
<Connection>sample string 9</Connection>
<Content>sample string 8</Content>
<DataSourceId>8b8c28f2-6b64-418f-923c-09abb1162f27</DataSourceId>
<Description>sample string 6</Description>
<IsReadOnly>true</IsReadOnly>
<Name>sample string 5</Name>
<ProjectId>17bf1afe-aee1-4f87-8c87-e3bd90560372</ProjectId>
<ProjectName>sample string 2</ProjectName>
<Reference>sample string 4</Reference>
<Selected>true</Selected>
<TableName>sample string 11</TableName>
<Type>SQL</Type>
</DataSourceModel>
</DataSources>
<Name>sample string 2</Name>
<ProjectId>7335fcb8-54c8-4a91-b542-6b5c79376647</ProjectId>
<Show>true</Show>
</DSProjectModel>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
ApiResult| Name | Description | Type | Additional information |
|---|---|---|---|
| Status | ApiResultStatus |
None. |
|
| Data | Object |
None. |
|
| Message | string |
None. |
|
| Code | integer |
None. |
Response Formats
application/json, text/json
Sample:
{
"status": "success",
"data": {},
"message": "sample string 2",
"code": 1
}
application/xml, text/xml
Sample:
<ApiResult xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Margin.Models"> <Code>1</Code> <Data /> <Message>sample string 2</Message> <Status>Success</Status> </ApiResult>