4个版本 (破坏性)
0.4.0 | 2024年1月5日 |
---|---|
0.3.0 | 2023年12月5日 |
0.2.0 | 2023年12月5日 |
0.0.2 |
|
0.0.1 | 2023年12月1日 |
558 在 Web编程
每月下载 56 次
510KB
11K SLoC
Metaculus的Rust API客户端
欢迎使用Metaculus API的非官方Rust客户端
更多信息,请访问 https://www.metaculus.com/api2/schema/redoc/
概述
此API客户端由 OpenAPI Generator 项目生成。通过使用远程服务器上的 openapi-spec,您可以轻松生成API客户端。
- API版本:1.0
- 包版本:0.4.0
- 构建包:
org.openapitools.codegen.languages.RustClientCodegen
安装
将包放入名为 metaculus
的目录下,并在 Cargo.toml
中的 [dependencies]
下添加以下内容
metaculus = { path = "./metaculus" }
API端点文档
所有URI均相对于 https://www.metaculus.com
类 | 方法 | HTTP请求 | 描述 |
---|---|---|---|
AboutNumbersApi | about_numbers_retrieve | GET /api2/about-numbers/ | |
CategoriesApi | categories_list | GET /api2/categories/ | |
CategoriesApi | categories_retrieve | GET /api2/categories/{bare_id}/ | |
CommentsApi | comments_create | POST /api2/comments/ | |
CommentsApi | comments_destroy | DELETE /api2/comments/{id}/ | |
CommentsApi | comments_like_create | POST /api2/comments/{id}/like/ | |
CommentsApi | comments_list | GET /api2/comments/ | |
CommentsApi | comments_partial_update | PATCH /api2/comments/{id}/ | |
CommentsApi | comments_report_create | POST /api2/comments/{id}/report/ | |
CommentsApi | comments_retrieve | GET /api2/comments/{id}/ | |
CommentsApi | comments_update | PUT /api2/comments/{id}/ | |
NotificationsApi | notifications_list | GET /api2/notifications/ | |
NotificationsApi | notifications_mark_read_create | POST /api2/notifications/mark_read/ | |
OrganizationsApi | organizations_list | GET /api2/organizations/ | |
OrganizationsApi | organizations_members_create | POST /api2/organizations/{id}/members/ | |
OrganizationsApi | organizations_members_create2 | POST /api2/organizations/{id}/members/{user_id}/ | |
OrganizationsApi | organizations_members_destroy | DELETE /api2/organizations/{id}/members/{user_id}/ | |
OrganizationsApi | organizations_members_partial_update | PATCH /api2/organizations/{id}/members/{user_id}/ | |
OrganizationsApi | organizations_members_update | PUT /api2/organizations/{id}/members/{user_id}/ | |
OrganizationsApi | organizations_retrieve | GET /api2/organizations/{id}/ | |
PredictionsApi | predictions_list | GET /api2/predictions/ | |
PredictionsApi | predictions_retrieve | GET /api2/predictions/{id}/ | |
ProjectsApi | projects_create | POST /api2/projects/ | |
ProjectsApi | projects_follow_create | POST /api2/projects/{id}/follow/ | |
ProjectsApi | projects_invite_members_create | POST /api2/projects/{id}/invite-members/ | |
ProjectsApi | projects_is_following_retrieve | GET /api2/projects/{id}/is-following/ | |
ProjectsApi | projects_join_create | POST /api2/projects/{id}/join/ | |
ProjectsApi | projects_leave_create | POST /api2/projects/{id}/leave/ | |
ProjectsApi | projects_list | GET /api2/projects/ | |
ProjectsApi | projects_members_create | POST /api2/projects/{id}/members/{user_id}/ | |
ProjectsApi | projects_members_destroy | DELETE /api2/projects/{id}/members/{user_id}/ | |
ProjectsApi | projects_members_partial_update | PATCH /api2/projects/{id}/members/{user_id}/ | |
ProjectsApi | projects_members_update | PUT /api2/projects/{id}/members/{user_id}/ | |
ProjectsApi | projects_partial_update | PATCH /api2/projects/{id}/ | |
ProjectsApi | projects_personal_stats_retrieve | GET /api2/projects/{id}/personal-stats/ | |
ProjectsApi | projects_register_create | POST /api2/projects/{id}/register/ | |
ProjectsApi | projects_registered_retrieve | GET /api2/projects/{id}/registered/ | |
ProjectsApi | projects_retrieve | GET /api2/projects/{id}/ | |
ProjectsApi | projects_unfollow_create | POST /api2/projects/{id}/unfollow/ | |
ProjectsApi | projects_update | PUT /api2/projects/{id}/ | |
ProjectstatsApi | projectstats_list | GET /api2/projectstats/ | |
ProjectstatsApi | projectstats_retrieve | GET /api2/projectstats/{id}/ | |
QuestionSummariesApi | question_summaries_feedback_create | POST /api2/question-summaries/feedback/ | |
QuestionSummariesApi | question_summaries_retrieve | GET /api2/question-summaries/{id}/ | |
QuestionsApi | questions_add_consideration_vote_create | POST /api2/questions/{id}/add_consideration_vote/ | |
QuestionsApi | questions_boost_create | POST /api2/questions/{id}/boost/ | |
QuestionsApi | questions_bulk_predict_create | POST /api2/questions/bulk-predict/ | |
QuestionsApi | questions_create | POST /api2/questions/ | |
QuestionsApi | questions_destroy | DELETE /api2/questions/{id}/ | |
QuestionsApi | questions_list | GET /api2/questions/ | |
QuestionsApi | questions_partial_update | PATCH /api2/questions/{id}/ | |
QuestionsApi | questions_predict_create | POST /api2/questions/{id}/predict/ | |
QuestionsApi | questions_prediction_for_date_retrieve | GET /api2/questions/{id}/prediction-for-date/ | |
QuestionsApi | questions_prediction_history_retrieve | GET /api2/questions/{id}/prediction-history/ | |
QuestionsApi | questions_predictions_retrieve | GET /api2/questions/{id}/predictions/ | |
QuestionsApi | questions_question_sharing_create | POST /api2/questions/{id}/question-sharing/{username}/ | |
QuestionsApi | questions_question_sharing_destroy | DELETE /api2/questions/{id}/question-sharing/{username}/ | |
QuestionsApi | questions_remove_consideration_vote_create | POST /api2/questions/{id}/remove_consideration_vote/ | |
QuestionsApi | questions_resolve_create | POST /api2/questions/{id}/resolve/ | |
QuestionsApi | questions_retrieve | GET /api2/questions/{id}/ | |
QuestionsApi | questions_show_community_create | POST /api2/questions/{id}/show-community/ | |
QuestionsApi | questions_update | PUT /api2/questions/{id}/ | |
QuestionsApi | questions_vote_create | POST /api2/questions/{id}/vote/ | |
RankingsApi | rankings_list | GET /api2/rankings/ | |
RankingsApi | rankings_retrieve | GET /api2/rankings/{id}/ | |
RemindersApi | reminders_create | POST /api2/reminders/ | |
RemindersApi | reminders_list | GET /api2/reminders/ | |
RemindersApi | reminders_partial_update | PATCH /api2/reminders/{id}/ | |
RemindersApi | reminders_retrieve | GET /api2/reminders/{id}/ | |
RemindersApi | reminders_update | PUT /api2/reminders/{id}/ | |
StatsApi | stats_user_feedback_create | POST /stats/user_feedback/ | |
UserProfilesApi | user_profiles_list | GET /api2/user-profiles/ | |
UserProfilesApi | user_profiles_partial_update | PATCH /api2/user-profiles/{id}/ | |
UserProfilesApi | user_profiles_retrieve | GET /api2/user-profiles/{id}/ | |
UserProfilesApi | user_profiles_update | PUT /api2/user-profiles/{id}/ | |
UsersApi | users_global_cp_reminder_create | POST /api2/users/global-cp-reminder/ | |
UsersApi | users_global_cp_reminder_retrieve | GET /api2/users/global-cp-reminder/ | |
UsersApi | users_list | GET /api2/users/ | |
UsersApi | users_partial_update | PATCH /api2/users/{id}/ | |
UsersApi | users_retrieve | GET /api2/users/{id}/ | |
UsersApi | users_update | PUT /api2/users/{id}/ |
模型文档
- 关于数字
- 提升
- 批量预测输入
- 类别
- 评论
- 评论子项
- 评论更新
- 考虑事项
- 扩展预测用户名
- 全局CP提醒
- 通知
- 通知类型枚举
- 选项
- 组织
- 组织详情
- 分页分类列表
- 分页评论列表
- 分页通知列表
- 分页组织列表
- 分页预测用户名列表
- 分页项目列表
- 分页项目用户统计列表
- 分页问题用户列表
- 分页排名列表
- 分页提醒列表
- 分页用户列表
- 分页用户个人资料列表
- 修复评论更新
- 修复组织
- 修复项目
- 修复问题更新
- 修复提醒
- 修复用户
- 修复用户个人资料
- 预测
- 日期预测
- 预测历史
- 预测历史时间
- 预测输入
- 预测用户名
- 项目
- 项目详情
- 项目组织
- 项目更新
- 项目用户统计
- 问题项目
- 相关问题
- 问题解决
- 问题摘要
- 问题摘要反馈
- 问题类型
- 问题更新
- 问题更新状态枚举
- 问题用户
- 问题用户详情
- 问题投票
- 排名
- 提醒
- 提醒枚举
- 提醒状态枚举
- 重复模式枚举
- 评分类型枚举
- 分享问题
- 显示社区
- 状态3ba枚举
- 子问题更新
- 子问题用户详情
- 子问题用户列表
- 提交类型枚举
- 用户
- 用户社区访问枚举
- 用户反馈
- 用户个人资料
- 值枚举
要获取对 crate 生成的文档的访问权限,请使用
cargo doc --open
作者
Benjamin Manns [email protected]
依赖
~4–17MB
~251K SLoC