POST api/ShutdownRequest/Generator/Get

Request Information

URI Parameters

None.

Body Parameters

TableDataRequest
NameDescriptionTypeAdditional information
sEcho

integer

None.

iSortCol_0

integer

None.

sSortDir_0

string

None.

iDisplayStart

integer

None.

iDisplayLength

integer

None.

sSearch

string

None.

bRegex

boolean

None.

iColumns

integer

None.

bSortable_

Collection of boolean

None.

bSearchable_

Collection of boolean

None.

sSearch_

Collection of string

None.

bRegex_

Collection of boolean

None.

iSortingCols

integer

None.

iSortCol_

Collection of integer

None.

sSortDir_

Collection of string

None.

mDataProp_

Collection of string

None.

Request Formats

application/json, text/json

Sample:
{
  "sEcho": 1,
  "iSortCol_0": 2,
  "sSortDir_0": "sample string 3",
  "iDisplayStart": 4,
  "iDisplayLength": 5,
  "sSearch": "sample string 6",
  "bRegex": true,
  "iColumns": 8,
  "bSortable_": null,
  "bSearchable_": null,
  "sSearch_": null,
  "bRegex_": null,
  "iSortingCols": 1,
  "iSortCol_": null,
  "sSortDir_": null,
  "mDataProp_": null
}

application/xml, text/xml

Sample:
<TableDataRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/AMS.ERPC.API.DAL.Model.ViewModel.Grid.DataTables">
  <bRegex>true</bRegex>
  <bRegex_ xmlns:d2p1="http://schemas.datacontract.org/2004/07/System.Collections.ObjectModel" i:nil="true" />
  <bSearchable_ xmlns:d2p1="http://schemas.datacontract.org/2004/07/System.Collections.ObjectModel" i:nil="true" />
  <bSortable_ xmlns:d2p1="http://schemas.datacontract.org/2004/07/System.Collections.ObjectModel" i:nil="true" />
  <iColumns>8</iColumns>
  <iDisplayLength>5</iDisplayLength>
  <iDisplayStart>4</iDisplayStart>
  <iSortCol_ xmlns:d2p1="http://schemas.datacontract.org/2004/07/System.Collections.ObjectModel" i:nil="true" />
  <iSortCol_0>2</iSortCol_0>
  <iSortingCols>1</iSortingCols>
  <mDataProp_ xmlns:d2p1="http://schemas.datacontract.org/2004/07/System.Collections.ObjectModel" i:nil="true" />
  <sEcho>1</sEcho>
  <sSearch>sample string 6</sSearch>
  <sSearch_ xmlns:d2p1="http://schemas.datacontract.org/2004/07/System.Collections.ObjectModel" i:nil="true" />
  <sSortDir_ xmlns:d2p1="http://schemas.datacontract.org/2004/07/System.Collections.ObjectModel" i:nil="true" />
  <sSortDir_0>sample string 3</sSortDir_0>
</TableDataRequest>

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 'TableDataRequest'.

Response Information

Resource Description

DataTablesViewModelOfGeneratorShutdownRequestViewModel
NameDescriptionTypeAdditional information
columns

Collection of Column

None.

data

Collection of GeneratorShutdownRequestViewModel

None.

iTotalRecords

integer

None.

iTotalDisplayRecords

integer

None.

sEcho

integer

None.

Response Formats

application/json, text/json

Sample:
{
  "columns": null,
  "data": [
    {
      "Id": 1,
      "Unit_No": "sample string 2",
      "Unit_Capacity": "sample string 3",
      "Unit_Capacity_Derated__Upgradation": "sample string 4",
      "Owner": "sample string 5",
      "Date_Time_From": "sample string 6",
      "Date_Time_To": "sample string 7",
      "Effected_Parties": "sample string 8",
      "Purpose": "sample string 9",
      "OCL_Approved": "sample string 10",
      "Availed_Y__N": "sample string 11",
      "Remarks": "sample string 12"
    },
    {
      "Id": 1,
      "Unit_No": "sample string 2",
      "Unit_Capacity": "sample string 3",
      "Unit_Capacity_Derated__Upgradation": "sample string 4",
      "Owner": "sample string 5",
      "Date_Time_From": "sample string 6",
      "Date_Time_To": "sample string 7",
      "Effected_Parties": "sample string 8",
      "Purpose": "sample string 9",
      "OCL_Approved": "sample string 10",
      "Availed_Y__N": "sample string 11",
      "Remarks": "sample string 12"
    }
  ],
  "iTotalRecords": 1,
  "iTotalDisplayRecords": 2,
  "sEcho": 3
}

application/xml, text/xml

Sample:
<DataTablesViewModelOfGeneratorShutdownRequestViewModel3_PRQ4ymg xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/AMS.ERPC.API.DAL.Model.ViewModel.Grid">
  <columns xmlns:d2p1="http://schemas.datacontract.org/2004/07/AMS.ERPC.API.DAL.Model.ViewModel.Grid.DataTables" i:nil="true" />
  <data>
    <GeneratorShutdownRequestViewModel>
      <Availed_Y__N>sample string 11</Availed_Y__N>
      <Date_Time_From>sample string 6</Date_Time_From>
      <Date_Time_To>sample string 7</Date_Time_To>
      <Effected_Parties>sample string 8</Effected_Parties>
      <Id>1</Id>
      <OCL_Approved>sample string 10</OCL_Approved>
      <Owner>sample string 5</Owner>
      <Purpose>sample string 9</Purpose>
      <Remarks>sample string 12</Remarks>
      <Unit_Capacity>sample string 3</Unit_Capacity>
      <Unit_Capacity_Derated__Upgradation>sample string 4</Unit_Capacity_Derated__Upgradation>
      <Unit_No>sample string 2</Unit_No>
    </GeneratorShutdownRequestViewModel>
    <GeneratorShutdownRequestViewModel>
      <Availed_Y__N>sample string 11</Availed_Y__N>
      <Date_Time_From>sample string 6</Date_Time_From>
      <Date_Time_To>sample string 7</Date_Time_To>
      <Effected_Parties>sample string 8</Effected_Parties>
      <Id>1</Id>
      <OCL_Approved>sample string 10</OCL_Approved>
      <Owner>sample string 5</Owner>
      <Purpose>sample string 9</Purpose>
      <Remarks>sample string 12</Remarks>
      <Unit_Capacity>sample string 3</Unit_Capacity>
      <Unit_Capacity_Derated__Upgradation>sample string 4</Unit_Capacity_Derated__Upgradation>
      <Unit_No>sample string 2</Unit_No>
    </GeneratorShutdownRequestViewModel>
  </data>
  <iTotalDisplayRecords>2</iTotalDisplayRecords>
  <iTotalRecords>1</iTotalRecords>
  <sEcho>3</sEcho>
</DataTablesViewModelOfGeneratorShutdownRequestViewModel3_PRQ4ymg>