POST api/CoachProfiles/All

Request Information

URI Parameters

None.

Body Parameters

DataTableCoachesParameter
NameDescriptionTypeAdditional information
columns

Collection of DataTableColumn

None.

draw

integer

None.

length

integer

None.

order

Collection of DataTableOrderValue

None.

start

integer

None.

CoachID

integer

None.

filter

FilterType

None.

search

DataTableSearchValue

None.

Request Formats

application/json, text/json

Sample:
{
  "CoachID": 1,
  "filter": 0,
  "search": {
    "value": "sample string 1",
    "regex": true
  },
  "columns": [
    {
      "data": "sample string 1",
      "name": "sample string 2",
      "searchable": true,
      "orderable": true,
      "Search": {
        "value": "sample string 1",
        "regex": true
      }
    },
    {
      "data": "sample string 1",
      "name": "sample string 2",
      "searchable": true,
      "orderable": true,
      "Search": {
        "value": "sample string 1",
        "regex": true
      }
    }
  ],
  "draw": 1,
  "length": 2,
  "order": [
    {
      "column": 1,
      "dir": "sample string 2"
    },
    {
      "column": 1,
      "dir": "sample string 2"
    }
  ],
  "start": 3
}

application/xml, text/xml

Sample:
<DataTableCoachesParameter xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/_10RuleAPI.Models.DataTables">
  <columns>
    <DataTableColumn>
      <Search>
        <regex>true</regex>
        <value>sample string 1</value>
      </Search>
      <data>sample string 1</data>
      <name>sample string 2</name>
      <orderable>true</orderable>
      <searchable>true</searchable>
    </DataTableColumn>
    <DataTableColumn>
      <Search>
        <regex>true</regex>
        <value>sample string 1</value>
      </Search>
      <data>sample string 1</data>
      <name>sample string 2</name>
      <orderable>true</orderable>
      <searchable>true</searchable>
    </DataTableColumn>
  </columns>
  <draw>1</draw>
  <length>2</length>
  <order>
    <DataTableOrderValue>
      <column>1</column>
      <dir>sample string 2</dir>
    </DataTableOrderValue>
    <DataTableOrderValue>
      <column>1</column>
      <dir>sample string 2</dir>
    </DataTableOrderValue>
  </order>
  <search>
    <regex>true</regex>
    <value>sample string 1</value>
  </search>
  <start>3</start>
  <CoachID>1</CoachID>
  <filter>ALL</filter>
</DataTableCoachesParameter>

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

Response Information

Resource Description

DataTableCoachesResponse
NameDescriptionTypeAdditional information
data

Collection of CoachAllModel

None.

draw

integer

None.

recordsTotal

integer

None.

recordsFiltered

integer

None.

Response Formats

application/json, text/json

Sample:
{
  "data": [
    {
      "coachprofileID": 1,
      "name": "sample string 2",
      "dateTrainingCompleted": "2021-06-18T20:56:48.0285537-07:00",
      "numTrainees": 3,
      "capacity": 4,
      "gender": "sample string 5",
      "strEmail1": "sample string 6",
      "isactive": true,
      "isCurrentlyCertified": true,
      "industries": "sample string 9"
    },
    {
      "coachprofileID": 1,
      "name": "sample string 2",
      "dateTrainingCompleted": "2021-06-18T20:56:48.0285537-07:00",
      "numTrainees": 3,
      "capacity": 4,
      "gender": "sample string 5",
      "strEmail1": "sample string 6",
      "isactive": true,
      "isCurrentlyCertified": true,
      "industries": "sample string 9"
    }
  ],
  "draw": 1,
  "recordsTotal": 2,
  "recordsFiltered": 3
}

application/xml, text/xml

Sample:
<DataTableCoachesResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/_10RuleAPI.Models.DataTables">
  <draw>1</draw>
  <recordsFiltered>3</recordsFiltered>
  <recordsTotal>2</recordsTotal>
  <data xmlns:d2p1="http://schemas.datacontract.org/2004/07/_10RuleAPI.Models.CoachProfile">
    <d2p1:CoachAllModel>
      <d2p1:capacity>4</d2p1:capacity>
      <d2p1:coachprofileID>1</d2p1:coachprofileID>
      <d2p1:dateTrainingCompleted>2021-06-18T20:56:48.0285537-07:00</d2p1:dateTrainingCompleted>
      <d2p1:gender>sample string 5</d2p1:gender>
      <d2p1:industries>sample string 9</d2p1:industries>
      <d2p1:isCurrentlyCertified>true</d2p1:isCurrentlyCertified>
      <d2p1:isactive>true</d2p1:isactive>
      <d2p1:name>sample string 2</d2p1:name>
      <d2p1:numTrainees>3</d2p1:numTrainees>
      <d2p1:strEmail1>sample string 6</d2p1:strEmail1>
    </d2p1:CoachAllModel>
    <d2p1:CoachAllModel>
      <d2p1:capacity>4</d2p1:capacity>
      <d2p1:coachprofileID>1</d2p1:coachprofileID>
      <d2p1:dateTrainingCompleted>2021-06-18T20:56:48.0285537-07:00</d2p1:dateTrainingCompleted>
      <d2p1:gender>sample string 5</d2p1:gender>
      <d2p1:industries>sample string 9</d2p1:industries>
      <d2p1:isCurrentlyCertified>true</d2p1:isCurrentlyCertified>
      <d2p1:isactive>true</d2p1:isactive>
      <d2p1:name>sample string 2</d2p1:name>
      <d2p1:numTrainees>3</d2p1:numTrainees>
      <d2p1:strEmail1>sample string 6</d2p1:strEmail1>
    </d2p1:CoachAllModel>
  </data>
</DataTableCoachesResponse>