POST api/testpaperconfig/SetPaperAnswerAndScore

保存试卷分数及答案

Request Information

URI Parameters

None.

Body Parameters

PaperAnswerAndScoreDto
NameDescriptionTypeAdditional information
PaperId

试卷编号

globally unique identifier

None.

ConstRuleSet

固定组卷,试卷规则集合

Collection of CardConstRuleDto

None.

Request Formats

application/json, text/json

Sample:
{
  "PaperId": "bb0cdfa6-6420-4706-9940-9b4c9ad28bae",
  "ConstRuleSet": [
    {
      "$id": "1",
      "Id": "e44db34b-8144-42f0-aab3-d43e9ab76876",
      "Knowledge": "sample string 2",
      "PId": "f2ca764c-7d48-42e4-8d1a-9c277c3b5ea9",
      "RuleInfo": "sample string 3",
      "RuleType": 1,
      "TestTypeId": 4,
      "Difficulty": 5,
      "Score": "sample string 6",
      "ReTestRepositoryId": 7,
      "DescribeReTestRepositoryId": "284e0c7f-e5b2-4b70-84cd-6abd7946299f",
      "Lccrrtd": [
        {
          "ConstRuleId": "ee29676a-bc13-4181-b799-878eaa0d2da9",
          "ReTestId": "2d63750d-b70f-4d9e-96bc-a00527c39679",
          "Index": 3,
          "Answer": "sample string 4",
          "OptionLength": 5,
          "ReTestType": 1,
          "Knowledge": "sample string 6",
          "Difficulty": 7,
          "ProfessionalTargetId": 8,
          "ProfessionalTargetName": "sample string 9",
          "Tags": [
            {
              "TagName": "sample string 1",
              "TagValue": "sample string 2"
            },
            {
              "TagName": "sample string 1",
              "TagValue": "sample string 2"
            }
          ]
        },
        {
          "ConstRuleId": "ee29676a-bc13-4181-b799-878eaa0d2da9",
          "ReTestId": "2d63750d-b70f-4d9e-96bc-a00527c39679",
          "Index": 3,
          "Answer": "sample string 4",
          "OptionLength": 5,
          "ReTestType": 1,
          "Knowledge": "sample string 6",
          "Difficulty": 7,
          "ProfessionalTargetId": 8,
          "ProfessionalTargetName": "sample string 9",
          "Tags": [
            {
              "TagName": "sample string 1",
              "TagValue": "sample string 2"
            },
            {
              "TagName": "sample string 1",
              "TagValue": "sample string 2"
            }
          ]
        }
      ],
      "Children": [
        {
          "$ref": "1"
        },
        {
          "$ref": "1"
        }
      ]
    },
    {
      "$ref": "1"
    }
  ]
}

text/html

Sample:
{"PaperId":"bb0cdfa6-6420-4706-9940-9b4c9ad28bae","ConstRuleSet":[{"$id":"1","Id":"e44db34b-8144-42f0-aab3-d43e9ab76876","Knowledge":"sample string 2","PId":"f2ca764c-7d48-42e4-8d1a-9c277c3b5ea9","RuleInfo":"sample string 3","RuleType":1,"TestTypeId":4,"Difficulty":5,"Score":"sample string 6","ReTestRepositoryId":7,"DescribeReTestRepositoryId":"284e0c7f-e5b2-4b70-84cd-6abd7946299f","Lccrrtd":[{"ConstRuleId":"ee29676a-bc13-4181-b799-878eaa0d2da9","ReTestId":"2d63750d-b70f-4d9e-96bc-a00527c39679","Index":3,"Answer":"sample string 4","OptionLength":5,"ReTestType":1,"Knowledge":"sample string 6","Difficulty":7,"ProfessionalTargetId":8,"ProfessionalTargetName":"sample string 9","Tags":[{"TagName":"sample string 1","TagValue":"sample string 2"},{"TagName":"sample string 1","TagValue":"sample string 2"}]},{"ConstRuleId":"ee29676a-bc13-4181-b799-878eaa0d2da9","ReTestId":"2d63750d-b70f-4d9e-96bc-a00527c39679","Index":3,"Answer":"sample string 4","OptionLength":5,"ReTestType":1,"Knowledge":"sample string 6","Difficulty":7,"ProfessionalTargetId":8,"ProfessionalTargetName":"sample string 9","Tags":[{"TagName":"sample string 1","TagValue":"sample string 2"},{"TagName":"sample string 1","TagValue":"sample string 2"}]}],"Children":[{"$ref":"1"},{"$ref":"1"}]},{"$ref":"1"}]}

application/xml

Sample:

Sample not available.

text/xml

Sample:

Sample not available.

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