remnawave 2.2.4

Rust SDK for Remnawave API - A comprehensive client library for interacting with Remnawave services
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
use crate::api::controllers::macros::*;
use crate::api::types::*;

api_controller!(AuthController);

api_post!(AuthController, login, "/api/auth/login", LoginRequestDto, LoginResponseDto);
api_post!(AuthController, register, "/api/auth/register", RegisterRequestDto, RegisterResponseDto);
api_get!(AuthController, get_status, "/api/auth/status", GetStatusResponseDto);
api_post!(AuthController, telegram_callback, "/api/auth/oauth2/tg/callback", TelegramCallbackRequestDto, TelegramCallbackResponseDto);
api_post!(AuthController, oauth2_authorize, "/api/auth/oauth2/authorize", OAuth2AuthorizeRequestDto, OAuth2AuthorizeResponseDto);
api_post!(AuthController, oauth2_callback, "/api/auth/oauth2/callback", OAuth2CallbackRequestDto, OAuth2CallbackResponseDto);
api_get!(AuthController, get_passkey_authentication_options, "/api/auth/passkey/authentication/options", GetPasskeyAuthenticationOptionsResponseDto);
api_post!(AuthController, verify_passkey_authentication, "/api/auth/passkey/authentication/verify", VerifyPasskeyAuthenticationRequestDto, VerifyPasskeyAuthenticationResponseDto);