WP-API / wp-api-site-endpoints

Legacy experimental plugin for Site Endpoints. Not maintained.
28 stars 8 forks source link

Model Site Resource with get_item_schema() #1

Closed danielbachhuber closed 8 years ago

danielbachhuber commented 8 years ago

To explicitly declare the expected format of the Site Resource, it should be first modeled with get_item_schema().

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