POST api/data_source/proj

Request Information

URI Parameters

None.

Body Parameters

DSProjectModel
NameDescriptionTypeAdditional 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": "b10c3551-bcda-402c-8396-04c3533b65ac",
  "name": "sample string 2",
  "show": true,
  "dataSources": [
    {
      "projectId": "e65735b3-7e0d-4aab-8100-bc1dcbbcb6af",
      "projectName": "sample string 2",
      "dataSourceId": "aa030420-0270-4a73-b7f9-14001285fc9d",
      "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": "e65735b3-7e0d-4aab-8100-bc1dcbbcb6af",
      "projectName": "sample string 2",
      "dataSourceId": "aa030420-0270-4a73-b7f9-14001285fc9d",
      "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>aa030420-0270-4a73-b7f9-14001285fc9d</DataSourceId>
      <Description>sample string 6</Description>
      <IsReadOnly>true</IsReadOnly>
      <Name>sample string 5</Name>
      <ProjectId>e65735b3-7e0d-4aab-8100-bc1dcbbcb6af</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>aa030420-0270-4a73-b7f9-14001285fc9d</DataSourceId>
      <Description>sample string 6</Description>
      <IsReadOnly>true</IsReadOnly>
      <Name>sample string 5</Name>
      <ProjectId>e65735b3-7e0d-4aab-8100-bc1dcbbcb6af</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>b10c3551-bcda-402c-8396-04c3533b65ac</ProjectId>
  <Show>true</Show>
</DSProjectModel>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

ApiResult
NameDescriptionTypeAdditional 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>