4 releases
0.0.4 | Jun 25, 2023 |
---|---|
0.0.3 | Jun 24, 2023 |
0.0.1 | Jun 22, 2023 |
0.0.0 | Jun 21, 2023 |
#75 in #interact
49KB
895 lines
Rust API client for woj
You can interact with WASM OJ Wonderland through this API
Overview
This API client was generated by the OpenAPI Generator project. By using the openapi-spec from a remote server, you can easily generate an API client.
- API version: 0.0.4
- Package version: 0.0.4
- Build package:
org.openapitools.codegen.languages.RustClientCodegen
Installation
Put the package under your project folder in a directory named woj
and add the following to Cargo.toml
under [dependencies]
:
woj = { path = "./woj" }
Documentation for API Endpoints
All URIs are relative to https://woj.csie.cool
Class | Method | HTTP request | Description |
---|---|---|---|
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 |
Documentation For Models
- Auth200Response
- GetProblem200Response
- GetProblem200ResponseProblem
- GetProblem200ResponseProblemPolicyInner
- GetProblem200ResponseProblemTestcaseInner
- GetSubmission200Response
- GetSubmission200ResponseSubmission
- ListProblems200Response
- ListProblems200ResponseProblemsInner
- ListSubmissions200Response
- ListSubmissions200ResponseSubmissionsInner
- Login200Response
- Login400Response
- LoginRequest
- Me200Response
- Submit200Response
- SubmitRequest
- System200Response
- System200ResponseCfg
- System200ResponseStat
To get access to the crate's generated documentation, use:
cargo doc --open
Author
Dependencies
~5–16MB
~226K SLoC