PUT api/Tables

Обновление таблицы по входному json-объекту

Request Information

URI Parameters

None.

Body Parameters

ViewTable
NameDescriptionTypeAdditional information
Id

string

None.

Name

string

None.

Description

string

None.

CreatedDate

date

None.

LastUpdate

date

None.

UserId

string

None.

NameSpace

string

None.

Count

integer

None.

Columns

Collection of Column

None.

Models

Collection of ViewModel

None.

IsDeleted

boolean

None.

Status

TableStatus

None.

Request Formats

application/json, text/json

Sample:
{
  "Id": "sample string 1",
  "Name": "sample string 2",
  "Description": "sample string 3",
  "CreatedDate": "2018-12-17T00:17:59.2699112+00:00",
  "LastUpdate": "2018-12-17T00:17:59.2706254+00:00",
  "UserId": "sample string 4",
  "NameSpace": "sample string 5",
  "Count": 6,
  "Columns": [
    {
      "Name": "sample string 1",
      "Description": "sample string 2",
      "Type": 1
    },
    {
      "Name": "sample string 1",
      "Description": "sample string 2",
      "Type": 1
    }
  ],
  "Models": [
    {
      "Id": "sample string 1",
      "Name": "sample string 2",
      "CreatedDate": "2018-12-17T00:17:59.2716252+00:00",
      "LastUpdate": "2018-12-17T00:17:59.2726254+00:00",
      "Status": {
        "Type": 0,
        "Code": 1
      },
      "IsCalculated": true,
      "Settings": {
        "LearningType": 0,
        "ProblemType": 0,
        "AlgorithmType": "sample string 1",
        "Maps": [
          {
            "Width": 1,
            "Height": 2,
            "Size": 3
          },
          {
            "Width": 1,
            "Height": 2,
            "Size": 3
          }
        ],
        "DependValue": [
          1,
          2
        ]
      },
      "IsDeleted": true
    },
    {
      "Id": "sample string 1",
      "Name": "sample string 2",
      "CreatedDate": "2018-12-17T00:17:59.2716252+00:00",
      "LastUpdate": "2018-12-17T00:17:59.2726254+00:00",
      "Status": {
        "Type": 0,
        "Code": 1
      },
      "IsCalculated": true,
      "Settings": {
        "LearningType": 0,
        "ProblemType": 0,
        "AlgorithmType": "sample string 1",
        "Maps": [
          {
            "Width": 1,
            "Height": 2,
            "Size": 3
          },
          {
            "Width": 1,
            "Height": 2,
            "Size": 3
          }
        ],
        "DependValue": [
          1,
          2
        ]
      },
      "IsDeleted": true
    }
  ],
  "IsDeleted": true,
  "Status": {
    "Type": 0,
    "Code": 1
  }
}

application/xml, text/xml

Sample:
<ViewTable xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/MindPlatform.Infrastructure.Models.Core">
  <Columns xmlns:d2p1="http://schemas.datacontract.org/2004/07/MindPlatform.CommonStructure.Core">
    <d2p1:Column>
      <d2p1:Description>sample string 2</d2p1:Description>
      <d2p1:Name>sample string 1</d2p1:Name>
      <d2p1:Type>Сategorical</d2p1:Type>
    </d2p1:Column>
    <d2p1:Column>
      <d2p1:Description>sample string 2</d2p1:Description>
      <d2p1:Name>sample string 1</d2p1:Name>
      <d2p1:Type>Сategorical</d2p1:Type>
    </d2p1:Column>
  </Columns>
  <Count>6</Count>
  <CreatedDate>2018-12-17T00:17:59.2699112+00:00</CreatedDate>
  <Description>sample string 3</Description>
  <Id>sample string 1</Id>
  <IsDeleted>true</IsDeleted>
  <LastUpdate>2018-12-17T00:17:59.2706254+00:00</LastUpdate>
  <Models>
    <ViewModel>
      <CreatedDate>2018-12-17T00:17:59.2716252+00:00</CreatedDate>
      <Id>sample string 1</Id>
      <IsCalculated>true</IsCalculated>
      <IsDeleted>true</IsDeleted>
      <LastUpdate>2018-12-17T00:17:59.2726254+00:00</LastUpdate>
      <Name>sample string 2</Name>
      <Settings>
        <AlgorithmType>sample string 1</AlgorithmType>
        <DependValue xmlns:d5p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
          <d5p1:int>1</d5p1:int>
          <d5p1:int>2</d5p1:int>
        </DependValue>
        <LearningType>Supervised</LearningType>
        <Maps>
          <ViewMap>
            <Height>2</Height>
            <Size>3</Size>
            <Width>1</Width>
          </ViewMap>
          <ViewMap>
            <Height>2</Height>
            <Size>3</Size>
            <Width>1</Width>
          </ViewMap>
        </Maps>
        <ProblemType>Null</ProblemType>
      </Settings>
      <Status xmlns:d4p1="http://schemas.datacontract.org/2004/07/MindPlatform.CommonStructure.Shared">
        <d4p1:Code>1</d4p1:Code>
        <d4p1:Type>NotCalculated</d4p1:Type>
      </Status>
    </ViewModel>
    <ViewModel>
      <CreatedDate>2018-12-17T00:17:59.2716252+00:00</CreatedDate>
      <Id>sample string 1</Id>
      <IsCalculated>true</IsCalculated>
      <IsDeleted>true</IsDeleted>
      <LastUpdate>2018-12-17T00:17:59.2726254+00:00</LastUpdate>
      <Name>sample string 2</Name>
      <Settings>
        <AlgorithmType>sample string 1</AlgorithmType>
        <DependValue xmlns:d5p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
          <d5p1:int>1</d5p1:int>
          <d5p1:int>2</d5p1:int>
        </DependValue>
        <LearningType>Supervised</LearningType>
        <Maps>
          <ViewMap>
            <Height>2</Height>
            <Size>3</Size>
            <Width>1</Width>
          </ViewMap>
          <ViewMap>
            <Height>2</Height>
            <Size>3</Size>
            <Width>1</Width>
          </ViewMap>
        </Maps>
        <ProblemType>Null</ProblemType>
      </Settings>
      <Status xmlns:d4p1="http://schemas.datacontract.org/2004/07/MindPlatform.CommonStructure.Shared">
        <d4p1:Code>1</d4p1:Code>
        <d4p1:Type>NotCalculated</d4p1:Type>
      </Status>
    </ViewModel>
  </Models>
  <Name>sample string 2</Name>
  <NameSpace>sample string 5</NameSpace>
  <Status xmlns:d2p1="http://schemas.datacontract.org/2004/07/MindPlatform.CommonStructure.Shared">
    <d2p1:Code>1</d2p1:Code>
    <d2p1:Type>Success</d2p1:Type>
  </Status>
  <UserId>sample string 4</UserId>
</ViewTable>

application/x-www-form-urlencoded

Sample:

Failed to generate the sample for media type 'application/x-www-form-urlencoded'. Cannot use formatter 'JQueryMvcFormUrlEncodedFormatter' to write type 'ViewTable'.

Response Information

Resource Description

Возвращает модель созданной таблицы

IHttpActionResult

None.

Response Formats

application/json, text/json, application/xml, text/xml

Sample:

Sample not available.