POST api/courses/evaluation

评价课程

Request Information

URI Parameters

None.

Body Parameters

EvaluationDto
NameDescriptionTypeAdditional information
CourseId

课程编号

globally unique identifier

None.

StarLevel

评星

integer

None.

Appraise

评价

string

None.

Request Formats

application/json, text/json

Sample:
{
  "CourseId": "8627157b-896e-4844-a5e2-5de5e028c9d8",
  "StarLevel": 2,
  "Appraise": "sample string 3"
}

text/html

Sample:
{"CourseId":"8627157b-896e-4844-a5e2-5de5e028c9d8","StarLevel":2,"Appraise":"sample string 3"}

application/xml, text/xml

Sample:
<EvaluationDto xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/BJ.Services">
  <Appraise>sample string 3</Appraise>
  <CourseId>8627157b-896e-4844-a5e2-5de5e028c9d8</CourseId>
  <StarLevel>2</StarLevel>
</EvaluationDto>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

评价课程

JsonRtnDtoOfBoolean
NameDescriptionTypeAdditional 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});