POST api/Courses

Request Information

URI Parameters

None.

Body Parameters

Collection of Course
NameDescriptionTypeAdditional information
id

integer

Required

course

string

Required

code

integer

Required

introVideoId

string

Required

Request Formats

application/json, text/json

Sample:
[
  {
    "id": 1,
    "course": "sample string 2",
    "code": 3,
    "introVideoId": "sample string 4"
  },
  {
    "id": 1,
    "course": "sample string 2",
    "code": 3,
    "introVideoId": "sample string 4"
  }
]

application/xml, text/xml

Sample:
<ArrayOfCourse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/cos_webapi.Models.CourseModule">
  <Course>
    <code>3</code>
    <course>sample string 2</course>
    <id>1</id>
    <introVideoId>sample string 4</introVideoId>
  </Course>
  <Course>
    <code>3</code>
    <course>sample string 2</course>
    <id>1</id>
    <introVideoId>sample string 4</introVideoId>
  </Course>
</ArrayOfCourse>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

application/json, text/json, application/xml, text/xml

Sample:

Sample not available.