8个稳定版本

2.0.4 2024年4月19日
1.504.2 2024年4月19日
1.503.0 2024年4月18日

#150 in 认证

无许可证

520KB
9K SLoC

用于openapi的Rust SDK

概述

此API客户端由OpenAPI Generator项目生成。通过使用远程服务器上的openapi-spec,您可以轻松生成API客户端。

  • API版本:1.503.0
  • 包版本:1.503.0
  • 生成器版本:7.5.0
  • 构建包:org.openapitools.codegen.languages.RustClientCodegen

安装

将包放在名为openapi的目录中,并将其添加到项目文件夹下,然后在Cargo.toml中的以下部分添加以下内容:

openapi = { path = "./openapi" }

API端点文档

所有URI均相对于https://127.0.0.1

方法 HTTP请求 描述
AccountApi add_ldap POST /api/add-ldap
AccountApi delete_ldap POST /api/delete-ldap
AccountApi get_account GET /api/get-account
AccountApi get_ldap GET /api/get-ldap
AccountApi get_ldaps GET /api/get-ldaps
AccountApi get_ldapser GET /api/get-ldap-users
AccountApi reset_email_or_phone POST /api/reset-email-or-phone
AccountApi set_password POST /api/set-password
AccountApi sync_ldap_users POST /api/sync-ldap-users
AccountApi update_ldap POST /api/update-ldap
AccountApi user_info GET /api/userinfo
AccountApi user_info2 GET /api/user
AdapterApi add_adapter POST /api/add-adapter
AdapterApi delete_adapter POST /api/delete-adapter
AdapterApi get_adapter GET /api/get-adapter
AdapterApi get_adapters GET /api/get-adapters
AdapterApi update_adapter POST /api/update-adapter
ApplicationApi add_application POST /api/add-application
ApplicationApi delete_application POST /api/delete-application
ApplicationApi get_application GET /api/get-application
ApplicationApi get_applications GET /api/get-applications
ApplicationApi get_organization_applications GET /api/get-organization-applications
ApplicationApi get_user_application GET /api/get-user-application
ApplicationApi update_application POST /api/update-application
CallbackApi callback POST /api/Callback
CertApi add_cert POST /api/add-cert
CertApi 删除证书 POST /api/delete-cert
CertApi 获取证书 GET /api/get-cert
CertApi 获取证书列表 GET /api/get-certs
CertApi 获取全局证书 GET /api/get-global-certs
CertApi 更新证书 POST /api/update-cert
EnforcerApi 添加执行器 POST /api/add-enforcer
EnforcerApi 批量执行 POST /api/batch-enforce
EnforcerApi 删除执行器 POST /api/delete-enforcer
EnforcerApi 执行 POST /api/enforce
EnforcerApi 获取执行器 GET /api/get-enforcer
EnforcerApi 获取执行器列表 GET /api/get-enforcers
EnforcerApi 更新执行器 POST /api/update-enforcer
GroupApi 添加组 POST /api/add-group
GroupApi 删除组 POST /api/delete-group
GroupApi 获取组 GET /api/get-group
GroupApi 获取组列表 GET /api/get-groups
GroupApi 更新组 POST /api/update-group
InvitationApi 添加邀请 POST /api/add-invitation
InvitationApi 删除邀请 POST /api/delete-invitation
InvitationApi 获取邀请 GET /api/get-invitation
InvitationApi 获取邀请列表 GET /api/get-invitations
InvitationApi 更新邀请 POST /api/update-invitation
InvitationApi 验证邀请 GET /api/verify-invitation
LoginApi 获取应用程序登录 GET /api/get-app-login
LoginApi 获取验证码 GET /api/get-captcha
LoginApi 检查令牌 POST /api/login/oauth/introspect
LoginApi 登录 POST /api/login
LoginApi 登出 POST /api/logout
LoginApi 注册 POST /api/signup
LoginApi 取消链接 POST /api/unlink
LoginApi web_authn_signin_begin GET /api/webauthn/signin/begin
LoginApi web_authn_signin_finish POST /api/webauthn/signin/finish
MfaApi 删除多因素认证 POST /api/delete-mfa/
MfaApi mfa_setup_enable POST /api/mfa/setup/enable
MfaApi mfa_setup_initiate POST /api/mfa/setup/initiate
MfaApi mfa_setup_verify POST /api/mfa/setup/verify
MfaApi 设置首选多因素认证 POST /api/set-preferred-mfa
ModelApi 添加模型 POST /api/add-model
ModelApi 删除模型 POST /api/delete-model
ModelApi 获取模型 GET /api/get-model
ModelApi 获取模型列表 GET /api/get-models
ModelApi 更新模型 POST /api/update-model
OidcApi root_controllerget_jwks GET /.well-known/jwks
OidcApi root_controllerget_oidc_discovery GET /.well-known/openid-configuration
OrganizationApi 添加组织 POST /api/add-organization
OrganizationApi 删除组织 POST /api/delete-organization
OrganizationApi 获取默认应用程序 GET /api/get-default-application
OrganizationApi 获取组织 GET /api/get-organization
OrganizationApi 获取组织名称 GET /api/get-organization-names
OrganizationApi 获取组织列表 GET /api/get-organizations
OrganizationApi 更新组织 POST /api/update-organization
PaymentApi 添加支付 POST /api/add-payment
PaymentApi 删除支付 POST /api/delete-payment
PaymentApi 获取支付 GET /api/get-payment
PaymentApi 获取支付列表 GET /api/get-payments
PaymentApi 获取用户支付 GET /api/get-user-payments
PaymentApi 发票支付 POST /api/invoice-payment
PaymentApi 通知支付 POST /api/notify-payment
PaymentApi 更新支付 POST /api/update-payment
PermissionApi 添加权限 POST /api/add-permission
PermissionApi 删除权限 POST /api/delete-permission
PermissionApi 获取权限 GET /api/get-permission
PermissionApi 获取权限列表 GET /api/get-permissions
PermissionApi 按角色获取权限 GET /api/get-permissions-by-role
PermissionApi 按提交者获取权限 GET /api/get-permissions-by-submitter
PermissionApi 更新权限 POST /api/update-permission
PlanApi 添加计划 POST /api/add-plan
PlanApi delete_plan POST /api/delete-plan
PlanApi get_plan GET /api/get-plan
PlanApi get_plans GET /api/get-plans
PlanApi update_plan POST /api/update-plan
PricingApi add_pricing POST /api/add-pricing
PricingApi delete_pricing POST /api/delete-pricing
PricingApi get_pricing GET /api/get-pricing
PricingApi get_pricings GET /api/get-pricings
PricingApi update_pricing POST /api/update-pricing
ProductApi add_product POST /api/add-product
ProductApi buy_product POST /api/buy-product
ProductApi delete_product POST /api/delete-product
ProductApi get_product GET /api/get-product
ProductApi get_products GET /api/get-products
ProductApi update_product POST /api/update-product
ProviderApi add_provider POST /api/add-provider
ProviderApi delete_provider POST /api/delete-provider
ProviderApi get_global_providers GET /api/get-global-providers
ProviderApi get_provider GET /api/get-provider
ProviderApi get_providers GET /api/get-providers
ProviderApi update_provider POST /api/update-provider
ResourceApi add_resource POST /api/add-resource
ResourceApi delete_resource POST /api/delete-resource
ResourceApi get_resource GET /api/get-resource
ResourceApi get_resources GET /api/get-resources
ResourceApi update_resource POST /api/update-resource
ResourceApi upload_resource POST /api/upload-resource
RoleApi add_role POST /api/add-role
RoleApi delete_role POST /api/delete-role
RoleApi get_role GET /api/get-role
RoleApi get_roles GET /api/get-roles
RoleApi update_role POST /api/update-role
ServiceApi send_email POST /api/send-email
ServiceApi send_notification POST /api/send-notification
ServiceApi send_sms POST /api/send-sms
SessionApi add_session POST /api/add-session
SessionApi delete_session POST /api/delete-session
SessionApi get_sessions GET /api/get-sessions
SessionApi get_single_session GET /api/get-session
SessionApi is_session_duplicated GET /api/is-session-duplicated
SessionApi update_session POST /api/update-session
SubscriptionApi add_subscription POST /api/add-subscription
SubscriptionApi delete_subscription POST /api/delete-subscription
SubscriptionApi get_subscription GET /api/get-subscription
SubscriptionApi get_subscriptions GET /api/get-subscriptions
SubscriptionApi update_subscription POST /api/update-subscription
SyncerApi add_syncer POST /api/add-syncer
SyncerApi delete_syncer POST /api/delete-syncer
SyncerApi get_syncer GET /api/get-syncer
SyncerApi get_syncers GET /api/get-syncers
SyncerApi run_syncer GET /api/run-syncer
SyncerApi update_syncer POST /api/update-syncer
SystemApi get_dashboard GET /api/get-dashboard
SystemApi get_prometheus_info GET /api/get-prometheus-info
SystemApi get_system_info GET /api/get-system-info
SystemApi get_version_info GET /api/get-version-info
SystemApi get_webhook_event_type GET /api/get-webhook-event
SystemApi handle_official_account_event POST /api/webhook
SystemApi health GET /api/health
TokenApi add_token POST /api/add-token
TokenApi delete_token POST /api/delete-token
TokenApi get_captcha_status GET /api/get-captcha-status
TokenApi get_o_auth_token POST /api/login/oauth/access_token
TokenApi get_token GET /api/get-token
TokenApi get_tokens GET /api/get-tokens
TokenApi refresh_token POST /api/login/oauth/refresh_token
TokenApi update_token POST /api/update-token
UserApi add_user POST /api/add-user
UserApi add_user_keys POST /api/add-user-keys
UserApi check_user_password POST /api/check-user-password
UserApi delete_user POST /api/delete-user
UserApi 获取邮箱和手机号 GET /api/get-email-and-phone
UserApi 获取全局用户 GET /api/get-global-users
UserApi 获取排序后的用户 GET /api/get-sorted-users
UserApi 获取用户 GET /api/get-user
UserApi 获取用户数量 GET /api/get-user-count
UserApi 获取用户列表 GET /api/get-users
UserApi 更新用户 POST /api/update-user
UserApi 开始 Web_authn 注册 GET /api/webauthn/signup/begin
UserApi 完成 Web_authn 注册 POST /api/webauthn/signup/finish
验证API 发送验证码 POST /api/send-verification-code
验证API 验证验证码 POST /api/verify-captcha
验证API 验证码 POST /api/verify-code
WebhookAPI 添加Webhook POST /api/add-webhook
WebhookAPI 删除Webhook POST /api/delete-webhook
WebhookAPI 获取Webhook GET /api/get-webhook
WebhookAPI 获取Webhook列表 GET /api/get-webhooks
WebhookAPI 更新Webhook POST /api/update-webhook

模型文档

要获取该软件包生成的文档访问权限,请使用

cargo doc --open

作者

[email protected]

依赖项

~4–15MB
~220K SLoC