magento api
piaoling 2014-05-05 18:41:52
<?xml version="1.0" encoding="UTF-8"?>
<config>
<api>
<resources>
<fly_api translate="title" module="fly_api">
<model>fly_api/api</model>
<title>Fly API</title>
<acl>fly_api/api</acl>
<methods>
<test>
<title>test method</title>
<acl>fly_api/api_test</acl>
</test>
</methods>
<faults module="fly_api">
<data_invalid>
<code>100</code>
<message>Invalid customer data. Details in error message.</message>
</data_invalid>
</faults>
</fly_api>
</resources>
<acl>
<resources>
<fly_api translate="title" module="fly_api">
<title>Fly Api</title>
<sort_order>1</sort_order>
<api translate="title" module="fly_api">
<title>Fly Api Model</title>
<test translate="title" module="fly_api">
<title>Test</title>
</test>
</api>
</fly_api>
</resources>
</acl>
</api>
<api2>
<resource_groups>
<autogen translate="title" module="fly_api">
<title>Fly API</title>
<sort_order>10</sort_order>
</autogen>
</resource_groups>
<resources>
<autogen translate="title" module="fly_api">
<group>autogen</group>
<model>fly_api/api2_test</model>
<title>Api2</title>
<sort_order>10</sort_order>
<privileges>
<admin>
<create>1</create>
<retrieve>1</retrieve>
</admin>
</privileges>
<attributes>
<coupon_id>Coupon ID</coupon_id>
<code>Code</code>
<qty>Quantity</qty>
<length>Length</length>
<format>Format</format>
</attributes>
<routes>
<route>
<route>/coupondemo/rules/:rule_id/codes</route>
<action_type>collection</action_type>
</route>
</routes>
<versions>1</versions>
</autogen>
</resources>
</api2>
</config>
<config>
<api>
<resources>
<fly_api translate="title" module="fly_api">
<model>fly_api/api</model>
<title>Fly API</title>
<acl>fly_api/api</acl>
<methods>
<test>
<title>test method</title>
<acl>fly_api/api_test</acl>
</test>
</methods>
<faults module="fly_api">
<data_invalid>
<code>100</code>
<message>Invalid customer data. Details in error message.</message>
</data_invalid>
</faults>
</fly_api>
</resources>
<acl>
<resources>
<fly_api translate="title" module="fly_api">
<title>Fly Api</title>
<sort_order>1</sort_order>
<api translate="title" module="fly_api">
<title>Fly Api Model</title>
<test translate="title" module="fly_api">
<title>Test</title>
</test>
</api>
</fly_api>
</resources>
</acl>
</api>
<api2>
<resource_groups>
<autogen translate="title" module="fly_api">
<title>Fly API</title>
<sort_order>10</sort_order>
</autogen>
</resource_groups>
<resources>
<autogen translate="title" module="fly_api">
<group>autogen</group>
<model>fly_api/api2_test</model>
<title>Api2</title>
<sort_order>10</sort_order>
<privileges>
<admin>
<create>1</create>
<retrieve>1</retrieve>
</admin>
</privileges>
<attributes>
<coupon_id>Coupon ID</coupon_id>
<code>Code</code>
<qty>Quantity</qty>
<length>Length</length>
<format>Format</format>
</attributes>
<routes>
<route>
<route>/coupondemo/rules/:rule_id/codes</route>
<action_type>collection</action_type>
</route>
</routes>
<versions>1</versions>
</autogen>
</resources>
</api2>
</config>
发表评论(评论将通过邮件发给作者):