GET api/contest/getcompetitionbyid?Id={Id}

根据ID获取竞赛信息

Request Information

URI Parameters

NameDescriptionTypeAdditional information
Id

主键ID

globally unique identifier

Required

Body Parameters

None.

Response Information

Resource Description

根据ID获取竞赛信息

JsonRtnDtoOfCompetition
NameDescriptionTypeAdditional information
Msg

string

None.

State

RtnState

None.

Data

Competition

None.

Response Formats

application/json, text/json

Sample:
{
  "Msg": "sample string 1",
  "State": 100,
  "Data": {
    "Title": "sample string 1",
    "CompetitionType": "sample string 2",
    "ExamPlanId": "d4f89e95-556d-4d98-a081-e59d3f5a331f",
    "CutOffTime": "2024-09-25T00:11:22.5149734+08:00",
    "PaperId": "8a00203c-9cf2-47cf-b3dd-8af2f76688dd",
    "Id": "6e11a8c2-681c-4894-b8e7-dd3422a94a76",
    "CreatedTime": "2024-09-25T00:11:22.5149734+08:00",
    "IsDeleted": true,
    "LastUpdatedTime": "2024-09-25T00:11:22.5149734+08:00"
  }
}

text/html

Sample:
{"Msg":"sample string 1","State":100,"Data":{"Title":"sample string 1","CompetitionType":"sample string 2","ExamPlanId":"d4f89e95-556d-4d98-a081-e59d3f5a331f","CutOffTime":"2024-09-25T00:11:22.5149734+08:00","PaperId":"8a00203c-9cf2-47cf-b3dd-8af2f76688dd","Id":"6e11a8c2-681c-4894-b8e7-dd3422a94a76","CreatedTime":"2024-09-25T00:11:22.5149734+08:00","IsDeleted":true,"LastUpdatedTime":"2024-09-25T00:11:22.5149734+08:00"}}

application/xml, text/xml

Sample:
<JsonRtnDtoOfCompetitionmEDjlcEG 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:11:22.5149734+08:00</d2p1:CreatedTime>
    <d2p1:Id>6e11a8c2-681c-4894-b8e7-dd3422a94a76</d2p1:Id>
    <d2p1:IsDeleted>true</d2p1:IsDeleted>
    <d2p1:LastUpdatedTime>2024-09-25T00:11:22.5149734+08:00</d2p1:LastUpdatedTime>
    <d2p1:CompetitionType>sample string 2</d2p1:CompetitionType>
    <d2p1:CutOffTime>2024-09-25T00:11:22.5149734+08:00</d2p1:CutOffTime>
    <d2p1:ExamPlanId>d4f89e95-556d-4d98-a081-e59d3f5a331f</d2p1:ExamPlanId>
    <d2p1:PaperId>8a00203c-9cf2-47cf-b3dd-8af2f76688dd</d2p1:PaperId>
    <d2p1:Title>sample string 1</d2p1:Title>
  </Data>
  <Msg>sample string 1</Msg>
  <State>Display</State>
</JsonRtnDtoOfCompetitionmEDjlcEG>

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

Sample:
/**/ typeof  === 'function' && ({"Msg":"sample string 1","State":100,"Data":{"Title":"sample string 1","CompetitionType":"sample string 2","ExamPlanId":"d4f89e95-556d-4d98-a081-e59d3f5a331f","CutOffTime":"2024-09-25T00:11:22.5149734+08:00","PaperId":"8a00203c-9cf2-47cf-b3dd-8af2f76688dd","Id":"6e11a8c2-681c-4894-b8e7-dd3422a94a76","CreatedTime":"2024-09-25T00:11:22.5149734+08:00","IsDeleted":true,"LastUpdatedTime":"2024-09-25T00:11:22.5149734+08:00"}});