Make WordPress Core


Ignore:
Timestamp:
06/26/2020 12:44:44 AM (4 years ago)
Author:
TimothyBlynJacobs
Message:

REST API: Introduce Block Types endpoint.

This endpoint allows a user to retrieve the block type definition for all server-side registered block types.

Props spacedmonkey, aduth, gziolo, ocean90, TimothyBlynJacobs.
Fixes #47620.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tests/phpunit/tests/rest-api/rest-schema-setup.php

    r48069 r48173  
    122122            '/wp/v2/search',
    123123            '/wp/v2/block-renderer/(?P<name>[a-z0-9-]+/[a-z0-9-]+)',
     124            '/wp/v2/block-types',
     125            '/wp/v2/block-types/(?P<namespace>[a-zA-Z0-9_-]+)',
     126            '/wp/v2/block-types/(?P<namespace>[a-zA-Z0-9_-]+)/(?P<name>[a-zA-Z0-9_-]+)',
    124127            '/wp/v2/settings',
    125128            '/wp/v2/themes',
Note: See TracChangeset for help on using the changeset viewer.