完整的 RESTful API 文档,包含详细的请求参数、响应格式和示例代码
查询指定产品的推荐配置信息,支持分页和周期数据
/api/recommend-config{
"success": true,
"code": 200,
"message": "查询成功",
"data": {
"list": [
{
"id": 1,
"product_id": 123,
"name": "推荐配置1",
"cpu": 2,
"memory": 4096,
"durations": [...]
}
],
"pagination": {
"current_page": 1,
"total": 10
}
}
}根据配置ID和周期ID查询精确的价格信息
/api/recommend-config/price{
"success": true,
"code": 200,
"message": "查询成功",
"data": {
"id": 1,
"product_id": 123,
"rel_id": 1,
"duration_id": 1,
"price": 120.00,
"rel_type": 1
}
}使用以下示例 URL 快速测试 API 功能
GET /api/recommend-config?product_id=123GET /api/recommend-config/price?product_id=123&recommend_config_id=1&duration_id=1