4 releases (breaking)
0.4.0 | Jan 5, 2024 |
---|---|
0.3.0 | Dec 5, 2023 |
0.2.0 | Dec 5, 2023 |
0.0.2 |
|
0.0.1 | Dec 1, 2023 |
#2206 in Web programming
56 downloads per month
510KB
11K
SLoC
Rust API client for metaculus
Welcome to the unofficial Rust client for the Metaculus API
For more information, please visit https://www.metaculus.com/api2/schema/redoc/
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: 1.0
- Package version: 0.4.0
- Build package:
org.openapitools.codegen.languages.RustClientCodegen
Installation
Put the package under your project folder in a directory named metaculus
and add the following to Cargo.toml
under [dependencies]
:
metaculus = { path = "./metaculus" }
Documentation for API Endpoints
All URIs are relative to https://www.metaculus.com
Class | Method | HTTP request | Description |
---|---|---|---|
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}/ |
Documentation For Models
- AboutNumbers
- Boost
- BulkPredictionInput
- Category
- Comment
- CommentChildren
- CommentUpdate
- Considerations
- ExtendedPredictionUsername
- GlobalCpReminder
- Notification
- NotificationTypeEnum
- Option
- Organization
- OrganizationDetail
- PaginatedCategoryList
- PaginatedCommentList
- PaginatedNotificationList
- PaginatedOrganizationList
- PaginatedPredictionUsernameList
- PaginatedProjectList
- PaginatedProjectUserStatsList
- PaginatedQuestionUserList
- PaginatedRankingList
- PaginatedReminderList
- PaginatedUserList
- PaginatedUserProfileList
- PatchedCommentUpdate
- PatchedOrganization
- PatchedProject
- PatchedQuestionUpdate
- PatchedReminder
- PatchedUser
- PatchedUserProfile
- Prediction
- PredictionForDate
- PredictionHistory
- PredictionHistoryTime
- PredictionInput
- PredictionUsername
- Project
- ProjectDetail
- ProjectOrganization
- ProjectUpdate
- ProjectUserStats
- QuestionProject
- QuestionRelated
- QuestionResolve
- QuestionSummary
- QuestionSummaryFeedback
- QuestionTypes
- QuestionUpdate
- QuestionUpdateStatusEnum
- QuestionUser
- QuestionUserDetail
- QuestionVote
- Ranking
- Reminder
- ReminderEnum
- ReminderStatusEnum
- RepeatPatternEnum
- ScoreTypeEnum
- ShareQuestion
- ShowCommunity
- Status3baEnum
- SubQuestionUpdate
- SubQuestionUserDetail
- SubQuestionUserList
- SubmitTypeEnum
- User
- UserCommunityVisEnum
- UserFeedback
- UserProfile
- ValueEnum
To get access to the crate's generated documentation, use:
cargo doc --open
Author
Benjamin Manns opensource@benmanns.com
Dependencies
~5–17MB
~243K SLoC