/**
* @author ym
* @group(name="docgroup", description="文档模块")
*/
class Doc extends CI_Controller {
function __construct() {
parent::__construct();
$this->load->library('phpdoc/apidoc');
}
/**
* @ApiDescription(section="User", method="get", description="Get information about user")
* @ApiNotice(description="登录后,客户端要保存服务器种下的cookie来维护session")
* @ApiSuccess(value="{'firstname' : 'ym', 'lastname' : '1623', 'lastLogin' : '2014-04-21'}")
* @ApiExample(value="{'username' : 'ym', 'password' : '123456'}")
* @ApiAccess(login="true")
* @ApiParams(name="id", type="integer", is_selected=true, description="User id")
* @ApiParams(name="sort", type="enum[asc,desc]", description="User data")
* @ApiReturn(name="id", type="integer", description="User id")
* @ApiReturn(name="sort", type="enum[asc,desc]", description="sort data")
* @ApiReturn(name="page", type="integer", description="data of page")
* @ApiReturn(name="count", type="integer", description="data of page")
*/
function build(){
$this->apidoc->build_doc();
}
}