Skip to content

Commit

Permalink
Update code.md and cos.md (#1698)
Browse files Browse the repository at this point in the history
* Update docs/code.md

* Some optimizations were implemented

* Update code.md and cos.md

* Update cos.md
  • Loading branch information
zzdhybthu authored Mar 31, 2024
1 parent a475600 commit b0939ec
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
3 changes: 2 additions & 1 deletion docs/code.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,13 +32,14 @@ permalink: /code

- `/code/compile-start`:下载代码文件并启动编译镜像。
- 请求方法:`POST`
- 请求:`body`中有`{code_id: uuid}`
- 请求:`body`中有`{code_id: uuid}`,以及 `token`
- 响应:`200``200 OK: Create container success`
- 错误:
- `422``422 Unprocessable Entity: Missing credentials`(请求缺失参数)
- `404``404 Not Found: Code unavailable`(无法成功下载代码)
- `400``400 Bad Request: Interpreted language do not require compilation.`
- `400``400 Bad Request: Unsupported language.`
- `400``400 Bad Request: Code already compiled.`
- `401``401 Unauthorized: User not in team.`
- `401``401 Unauthorized: User and code not in the same team.`
- `409``409 Confilct: Code already in compilation`(代码正在或已编译)
Expand Down
6 changes: 3 additions & 3 deletions docs/cos.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,9 @@ permalink: /cos

下方 `${name}` 指代比赛名称,形如 `THUAI7`,对应数据库 `contest` 表中的 `name`

- 代码:`${name}/code/${team_id}/${code_id}.${suffix}`
- 编译后的可执行文件:`${name}/code/${team_id}/${code_id}`
- 编译产生的日志文件:`${name}/code/${team_id}/${code_id}.log`
- 代码:`${name}/code/${team_id}/${code_id}/source/${code_id}.${suffix}`
- 编译后的可执行文件:`${name}/code/${team_id}/${code_id}/output/${code_id}`
- 编译产生的日志文件:`${name}/code/${team_id}/${code_id}/output/${code_id}.log` 以及 `${name}/code/${team_id}/${code_id}/output/${code_id}.curl.log`
- 公告文件:`${name}/notice/${notice_id}/${filename}`
- 天梯回放:`${name}/arena/${room_id}/${filename}`
- (选择性实现) 后台比赛回放:`${name}/competition/${round_id}/${filename}`
Expand Down

0 comments on commit b0939ec

Please sign in to comment.