sideko_rest_api 0.9.2

Rust API Client
Documentation
#[serial_test::serial]
#[tokio::test]
async fn test_init_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
        .sdk()
        .config()
        .init(sideko_rest_api::resources::sdk::config::InitRequest {
            api_name: "my-project".to_string(),
            api_version: Some(
                sideko_rest_api::models::ApiVersion::VersionTypeEnum(
                    sideko_rest_api::models::VersionTypeEnum::Latest,
                ),
            ),
            default_module_structure: Some(
                sideko_rest_api::models::SdkModuleStructureEnum::Flat,
            ),
            llm_coding_assistant: Some(
                vec![
                    sideko_rest_api::models::InitSdkConfigLlmCodingAssistantItemEnum::ClaudeCode
                ],
            ),
        })
        .await;
    println!("{res:?}");
    assert!(res.is_ok());
}
#[serial_test::serial]
#[tokio::test]
async fn test_sync_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
        .sdk()
        .config()
        .sync(sideko_rest_api::resources::sdk::config::SyncRequest {
            api_version: Some(
                sideko_rest_api::models::ApiVersion::VersionTypeEnum(
                    sideko_rest_api::models::VersionTypeEnum::Latest,
                ),
            ),
            config: sideko_rest_api::UploadFile {
                file_name: "test.pdf".into(),
                content: bytes::Bytes::from_static(b"123"),
            },
            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());
}