sideko_rest_api 0.9.2

Rust API Client
Documentation
#[serial_test::serial]
#[tokio::test]
async fn test_get_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()
        .version()
        .page()
        .get(sideko_rest_api::resources::doc::version::page::GetRequest {
            doc_name: "my-project".to_string(),
            doc_version: sideko_rest_api::models::IdOrInt::Str(
                "3e4666bf-d5e5-4aa7-b8ce-cefe41c7568a".to_string(),
            ),
            page_id: "3e4666bf-d5e5-4aa7-b8ce-cefe41c7568a".to_string(),
        })
        .await;
    println!("{res:?}");
    assert!(res.is_ok());
}
#[serial_test::serial]
#[tokio::test]
async fn test_patch_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()
        .version()
        .page()
        .patch(sideko_rest_api::resources::doc::version::page::PatchRequest {
            ask_ai: Some(true),
            content: Some("string".to_string()),
            icon: sideko_rest_api::Patch::new("House".to_string()),
            label: Some("string".to_string()),
            slug: Some("string".to_string()),
            table_of_contents: Some(true),
            doc_name: "my-project".to_string(),
            doc_version: sideko_rest_api::models::IdOrInt::Str(
                "3e4666bf-d5e5-4aa7-b8ce-cefe41c7568a".to_string(),
            ),
            page_id: "3e4666bf-d5e5-4aa7-b8ce-cefe41c7568a".to_string(),
        })
        .await;
    println!("{res:?}");
    assert!(res.is_ok());
}