Rust api client for demos.tf
  • Rust 82.9%
  • Nix 15.5%
  • Shell 1.6%
Find a file
2025-05-25 17:57:56 +02:00
.forgejo/workflows workflow updates 2025-05-25 17:56:25 +02:00
nix allow uploading private demos 2025-05-03 17:11:15 +02:00
src allow uploading private demos 2025-05-03 17:11:15 +02:00
tests flake reorg, nix integration testing 2024-12-24 15:52:24 +01:00
.envrc flake 2022-08-21 15:23:15 +02:00
.gitignore flake reorg, nix integration testing 2024-12-24 15:52:24 +01:00
Cargo.lock 0.4.6 2025-05-03 17:18:41 +02:00
Cargo.toml update repo link 2025-05-25 17:55:58 +02:00
flake.lock flake updates 2025-05-25 17:57:56 +02:00
flake.nix flake updates 2025-05-25 17:57:56 +02:00
LICENSE-APACHE add license files 2020-07-25 14:57:38 +02:00
LICENSE-MIT add license files 2020-07-25 14:57:38 +02:00
README.md flake reorg, nix integration testing 2024-12-24 15:52:24 +01:00
start_test_server.sh add download convenience method 2022-05-09 22:53:47 +02:00

api-client

Build Status

Rust api client for demos.tf

Example

use demostf_client::{ListOrder, ListParams, ApiClient};

#[tokio::main]
async fn main() -> Result<(), demostf_client::Error> {
    let client = ApiClient::new();

    let demos = client.list(ListParams::default().with_order(ListOrder::Ascending), 1).await?;

    for demo in demos {
        println!("{}: {}", demo.id, demo.name);
    }
    Ok(())
}