Skip to content

block-renderer/<name> endpoint#1334

Merged
oguzkocer merged 7 commits into
trunkfrom
add/block-renderer-endpoint
May 12, 2026
Merged

block-renderer/<name> endpoint#1334
oguzkocer merged 7 commits into
trunkfrom
add/block-renderer-endpoint

Conversation

@oguzkocer
Copy link
Copy Markdown
Contributor

No description provided.

oguzkocer added 5 commits May 12, 2026 00:33
Define `BlockName`, `BlockRendererPostParams`, and `SparseBlockRenderer`
types. Register the endpoint in `api_client.rs` with unit tests for URL
construction.
Use a plain `BlockRendererResponse` instead of `WpContextual` since
the schema only defines `rendered` in the `edit` context. Always send
`context=edit` via `additional_query_pairs` to work around the WP
default (`view`) not being in the allowed enum.
Add `BlockCannotRead` and `BlockInvalid` error codes. Test cases cover
invalid block name, non-dynamic block, and permission denied for
subscribers.
@wpmobilebot
Copy link
Copy Markdown
Collaborator

wpmobilebot commented May 12, 2026

XCFramework Build

This PR's XCFramework is available for testing. Add to your Package.swift:

.package(url: "https://github.com/automattic/wordpress-rs", branch: "pr-build/1334")

Built from 129ae52

@oguzkocer oguzkocer marked this pull request as ready for review May 12, 2026 21:09
@oguzkocer oguzkocer requested a review from crazytonyli May 12, 2026 21:09
@oguzkocer oguzkocer enabled auto-merge (squash) May 12, 2026 23:13
@oguzkocer oguzkocer merged commit 822d60e into trunk May 12, 2026
34 checks passed
@oguzkocer oguzkocer deleted the add/block-renderer-endpoint branch May 12, 2026 23:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants