POST api/papertemplate/save
保存试卷模板
Request Information
URI Parameters
None.
Body Parameters
TemplateDtoName | Description | Type | Additional information |
---|---|---|---|
Id |
模板编号 |
globally unique identifier |
None. |
TemplateName |
模板名称 |
string |
None. |
ProfessionalCourseId |
课程编号 |
integer |
None. |
ProfessionalCoursePath |
课程路径 |
string |
None. |
IsShared |
是否共享 |
boolean |
None. |
Lrrd |
随机选题规则 |
Collection of RandomRuleDto |
None. |
TemplateType |
模板类型 |
TemplateType |
None. |
JsonTemplate |
模板符串 |
string |
None. |
JsonCard |
答题卡字符串(用来保存答题卡坐标对应位置信息) |
string |
None. |
Request Formats
application/json, text/json
Sample:
{ "Id": "e1392a2a-cda4-4468-bb62-05a422043686", "TemplateName": "sample string 2", "ProfessionalCourseId": 3, "ProfessionalCoursePath": "sample string 4", "IsShared": true, "Lrrd": [ { "Id": "3e9b9771-bb8c-45b1-aee0-8b1f0c808964", "Knowledge": "sample string 2", "PId": "ffff4939-dbc2-4a71-be17-faf3e82fd607", "RuleInfo": "sample string 3", "RuleType": 1, "Taget": 4, "TestTypeId": 5, "Difficulty": 6, "ReTestNum": 7, "Score": "sample string 8", "ReTestRepositoryId": 9, "DescribeReTestRepositoryId": "c158d78e-855e-4942-a8c6-9dacb4dc663a", "Sort": 10 }, { "Id": "3e9b9771-bb8c-45b1-aee0-8b1f0c808964", "Knowledge": "sample string 2", "PId": "ffff4939-dbc2-4a71-be17-faf3e82fd607", "RuleInfo": "sample string 3", "RuleType": 1, "Taget": 4, "TestTypeId": 5, "Difficulty": 6, "ReTestNum": 7, "Score": "sample string 8", "ReTestRepositoryId": 9, "DescribeReTestRepositoryId": "c158d78e-855e-4942-a8c6-9dacb4dc663a", "Sort": 10 } ], "TemplateType": 0, "JsonTemplate": "sample string 6", "JsonCard": "sample string 7" }
text/html
Sample:
{"Id":"e1392a2a-cda4-4468-bb62-05a422043686","TemplateName":"sample string 2","ProfessionalCourseId":3,"ProfessionalCoursePath":"sample string 4","IsShared":true,"Lrrd":[{"Id":"3e9b9771-bb8c-45b1-aee0-8b1f0c808964","Knowledge":"sample string 2","PId":"ffff4939-dbc2-4a71-be17-faf3e82fd607","RuleInfo":"sample string 3","RuleType":1,"Taget":4,"TestTypeId":5,"Difficulty":6,"ReTestNum":7,"Score":"sample string 8","ReTestRepositoryId":9,"DescribeReTestRepositoryId":"c158d78e-855e-4942-a8c6-9dacb4dc663a","Sort":10},{"Id":"3e9b9771-bb8c-45b1-aee0-8b1f0c808964","Knowledge":"sample string 2","PId":"ffff4939-dbc2-4a71-be17-faf3e82fd607","RuleInfo":"sample string 3","RuleType":1,"Taget":4,"TestTypeId":5,"Difficulty":6,"ReTestNum":7,"Score":"sample string 8","ReTestRepositoryId":9,"DescribeReTestRepositoryId":"c158d78e-855e-4942-a8c6-9dacb4dc663a","Sort":10}],"TemplateType":0,"JsonTemplate":"sample string 6","JsonCard":"sample string 7"}
application/xml, text/xml
Sample:
<TemplateDto xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/BJ.Services"> <Id>e1392a2a-cda4-4468-bb62-05a422043686</Id> <IsShared>true</IsShared> <JsonCard>sample string 7</JsonCard> <JsonTemplate>sample string 6</JsonTemplate> <Lrrd> <RandomRuleDto> <DescribeReTestRepositoryId>c158d78e-855e-4942-a8c6-9dacb4dc663a</DescribeReTestRepositoryId> <Difficulty>6</Difficulty> <Id>3e9b9771-bb8c-45b1-aee0-8b1f0c808964</Id> <Knowledge>sample string 2</Knowledge> <PId>ffff4939-dbc2-4a71-be17-faf3e82fd607</PId> <ReTestNum>7</ReTestNum> <ReTestRepositoryId>9</ReTestRepositoryId> <RuleInfo>sample string 3</RuleInfo> <RuleType>组合规则</RuleType> <Score>sample string 8</Score> <Sort>10</Sort> <Taget>4</Taget> <TestTypeId>5</TestTypeId> </RandomRuleDto> <RandomRuleDto> <DescribeReTestRepositoryId>c158d78e-855e-4942-a8c6-9dacb4dc663a</DescribeReTestRepositoryId> <Difficulty>6</Difficulty> <Id>3e9b9771-bb8c-45b1-aee0-8b1f0c808964</Id> <Knowledge>sample string 2</Knowledge> <PId>ffff4939-dbc2-4a71-be17-faf3e82fd607</PId> <ReTestNum>7</ReTestNum> <ReTestRepositoryId>9</ReTestRepositoryId> <RuleInfo>sample string 3</RuleInfo> <RuleType>组合规则</RuleType> <Score>sample string 8</Score> <Sort>10</Sort> <Taget>4</Taget> <TestTypeId>5</TestTypeId> </RandomRuleDto> </Lrrd> <ProfessionalCourseId>3</ProfessionalCourseId> <ProfessionalCoursePath>sample string 4</ProfessionalCoursePath> <TemplateName>sample string 2</TemplateName> <TemplateType>线上模板</TemplateType> </TemplateDto>
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});