4个版本 (破坏性)

0.4.0 2024年1月5日
0.3.0 2023年12月5日
0.2.0 2023年12月5日
0.0.2 2023年12月5日
0.0.1 2023年12月1日

558Web编程

Download history 2/week @ 2024-03-08 27/week @ 2024-03-29 7/week @ 2024-04-05

每月下载 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}/

模型文档

要获取对 crate 生成的文档的访问权限,请使用

cargo doc --open

作者

Benjamin Manns [email protected]

依赖

~4–17MB
~251K SLoC