0byt3m1n1
Path:
/
data
/
applications
/
aps
/
magento
/
1.7.0.2-6
/
standard
/
htdocs
/
app
/
code
/
core
/
Mage
/
Catalog
/
etc
/
[
Home
]
File: api2.xml
<?xml version="1.0"?> <!-- /** * Magento * * NOTICE OF LICENSE * * This source file is subject to the Academic Free License (AFL 3.0) * that is bundled with this package in the file LICENSE_AFL.txt. * It is also available through the world-wide-web at this URL: * http://opensource.org/licenses/afl-3.0.php * If you did not receive a copy of the license and are unable to * obtain it through the world-wide-web, please send an email * to license@magentocommerce.com so we can send you a copy immediately. * * DISCLAIMER * * Do not edit or add to this file if you wish to upgrade Magento to newer * versions in the future. If you wish to customize Magento for your * needs please refer to http://www.magentocommerce.com for more information. * * @category Mage * @package Mage_Catalog * @copyright Copyright (c) 2012 Magento Inc. (http://www.magentocommerce.com) * @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0) */ --> <config> <api2> <resource_groups> <catalog translate="title" module="api2"> <title>Catalog</title> <sort_order>30</sort_order> <children> <catalog_product translate="title" module="api2"> <title>Product</title> <sort_order>50</sort_order> </catalog_product> </children> </catalog> </resource_groups> <resources> <product translate="title" module="api2"> <group>catalog_product</group> <model>catalog/api2_product</model> <working_model>catalog/product</working_model> <title>Catalog Product</title> <sort_order>10</sort_order> <privileges> <admin> <create>1</create> <retrieve>1</retrieve> <update>1</update> <delete>1</delete> </admin> <customer> <retrieve>1</retrieve> </customer> <guest> <retrieve>1</retrieve> </guest> </privileges> <attributes translate="entity_id type_id attribute_set_id stock_data image_url is_saleable total_reviews_count url buy_now_url has_custom_options is_in_stock regular_price_with_tax regular_price_without_tax final_price_with_tax final_price_without_tax use_config_gift_message_available use_config_gift_wrapping_available url_key_create_redirect" module="api2"> <entity_id>Product ID</entity_id> <type_id>Product Type</type_id> <attribute_set_id>Attribute Set</attribute_set_id> <stock_data>Inventory Data</stock_data> <image_url>Default Image</image_url> <is_saleable>Salability Status</is_saleable> <total_reviews_count>Total Reviews Count</total_reviews_count> <url>Product URL</url> <buy_now_url>Buy Now URL</buy_now_url> <has_custom_options>Has Custom Options</has_custom_options> <is_in_stock>Stock Status</is_in_stock> <regular_price_with_tax>Regular Price With Tax</regular_price_with_tax> <regular_price_without_tax>Regular Price Without Tax</regular_price_without_tax> <final_price_with_tax>Final Price With Tax</final_price_with_tax> <final_price_without_tax>Final Price Without Tax</final_price_without_tax> <use_config_gift_message_available>Use Config Settings for Allow Gift Message</use_config_gift_message_available> <use_config_gift_wrapping_available>Use Config Settings for Allow Gift Wrapping</use_config_gift_wrapping_available> <url_key_create_redirect>Create Permanent Redirect for old URL</url_key_create_redirect> </attributes> <entity_only_attributes> <customer> <read> <has_custom_options>1</has_custom_options> <tier_price>1</tier_price> <total_reviews_count>1</total_reviews_count> <url>1</url> <buy_now_url>1</buy_now_url> <has_custom_options>1</has_custom_options> <is_in_stock>1</is_in_stock> </read> </customer> <guest> <read> <has_custom_options>1</has_custom_options> <tier_price>1</tier_price> <total_reviews_count>1</total_reviews_count> <url>1</url> <buy_now_url>1</buy_now_url> <has_custom_options>1</has_custom_options> <is_in_stock>1</is_in_stock> </read> </guest> </entity_only_attributes> <exclude_attributes> <customer> <read> <attribute_set_id>1</attribute_set_id> <stock_data>1/</stock_data> <use_config_gift_message_available>1</use_config_gift_message_available> <use_config_gift_wrapping_available>1</use_config_gift_wrapping_available> <url_key_create_redirect>1</url_key_create_redirect> </read> </customer> <guest> <read> <attribute_set_id>1</attribute_set_id> <stock_data>1</stock_data> <use_config_gift_message_available>1</use_config_gift_message_available> <use_config_gift_wrapping_available>1</use_config_gift_wrapping_available> <url_key_create_redirect>1</url_key_create_redirect> </read> </guest> <admin> <read> <allow_open_amount>1</allow_open_amount> <giftcard_amounts>1</giftcard_amounts> <open_amount_min>1</open_amount_min> <open_amount_max>1</open_amount_max> <image>1</image> <is_recurring>1</is_recurring> <gallery>1</gallery> <media_gallery>1</media_gallery> <price_view>1</price_view> <small_image>1</small_image> <image_url>1</image_url> <is_saleable>1</is_saleable> <total_reviews_count>1</total_reviews_count> <url>1</url> <buy_now_url>1</buy_now_url> <has_custom_options>1</has_custom_options> <is_in_stock>1</is_in_stock> <regular_price_with_tax>1</regular_price_with_tax> <regular_price_without_tax>1</regular_price_without_tax> <final_price_with_tax>1</final_price_with_tax> <final_price_without_tax>1</final_price_without_tax> <recurring_profile>1</recurring_profile> <thumbnail>1</thumbnail> <url_key_create_redirect>1</url_key_create_redirect> </read> <write> <allow_open_amount>1</allow_open_amount> <giftcard_amounts>1</giftcard_amounts> <open_amount_min>1</open_amount_min> <open_amount_max>1</open_amount_max> <image>1</image> <is_recurring>1</is_recurring> <gallery>1</gallery> <media_gallery>1</media_gallery> <price_view>1</price_view> <small_image>1</small_image> <image_url>1</image_url> <is_saleable>1</is_saleable> <total_reviews_count>1</total_reviews_count> <url>1</url> <buy_now_url>1</buy_now_url> <has_custom_options>1</has_custom_options> <is_in_stock>1</is_in_stock> <regular_price_with_tax>1</regular_price_with_tax> <regular_price_without_tax>1</regular_price_without_tax> <final_price_with_tax>1</final_price_with_tax> <final_price_without_tax>1</final_price_without_tax> <recurring_profile>1</recurring_profile> <thumbnail>1</thumbnail> <entity_id>1</entity_id> </write> </admin> </exclude_attributes> <routes> <route_entity> <route>/products/:id</route> <action_type>entity</action_type> </route_entity> <route_entity_with_store> <route>/products/:id/store/:store</route> <action_type>entity</action_type> </route_entity_with_store> <route_collection> <route>/products</route> <action_type>collection</action_type> </route_collection> <route_collection_with_store> <route>/products/store/:store</route> <action_type>collection</action_type> </route_collection_with_store> <route_collection_with_category> <route>/products/category/:category_id</route> <action_type>collection</action_type> </route_collection_with_category> <route_collection_with_store_and_category> <route>/products/store/:store/category/:category_id</route> <action_type>collection</action_type> </route_collection_with_store_and_category> <route_collection_with_category_and_store> <route>/products/category/:category_id/store/:store</route> <action_type>collection</action_type> </route_collection_with_category_and_store> </routes> <versions>1</versions> </product> <product_category translate="title" module="api2"> <group>catalog_product</group> <model>catalog/api2_product_category</model> <working_model>catalog/category</working_model> <title>Product Category</title> <sort_order>40</sort_order> <privileges> <admin> <create>1</create> <retrieve>1</retrieve> <delete>1</delete> </admin> <customer> <retrieve>1</retrieve> </customer> <guest> <retrieve>1</retrieve> </guest> </privileges> <attributes translate="category_id" module="api2"> <category_id>Category ID</category_id> </attributes> <routes> <route_collection> <route>/products/:id/categories</route> <action_type>collection</action_type> </route_collection> <route_entity> <route>/products/:id/categories/:category_id</route> <action_type>entity</action_type> </route_entity> </routes> <validators> <fields> <category_id> <required>1</required> <int translate="message" module="api2"> <type>Int</type> <message>Please use numbers only in "category_id" field.</message> </int> </category_id> </fields> </validators> <versions>1</versions> </product_category> <product_image translate="title" module="api2"> <group>catalog_product</group> <model>catalog/api2_product_image</model> <title>Product Image</title> <sort_order>70</sort_order> <privileges> <admin> <create>1</create> <retrieve>1</retrieve> <update>1</update> <delete>1</delete> </admin> <customer> <retrieve>1</retrieve> </customer> <guest> <retrieve>1</retrieve> </guest> </privileges> <attributes translate="id file_name file_content file_mime_type label position types exclude url" module="api2"> <id>ID</id> <file_name>File Name</file_name> <file_content>File Content</file_content> <file_mime_type>File MIME Type</file_mime_type> <label>Label</label> <position>Position</position> <types>Type</types> <exclude>Exclude</exclude> <url>URL</url> </attributes> <exclude_attributes> <customer> <read> <file_name>1</file_name> <file_content>1</file_content> <file_mime_type>1/</file_mime_type> <exclude>1/</exclude> </read> </customer> <guest> <read> <file_name>1</file_name> <file_content>1</file_content> <file_mime_type>1/</file_mime_type> <exclude>1/</exclude> </read> </guest> <admin> <read> <file_name>1</file_name> <file_content>1</file_content> <file_mime_type>1/</file_mime_type> </read> <write> <id>1</id> <url>1</url> </write> </admin> </exclude_attributes> <routes> <route_entity> <route>/products/:id/images/:image</route> <action_type>entity</action_type> </route_entity> <route_entity_with_store> <route>/products/:id/images/:image/store/:store</route> <action_type>entity</action_type> </route_entity_with_store> <route_collection> <route>/products/:id/images</route> <action_type>collection</action_type> </route_collection> <route_collection_with_store> <route>/products/:id/images/store/:store</route> <action_type>collection</action_type> </route_collection_with_store> </routes> <versions>1</versions> </product_image> <product_website translate="title" module="api2"> <group>catalog_product</group> <model>catalog/api2_product_website</model> <working_model>catalog/product_website</working_model> <title>Product Website</title> <sort_order>100</sort_order> <privileges> <admin> <create>1</create> <retrieve>1</retrieve> <delete>1</delete> </admin> </privileges> <force_attributes> <admin> <website_id>1</website_id> <copy_to_stores>1</copy_to_stores> </admin> </force_attributes> <routes> <route_entity> <route>/products/:product_id/websites/:website_id</route> <action_type>entity</action_type> </route_entity> <route_collection> <route>/products/:product_id/websites</route> <action_type>collection</action_type> </route_collection> </routes> <versions>1</versions> </product_website> </resources> </api2> </config>