Skip to content

Update REST Search controller to use 'wp/v2' namespace#10670

Merged
gziolo merged 2 commits intomasterfrom
update-wp-v2-search
Oct 18, 2018
Merged

Update REST Search controller to use 'wp/v2' namespace#10670
gziolo merged 2 commits intomasterfrom
update-wp-v2-search

Conversation

@danielbachhuber
Copy link
Copy Markdown
Member

@danielbachhuber danielbachhuber requested a review from a team October 17, 2018 00:44
@danielbachhuber danielbachhuber added this to the 4.1 - UI freeze milestone Oct 17, 2018
@danielbachhuber danielbachhuber added the REST API Interaction Related to REST API label Oct 17, 2018
Copy link
Copy Markdown
Member

@gziolo gziolo left a comment

Choose a reason for hiding this comment

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

LGTM 👍

## API Endpoint

The API endpoint for getting the output for ServerSideRender is `/gutenberg/v1/block-renderer/:block`. It accepts any params, which are used as `attributes` for the block's `render_callback` method.
The API endpoint for getting the output for ServerSideRender is `/wp/v2/block-renderer/:block`. It accepts any params, which are used as `attributes` for the block's `render_callback` method.
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

It was missed in #10662

@gziolo gziolo merged commit 1dfae32 into master Oct 18, 2018
@gziolo gziolo deleted the update-wp-v2-search branch October 18, 2018 08:46
antpb pushed a commit to antpb/gutenberg that referenced this pull request Oct 26, 2018
* Update REST Search controller to use 'wp/v2' namespace

* Docs: Update REST API url
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

REST API Interaction Related to REST API

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants