POST api/retestrepository/describesave

保存题库描述

Request Information

URI Parameters

None.

Body Parameters

DescribeReTestDto
NameDescriptionTypeAdditional information
Id

描述编号

globally unique identifier

None.

DescribeName

名称

string

None.

ReTestRepositoryId

试题仓库编号

integer

None.

TestTypeId

题型编号

integer

None.

ReTestDescribeInfoDtos

规则条目

Collection of ReTestDescribeInfoDto

None.

Request Formats

application/json, text/json

Sample:
{
  "Id": "e429d5a8-6e57-4520-9009-1ec4b2691aed",
  "DescribeName": "sample string 2",
  "ReTestRepositoryId": 3,
  "TestTypeId": 4,
  "ReTestDescribeInfoDtos": [
    {
      "Id": "e0134744-e0e2-415e-81aa-d3cac39e2b41",
      "DescribeReTestRepositoryId": "fb51c707-1472-4e2c-aa95-0c8e928880d1",
      "TestTypeId": 3,
      "Number": 4,
      "Score": 5.1,
      "Index": 6
    },
    {
      "Id": "e0134744-e0e2-415e-81aa-d3cac39e2b41",
      "DescribeReTestRepositoryId": "fb51c707-1472-4e2c-aa95-0c8e928880d1",
      "TestTypeId": 3,
      "Number": 4,
      "Score": 5.1,
      "Index": 6
    }
  ]
}

text/html

Sample:
{"Id":"e429d5a8-6e57-4520-9009-1ec4b2691aed","DescribeName":"sample string 2","ReTestRepositoryId":3,"TestTypeId":4,"ReTestDescribeInfoDtos":[{"Id":"e0134744-e0e2-415e-81aa-d3cac39e2b41","DescribeReTestRepositoryId":"fb51c707-1472-4e2c-aa95-0c8e928880d1","TestTypeId":3,"Number":4,"Score":5.1,"Index":6},{"Id":"e0134744-e0e2-415e-81aa-d3cac39e2b41","DescribeReTestRepositoryId":"fb51c707-1472-4e2c-aa95-0c8e928880d1","TestTypeId":3,"Number":4,"Score":5.1,"Index":6}]}

application/xml, text/xml

Sample:
<DescribeReTestDto xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/BJ.Services">
  <DescribeName>sample string 2</DescribeName>
  <Id>e429d5a8-6e57-4520-9009-1ec4b2691aed</Id>
  <ReTestDescribeInfoDtos>
    <ReTestDescribeInfoDto>
      <DescribeReTestRepositoryId>fb51c707-1472-4e2c-aa95-0c8e928880d1</DescribeReTestRepositoryId>
      <Id>e0134744-e0e2-415e-81aa-d3cac39e2b41</Id>
      <Index>6</Index>
      <Number>4</Number>
      <Score>5.1</Score>
      <TestTypeId>3</TestTypeId>
    </ReTestDescribeInfoDto>
    <ReTestDescribeInfoDto>
      <DescribeReTestRepositoryId>fb51c707-1472-4e2c-aa95-0c8e928880d1</DescribeReTestRepositoryId>
      <Id>e0134744-e0e2-415e-81aa-d3cac39e2b41</Id>
      <Index>6</Index>
      <Number>4</Number>
      <Score>5.1</Score>
      <TestTypeId>3</TestTypeId>
    </ReTestDescribeInfoDto>
  </ReTestDescribeInfoDtos>
  <ReTestRepositoryId>3</ReTestRepositoryId>
  <TestTypeId>4</TestTypeId>
</DescribeReTestDto>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

保存题库描述

JsonRtnDtoOfDescribeReTestDto
NameDescriptionTypeAdditional information
Msg

string

None.

State

RtnState

None.

Data

DescribeReTestDto

None.

Response Formats

application/json, text/json

Sample:
{
  "Msg": "sample string 1",
  "State": 100,
  "Data": {
    "Id": "79a905da-2fab-4f28-b1d4-26af0489543f",
    "DescribeName": "sample string 2",
    "ReTestRepositoryId": 3,
    "TestTypeId": 4,
    "ReTestDescribeInfoDtos": [
      {
        "Id": "7d6b42f7-16ca-45a5-8248-8d9c720a7391",
        "DescribeReTestRepositoryId": "f6aca325-0282-4916-915e-c8ac035b1345",
        "TestTypeId": 3,
        "Number": 4,
        "Score": 5.1,
        "Index": 6
      },
      {
        "Id": "7d6b42f7-16ca-45a5-8248-8d9c720a7391",
        "DescribeReTestRepositoryId": "f6aca325-0282-4916-915e-c8ac035b1345",
        "TestTypeId": 3,
        "Number": 4,
        "Score": 5.1,
        "Index": 6
      }
    ]
  }
}

text/html

Sample:
{"Msg":"sample string 1","State":100,"Data":{"Id":"79a905da-2fab-4f28-b1d4-26af0489543f","DescribeName":"sample string 2","ReTestRepositoryId":3,"TestTypeId":4,"ReTestDescribeInfoDtos":[{"Id":"7d6b42f7-16ca-45a5-8248-8d9c720a7391","DescribeReTestRepositoryId":"f6aca325-0282-4916-915e-c8ac035b1345","TestTypeId":3,"Number":4,"Score":5.1,"Index":6},{"Id":"7d6b42f7-16ca-45a5-8248-8d9c720a7391","DescribeReTestRepositoryId":"f6aca325-0282-4916-915e-c8ac035b1345","TestTypeId":3,"Number":4,"Score":5.1,"Index":6}]}}

application/xml, text/xml

Sample:
<JsonRtnDtoOfDescribeReTestDtov3CTEUQJ xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/BJ.Services">
  <Data>
    <DescribeName>sample string 2</DescribeName>
    <Id>79a905da-2fab-4f28-b1d4-26af0489543f</Id>
    <ReTestDescribeInfoDtos>
      <ReTestDescribeInfoDto>
        <DescribeReTestRepositoryId>f6aca325-0282-4916-915e-c8ac035b1345</DescribeReTestRepositoryId>
        <Id>7d6b42f7-16ca-45a5-8248-8d9c720a7391</Id>
        <Index>6</Index>
        <Number>4</Number>
        <Score>5.1</Score>
        <TestTypeId>3</TestTypeId>
      </ReTestDescribeInfoDto>
      <ReTestDescribeInfoDto>
        <DescribeReTestRepositoryId>f6aca325-0282-4916-915e-c8ac035b1345</DescribeReTestRepositoryId>
        <Id>7d6b42f7-16ca-45a5-8248-8d9c720a7391</Id>
        <Index>6</Index>
        <Number>4</Number>
        <Score>5.1</Score>
        <TestTypeId>3</TestTypeId>
      </ReTestDescribeInfoDto>
    </ReTestDescribeInfoDtos>
    <ReTestRepositoryId>3</ReTestRepositoryId>
    <TestTypeId>4</TestTypeId>
  </Data>
  <Msg>sample string 1</Msg>
  <State>Display</State>
</JsonRtnDtoOfDescribeReTestDtov3CTEUQJ>

text/javascript, application/javascript, application/json-p

Sample:
/**/ typeof  === 'function' && ({"Msg":"sample string 1","State":100,"Data":{"Id":"79a905da-2fab-4f28-b1d4-26af0489543f","DescribeName":"sample string 2","ReTestRepositoryId":3,"TestTypeId":4,"ReTestDescribeInfoDtos":[{"Id":"7d6b42f7-16ca-45a5-8248-8d9c720a7391","DescribeReTestRepositoryId":"f6aca325-0282-4916-915e-c8ac035b1345","TestTypeId":3,"Number":4,"Score":5.1,"Index":6},{"Id":"7d6b42f7-16ca-45a5-8248-8d9c720a7391","DescribeReTestRepositoryId":"f6aca325-0282-4916-915e-c8ac035b1345","TestTypeId":3,"Number":4,"Score":5.1,"Index":6}]}});