GET v1/TrainingContent/List?trainingId={trainingId}&searchString={searchString}

Request Information

URI Parameters

NameDescriptionTypeAdditional information
trainingId

globally unique identifier

Required

searchString

string

None.

Body Parameters

None.

Response Information

Resource Description

TrainingContentListViewModel
NameDescriptionTypeAdditional information
Items

Collection of TrainingContentListItemViewModel

None.

Response Formats

application/json, text/json

Sample:
{
  "Items": [
    {
      "Guid": "304ecd47-c36e-4cbd-83b7-0e7bfb866a80",
      "Title": "sample string 2",
      "TrainingContentType": 0,
      "Nr": 3,
      "Contents": "sample string 4",
      "Hide": true
    },
    {
      "Guid": "304ecd47-c36e-4cbd-83b7-0e7bfb866a80",
      "Title": "sample string 2",
      "TrainingContentType": 0,
      "Nr": 3,
      "Contents": "sample string 4",
      "Hide": true
    }
  ]
}

application/octet-stream

Sample:
{"Items":[{"Guid":"304ecd47-c36e-4cbd-83b7-0e7bfb866a80","Title":"sample string 2","TrainingContentType":0,"Nr":3,"Contents":"sample string 4","Hide":true},{"Guid":"304ecd47-c36e-4cbd-83b7-0e7bfb866a80","Title":"sample string 2","TrainingContentType":0,"Nr":3,"Contents":"sample string 4","Hide":true}]}

application/xml, text/xml

Sample:
<TrainingContentListViewModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Interpulse.EventSystem.ViewModels.Services.List">
  <Items>
    <TrainingContentListItemViewModel>
      <Contents>sample string 4</Contents>
      <Guid>304ecd47-c36e-4cbd-83b7-0e7bfb866a80</Guid>
      <Hide>true</Hide>
      <Nr>3</Nr>
      <Title>sample string 2</Title>
      <TrainingContentType>Unassigned</TrainingContentType>
    </TrainingContentListItemViewModel>
    <TrainingContentListItemViewModel>
      <Contents>sample string 4</Contents>
      <Guid>304ecd47-c36e-4cbd-83b7-0e7bfb866a80</Guid>
      <Hide>true</Hide>
      <Nr>3</Nr>
      <Title>sample string 2</Title>
      <TrainingContentType>Unassigned</TrainingContentType>
    </TrainingContentListItemViewModel>
  </Items>
</TrainingContentListViewModel>