POST api/Topic
Request Information
URI Parameters
None.
Body Parameters
BindTopicSubTopicList| Name | Description | Type | Additional information |
|---|---|---|---|
| lessonId | integer |
None. |
|
| courseId | integer |
None. |
|
| chapterId | integer |
None. |
|
| topic | string |
None. |
|
| url | string |
None. |
|
| subTopic | Collection of SubTopic |
None. |
Request Formats
application/json, text/json
Sample:
{
"lessonId": 1,
"courseId": 2,
"chapterId": 3,
"topic": "sample string 4",
"url": "sample string 5",
"subTopic": [
{
"id": 1,
"topicId": 2,
"subTopic": "sample string 3"
},
{
"id": 1,
"topicId": 2,
"subTopic": "sample string 3"
}
]
}
application/xml, text/xml
Sample:
<BindTopicSubTopicList xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/cos_webapi.Common">
<chapterId>3</chapterId>
<courseId>2</courseId>
<lessonId>1</lessonId>
<subTopic xmlns:d2p1="http://schemas.datacontract.org/2004/07/cos_webapi.Models.CourseModule">
<d2p1:SubTopic>
<d2p1:id>1</d2p1:id>
<d2p1:subTopic>sample string 3</d2p1:subTopic>
<d2p1:topicId>2</d2p1:topicId>
</d2p1:SubTopic>
<d2p1:SubTopic>
<d2p1:id>1</d2p1:id>
<d2p1:subTopic>sample string 3</d2p1:subTopic>
<d2p1:topicId>2</d2p1:topicId>
</d2p1:SubTopic>
</subTopic>
<topic>sample string 4</topic>
<url>sample string 5</url>
</BindTopicSubTopicList>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
IHttpActionResultNone.
Response Formats
application/json, text/json, application/xml, text/xml
Sample:
Sample not available.