4个版本
| 0.0.4 | 2023年6月25日 |
|---|---|
| 0.0.3 | 2023年6月24日 |
| 0.0.1 | 2023年6月22日 |
| 0.0.0 | 2023年6月21日 |
#66 in #api-version
49KB
895 行
Rust API客户端用于woj
您可以通过此API与WASM OJ Wonderland进行交互
概述
此API客户端由OpenAPI Generator项目生成。通过使用来自远程服务器的openapi-spec,您可以轻松生成API客户端。
- API版本:0.0.4
- 包版本:0.0.4
- 构建包:
org.openapitools.codegen.languages.RustClientCodegen
安装
将包放在您的项目文件夹中的woj目录下,并在Cargo.toml的[dependencies]下添加以下内容:
woj = { path = "./woj" }
API端点文档
所有URI都是相对于https://woj.csie.cool
| 类 | 方法 | HTTP请求 | 描述 |
|---|---|---|---|
| AuthApi | auth | GET /api/auth | |
| AuthApi | login | POST /api/auth/send | |
| AuthApi | me | GET /api/me | |
| ProblemApi | get_problem | GET /api/problem/{id} | |
| ProblemApi | list_problems | GET /api/problem | |
| SubmissionApi | get_submission | GET /api/submission/{id} | |
| SubmissionApi | list_submissions | GET /api/submission | |
| SubmissionApi | submit | POST /api/submission | |
| SystemApi | system | GET /api/sys |
模型文档
- Auth200Response
- GetProblem200Response
- GetProblem200ResponseProblem
- GetProblem200ResponseProblemPolicyInner
- GetProblem200ResponseProblemTestcaseInner
- GetSubmission200Response
- GetSubmission200ResponseSubmission
- ListProblems200Response
- ListProblems200ResponseProblemsInner
- ListSubmissions200Response
- ListSubmissions200ResponseSubmissionsInner
- Login200Response
- Login400Response
- LoginRequest
- Me200Response
- Submit200Response
- SubmitRequest
- System200Response
- System200ResponseCfg
- System200ResponseStat
要获取对生成文档的访问权限,请使用
cargo doc --open
作者
依赖
~4–16MB
~242K SLoC