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": "2e858da4-8331-4163-a095-acb1bec4cf85",
"name": "sample string 2",
"show": true,
"dataSources": [
{
"projectId": "63887145-c8db-4c7d-880f-d55418db521b",
"projectName": "sample string 2",
"dataSourceId": "d9f63528-bdc9-40f6-b1a4-883747976fde",
"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": "63887145-c8db-4c7d-880f-d55418db521b",
"projectName": "sample string 2",
"dataSourceId": "d9f63528-bdc9-40f6-b1a4-883747976fde",
"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>d9f63528-bdc9-40f6-b1a4-883747976fde</DataSourceId>
<Description>sample string 6</Description>
<IsReadOnly>true</IsReadOnly>
<Name>sample string 5</Name>
<ProjectId>63887145-c8db-4c7d-880f-d55418db521b</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>d9f63528-bdc9-40f6-b1a4-883747976fde</DataSourceId>
<Description>sample string 6</Description>
<IsReadOnly>true</IsReadOnly>
<Name>sample string 5</Name>
<ProjectId>63887145-c8db-4c7d-880f-d55418db521b</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>2e858da4-8331-4163-a095-acb1bec4cf85</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>