<div>I'm sorry that I forgot to tell you murano-paste.ini should be modified to</div><div>...</div><div><div>[app:apiv1app]</div><div>paste.app_factory = murano.api.v1.router:APIRouterV1.factory</div></div><div><includetail><div>...</div><div>And the file [4] is murano/api/v1/extensions_base.py </div><div> </div><div style="font:Verdana normal 14px;color:#000;"><div style="FONT-SIZE: 12px;FONT-FAMILY: Arial Narrow;padding:2px 0 2px 0;">------------------ Original ------------------</div><div style="FONT-SIZE: 12px;background:#efefef;padding:8px;"><div id="menu_sender"><b>From: </b> "王正浩"<wangzhh@awcloud.com>;</div><div><b>Date: </b> Fri, Mar 25, 2016 11:10 AM</div><div><b>To: </b> "List"<OpenStack-dev@lists.openstack.org>; <wbr></div><div><b>Cc: </b> "smelikyan"<smelikyan@mirantis.com>; <wbr></div><div><b>Subject: </b> Extending API via Plugins</div></div><div> </div><span style="font-family: 'lucida Grande', Verdana; line-height: normal;">Hi Serg Melikyan,</span><div>I don't know much about <span style="font-family: 'lucida Grande', Verdana; line-height: normal;">CF Broker API. I'm sorry that I</span></div><div><span style="font-family: 'lucida Grande', Verdana; line-height: normal;">have no real use-case. But here is a test one which I plan to </span></div><div><span style="font-family: 'Microsoft YaHei'; font-size: 13px; line-height: normal; white-space: nowrap;">complete.</span></div><div><span style="font-family: 'Microsoft YaHei'; font-size: 13px; line-height: normal; white-space: nowrap;"><br></span></div><div><span style="font-family: 'Microsoft YaHei'; font-size: 13px; line-height: normal; white-space: nowrap;">I modified </span><font face="Microsoft YaHei"><span style="font-size: 13px; line-height: normal; white-space: nowrap;">murano/common/wsgi.py[0], murano/api/v1/router.py[1],</span></font></div><div><font face="Microsoft YaHei"><span style="font-size: 13px; line-height: normal; white-space: nowrap;">added </span></font></div><div><font face="Microsoft YaHei"><span style="font-size: 13px; line-height: normal; white-space: nowrap;">...</span></font></div><div><font face="Microsoft YaHei"><span style="font-size: 13px; line-height: normal; white-space: nowrap;"><div>murano.api.v1.extensions =</div><div>    test = murano.api.v1.extensions.test:testAPI</div><div>...</div><div>to the setup.cfg[2]. Imply the class testAPI[3]. </div></span></font></div><div><font face="Microsoft YaHei"><span style="font-size: 13px; line-height: normal; white-space: nowrap;">The class testAPI </span></font><span style="font-family: 'Microsoft YaHei'; font-size: 13px; line-height: normal; white-space: nowrap;"> </span><span style="font-family: 'Microsoft YaHei'; font-size: 13px; line-height: normal; white-space: nowrap;">inherit</span><span style="font-size: 13px; line-height: normal; white-space: nowrap; font-family: 'Microsoft YaHei';"> a base class APIExtensionBase[4].</span></div><div><font face="Microsoft YaHei"><span style="font-size: 13px; line-height: normal; white-space: nowrap;">I'll show you my code.</span></font></div><div><font face="Microsoft YaHei"><span style="font-size: 13px; line-height: normal; white-space: nowrap;">P.S. I copied it from nova. So there are some extra code, hope you don't mind.</span></font></div><div><font face="Microsoft YaHei"><span style="font-size: 13px; line-height: normal; white-space: nowrap;">[0] http://paste.openstack.org/show/491841/</span></font></div><div><font face="Microsoft YaHei"><span style="font-size: 13px; line-height: normal; white-space: nowrap;">[1] http://paste.openstack.org/show/491840/</span></font></div><div><font face="Microsoft YaHei"><span style="font-size: 13px; line-height: normal; white-space: nowrap;">[2] http://paste.openstack.org/show/491842/</span></font></div><div><font face="Microsoft YaHei"><span style="font-size: 13px; line-height: normal; white-space: nowrap;">[3] http://paste.openstack.org/show/491845/</span></font></div><div><font face="Microsoft YaHei"><span style="font-size: 13px; line-height: normal; white-space: nowrap;">[4] http://paste.openstack.org/show/491843/</span></font></div></div><!--<![endif]--></includetail></div>