+ [story #131261, doing] add ajax method to get api doc data.

This commit is contained in:
sunhao
2024-11-07 10:04:12 +08:00
committed by 刘刚
parent ea7a9414d0
commit e407117ea9
+16
View File
@@ -170,6 +170,22 @@ class api extends control
echo json_encode($data);
}
/**
* 获取接口数据。
*
* @param int $apiID
* @param int $version
* @param int $release
* @access public
* @return void
*/
public function ajaxGetApi(int $apiID, int $version = 0, int $release = 0)
{
$api = $this->api->getByID($apiID, $version, $release);
$this->send($api);
}
/**
* API详情页面。
* View api.