Skip to content

ericho/storyboard-client

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Storyboard client

Linux build status

This little project is an attempt to write a storyboard api client.

Currently only the basic operations are supported and just for querying. In the future we might consider to perform write/delete operations.

Usage

Add this to your Cargo.toml

[dependencies]
storyboard_client = "*"

and this into your code:

extern crate storyboard_client;

Example

A simple example to search all the stories with the keyword stx.

extern crate storyboard_client;

use storyboard_client::Client;

fn main() {
    let client = Client::new("https://storyboard.openstack.org/api/v1");
    let stories = client.search_stories("stx").unwrap();
    for s in &stories {
        println!("{} - {}", s.id, s.title);
    }
}

See more examples in the examples folder.

TODO

  • Add serialization for enums for task or story status.
  • Add failure crate.
  • Add search story by tag capability.
  • Change tests to not use network. (yes.. doc tests connects to openstack's API)