Skip to content

Allow passing WP.com base url #752

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: trunk
Choose a base branch
from

Conversation

crazytonyli
Copy link
Contributor

This is to support the app's UI tests, by allowing the app to swap the real WP.com public API URL with a mock server URL.

This is to support the app's UI tests, by allowing the app to swap the
real WP.com public API URL with a mock server URL.
@crazytonyli crazytonyli requested review from oguzkocer and jkmassel May 29, 2025 23:57
@@ -14,16 +14,18 @@ pub mod support_bots_endpoint;
#[derive(uniffi::Object)]
pub struct WpComDotOrgApiUrlResolver {
pub base_url: ParsedUrl,
pub site_url: String,
pub site_id: String,
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Both site id and site url are acceptable. I changed this to be site_id to be consistent with the $site_id in most API docs.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant