wp-api-plugins-themes-endpoints icon indicating copy to clipboard operation
wp-api-plugins-themes-endpoints copied to clipboard

Model Plugin and Theme Resources with get_item_schema()

Open danielbachhuber opened this issue 9 years ago • 1 comments

To explicitly declare the expected format of the Plugin and Theme Resources, they should be first modeled with get_item_schema().

The prepare_item_for_response() method should use these schemas to determine what data is present on the final response.

danielbachhuber avatar Jan 29 '16 12:01 danielbachhuber

The initial modeling of the schema is in #24, and prepare_item_for_response() is already in.

BE-Webdesign avatar Oct 24 '16 18:10 BE-Webdesign