GET v1/TrainingType/List?TrainingGuid={TrainingGuid}&SearchString={SearchString}

Request Information

URI Parameters

NameDescriptionTypeAdditional information
TrainingGuid

globally unique identifier

None.

SearchString

string

None.

Body Parameters

None.

Response Information

Resource Description

TrainingTypeListViewModel
NameDescriptionTypeAdditional information
Items

Collection of TrainingTypeListItemViewModel

None.

Response Formats

application/json, text/json

Sample:
{
  "Items": [
    {
      "Guid": "b3a5e42f-4b08-46ac-a94d-53f95beb393a",
      "Name": "sample string 2",
      "NumberOfTrainings": 3
    },
    {
      "Guid": "b3a5e42f-4b08-46ac-a94d-53f95beb393a",
      "Name": "sample string 2",
      "NumberOfTrainings": 3
    }
  ]
}

application/octet-stream

Sample:
{"Items":[{"Guid":"b3a5e42f-4b08-46ac-a94d-53f95beb393a","Name":"sample string 2","NumberOfTrainings":3},{"Guid":"b3a5e42f-4b08-46ac-a94d-53f95beb393a","Name":"sample string 2","NumberOfTrainings":3}]}

application/xml, text/xml

Sample:
<TrainingTypeListViewModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Interpulse.EventSystem.ViewModels.Services.List">
  <Items>
    <TrainingTypeListItemViewModel>
      <Guid>b3a5e42f-4b08-46ac-a94d-53f95beb393a</Guid>
      <Name>sample string 2</Name>
      <NumberOfTrainings>3</NumberOfTrainings>
    </TrainingTypeListItemViewModel>
    <TrainingTypeListItemViewModel>
      <Guid>b3a5e42f-4b08-46ac-a94d-53f95beb393a</Guid>
      <Name>sample string 2</Name>
      <NumberOfTrainings>3</NumberOfTrainings>
    </TrainingTypeListItemViewModel>
  </Items>
</TrainingTypeListViewModel>