POST api/questionstest/savequestionspaper
保存问卷试卷
Request Information
URI Parameters
None.
Body Parameters
参数
QuestionsPaperDtoName | Description | Type | Additional information |
---|---|---|---|
PaperUsers |
试卷的所有可用客户 |
Collection of Users |
None. |
PaperTest |
试卷的所有试题 |
Collection of QuestionsTestDto |
None. |
Id |
主键ID |
string |
Max length: 36 |
PaperName |
试卷名称 |
string |
Max length: 36 |
IsEnable |
是否启用 |
boolean |
None. |
Introduce |
介绍详情 |
string |
None. |
CreatedBy |
创建人 |
string |
Max length: 36 |
UpdatedBy |
修改人 |
string |
Max length: 36 |
UpdatedTime |
修改时间 |
date |
None. |
CreatedTime |
创建时间 |
date |
None. |
Request Formats
application/json, text/json
Sample:
{ "PaperUsers": [ { "UserID": 1, "StructureID": "sample string 2", "RolesID": 3, "AccountName": "sample string 4", "UserName": "sample string 5", "Alias": "sample string 6", "Gender": "sample string 7", "LoginPassword": "sample string 8", "EmployeeID": "sample string 9", "Business": "sample string 10", "Station": "sample string 11", "Certificate": "sample string 12", "PhoneCode": "sample string 13", "Email": "sample string 14", "Photo": "sample string 15", "Status": 16, "CreateDate": "2024-09-25T00:09:29.5017625+08:00", "UserMark": 1, "Phone": "sample string 17", "Identification": "sample string 18", "IsSystem": true, "Origin": 1, "EnableWatermark": true, "Watermark": "sample string 21", "ExpirationTime": "2024-09-25T00:09:29.5017625+08:00", "OpenId": "sample string 22" }, { "UserID": 1, "StructureID": "sample string 2", "RolesID": 3, "AccountName": "sample string 4", "UserName": "sample string 5", "Alias": "sample string 6", "Gender": "sample string 7", "LoginPassword": "sample string 8", "EmployeeID": "sample string 9", "Business": "sample string 10", "Station": "sample string 11", "Certificate": "sample string 12", "PhoneCode": "sample string 13", "Email": "sample string 14", "Photo": "sample string 15", "Status": 16, "CreateDate": "2024-09-25T00:09:29.5017625+08:00", "UserMark": 1, "Phone": "sample string 17", "Identification": "sample string 18", "IsSystem": true, "Origin": 1, "EnableWatermark": true, "Watermark": "sample string 21", "ExpirationTime": "2024-09-25T00:09:29.5017625+08:00", "OpenId": "sample string 22" } ], "PaperTest": [ { "QuestionsOptions": [ { "Id": 1, "QuestionsTestId": "sample string 2", "OptionAnswer": "sample string 3", "OptionInfo": "sample string 4" }, { "Id": 1, "QuestionsTestId": "sample string 2", "OptionAnswer": "sample string 3", "OptionInfo": "sample string 4" } ], "TestIndex": 1, "AnswerList": [ {}, {} ], "Id": "sample string 2", "Title": "sample string 3", "ExpectedAnswer": "sample string 4", "QuestionBankId": 5, "QTCategory": 0, "CreatedBy": "sample string 6", "IsDeleted": true, "CreatedTime": "2024-09-25T00:09:29.5017625+08:00" }, { "QuestionsOptions": [ { "Id": 1, "QuestionsTestId": "sample string 2", "OptionAnswer": "sample string 3", "OptionInfo": "sample string 4" }, { "Id": 1, "QuestionsTestId": "sample string 2", "OptionAnswer": "sample string 3", "OptionInfo": "sample string 4" } ], "TestIndex": 1, "AnswerList": [ {}, {} ], "Id": "sample string 2", "Title": "sample string 3", "ExpectedAnswer": "sample string 4", "QuestionBankId": 5, "QTCategory": 0, "CreatedBy": "sample string 6", "IsDeleted": true, "CreatedTime": "2024-09-25T00:09:29.5017625+08:00" } ], "Id": "sample string 1", "PaperName": "sample string 2", "IsEnable": true, "Introduce": "sample string 4", "CreatedBy": "sample string 5", "UpdatedBy": "sample string 6", "UpdatedTime": "2024-09-25T00:09:29.5017625+08:00", "CreatedTime": "2024-09-25T00:09:29.5017625+08:00" }
text/html
Sample:
{"PaperUsers":[{"UserID":1,"StructureID":"sample string 2","RolesID":3,"AccountName":"sample string 4","UserName":"sample string 5","Alias":"sample string 6","Gender":"sample string 7","LoginPassword":"sample string 8","EmployeeID":"sample string 9","Business":"sample string 10","Station":"sample string 11","Certificate":"sample string 12","PhoneCode":"sample string 13","Email":"sample string 14","Photo":"sample string 15","Status":16,"CreateDate":"2024-09-25T00:09:29.5017625+08:00","UserMark":1,"Phone":"sample string 17","Identification":"sample string 18","IsSystem":true,"Origin":1,"EnableWatermark":true,"Watermark":"sample string 21","ExpirationTime":"2024-09-25T00:09:29.5017625+08:00","OpenId":"sample string 22"},{"UserID":1,"StructureID":"sample string 2","RolesID":3,"AccountName":"sample string 4","UserName":"sample string 5","Alias":"sample string 6","Gender":"sample string 7","LoginPassword":"sample string 8","EmployeeID":"sample string 9","Business":"sample string 10","Station":"sample string 11","Certificate":"sample string 12","PhoneCode":"sample string 13","Email":"sample string 14","Photo":"sample string 15","Status":16,"CreateDate":"2024-09-25T00:09:29.5017625+08:00","UserMark":1,"Phone":"sample string 17","Identification":"sample string 18","IsSystem":true,"Origin":1,"EnableWatermark":true,"Watermark":"sample string 21","ExpirationTime":"2024-09-25T00:09:29.5017625+08:00","OpenId":"sample string 22"}],"PaperTest":[{"QuestionsOptions":[{"Id":1,"QuestionsTestId":"sample string 2","OptionAnswer":"sample string 3","OptionInfo":"sample string 4"},{"Id":1,"QuestionsTestId":"sample string 2","OptionAnswer":"sample string 3","OptionInfo":"sample string 4"}],"TestIndex":1,"AnswerList":[{},{}],"Id":"sample string 2","Title":"sample string 3","ExpectedAnswer":"sample string 4","QuestionBankId":5,"QTCategory":0,"CreatedBy":"sample string 6","IsDeleted":true,"CreatedTime":"2024-09-25T00:09:29.5017625+08:00"},{"QuestionsOptions":[{"Id":1,"QuestionsTestId":"sample string 2","OptionAnswer":"sample string 3","OptionInfo":"sample string 4"},{"Id":1,"QuestionsTestId":"sample string 2","OptionAnswer":"sample string 3","OptionInfo":"sample string 4"}],"TestIndex":1,"AnswerList":[{},{}],"Id":"sample string 2","Title":"sample string 3","ExpectedAnswer":"sample string 4","QuestionBankId":5,"QTCategory":0,"CreatedBy":"sample string 6","IsDeleted":true,"CreatedTime":"2024-09-25T00:09:29.5017625+08:00"}],"Id":"sample string 1","PaperName":"sample string 2","IsEnable":true,"Introduce":"sample string 4","CreatedBy":"sample string 5","UpdatedBy":"sample string 6","UpdatedTime":"2024-09-25T00:09:29.5017625+08:00","CreatedTime":"2024-09-25T00:09:29.5017625+08:00"}
application/xml, text/xml
Sample:
<QuestionsPaperDto xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/BJ.Services"> <CreatedBy xmlns="http://schemas.datacontract.org/2004/07/BJ.Data">sample string 5</CreatedBy> <CreatedTime xmlns="http://schemas.datacontract.org/2004/07/BJ.Data">2024-09-25T00:09:29.5017625+08:00</CreatedTime> <Id xmlns="http://schemas.datacontract.org/2004/07/BJ.Data">sample string 1</Id> <Introduce xmlns="http://schemas.datacontract.org/2004/07/BJ.Data">sample string 4</Introduce> <IsEnable xmlns="http://schemas.datacontract.org/2004/07/BJ.Data">true</IsEnable> <PaperName xmlns="http://schemas.datacontract.org/2004/07/BJ.Data">sample string 2</PaperName> <UpdatedBy xmlns="http://schemas.datacontract.org/2004/07/BJ.Data">sample string 6</UpdatedBy> <UpdatedTime xmlns="http://schemas.datacontract.org/2004/07/BJ.Data">2024-09-25T00:09:29.5017625+08:00</UpdatedTime> <PaperTest> <QuestionsTestDto> <CreatedBy xmlns="http://schemas.datacontract.org/2004/07/BJ.Data">sample string 6</CreatedBy> <CreatedTime xmlns="http://schemas.datacontract.org/2004/07/BJ.Data">2024-09-25T00:09:29.5017625+08:00</CreatedTime> <ExpectedAnswer xmlns="http://schemas.datacontract.org/2004/07/BJ.Data">sample string 4</ExpectedAnswer> <Id xmlns="http://schemas.datacontract.org/2004/07/BJ.Data">sample string 2</Id> <IsDeleted xmlns="http://schemas.datacontract.org/2004/07/BJ.Data">true</IsDeleted> <QTCategory xmlns="http://schemas.datacontract.org/2004/07/BJ.Data">单选题</QTCategory> <QuestionBankId xmlns="http://schemas.datacontract.org/2004/07/BJ.Data">5</QuestionBankId> <Title xmlns="http://schemas.datacontract.org/2004/07/BJ.Data">sample string 3</Title> <AnswerList xmlns:d4p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays"> <d4p1:anyType /> <d4p1:anyType /> </AnswerList> <QuestionsOptions xmlns:d4p1="http://schemas.datacontract.org/2004/07/BJ.Data"> <d4p1:QuestionsOptions> <d4p1:Id>1</d4p1:Id> <d4p1:OptionAnswer>sample string 3</d4p1:OptionAnswer> <d4p1:OptionInfo>sample string 4</d4p1:OptionInfo> <d4p1:QuestionsTestId>sample string 2</d4p1:QuestionsTestId> </d4p1:QuestionsOptions> <d4p1:QuestionsOptions> <d4p1:Id>1</d4p1:Id> <d4p1:OptionAnswer>sample string 3</d4p1:OptionAnswer> <d4p1:OptionInfo>sample string 4</d4p1:OptionInfo> <d4p1:QuestionsTestId>sample string 2</d4p1:QuestionsTestId> </d4p1:QuestionsOptions> </QuestionsOptions> <TestIndex>1</TestIndex> </QuestionsTestDto> <QuestionsTestDto> <CreatedBy xmlns="http://schemas.datacontract.org/2004/07/BJ.Data">sample string 6</CreatedBy> <CreatedTime xmlns="http://schemas.datacontract.org/2004/07/BJ.Data">2024-09-25T00:09:29.5017625+08:00</CreatedTime> <ExpectedAnswer xmlns="http://schemas.datacontract.org/2004/07/BJ.Data">sample string 4</ExpectedAnswer> <Id xmlns="http://schemas.datacontract.org/2004/07/BJ.Data">sample string 2</Id> <IsDeleted xmlns="http://schemas.datacontract.org/2004/07/BJ.Data">true</IsDeleted> <QTCategory xmlns="http://schemas.datacontract.org/2004/07/BJ.Data">单选题</QTCategory> <QuestionBankId xmlns="http://schemas.datacontract.org/2004/07/BJ.Data">5</QuestionBankId> <Title xmlns="http://schemas.datacontract.org/2004/07/BJ.Data">sample string 3</Title> <AnswerList xmlns:d4p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays"> <d4p1:anyType /> <d4p1:anyType /> </AnswerList> <QuestionsOptions xmlns:d4p1="http://schemas.datacontract.org/2004/07/BJ.Data"> <d4p1:QuestionsOptions> <d4p1:Id>1</d4p1:Id> <d4p1:OptionAnswer>sample string 3</d4p1:OptionAnswer> <d4p1:OptionInfo>sample string 4</d4p1:OptionInfo> <d4p1:QuestionsTestId>sample string 2</d4p1:QuestionsTestId> </d4p1:QuestionsOptions> <d4p1:QuestionsOptions> <d4p1:Id>1</d4p1:Id> <d4p1:OptionAnswer>sample string 3</d4p1:OptionAnswer> <d4p1:OptionInfo>sample string 4</d4p1:OptionInfo> <d4p1:QuestionsTestId>sample string 2</d4p1:QuestionsTestId> </d4p1:QuestionsOptions> </QuestionsOptions> <TestIndex>1</TestIndex> </QuestionsTestDto> </PaperTest> <PaperUsers xmlns:d2p1="http://schemas.datacontract.org/2004/07/BJ.Data"> <d2p1:Users> <d2p1:AccountName>sample string 4</d2p1:AccountName> <d2p1:Alias>sample string 6</d2p1:Alias> <d2p1:Business>sample string 10</d2p1:Business> <d2p1:Certificate>sample string 12</d2p1:Certificate> <d2p1:CreateDate>2024-09-25T00:09:29.5017625+08:00</d2p1:CreateDate> <d2p1:Email>sample string 14</d2p1:Email> <d2p1:EmployeeID>sample string 9</d2p1:EmployeeID> <d2p1:EnableWatermark>true</d2p1:EnableWatermark> <d2p1:ExpirationTime>2024-09-25T00:09:29.5017625+08:00</d2p1:ExpirationTime> <d2p1:Gender>sample string 7</d2p1:Gender> <d2p1:Identification>sample string 18</d2p1:Identification> <d2p1:IsSystem>true</d2p1:IsSystem> <d2p1:LoginPassword>sample string 8</d2p1:LoginPassword> <d2p1:OpenId>sample string 22</d2p1:OpenId> <d2p1:Origin>导入</d2p1:Origin> <d2p1:Phone>sample string 17</d2p1:Phone> <d2p1:PhoneCode>sample string 13</d2p1:PhoneCode> <d2p1:Photo>sample string 15</d2p1:Photo> <d2p1:RolesID>3</d2p1:RolesID> <d2p1:Station>sample string 11</d2p1:Station> <d2p1:Status>16</d2p1:Status> <d2p1:StructureID>sample string 2</d2p1:StructureID> <d2p1:UserID>1</d2p1:UserID> <d2p1:UserMark>1</d2p1:UserMark> <d2p1:UserName>sample string 5</d2p1:UserName> <d2p1:Watermark>sample string 21</d2p1:Watermark> </d2p1:Users> <d2p1:Users> <d2p1:AccountName>sample string 4</d2p1:AccountName> <d2p1:Alias>sample string 6</d2p1:Alias> <d2p1:Business>sample string 10</d2p1:Business> <d2p1:Certificate>sample string 12</d2p1:Certificate> <d2p1:CreateDate>2024-09-25T00:09:29.5017625+08:00</d2p1:CreateDate> <d2p1:Email>sample string 14</d2p1:Email> <d2p1:EmployeeID>sample string 9</d2p1:EmployeeID> <d2p1:EnableWatermark>true</d2p1:EnableWatermark> <d2p1:ExpirationTime>2024-09-25T00:09:29.5017625+08:00</d2p1:ExpirationTime> <d2p1:Gender>sample string 7</d2p1:Gender> <d2p1:Identification>sample string 18</d2p1:Identification> <d2p1:IsSystem>true</d2p1:IsSystem> <d2p1:LoginPassword>sample string 8</d2p1:LoginPassword> <d2p1:OpenId>sample string 22</d2p1:OpenId> <d2p1:Origin>导入</d2p1:Origin> <d2p1:Phone>sample string 17</d2p1:Phone> <d2p1:PhoneCode>sample string 13</d2p1:PhoneCode> <d2p1:Photo>sample string 15</d2p1:Photo> <d2p1:RolesID>3</d2p1:RolesID> <d2p1:Station>sample string 11</d2p1:Station> <d2p1:Status>16</d2p1:Status> <d2p1:StructureID>sample string 2</d2p1:StructureID> <d2p1:UserID>1</d2p1:UserID> <d2p1:UserMark>1</d2p1:UserMark> <d2p1:UserName>sample string 5</d2p1:UserName> <d2p1:Watermark>sample string 21</d2p1:Watermark> </d2p1:Users> </PaperUsers> </QuestionsPaperDto>
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});