GET api/Courses

Request Information

URI Parameters

None.

Body Parameters

Available_Tutor
NameDescriptionTypeAdditional information
firstname

string

None.

lastname

string

None.

id

integer

None.

capacity

integer

None.

total_enrolments

integer

None.

available_spaces

integer

None.

disabled

boolean

None.

notes

string

None.

relevant_support_course_id

integer

None.

Request Formats

application/json, text/json

Sample:
{
  "firstname": "sample string 1",
  "lastname": "sample string 2",
  "id": 3,
  "capacity": 4,
  "total_enrolments": 5,
  "available_spaces": 6,
  "disabled": true,
  "notes": "sample string 8",
  "relevant_support_course_id": 9
}

application/xml, text/xml

Sample:
<CoursesController.Available_Tutor xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Totara.WEBAPI.Controllers">
  <available_spaces>6</available_spaces>
  <capacity>4</capacity>
  <disabled>true</disabled>
  <firstname>sample string 1</firstname>
  <id>3</id>
  <lastname>sample string 2</lastname>
  <notes>sample string 8</notes>
  <relevant_support_course_id>9</relevant_support_course_id>
  <total_enrolments>5</total_enrolments>
</CoursesController.Available_Tutor>

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

Response Information

Resource Description

integer

Response Formats

application/json, text/json

Sample:
1

application/xml, text/xml

Sample:
<int xmlns="http://schemas.microsoft.com/2003/10/Serialization/">1</int>