跳到主要内容

v1/submission.proto (version not set)

Download OpenAPI specification:Download

SubmissionService

最后提交

query Parameters
problemId
integer <int32>
entityId
integer <int32>
entityType
integer <int32>
userId
integer <int32>

Responses

Response samples

Content type
application/json
{
  • "id": "string",
  • "problemId": 0,
  • "problemName": "string",
  • "problemNumber": 0,
  • "language": 0,
  • "source": "string",
  • "memory": "string",
  • "time": "string",
  • "verdict": 0,
  • "score": 0,
  • "userId": 0,
  • "nickname": "string",
  • "entityId": 0,
  • "entityType": "PROBLEMSET",
  • "info": {
    },
  • "createdAt": "2019-08-24T14:15:22Z"
}

提交列表

query Parameters
id
Array of integers <int32> [ items <int32 > ]
problemId
integer <int32>
entityId
integer <int32>
entityType
integer <int32>
verdict
Array of integers <int32> [ items <int32 > ]
userId
integer <int32>
username
string
page
integer <int32>
perPage
integer <int32>

Responses

Response samples

Content type
application/json
{
  • "data": [
    ],
  • "total": "string"
}

创建提交

Request Body schema: application/json
entityId
integer <int32>
entityType
string (v1SubmissionEntityType)
Default: "PROBLEMSET"
Enum: "PROBLEMSET" "CONTEST" "PROBLEM_FILE" "PROBLEM_VERIFY"
language
integer <int32> (编程语言)
source
string (源码)
problemNumber
integer <int32>

Responses

Request samples

Content type
application/json
{
  • "entityId": 0,
  • "entityType": "PROBLEMSET",
  • "language": 0,
  • "source": "string",
  • "problemNumber": 0
}

Response samples

Content type
application/json
{
  • "id": "string",
  • "problemId": 0,
  • "problemName": "string",
  • "problemNumber": 0,
  • "language": 0,
  • "source": "string",
  • "memory": "string",
  • "time": "string",
  • "verdict": 0,
  • "score": 0,
  • "userId": 0,
  • "nickname": "string",
  • "entityId": 0,
  • "entityType": "PROBLEMSET",
  • "info": {
    },
  • "createdAt": "2019-08-24T14:15:22Z"
}

提交详情

path Parameters
id
required
integer <int32>

Responses

Response samples

Content type
application/json
{
  • "id": "string",
  • "problemId": 0,
  • "problemName": "string",
  • "problemNumber": 0,
  • "language": 0,
  • "source": "string",
  • "memory": "string",
  • "time": "string",
  • "verdict": 0,
  • "score": 0,
  • "userId": 0,
  • "nickname": "string",
  • "entityId": 0,
  • "entityType": "PROBLEMSET",
  • "info": {
    },
  • "createdAt": "2019-08-24T14:15:22Z"
}