POST api/courses/save

保存课程

Request Information

URI Parameters

None.

Body Parameters

课程实体

CourseSaveDto
NameDescriptionTypeAdditional information
Id

编号

globally unique identifier

None.

PubID

该课程的所有版本所共有的课程编号

globally unique identifier

None.

UserID

用户编号

string

None.

ProfessionalCourseId

课程专业编号

integer

None.

ProfessionalCoursePath

课程专业路径

string

None.

CourseName

课程名称

string

None.

CourseTypes

课程分类

string

None.

ChargeID

负责人编辑

integer

None.

Cover

封面

string

None.

Recommendation

推荐语

string

None.

Lbls

标签

string

None.

TeachTeam

教学团队

string

None.

Period

学时

decimal number

None.

Credits

学分

integer

None.

OpenState

课程公开状

boolean

None.

IsHot

是否热门

boolean

None.

Semester

学期

Semester

None.

Grade

年级

integer

None.

Request Formats

application/json, text/json

Sample:
{
  "Id": "37877bee-e258-42b2-8c8f-52563024471c",
  "PubID": "139a6efd-ff9a-4bee-bd1b-85d0a391d9d8",
  "UserID": "sample string 3",
  "ProfessionalCourseId": 4,
  "ProfessionalCoursePath": "sample string 5",
  "CourseName": "sample string 6",
  "CourseTypes": "sample string 7",
  "ChargeID": 8,
  "Cover": "sample string 9",
  "Recommendation": "sample string 10",
  "Lbls": "sample string 11",
  "TeachTeam": "sample string 12",
  "Period": 13.1,
  "Credits": 14,
  "OpenState": true,
  "IsHot": true,
  "Semester": 1,
  "Grade": 16
}

text/html

Sample:
{"Id":"37877bee-e258-42b2-8c8f-52563024471c","PubID":"139a6efd-ff9a-4bee-bd1b-85d0a391d9d8","UserID":"sample string 3","ProfessionalCourseId":4,"ProfessionalCoursePath":"sample string 5","CourseName":"sample string 6","CourseTypes":"sample string 7","ChargeID":8,"Cover":"sample string 9","Recommendation":"sample string 10","Lbls":"sample string 11","TeachTeam":"sample string 12","Period":13.1,"Credits":14,"OpenState":true,"IsHot":true,"Semester":1,"Grade":16}

application/xml, text/xml

Sample:
<CourseSaveDto xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/BJ.Services">
  <ChargeID>8</ChargeID>
  <CourseName>sample string 6</CourseName>
  <CourseTypes>sample string 7</CourseTypes>
  <Cover>sample string 9</Cover>
  <Credits>14</Credits>
  <Grade>16</Grade>
  <Id>37877bee-e258-42b2-8c8f-52563024471c</Id>
  <IsHot>true</IsHot>
  <Lbls>sample string 11</Lbls>
  <OpenState>true</OpenState>
  <Period>13.1</Period>
  <ProfessionalCourseId>4</ProfessionalCourseId>
  <ProfessionalCoursePath>sample string 5</ProfessionalCoursePath>
  <PubID>139a6efd-ff9a-4bee-bd1b-85d0a391d9d8</PubID>
  <Recommendation>sample string 10</Recommendation>
  <Semester>第一学期</Semester>
  <TeachTeam>sample string 12</TeachTeam>
  <UserID>sample string 3</UserID>
</CourseSaveDto>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

保存课程

JsonRtnDtoOfCourseSaveDto
NameDescriptionTypeAdditional information
Msg

string

None.

State

RtnState

None.

Data

CourseSaveDto

None.

Response Formats

application/json, text/json

Sample:
{
  "Msg": "sample string 1",
  "State": 100,
  "Data": {
    "Id": "b05e5b10-a676-4c45-9a62-1bdda471eae6",
    "PubID": "5705c979-4f04-4cbf-afb9-826f34f750c3",
    "UserID": "sample string 3",
    "ProfessionalCourseId": 4,
    "ProfessionalCoursePath": "sample string 5",
    "CourseName": "sample string 6",
    "CourseTypes": "sample string 7",
    "ChargeID": 8,
    "Cover": "sample string 9",
    "Recommendation": "sample string 10",
    "Lbls": "sample string 11",
    "TeachTeam": "sample string 12",
    "Period": 13.1,
    "Credits": 14,
    "OpenState": true,
    "IsHot": true,
    "Semester": 1,
    "Grade": 16
  }
}

text/html

Sample:
{"Msg":"sample string 1","State":100,"Data":{"Id":"b05e5b10-a676-4c45-9a62-1bdda471eae6","PubID":"5705c979-4f04-4cbf-afb9-826f34f750c3","UserID":"sample string 3","ProfessionalCourseId":4,"ProfessionalCoursePath":"sample string 5","CourseName":"sample string 6","CourseTypes":"sample string 7","ChargeID":8,"Cover":"sample string 9","Recommendation":"sample string 10","Lbls":"sample string 11","TeachTeam":"sample string 12","Period":13.1,"Credits":14,"OpenState":true,"IsHot":true,"Semester":1,"Grade":16}}

application/xml, text/xml

Sample:
<JsonRtnDtoOfCourseSaveDtov3CTEUQJ xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/BJ.Services">
  <Data>
    <ChargeID>8</ChargeID>
    <CourseName>sample string 6</CourseName>
    <CourseTypes>sample string 7</CourseTypes>
    <Cover>sample string 9</Cover>
    <Credits>14</Credits>
    <Grade>16</Grade>
    <Id>b05e5b10-a676-4c45-9a62-1bdda471eae6</Id>
    <IsHot>true</IsHot>
    <Lbls>sample string 11</Lbls>
    <OpenState>true</OpenState>
    <Period>13.1</Period>
    <ProfessionalCourseId>4</ProfessionalCourseId>
    <ProfessionalCoursePath>sample string 5</ProfessionalCoursePath>
    <PubID>5705c979-4f04-4cbf-afb9-826f34f750c3</PubID>
    <Recommendation>sample string 10</Recommendation>
    <Semester>第一学期</Semester>
    <TeachTeam>sample string 12</TeachTeam>
    <UserID>sample string 3</UserID>
  </Data>
  <Msg>sample string 1</Msg>
  <State>Display</State>
</JsonRtnDtoOfCourseSaveDtov3CTEUQJ>

text/javascript, application/javascript, application/json-p

Sample:
/**/ typeof  === 'function' && ({"Msg":"sample string 1","State":100,"Data":{"Id":"b05e5b10-a676-4c45-9a62-1bdda471eae6","PubID":"5705c979-4f04-4cbf-afb9-826f34f750c3","UserID":"sample string 3","ProfessionalCourseId":4,"ProfessionalCoursePath":"sample string 5","CourseName":"sample string 6","CourseTypes":"sample string 7","ChargeID":8,"Cover":"sample string 9","Recommendation":"sample string 10","Lbls":"sample string 11","TeachTeam":"sample string 12","Period":13.1,"Credits":14,"OpenState":true,"IsHot":true,"Semester":1,"Grade":16}});