sideko_rest_api 0.9.2

Rust API Client
Documentation
#[serial_test::serial]
#[tokio::test]
async fn test_delete_password_204_success_all_params() {
    let mut client = sideko_rest_api::SidekoClient::default()
        .with_api_key_auth("API_KEY")
        .with_cookie_auth("API_KEY")
        .with_environment(sideko_rest_api::Environment::MockServer);
    let res = client
        .doc()
        .preview()
        .delete_password(sideko_rest_api::resources::doc::preview::DeletePasswordRequest {
            name: "My customer preview".to_string(),
            doc_name: "my-project".to_string(),
        })
        .await;
    println!("{res:?}");
    assert!(res.is_ok());
}
#[serial_test::serial]
#[tokio::test]
async fn test_list_passwords_200_success_all_params() {
    let mut client = sideko_rest_api::SidekoClient::default()
        .with_api_key_auth("API_KEY")
        .with_cookie_auth("API_KEY")
        .with_environment(sideko_rest_api::Environment::MockServer);
    let res = client
        .doc()
        .preview()
        .list_passwords(sideko_rest_api::resources::doc::preview::ListPasswordsRequest {
            doc_name: "my-project".to_string(),
        })
        .await;
    println!("{res:?}");
    assert!(res.is_ok());
}
#[serial_test::serial]
#[tokio::test]
async fn test_create_password_200_success_all_params() {
    let mut client = sideko_rest_api::SidekoClient::default()
        .with_api_key_auth("API_KEY")
        .with_cookie_auth("API_KEY")
        .with_environment(sideko_rest_api::Environment::MockServer);
    let res = client
        .doc()
        .preview()
        .create_password(sideko_rest_api::resources::doc::preview::CreatePasswordRequest {
            name: "My customer preview".to_string(),
            doc_name: "my-project".to_string(),
        })
        .await;
    println!("{res:?}");
    assert!(res.is_ok());
}