Merge pull request #13746 from woocommerce/fix/rest-api-shipping-methods-schema

[REST API] All items in shipping_methods endpoint are readonly
This commit is contained in:
Claudio Sanches 2017-03-23 19:50:39 -03:00 committed by GitHub
commit 94cb95c000
1 changed files with 3 additions and 0 deletions

View File

@ -196,16 +196,19 @@ class WC_REST_Shipping_Methods_Controller extends WC_REST_Controller {
'description' => __( 'Method ID.', 'woocommerce' ),
'type' => 'string',
'context' => array( 'view' ),
'readonly' => true,
),
'title' => array(
'description' => __( 'Shipping method title.', 'woocommerce' ),
'type' => 'string',
'context' => array( 'view' ),
'readonly' => true,
),
'description' => array(
'description' => __( 'Shipping method description.', 'woocommerce' ),
'type' => 'string',
'context' => array( 'view' ),
'readonly' => true,
),
),
);