v1/submission.proto (version not set)
Download OpenAPI specification:Download
最后提交
query Parameters
problemId | integer <int32> |
entityId | integer <int32> |
entityType | integer <int32> |
userId | integer <int32> |
Responses
Response samples
- 200
- default
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": {
- "compileMsg": "string",
- "score": 0,
- "memory": "string",
- "time": "string",
- "totalTestCount": 0,
- "acceptedTestCount": 0,
- "hasSubtask": true,
- "subtasks": [
- {
- "score": 0,
- "time": "string",
- "memory": "string",
- "verdict": 0,
- "tests": [
- {
- "verdict": 0,
- "stdin": "string",
- "stdout": "string",
- "stderr": "string",
- "answer": "string",
- "time": "string",
- "memory": "string",
- "exitCode": 0,
- "score": 0,
- "checkerStdout": "string",
- "checkerExitCode": 0
}
]
}
]
}, - "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
- 200
- default
Content type
application/json
{- "data": [
- {
- "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": {
- "compileMsg": "string",
- "score": 0,
- "memory": "string",
- "time": "string",
- "totalTestCount": 0,
- "acceptedTestCount": 0,
- "hasSubtask": true,
- "subtasks": [
- {
- "score": 0,
- "time": "string",
- "memory": "string",
- "verdict": 0,
- "tests": [
- {
- "verdict": 0,
- "stdin": "string",
- "stdout": "string",
- "stderr": "string",
- "answer": "string",
- "time": "string",
- "memory": "string",
- "exitCode": 0,
- "score": 0,
- "checkerStdout": "string",
- "checkerExitCode": 0
}
]
}
]
}, - "createdAt": "2019-08-24T14:15:22Z"
}
], - "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
- Payload
Content type
application/json
{- "entityId": 0,
- "entityType": "PROBLEMSET",
- "language": 0,
- "source": "string",
- "problemNumber": 0
}
Response samples
- 200
- default
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": {
- "compileMsg": "string",
- "score": 0,
- "memory": "string",
- "time": "string",
- "totalTestCount": 0,
- "acceptedTestCount": 0,
- "hasSubtask": true,
- "subtasks": [
- {
- "score": 0,
- "time": "string",
- "memory": "string",
- "verdict": 0,
- "tests": [
- {
- "verdict": 0,
- "stdin": "string",
- "stdout": "string",
- "stderr": "string",
- "answer": "string",
- "time": "string",
- "memory": "string",
- "exitCode": 0,
- "score": 0,
- "checkerStdout": "string",
- "checkerExitCode": 0
}
]
}
]
}, - "createdAt": "2019-08-24T14:15:22Z"
}
Response samples
- 200
- default
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": {
- "compileMsg": "string",
- "score": 0,
- "memory": "string",
- "time": "string",
- "totalTestCount": 0,
- "acceptedTestCount": 0,
- "hasSubtask": true,
- "subtasks": [
- {
- "score": 0,
- "time": "string",
- "memory": "string",
- "verdict": 0,
- "tests": [
- {
- "verdict": 0,
- "stdin": "string",
- "stdout": "string",
- "stderr": "string",
- "answer": "string",
- "time": "string",
- "memory": "string",
- "exitCode": 0,
- "score": 0,
- "checkerStdout": "string",
- "checkerExitCode": 0
}
]
}
]
}, - "createdAt": "2019-08-24T14:15:22Z"
}