POST UserCourse/Add

Request Information

URI Parameters

None.

Body Parameters

UserCourseDTO
NameDescriptionTypeAdditional information
CourseName

string

None.

CustomerNo

string

None.

Description

string

None.

ClassesSum

integer

None.

Request Formats

application/json, text/json

Sample:
{
  "CourseName": "sample string 1",
  "CustomerNo": "sample string 2",
  "Description": "sample string 3",
  "ClassesSum": 4
}

application/xml, text/xml

Sample:
<UserCourseDTO xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Zs.Ylx.Resources.Entity.BackgroundDTO">
  <ClassesSum>4</ClassesSum>
  <CourseName>sample string 1</CourseName>
  <CustomerNo>sample string 2</CustomerNo>
  <Description>sample string 3</Description>
</UserCourseDTO>

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

Response Information

Resource Description

None.