GET api/answercard/testAnswerCardConfig
AnswerCardConfig结构
Request Information
URI Parameters
None.
Body Parameters
AnswerCardConfigName | Description | Type | Additional information |
---|---|---|---|
RuleId |
规则id |
globally unique identifier |
None. |
TestId |
试题编号(主观题必须有此来区分) |
globally unique identifier |
None. |
StuNoLength |
学号长度 |
integer |
None. |
LocationList |
试题的位置集合(一个试题分别展示在不同的页码才有多个,一般一个) |
Collection of TestLocation |
None. |
ObjectiveList |
客观题集合 |
Collection of ObjectiveItem |
None. |
Request Formats
application/json, text/json
Sample:
{ "RuleId": "52878941-9f03-42d6-9fc1-d0a2eb81bccb", "TestId": "c7604152-bd2c-48c3-97d1-54f4d9e91875", "StuNoLength": 3, "LocationList": [ { "X": 1, "Y": 2, "Width": 3, "Height": 4, "StartNo": 5, "EndNo": 6 }, { "X": 1, "Y": 2, "Width": 3, "Height": 4, "StartNo": 5, "EndNo": 6 } ], "ObjectiveList": [ { "TestId": "475a6ece-3837-422a-b766-d701afccbaaf", "TypeId": 2, "OptionXYList": [ { "X": 1, "Y": 2 }, { "X": 1, "Y": 2 } ], "OptionWidth": 3, "OptionHeight": 4 }, { "TestId": "475a6ece-3837-422a-b766-d701afccbaaf", "TypeId": 2, "OptionXYList": [ { "X": 1, "Y": 2 }, { "X": 1, "Y": 2 } ], "OptionWidth": 3, "OptionHeight": 4 } ] }
text/html
Sample:
{"RuleId":"52878941-9f03-42d6-9fc1-d0a2eb81bccb","TestId":"c7604152-bd2c-48c3-97d1-54f4d9e91875","StuNoLength":3,"LocationList":[{"X":1,"Y":2,"Width":3,"Height":4,"StartNo":5,"EndNo":6},{"X":1,"Y":2,"Width":3,"Height":4,"StartNo":5,"EndNo":6}],"ObjectiveList":[{"TestId":"475a6ece-3837-422a-b766-d701afccbaaf","TypeId":2,"OptionXYList":[{"X":1,"Y":2},{"X":1,"Y":2}],"OptionWidth":3,"OptionHeight":4},{"TestId":"475a6ece-3837-422a-b766-d701afccbaaf","TypeId":2,"OptionXYList":[{"X":1,"Y":2},{"X":1,"Y":2}],"OptionWidth":3,"OptionHeight":4}]}
application/xml, text/xml
Sample:
<AnswerCardConfig xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/BJ.Data"> <LocationList> <TestLocation> <EndNo>6</EndNo> <Height>4</Height> <StartNo>5</StartNo> <Width>3</Width> <X>1</X> <Y>2</Y> </TestLocation> <TestLocation> <EndNo>6</EndNo> <Height>4</Height> <StartNo>5</StartNo> <Width>3</Width> <X>1</X> <Y>2</Y> </TestLocation> </LocationList> <ObjectiveList> <ObjectiveItem> <OptionHeight>4</OptionHeight> <OptionWidth>3</OptionWidth> <OptionXYList> <ObjectiveOption> <X>1</X> <Y>2</Y> </ObjectiveOption> <ObjectiveOption> <X>1</X> <Y>2</Y> </ObjectiveOption> </OptionXYList> <TestId>475a6ece-3837-422a-b766-d701afccbaaf</TestId> <TypeId>2</TypeId> </ObjectiveItem> <ObjectiveItem> <OptionHeight>4</OptionHeight> <OptionWidth>3</OptionWidth> <OptionXYList> <ObjectiveOption> <X>1</X> <Y>2</Y> </ObjectiveOption> <ObjectiveOption> <X>1</X> <Y>2</Y> </ObjectiveOption> </OptionXYList> <TestId>475a6ece-3837-422a-b766-d701afccbaaf</TestId> <TypeId>2</TypeId> </ObjectiveItem> </ObjectiveList> <RuleId>52878941-9f03-42d6-9fc1-d0a2eb81bccb</RuleId> <StuNoLength>3</StuNoLength> <TestId>c7604152-bd2c-48c3-97d1-54f4d9e91875</TestId> </AnswerCardConfig>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
AnswerCardConfig结构
JsonRtnDtoOfAnswerCardConfigName | Description | Type | Additional information |
---|---|---|---|
Msg | string |
None. |
|
State | RtnState |
None. |
|
Data | AnswerCardConfig |
None. |
Response Formats
application/json, text/json
Sample:
{ "Msg": "sample string 1", "State": 100, "Data": { "RuleId": "d9aeea40-133b-4ea2-8eee-01ea2d266162", "TestId": "01510555-d13f-460f-9e88-543a80569f94", "StuNoLength": 3, "LocationList": [ { "X": 1, "Y": 2, "Width": 3, "Height": 4, "StartNo": 5, "EndNo": 6 }, { "X": 1, "Y": 2, "Width": 3, "Height": 4, "StartNo": 5, "EndNo": 6 } ], "ObjectiveList": [ { "TestId": "259ba745-b0af-4271-b128-957bbaa4ff16", "TypeId": 2, "OptionXYList": [ { "X": 1, "Y": 2 }, { "X": 1, "Y": 2 } ], "OptionWidth": 3, "OptionHeight": 4 }, { "TestId": "259ba745-b0af-4271-b128-957bbaa4ff16", "TypeId": 2, "OptionXYList": [ { "X": 1, "Y": 2 }, { "X": 1, "Y": 2 } ], "OptionWidth": 3, "OptionHeight": 4 } ] } }
text/html
Sample:
{"Msg":"sample string 1","State":100,"Data":{"RuleId":"d9aeea40-133b-4ea2-8eee-01ea2d266162","TestId":"01510555-d13f-460f-9e88-543a80569f94","StuNoLength":3,"LocationList":[{"X":1,"Y":2,"Width":3,"Height":4,"StartNo":5,"EndNo":6},{"X":1,"Y":2,"Width":3,"Height":4,"StartNo":5,"EndNo":6}],"ObjectiveList":[{"TestId":"259ba745-b0af-4271-b128-957bbaa4ff16","TypeId":2,"OptionXYList":[{"X":1,"Y":2},{"X":1,"Y":2}],"OptionWidth":3,"OptionHeight":4},{"TestId":"259ba745-b0af-4271-b128-957bbaa4ff16","TypeId":2,"OptionXYList":[{"X":1,"Y":2},{"X":1,"Y":2}],"OptionWidth":3,"OptionHeight":4}]}}
application/xml, text/xml
Sample:
<JsonRtnDtoOfAnswerCardConfigmEDjlcEG 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:LocationList> <d2p1:TestLocation> <d2p1:EndNo>6</d2p1:EndNo> <d2p1:Height>4</d2p1:Height> <d2p1:StartNo>5</d2p1:StartNo> <d2p1:Width>3</d2p1:Width> <d2p1:X>1</d2p1:X> <d2p1:Y>2</d2p1:Y> </d2p1:TestLocation> <d2p1:TestLocation> <d2p1:EndNo>6</d2p1:EndNo> <d2p1:Height>4</d2p1:Height> <d2p1:StartNo>5</d2p1:StartNo> <d2p1:Width>3</d2p1:Width> <d2p1:X>1</d2p1:X> <d2p1:Y>2</d2p1:Y> </d2p1:TestLocation> </d2p1:LocationList> <d2p1:ObjectiveList> <d2p1:ObjectiveItem> <d2p1:OptionHeight>4</d2p1:OptionHeight> <d2p1:OptionWidth>3</d2p1:OptionWidth> <d2p1:OptionXYList> <d2p1:ObjectiveOption> <d2p1:X>1</d2p1:X> <d2p1:Y>2</d2p1:Y> </d2p1:ObjectiveOption> <d2p1:ObjectiveOption> <d2p1:X>1</d2p1:X> <d2p1:Y>2</d2p1:Y> </d2p1:ObjectiveOption> </d2p1:OptionXYList> <d2p1:TestId>259ba745-b0af-4271-b128-957bbaa4ff16</d2p1:TestId> <d2p1:TypeId>2</d2p1:TypeId> </d2p1:ObjectiveItem> <d2p1:ObjectiveItem> <d2p1:OptionHeight>4</d2p1:OptionHeight> <d2p1:OptionWidth>3</d2p1:OptionWidth> <d2p1:OptionXYList> <d2p1:ObjectiveOption> <d2p1:X>1</d2p1:X> <d2p1:Y>2</d2p1:Y> </d2p1:ObjectiveOption> <d2p1:ObjectiveOption> <d2p1:X>1</d2p1:X> <d2p1:Y>2</d2p1:Y> </d2p1:ObjectiveOption> </d2p1:OptionXYList> <d2p1:TestId>259ba745-b0af-4271-b128-957bbaa4ff16</d2p1:TestId> <d2p1:TypeId>2</d2p1:TypeId> </d2p1:ObjectiveItem> </d2p1:ObjectiveList> <d2p1:RuleId>d9aeea40-133b-4ea2-8eee-01ea2d266162</d2p1:RuleId> <d2p1:StuNoLength>3</d2p1:StuNoLength> <d2p1:TestId>01510555-d13f-460f-9e88-543a80569f94</d2p1:TestId> </Data> <Msg>sample string 1</Msg> <State>Display</State> </JsonRtnDtoOfAnswerCardConfigmEDjlcEG>
text/javascript, application/javascript, application/json-p
Sample:
/**/ typeof === 'function' && ({"Msg":"sample string 1","State":100,"Data":{"RuleId":"d9aeea40-133b-4ea2-8eee-01ea2d266162","TestId":"01510555-d13f-460f-9e88-543a80569f94","StuNoLength":3,"LocationList":[{"X":1,"Y":2,"Width":3,"Height":4,"StartNo":5,"EndNo":6},{"X":1,"Y":2,"Width":3,"Height":4,"StartNo":5,"EndNo":6}],"ObjectiveList":[{"TestId":"259ba745-b0af-4271-b128-957bbaa4ff16","TypeId":2,"OptionXYList":[{"X":1,"Y":2},{"X":1,"Y":2}],"OptionWidth":3,"OptionHeight":4},{"TestId":"259ba745-b0af-4271-b128-957bbaa4ff16","TypeId":2,"OptionXYList":[{"X":1,"Y":2},{"X":1,"Y":2}],"OptionWidth":3,"OptionHeight":4}]}});