Skip to content

/sidebars endpoint#1343

Open
oguzkocer wants to merge 5 commits into
trunkfrom
add/sidebars-endpoint
Open

/sidebars endpoint#1343
oguzkocer wants to merge 5 commits into
trunkfrom
add/sidebars-endpoint

Conversation

@oguzkocer
Copy link
Copy Markdown
Contributor

No description provided.

oguzkocer added 5 commits May 13, 2026 00:36
- Add `SparseSidebar` type with all fields (`id`, `name`, `description`,
  `class`, `before_widget`, `after_widget`, `before_title`, `after_title`,
  `status`, `widgets`) — all contexts: edit/embed/view
- Add `SidebarId` string newtype, `SidebarStatus` enum (active/inactive)
- Add `SidebarUpdateParams` with `widgets` field
- Add `SidebarsRequest` with `List`, `Retrieve`, and `Update` variants
- Add `SidebarNotFound` error code (`rest_sidebar_not_found`)
- Wire up `SidebarsRequestBuilder`/`SidebarsRequestExecutor` in api client
- Unit tests for all endpoint URL generation
- Integration tests for list and retrieve with all contexts
- Error tests: permission denied for subscriber (list, retrieve, update),
  sidebar not found for invalid ID
- Mut test: update sidebar widgets and verify response
Tests cover list, retrieve, update, error not found, and error
permission denied for subscriber.
@wpmobilebot
Copy link
Copy Markdown
Collaborator

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/1343")

Built from 5e5ce6b

@oguzkocer oguzkocer marked this pull request as ready for review May 15, 2026 04:08
@oguzkocer oguzkocer requested a review from crazytonyli May 15, 2026 04:08
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.

2 participants