POST api/exam/save
保存习题
Request Information
URI Parameters
None.
Body Parameters
习题实体
ExamSaveDtoName | Description | Type | Additional information |
---|---|---|---|
Id |
习题编号(传入该习题编辑时为修改习题) |
globally unique identifier |
None. |
Title |
标题 |
string |
None. |
CourseId |
课程编号 |
globally unique identifier |
None. |
CatalogId |
目录编号 |
integer |
None. |
TestType |
题集类型(1.主观,2.客观) |
integer |
None. |
Description |
描述 |
string |
None. |
LengthTime |
允许时长 0.不限 |
integer |
None. |
Disorder |
打乱 |
boolean |
None. |
MaxAttempt |
允许测试次数 |
boolean |
None. |
Request Formats
application/json, text/json
Sample:
{ "Id": "869a6943-4deb-443b-96f5-268939401a40", "Title": "sample string 2", "CourseId": "e5d7b87e-c75a-4a2a-9c17-aab31a4d7266", "CatalogId": 1, "TestType": 4, "Description": "sample string 5", "LengthTime": 6, "Disorder": true, "MaxAttempt": true }
text/html
Sample:
{"Id":"869a6943-4deb-443b-96f5-268939401a40","Title":"sample string 2","CourseId":"e5d7b87e-c75a-4a2a-9c17-aab31a4d7266","CatalogId":1,"TestType":4,"Description":"sample string 5","LengthTime":6,"Disorder":true,"MaxAttempt":true}
application/xml, text/xml
Sample:
<ExamSaveDto xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/BJ.Services"> <CatalogId>1</CatalogId> <CourseId>e5d7b87e-c75a-4a2a-9c17-aab31a4d7266</CourseId> <Description>sample string 5</Description> <Disorder>true</Disorder> <Id>869a6943-4deb-443b-96f5-268939401a40</Id> <LengthTime>6</LengthTime> <MaxAttempt>true</MaxAttempt> <TestType>4</TestType> <Title>sample string 2</Title> </ExamSaveDto>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
保存习题
JsonRtnDtoOfExamName | Description | Type | Additional information |
---|---|---|---|
Msg | string |
None. |
|
State | RtnState |
None. |
|
Data | Exam |
None. |
Response Formats
application/json, text/json
Sample:
{ "Msg": "sample string 1", "State": 100, "Data": { "PubId": "3b747905-70db-47cd-80b8-dcfedbdc4c26", "Title": "sample string 1", "CourseId": "b87c2f51-2f46-486a-988f-501839d78347", "CatalogId": 1, "TestType": 3, "Description": "sample string 4", "LengthTime": 5, "Disorder": true, "MaxAttempt": true, "IsPublish": true, "PublishState": 1, "ExamTest": [ { "ReTestId": "545b0d98-164a-4f09-91f7-15f1511068e2", "ExamId": "eefc7a17-eeb9-48b5-98b6-0be57141d00c" }, { "ReTestId": "545b0d98-164a-4f09-91f7-15f1511068e2", "ExamId": "eefc7a17-eeb9-48b5-98b6-0be57141d00c" } ], "Id": "639f9474-693c-420e-b430-3dffbd3904dc", "CreatedTime": "2024-09-25T00:10:57.7339547+08:00", "IsDeleted": true, "LastUpdatedTime": "2024-09-25T00:10:57.7339547+08:00" } }
text/html
Sample:
{"Msg":"sample string 1","State":100,"Data":{"PubId":"3b747905-70db-47cd-80b8-dcfedbdc4c26","Title":"sample string 1","CourseId":"b87c2f51-2f46-486a-988f-501839d78347","CatalogId":1,"TestType":3,"Description":"sample string 4","LengthTime":5,"Disorder":true,"MaxAttempt":true,"IsPublish":true,"PublishState":1,"ExamTest":[{"ReTestId":"545b0d98-164a-4f09-91f7-15f1511068e2","ExamId":"eefc7a17-eeb9-48b5-98b6-0be57141d00c"},{"ReTestId":"545b0d98-164a-4f09-91f7-15f1511068e2","ExamId":"eefc7a17-eeb9-48b5-98b6-0be57141d00c"}],"Id":"639f9474-693c-420e-b430-3dffbd3904dc","CreatedTime":"2024-09-25T00:10:57.7339547+08:00","IsDeleted":true,"LastUpdatedTime":"2024-09-25T00:10:57.7339547+08:00"}}
application/xml, text/xml
Sample:
<JsonRtnDtoOfExammEDjlcEG xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/BJ.Services"> <Data xmlns:d2p1="http://schemas.datacontract.org/2004/07/BJ.Data"> <d2p1:CreatedTime>2024-09-25T00:10:57.7339547+08:00</d2p1:CreatedTime> <d2p1:Id>639f9474-693c-420e-b430-3dffbd3904dc</d2p1:Id> <d2p1:IsDeleted>true</d2p1:IsDeleted> <d2p1:LastUpdatedTime>2024-09-25T00:10:57.7339547+08:00</d2p1:LastUpdatedTime> <d2p1:CatalogId>1</d2p1:CatalogId> <d2p1:CourseId>b87c2f51-2f46-486a-988f-501839d78347</d2p1:CourseId> <d2p1:Description>sample string 4</d2p1:Description> <d2p1:Disorder>true</d2p1:Disorder> <d2p1:ExamTest> <d2p1:ExamTest> <d2p1:ExamId>eefc7a17-eeb9-48b5-98b6-0be57141d00c</d2p1:ExamId> <d2p1:ReTestId>545b0d98-164a-4f09-91f7-15f1511068e2</d2p1:ReTestId> </d2p1:ExamTest> <d2p1:ExamTest> <d2p1:ExamId>eefc7a17-eeb9-48b5-98b6-0be57141d00c</d2p1:ExamId> <d2p1:ReTestId>545b0d98-164a-4f09-91f7-15f1511068e2</d2p1:ReTestId> </d2p1:ExamTest> </d2p1:ExamTest> <d2p1:IsPublish>true</d2p1:IsPublish> <d2p1:LengthTime>5</d2p1:LengthTime> <d2p1:MaxAttempt>true</d2p1:MaxAttempt> <d2p1:PubId>3b747905-70db-47cd-80b8-dcfedbdc4c26</d2p1:PubId> <d2p1:PublishState>未发布</d2p1:PublishState> <d2p1:TestType>3</d2p1:TestType> <d2p1:Title>sample string 1</d2p1:Title> </Data> <Msg>sample string 1</Msg> <State>Display</State> </JsonRtnDtoOfExammEDjlcEG>
text/javascript, application/javascript, application/json-p
Sample:
/**/ typeof === 'function' && ({"Msg":"sample string 1","State":100,"Data":{"PubId":"3b747905-70db-47cd-80b8-dcfedbdc4c26","Title":"sample string 1","CourseId":"b87c2f51-2f46-486a-988f-501839d78347","CatalogId":1,"TestType":3,"Description":"sample string 4","LengthTime":5,"Disorder":true,"MaxAttempt":true,"IsPublish":true,"PublishState":1,"ExamTest":[{"ReTestId":"545b0d98-164a-4f09-91f7-15f1511068e2","ExamId":"eefc7a17-eeb9-48b5-98b6-0be57141d00c"},{"ReTestId":"545b0d98-164a-4f09-91f7-15f1511068e2","ExamId":"eefc7a17-eeb9-48b5-98b6-0be57141d00c"}],"Id":"639f9474-693c-420e-b430-3dffbd3904dc","CreatedTime":"2024-09-25T00:10:57.7339547+08:00","IsDeleted":true,"LastUpdatedTime":"2024-09-25T00:10:57.7339547+08:00"}});