POST api/battle/save

保存PK

Request Information

URI Parameters

None.

Body Parameters

BattleDto
NameDescriptionTypeAdditional information
Id

编号

globally unique identifier

None.

Title

标题

string

None.

ReTestNum

选题数量

integer

None.

ConsumTimes

耗时

integer

None.

ProfessionalCourseId

课程编号

integer

None.

ReTestRepositoryId

题库编号

integer

None.

InvitationStudent

被邀请人

Collection of string

None.

Request Formats

application/json, text/json

Sample:
{
  "Id": "cd867d3a-fa9c-48d5-9647-808dde586ba3",
  "Title": "sample string 2",
  "ReTestNum": 3,
  "ConsumTimes": 4,
  "ProfessionalCourseId": 5,
  "ReTestRepositoryId": 6,
  "InvitationStudent": [
    "sample string 1",
    "sample string 2"
  ]
}

text/html

Sample:
{"Id":"cd867d3a-fa9c-48d5-9647-808dde586ba3","Title":"sample string 2","ReTestNum":3,"ConsumTimes":4,"ProfessionalCourseId":5,"ReTestRepositoryId":6,"InvitationStudent":["sample string 1","sample string 2"]}

application/xml, text/xml

Sample:
<BattleDto xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/BJ.Services">
  <ConsumTimes>4</ConsumTimes>
  <Id>cd867d3a-fa9c-48d5-9647-808dde586ba3</Id>
  <InvitationStudent xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
    <d2p1:string>sample string 1</d2p1:string>
    <d2p1:string>sample string 2</d2p1:string>
  </InvitationStudent>
  <ProfessionalCourseId>5</ProfessionalCourseId>
  <ReTestNum>3</ReTestNum>
  <ReTestRepositoryId>6</ReTestRepositoryId>
  <Title>sample string 2</Title>
</BattleDto>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

保存PK

JsonRtnDtoOfBattle
NameDescriptionTypeAdditional information
Msg

string

None.

State

RtnState

None.

Data

Battle

None.

Response Formats

application/json, text/json

Sample:
{
  "Msg": "sample string 1",
  "State": 100,
  "Data": {
    "Title": "sample string 1",
    "ReTestNum": 2,
    "ConsumTimes": 3,
    "ProfessionalCourseId": 4,
    "ReTestRepositoryId": 5,
    "Id": "2e3301b4-7cf5-4d6f-ba42-d0ddc9b3eee3",
    "CreatedTime": "2024-09-25T00:10:40.3121226+08:00",
    "IsDeleted": true,
    "LastUpdatedTime": "2024-09-25T00:10:40.3121226+08:00"
  }
}

text/html

Sample:
{"Msg":"sample string 1","State":100,"Data":{"Title":"sample string 1","ReTestNum":2,"ConsumTimes":3,"ProfessionalCourseId":4,"ReTestRepositoryId":5,"Id":"2e3301b4-7cf5-4d6f-ba42-d0ddc9b3eee3","CreatedTime":"2024-09-25T00:10:40.3121226+08:00","IsDeleted":true,"LastUpdatedTime":"2024-09-25T00:10:40.3121226+08:00"}}

application/xml, text/xml

Sample:
<JsonRtnDtoOfBattlemEDjlcEG 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:CreatedTime>2024-09-25T00:10:40.3121226+08:00</d2p1:CreatedTime>
    <d2p1:Id>2e3301b4-7cf5-4d6f-ba42-d0ddc9b3eee3</d2p1:Id>
    <d2p1:IsDeleted>true</d2p1:IsDeleted>
    <d2p1:LastUpdatedTime>2024-09-25T00:10:40.3121226+08:00</d2p1:LastUpdatedTime>
    <d2p1:ConsumTimes>3</d2p1:ConsumTimes>
    <d2p1:ProfessionalCourseId>4</d2p1:ProfessionalCourseId>
    <d2p1:ReTestNum>2</d2p1:ReTestNum>
    <d2p1:ReTestRepositoryId>5</d2p1:ReTestRepositoryId>
    <d2p1:Title>sample string 1</d2p1:Title>
  </Data>
  <Msg>sample string 1</Msg>
  <State>Display</State>
</JsonRtnDtoOfBattlemEDjlcEG>

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

Sample:
/**/ typeof  === 'function' && ({"Msg":"sample string 1","State":100,"Data":{"Title":"sample string 1","ReTestNum":2,"ConsumTimes":3,"ProfessionalCourseId":4,"ReTestRepositoryId":5,"Id":"2e3301b4-7cf5-4d6f-ba42-d0ddc9b3eee3","CreatedTime":"2024-09-25T00:10:40.3121226+08:00","IsDeleted":true,"LastUpdatedTime":"2024-09-25T00:10:40.3121226+08:00"}});