POST api/courses/discussion
评论课程
Request Information
URI Parameters
None.
Body Parameters
DiscussionDtoName | Description | Type | Additional information |
---|---|---|---|
CourseId |
课程编号 |
globally unique identifier |
None. |
CatalogId |
目录编号 |
integer |
None. |
Info |
评价 |
string |
None. |
Request Formats
application/json, text/json
Sample:
{ "CourseId": "c5c7b49a-b928-4be3-b4ce-ee24462b29c3", "CatalogId": 2, "Info": "sample string 3" }
text/html
Sample:
{"CourseId":"c5c7b49a-b928-4be3-b4ce-ee24462b29c3","CatalogId":2,"Info":"sample string 3"}
application/xml, text/xml
Sample:
<DiscussionDto xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/BJ.Services"> <CatalogId>2</CatalogId> <CourseId>c5c7b49a-b928-4be3-b4ce-ee24462b29c3</CourseId> <Info>sample string 3</Info> </DiscussionDto>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
评论课程
JsonRtnDtoOfBooleanName | Description | Type | Additional information |
---|---|---|---|
Msg | string |
None. |
|
State | RtnState |
None. |
|
Data | boolean |
None. |
Response Formats
application/json, text/json
Sample:
{ "Msg": "sample string 1", "State": 100, "Data": true }
text/html
Sample:
{"Msg":"sample string 1","State":100,"Data":true}
application/xml, text/xml
Sample:
<JsonRtnDtoOfboolean xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/BJ.Services"> <Data>true</Data> <Msg>sample string 1</Msg> <State>Display</State> </JsonRtnDtoOfboolean>
text/javascript, application/javascript, application/json-p
Sample:
/**/ typeof === 'function' && ({"Msg":"sample string 1","State":100,"Data":true});