interactive service description从Guzzle服务描述生成文档
安装运行composer.phar install,添加vhost指向公共目录,运行./bin/console generate:html /path/to/service.json public,添加配置:
// config/config.php
return array(
'roles' => array(
'role' => array(
'base_url' => 'http://api.example.com',
'consumer_key' => 'consumer_key',
'consumer_secret' => 'consumer_secret',
'token' => 'token',
'token_secret'
)
)
);
下载地址
用户评论