POST Api/Courses/Lessons/Add

Request Information

URI Parameters

None.

Body Parameters

LessonRequest
NameDescriptionTypeAdditional information
idLesson

integer

None.

idCourse

integer

None.

title

string

None.

minutes

integer

None.

order

integer

None.

Request Formats

application/json, text/json

Sample:
{
  "idLesson": 1,
  "idCourse": 2,
  "title": "sample string 3",
  "minutes": 4,
  "order": 5
}

application/xml, text/xml

Sample:
<LessonRequest xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
  <idLesson>1</idLesson>
  <idCourse>2</idCourse>
  <title>sample string 3</title>
  <minutes>4</minutes>
  <order>5</order>
</LessonRequest>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

AddLessonResponse
NameDescriptionTypeAdditional information
success

La solicitud se realizo correctamente

boolean

None.

error

Error arrojado por la API

string

None.

idLesson

integer

None.

Response Formats

application/json, text/json

Sample:
{
  "success": true,
  "error": "sample string 2",
  "idLesson": 3
}

application/xml, text/xml

Sample:
<AddLessonResponse xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
  <success>true</success>
  <error>sample string 2</error>
  <idLesson>3</idLesson>
</AddLessonResponse>