Skip to content
forked from alxolr/spira

Spira Test API bindings for Rust 🦀

Notifications You must be signed in to change notification settings

GrimOutlook/spira-rs

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

spira-rs

SpiraTest API bindings for Rust 🦀

This is a fork of spira by alxolr. At the time I forked this repo, it hadn't been touched in 2 years and was missing almost all of features that I needed but their code is the basis for this codebase.

Bindings are currently tested for SpiraTest v5.4.0.4 which is the version I use at work. I developed these in my free time, so I could let other people use them. I want to eventually support present day SpiraTest but that is a less pressing matter as we currently don't utilize it.

Contributions are welcome 🙂

Usage

use spira::SpiraClient;

#[tokio::main]
async fn main() -> Result<(), Box<dyn std::error::Error>> {
    let api_key = env::var("SPIRA_API_KEY")?;
    let username = env::var("SPIRA_USERNAME")?;
    let base_url = env::var("SPIRA_API_URL")?;

    let spira_client = SpiraClient::new(&base_url, &api_key, &username)?;
    let projects = spira_client.projects().await?;

    println!("{:#?}", projects);
    Ok(())
}

Documentation

Crate spira-rs@0.1.0 docs

This application only supports REST API calls.

Test

Test Command

RUST_LOG=trace BASE_SPIRA_URL="https://demo-us.spiraservice.net/aimai" SPIRA_USERNAME="administrator" SPIRA_API_KEY="" cargo run --features log --example list_projects


Reference Material

About

Spira Test API bindings for Rust 🦀

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Rust 100.0%