nordnet_api/resources/root.rs
1//! Resource methods for the `root` group.
2//!
3//! Covers: `GET /api/2` — system status.
4
5use crate::client::Client;
6use crate::error::Error;
7use nordnet_model::models::root::Status;
8
9impl Client {
10 /// `GET /api/2` — Returns information about the system status.
11 ///
12 /// The path is the API root itself (relative to the configured base URL).
13 /// In production the base URL is `https://public.nordnet.se/api/2`, so
14 /// this method issues `GET https://public.nordnet.se/api/2/`.
15 #[doc(alias = "GET /api/2")]
16 pub async fn get_system_status(&self) -> Result<Status, Error> {
17 self.get("").await
18 }
19}