POST api/OfflinePaper/SaveOfflinePaper

保存离线试卷

Request Information

URI Parameters

None.

Body Parameters

OfflinePaper
NameDescriptionTypeAdditional information
Id

试卷编号

globally unique identifier

None.

PaperName

试卷名称

string

None.

ProfessionalCourseId

课程编号

integer

None.

ProfessionalCourseName

课程名称

string

None.

ExamTime

考试时间

date

None.

TotalScore

试卷总分

decimal number

None.

UserId

创建人

integer

None.

CreatedTime

创建时间

date

None.

Request Formats

application/json, text/json

Sample:
{
  "Id": "3191bc32-f804-46a6-86ec-2d766ecf6589",
  "PaperName": "sample string 2",
  "ProfessionalCourseId": 3,
  "ProfessionalCourseName": "sample string 4",
  "ExamTime": "2024-09-25T00:08:35.1131528+08:00",
  "TotalScore": 5.1,
  "UserId": 6,
  "CreatedTime": "2024-09-25T00:08:35.1131528+08:00"
}

text/html

Sample:
{"Id":"3191bc32-f804-46a6-86ec-2d766ecf6589","PaperName":"sample string 2","ProfessionalCourseId":3,"ProfessionalCourseName":"sample string 4","ExamTime":"2024-09-25T00:08:35.1131528+08:00","TotalScore":5.1,"UserId":6,"CreatedTime":"2024-09-25T00:08:35.1131528+08:00"}

application/xml, text/xml

Sample:
<OfflinePaper xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/BJ.Data">
  <CreatedTime>2024-09-25T00:08:35.1131528+08:00</CreatedTime>
  <ExamTime>2024-09-25T00:08:35.1131528+08:00</ExamTime>
  <Id>3191bc32-f804-46a6-86ec-2d766ecf6589</Id>
  <PaperName>sample string 2</PaperName>
  <ProfessionalCourseId>3</ProfessionalCourseId>
  <ProfessionalCourseName>sample string 4</ProfessionalCourseName>
  <TotalScore>5.1</TotalScore>
  <UserId>6</UserId>
</OfflinePaper>

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