sideko_rest_api 0.9.2

Rust API Client
Documentation
#[serial_test::serial]
#[tokio::test]
async fn test_run_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
        .lint()
        .run(sideko_rest_api::resources::lint::RunRequest {
            api_name: Some("my-project".to_string()),
            api_version: Some(
                sideko_rest_api::models::ApiVersion::VersionTypeEnum(
                    sideko_rest_api::models::VersionTypeEnum::Latest,
                ),
            ),
            openapi: Some(sideko_rest_api::UploadFile {
                file_name: "test.pdf".into(),
                content: bytes::Bytes::from_static(b"123"),
            }),
        })
        .await;
    println!("{res:?}");
    assert!(res.is_ok());
}