v1/problem.proto (version not set)
Download OpenAPI specification:Download
题目列表
query Parameters
id | integer <int32> |
keyword | string |
author | string Default: "ALL" Enum: "ALL" "ONLYME" |
username | string |
status | Array of integers <int32> [ items <int32 > ] |
type | Array of integers <int32> [ items <int32 > ] |
filter | string |
orderBy | string |
page | integer <int32> |
perPage | integer <int32> |
Responses
Response samples
- 200
- default
Content type
application/json
{- "data": [
- {
- "id": 0,
- "name": "string",
- "type": "DEFAULT",
- "timeLimit": 0,
- "memoryLimit": 0,
- "statements": [
- {
- "id": 0,
- "problemId": 0,
- "language": "string",
- "name": "string",
- "legend": "string",
- "input": "string",
- "output": "string",
- "note": "string",
- "type": "CODE"
}
], - "acceptedCount": 0,
- "submitCount": 0,
- "status": 0,
- "checkerId": 0,
- "source": "string",
- "tags": [
- "string"
], - "userId": 0,
- "nickname": "string",
- "allowDownload": true,
- "sampleTests": [
- {
- "input": "string",
- "output": "string"
}
], - "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z"
}
], - "total": "string"
}
创建题目
Request Body schema: application/json
name | string (题目名称) |
type | string (题目类型:标准输入输出、函数题、客观题) Default: "DEFAULT" Enum: "DEFAULT" "FUNCTION" "OBJECTIVE" |
Responses
Request samples
- Payload
Content type
application/json
{- "name": "string",
- "type": "DEFAULT"
}
Response samples
- 200
- default
Content type
application/json
{- "id": 0
}
Response samples
- 200
- default
Content type
application/json
{- "id": 0,
- "order": 0,
- "problemId": 0,
- "isExample": true,
- "isTestPoint": true,
- "name": "string",
- "inputSize": "string",
- "inputPreview": "string",
- "inputFileContent": "string",
- "outputSize": "string",
- "outputPreview": "string",
- "outputFileContent": "string",
- "remark": "string",
- "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z"
}
Response samples
- 200
- default
Content type
application/json
{- "id": 0,
- "name": "string",
- "type": "DEFAULT",
- "timeLimit": 0,
- "memoryLimit": 0,
- "statements": [
- {
- "id": 0,
- "problemId": 0,
- "language": "string",
- "name": "string",
- "legend": "string",
- "input": "string",
- "output": "string",
- "note": "string",
- "type": "CODE"
}
], - "acceptedCount": 0,
- "submitCount": 0,
- "status": 0,
- "checkerId": 0,
- "source": "string",
- "tags": [
- "string"
], - "userId": 0,
- "nickname": "string",
- "allowDownload": true,
- "sampleTests": [
- {
- "input": "string",
- "output": "string"
}
], - "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z"
}
修改题目
path Parameters
id required | integer <int32> |
Request Body schema: application/json
name | string |
timeLimit | string <int64> |
memoryLimit | string <int64> |
status | integer <int32> |
source | string |
tags | Array of strings |
Responses
Request samples
- Payload
Content type
application/json
{- "name": "string",
- "timeLimit": "string",
- "memoryLimit": "string",
- "status": 0,
- "source": "string",
- "tags": [
- "string"
]
}
Response samples
- 200
- default
Content type
application/json
{- "id": 0,
- "name": "string",
- "type": "DEFAULT",
- "timeLimit": 0,
- "memoryLimit": 0,
- "statements": [
- {
- "id": 0,
- "problemId": 0,
- "language": "string",
- "name": "string",
- "legend": "string",
- "input": "string",
- "output": "string",
- "note": "string",
- "type": "CODE"
}
], - "acceptedCount": 0,
- "submitCount": 0,
- "status": 0,
- "checkerId": 0,
- "source": "string",
- "tags": [
- "string"
], - "userId": 0,
- "nickname": "string",
- "allowDownload": true,
- "sampleTests": [
- {
- "input": "string",
- "output": "string"
}
], - "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z"
}
获取题目文件列表
path Parameters
id required | integer <int32> |
query Parameters
fileType | string |
type | string |
name | string |
page | integer <int32> |
perPage | integer <int32> |
Responses
Response samples
- 200
- default
Content type
application/json
{- "data": [
- {
- "id": 0,
- "name": "string",
- "language": 0,
- "content": "string",
- "type": "string",
- "userId": 0,
- "fileType": "string",
- "fileSize": "string",
- "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z"
}
], - "total": "string"
}
创建题目文件
path Parameters
id required | integer <int32> |
Request Body schema: application/json
name | string |
language | integer <int32> |
content | string |
type | string |
fileType | string |
filename | string |
fileContent | string <byte> |
Responses
Request samples
- Payload
Content type
application/json
{- "name": "string",
- "language": 0,
- "content": "string",
- "type": "string",
- "fileType": "string",
- "filename": "string",
- "fileContent": "string"
}
Response samples
- 200
- default
Content type
application/json
{- "id": 0,
- "name": "string",
- "language": 0,
- "content": "string",
- "type": "string",
- "userId": 0,
- "fileType": "string",
- "fileSize": "string",
- "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z"
}
Response samples
- 200
- default
Content type
application/json
{- "id": 0,
- "name": "string",
- "language": 0,
- "content": "string",
- "type": "string",
- "userId": 0,
- "fileType": "string",
- "fileSize": "string",
- "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z"
}
更新题目文件
path Parameters
id required | integer <int32> |
sid required | integer <int32> |
Request Body schema: application/json
name | string |
content | string |
type | string |
Responses
Request samples
- Payload
Content type
application/json
{- "name": "string",
- "content": "string",
- "type": "string"
}
Response samples
- 200
- default
Content type
application/json
{- "id": 0,
- "name": "string",
- "language": 0,
- "content": "string",
- "type": "string",
- "userId": 0,
- "fileType": "string",
- "fileSize": "string",
- "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z"
}
获取题目描述列表
path Parameters
id required | integer <int32> |
query Parameters
page | integer <int32> |
perPage | integer <int32> |
Responses
Response samples
- 200
- default
Content type
application/json
{- "data": [
- {
- "id": 0,
- "problemId": 0,
- "language": "string",
- "name": "string",
- "legend": "string",
- "input": "string",
- "output": "string",
- "note": "string",
- "type": "CODE"
}
], - "total": "string"
}
创建题目描述
path Parameters
id required | integer <int32> |
Request Body schema: application/json
language | string |
Responses
Request samples
- Payload
Content type
application/json
{- "language": "string"
}
Response samples
- 200
- default
Content type
application/json
{- "id": 0,
- "problemId": 0,
- "language": "string",
- "name": "string",
- "legend": "string",
- "input": "string",
- "output": "string",
- "note": "string",
- "type": "CODE"
}
更新题目描述
path Parameters
id required | integer <int32> |
sid required | integer <int32> |
Request Body schema: application/json
language | string |
name | string |
input | string |
output | string |
note | string |
legend | string |
type | string (v1ProblemStatementType) Default: "CODE" Enum: "CODE" "CHOICE" "MULTIPLE" "FILLBLANK" |
Responses
Request samples
- Payload
Content type
application/json
{- "language": "string",
- "name": "string",
- "input": "string",
- "output": "string",
- "note": "string",
- "legend": "string",
- "type": "CODE"
}
Response samples
- 200
- default
Content type
application/json
{- "id": 0,
- "problemId": 0,
- "language": "string",
- "name": "string",
- "legend": "string",
- "input": "string",
- "output": "string",
- "note": "string",
- "type": "CODE"
}
Response samples
- 200
- default
Content type
application/json
{- "data": [
- {
- "id": 0,
- "name": "string",
- "language": 0,
- "content": "string",
- "type": "string",
- "userId": 0,
- "fileType": "string",
- "fileSize": "string",
- "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z"
}
]
}
对题目测试点进行排序
path Parameters
id required | integer <int32> |
Request Body schema: application/json
setSampleFirst | boolean |
sortByName | boolean |
ids | Array of integers <int32> [ items <int32 > ] |
Responses
Request samples
- Payload
Content type
application/json
{- "setSampleFirst": true,
- "sortByName": true,
- "ids": [
- 0
]
}
Response samples
- 200
- default
Content type
application/json
{ }
获取题目测试点列表
path Parameters
id required | integer <int32> |
query Parameters
page | integer <int32> |
perPage | integer <int32> |
Responses
Response samples
- 200
- default
Content type
application/json
{- "data": [
- {
- "id": 0,
- "order": 0,
- "problemId": 0,
- "isExample": true,
- "isTestPoint": true,
- "name": "string",
- "inputSize": "string",
- "inputPreview": "string",
- "inputFileContent": "string",
- "outputSize": "string",
- "outputPreview": "string",
- "outputFileContent": "string",
- "remark": "string",
- "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z"
}
], - "total": "string",
- "isSampleFirst": true
}
创建题目测试点
path Parameters
id required | integer <int32> |
Request Body schema: application/json
fileContent | string <byte> |
filename | string |
Responses
Request samples
- Payload
Content type
application/json
{- "fileContent": "string",
- "filename": "string"
}
Response samples
- 200
- default
Content type
application/json
{- "id": 0,
- "order": 0,
- "problemId": 0,
- "isExample": true,
- "isTestPoint": true,
- "name": "string",
- "inputSize": "string",
- "inputPreview": "string",
- "inputFileContent": "string",
- "outputSize": "string",
- "outputPreview": "string",
- "outputFileContent": "string",
- "remark": "string",
- "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z"
}
更新题目测试点
path Parameters
id required | integer <int32> |
tid required | integer <int32> |
Request Body schema: application/json
isExample | boolean |
isTestPoint | boolean |
remark | string |
Responses
Request samples
- Payload
Content type
application/json
{- "isExample": true,
- "isTestPoint": true,
- "remark": "string"
}
Response samples
- 200
- default
Content type
application/json
{- "id": 0,
- "order": 0,
- "problemId": 0,
- "isExample": true,
- "isTestPoint": true,
- "name": "string",
- "inputSize": "string",
- "inputPreview": "string",
- "inputFileContent": "string",
- "outputSize": "string",
- "outputPreview": "string",
- "outputFileContent": "string",
- "remark": "string",
- "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z"
}
创建语言文件
path Parameters
problemId required | integer <int32> |
Request Body schema: application/json
userContent | string |
mainContent | string |
language | integer <int32> |
Responses
Request samples
- Payload
Content type
application/json
{- "userContent": "string",
- "mainContent": "string",
- "language": 0
}
Response samples
- 200
- default
Content type
application/json
{- "id": 0,
- "languageCode": 0,
- "languageName": "string",
- "userContent": "string",
- "mainContent": "string"
}
修改语言文件
path Parameters
problemId required | integer <int32> |
id required | integer <int32> |
Request Body schema: application/json
userContent | string |
mainContent | string |
Responses
Request samples
- Payload
Content type
application/json
{- "userContent": "string",
- "mainContent": "string"
}
Response samples
- 200
- default
Content type
application/json
{- "id": 0,
- "languageCode": 0,
- "languageName": "string",
- "userContent": "string",
- "mainContent": "string"
}
题单列表
query Parameters
name | string |
type | Array of strings Items Enum: "SIMPLE" "EXAM" |
page | integer <int32> |
perPage | integer <int32> |
Responses
Response samples
- 200
- default
Content type
application/json
{- "data": [
- {
- "id": 0,
- "name": "string",
- "type": "SIMPLE",
- "user": {
- "id": 0,
- "userId": 0,
- "userNickname": "string",
- "userAvatar": "string",
- "acceptedCount": 0,
- "createdAt": "2019-08-24T14:15:22Z"
}, - "description": "string",
- "membership": "ALLOW_ANYONE",
- "invitationCode": "string",
- "problemCount": 0,
- "memberCount": 0,
- "role": "GUEST",
- "problems": [
- {
- "id": 0,
- "name": "string",
- "order": 0,
- "timeLimit": 0,
- "memoryLimit": 0,
- "acceptedCount": 0,
- "submitCount": 0,
- "problemsetId": 0,
- "problemId": 0,
- "source": "string",
- "status": "NOT_START",
- "type": "DEFAULT",
- "statement": {
- "id": 0,
- "problemId": 0,
- "language": "string",
- "name": "string",
- "legend": "string",
- "input": "string",
- "output": "string",
- "note": "string",
- "type": "CODE"
}, - "tags": [
- "string"
], - "sampleTests": [
- {
- "input": "string",
- "output": "string"
}
]
}
], - "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z"
}
], - "total": "string"
}
创建题单
Request Body schema: application/json
name | string |
description | string |
type | string (v1ProblemsetType) Default: "SIMPLE" Enum: "SIMPLE" "EXAM" |
Responses
Request samples
- Payload
Content type
application/json
{- "name": "string",
- "description": "string",
- "type": "SIMPLE"
}
Response samples
- 200
- default
Content type
application/json
{- "id": 0,
- "name": "string",
- "type": "SIMPLE",
- "user": {
- "id": 0,
- "userId": 0,
- "userNickname": "string",
- "userAvatar": "string",
- "acceptedCount": 0,
- "createdAt": "2019-08-24T14:15:22Z"
}, - "description": "string",
- "membership": "ALLOW_ANYONE",
- "invitationCode": "string",
- "problemCount": 0,
- "memberCount": 0,
- "role": "GUEST",
- "problems": [
- {
- "id": 0,
- "name": "string",
- "order": 0,
- "timeLimit": 0,
- "memoryLimit": 0,
- "acceptedCount": 0,
- "submitCount": 0,
- "problemsetId": 0,
- "problemId": 0,
- "source": "string",
- "status": "NOT_START",
- "type": "DEFAULT",
- "statement": {
- "id": 0,
- "problemId": 0,
- "language": "string",
- "name": "string",
- "legend": "string",
- "input": "string",
- "output": "string",
- "note": "string",
- "type": "CODE"
}, - "tags": [
- "string"
], - "sampleTests": [
- {
- "input": "string",
- "output": "string"
}
]
}
], - "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z"
}
Response samples
- 200
- default
Content type
application/json
{- "id": 0,
- "name": "string",
- "type": "SIMPLE",
- "user": {
- "id": 0,
- "userId": 0,
- "userNickname": "string",
- "userAvatar": "string",
- "acceptedCount": 0,
- "createdAt": "2019-08-24T14:15:22Z"
}, - "description": "string",
- "membership": "ALLOW_ANYONE",
- "invitationCode": "string",
- "problemCount": 0,
- "memberCount": 0,
- "role": "GUEST",
- "problems": [
- {
- "id": 0,
- "name": "string",
- "order": 0,
- "timeLimit": 0,
- "memoryLimit": 0,
- "acceptedCount": 0,
- "submitCount": 0,
- "problemsetId": 0,
- "problemId": 0,
- "source": "string",
- "status": "NOT_START",
- "type": "DEFAULT",
- "statement": {
- "id": 0,
- "problemId": 0,
- "language": "string",
- "name": "string",
- "legend": "string",
- "input": "string",
- "output": "string",
- "note": "string",
- "type": "CODE"
}, - "tags": [
- "string"
], - "sampleTests": [
- {
- "input": "string",
- "output": "string"
}
]
}
], - "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z"
}
修改题单
path Parameters
id required | integer <int32> |
Request Body schema: application/json
name | string |
description | string |
membership | string (v1ProblemsetMembership) Default: "ALLOW_ANYONE" Enum: "ALLOW_ANYONE" "INVITATION_CODE" |
invitationCode | string |
Responses
Request samples
- Payload
Content type
application/json
{- "name": "string",
- "description": "string",
- "membership": "ALLOW_ANYONE",
- "invitationCode": "string"
}
Response samples
- 200
- default
Content type
application/json
{- "id": 0,
- "name": "string",
- "type": "SIMPLE",
- "user": {
- "id": 0,
- "userId": 0,
- "userNickname": "string",
- "userAvatar": "string",
- "acceptedCount": 0,
- "createdAt": "2019-08-24T14:15:22Z"
}, - "description": "string",
- "membership": "ALLOW_ANYONE",
- "invitationCode": "string",
- "problemCount": 0,
- "memberCount": 0,
- "role": "GUEST",
- "problems": [
- {
- "id": 0,
- "name": "string",
- "order": 0,
- "timeLimit": 0,
- "memoryLimit": 0,
- "acceptedCount": 0,
- "submitCount": 0,
- "problemsetId": 0,
- "problemId": 0,
- "source": "string",
- "status": "NOT_START",
- "type": "DEFAULT",
- "statement": {
- "id": 0,
- "problemId": 0,
- "language": "string",
- "name": "string",
- "legend": "string",
- "input": "string",
- "output": "string",
- "note": "string",
- "type": "CODE"
}, - "tags": [
- "string"
], - "sampleTests": [
- {
- "input": "string",
- "output": "string"
}
]
}
], - "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z"
}
Response samples
- 200
- default
Content type
application/json
{- "data": [
- {
- "id": 0,
- "problemsetId": 0,
- "userId": 0,
- "answer": "string",
- "answeredProblemIds": "string",
- "unansweredProblemIds": "string",
- "correctProblemIds": "string",
- "wrongProblemIds": "string",
- "submissionIds": "string",
- "submissions": [
- {
- "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": null,
- "stdin": null,
- "stdout": null,
- "stderr": null,
- "answer": null,
- "time": null,
- "memory": null,
- "exitCode": null,
- "score": null,
- "checkerStdout": null,
- "checkerExitCode": null
}
]
}
]
}, - "createdAt": "2019-08-24T14:15:22Z"
}
], - "submittedAt": "2019-08-24T14:15:22Z",
- "createdAt": "2019-08-24T14:15:22Z"
}
], - "total": 0
}
创建新的题单回答
path Parameters
id required | integer <int32> |
Request Body schema: application/json
object
Responses
Request samples
- Payload
Content type
application/json
{ }
Response samples
- 200
- default
Content type
application/json
{- "id": 0,
- "problemsetId": 0,
- "userId": 0,
- "answer": "string",
- "answeredProblemIds": "string",
- "unansweredProblemIds": "string",
- "correctProblemIds": "string",
- "wrongProblemIds": "string",
- "submissionIds": "string",
- "submissions": [
- {
- "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"
}
], - "submittedAt": "2019-08-24T14:15:22Z",
- "createdAt": "2019-08-24T14:15:22Z"
}
Response samples
- 200
- default
Content type
application/json
{- "id": 0,
- "problemsetId": 0,
- "userId": 0,
- "answer": "string",
- "answeredProblemIds": "string",
- "unansweredProblemIds": "string",
- "correctProblemIds": "string",
- "wrongProblemIds": "string",
- "submissionIds": "string",
- "submissions": [
- {
- "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"
}
], - "submittedAt": "2019-08-24T14:15:22Z",
- "createdAt": "2019-08-24T14:15:22Z"
}
修改题单回答
path Parameters
id required | integer <int32> |
answerId required | integer <int32> |
Request Body schema: application/json
answer | string |
submittedAt | string <date-time> |
Responses
Request samples
- Payload
Content type
application/json
{- "answer": "string",
- "submittedAt": "2019-08-24T14:15:22Z"
}
Response samples
- 200
- default
Content type
application/json
{ }
批量创建题单
path Parameters
id required | integer <int32> |
Request Body schema: application/json
problemIds | Array of integers <int32> [ items <int32 > ] |
Array of objects (v1ProblemsetProblem) |
Responses
Request samples
- Payload
Content type
application/json
{- "problemIds": [
- 0
], - "problems": [
- {
- "id": 0,
- "name": "string",
- "order": 0,
- "timeLimit": 0,
- "memoryLimit": 0,
- "acceptedCount": 0,
- "submitCount": 0,
- "problemsetId": 0,
- "problemId": 0,
- "source": "string",
- "status": "NOT_START",
- "type": "DEFAULT",
- "statement": {
- "id": 0,
- "problemId": 0,
- "language": "string",
- "name": "string",
- "legend": "string",
- "input": "string",
- "output": "string",
- "note": "string",
- "type": "CODE"
}, - "tags": [
- "string"
], - "sampleTests": [
- {
- "input": "string",
- "output": "string"
}
]
}
]
}
Response samples
- 200
- default
Content type
application/json
{- "failedReason": [
- "string"
]
}
上传Excel,预览批量添加题目到题单的结果
path Parameters
id required | integer <int32> |
Request Body schema: application/json
method | string (BatchAddProblemToProblemsetPreviewRequestMethod) Default: "EXCEL" Value: "EXCEL" |
content | string |
Responses
Request samples
- Payload
Content type
application/json
{- "method": "EXCEL",
- "content": "string"
}
Response samples
- 200
- default
Content type
application/json
{- "problems": [
- {
- "id": 0,
- "name": "string",
- "order": 0,
- "timeLimit": 0,
- "memoryLimit": 0,
- "acceptedCount": 0,
- "submitCount": 0,
- "problemsetId": 0,
- "problemId": 0,
- "source": "string",
- "status": "NOT_START",
- "type": "DEFAULT",
- "statement": {
- "id": 0,
- "problemId": 0,
- "language": "string",
- "name": "string",
- "legend": "string",
- "input": "string",
- "output": "string",
- "note": "string",
- "type": "CODE"
}, - "tags": [
- "string"
], - "sampleTests": [
- {
- "input": "string",
- "output": "string"
}
]
}
], - "total": 0,
- "failedReason": [
- "string"
]
}
对题单的题目进行排序
path Parameters
id required | integer <int32> |
Request Body schema: application/json
Array of objects (SortProblemsetProblemsRequestProblemsetProblems) | |||||
Array
|
Responses
Request samples
- Payload
Content type
application/json
{- "ids": [
- {
- "order": 0,
- "id": 0
}
]
}
Response samples
- 200
- default
Content type
application/json
{ }
获取题单的题目
path Parameters
id required | integer <int32> |
query Parameters
keyword | string |
page | integer <int32> |
perPage | integer <int32> |
Responses
Response samples
- 200
- default
Content type
application/json
{- "data": [
- {
- "id": 0,
- "name": "string",
- "order": 0,
- "timeLimit": 0,
- "memoryLimit": 0,
- "acceptedCount": 0,
- "submitCount": 0,
- "problemsetId": 0,
- "problemId": 0,
- "source": "string",
- "status": "NOT_START",
- "type": "DEFAULT",
- "statement": {
- "id": 0,
- "problemId": 0,
- "language": "string",
- "name": "string",
- "legend": "string",
- "input": "string",
- "output": "string",
- "note": "string",
- "type": "CODE"
}, - "tags": [
- "string"
], - "sampleTests": [
- {
- "input": "string",
- "output": "string"
}
]
}
], - "total": "string"
}
Response samples
- 200
- default
Content type
application/json
{- "id": 0,
- "name": "string",
- "type": "DEFAULT",
- "timeLimit": 0,
- "memoryLimit": 0,
- "statements": [
- {
- "id": 0,
- "problemId": 0,
- "language": "string",
- "name": "string",
- "legend": "string",
- "input": "string",
- "output": "string",
- "note": "string",
- "type": "CODE"
}
], - "acceptedCount": 0,
- "submitCount": 0,
- "status": 0,
- "checkerId": 0,
- "source": "string",
- "tags": [
- "string"
], - "userId": 0,
- "nickname": "string",
- "allowDownload": true,
- "sampleTests": [
- {
- "input": "string",
- "output": "string"
}
], - "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z"
}
获取题单的用户
path Parameters
id required | integer <int32> |
query Parameters
page | integer <int32> |
perPage | integer <int32> |
Responses
Response samples
- 200
- default
Content type
application/json
{- "data": [
- {
- "id": 0,
- "userId": 0,
- "userNickname": "string",
- "userAvatar": "string",
- "acceptedCount": 0,
- "createdAt": "2019-08-24T14:15:22Z"
}
], - "total": 0
}
添加用户到题单
path Parameters
id required | integer <int32> |
Request Body schema: application/json
username | string |
invitationCode | string |
Responses
Request samples
- Payload
Content type
application/json
{- "username": "string",
- "invitationCode": "string"
}
Response samples
- 200
- default
Content type
application/json
{- "id": 0,
- "userId": 0,
- "userNickname": "string",
- "userAvatar": "string",
- "acceptedCount": 0,
- "createdAt": "2019-08-24T14:15:22Z"
}