Skip to content

Feat/network support for multi org cloudsync#11

Merged
andinux merged 4 commits intodevfrom
feat/network-support-for-multi-org-cloudsync
Mar 9, 2026
Merged

Feat/network support for multi org cloudsync#11
andinux merged 4 commits intodevfrom
feat/network-support-for-multi-org-cloudsync

Conversation

@andinux
Copy link

@andinux andinux commented Mar 9, 2026

No description provided.

andinux added 4 commits March 5, 2026 08:30
…network_init

Breaking change: cloudsync_network_init now accepts a JSON object instead of a URL string. The JSON format supports multi-org CloudSync by adding projectID and organizationID fields, and inserts projectID into the endpoint path. An X-CloudSync-Org header is automatically sent with every request.

New JSON format:
{"address":"https://host:443","database":"db.sqlite","projectID":"abc","organizationID":"org","apikey":"KEY"}

New endpoint format:
{scheme}://{host}{port}/v2/cloudsync/{projectID}/{database}/{siteId}/{action}

BREAKING CHANGE: URL connection strings are no longer accepted.
Integration tests now require PROJECT_ID, ORGANIZATION_ID, and DATABASE environment variables.
@andinux andinux merged commit ee8d87a into dev Mar 9, 2026
17 checks passed
@andinux andinux deleted the feat/network-support-for-multi-org-cloudsync branch March 9, 2026 16:31
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