URL: /api/issues
方法: GET
描述: 获取所有问题的列表。
响应:
200 OK500 Internal Server Error响应示例:
[
{
"id": 1,
"title": "Sample Issue",
"description": "This is a sample issue",
"type": "bug",
"priority": "high",
"status": "new",
"assignee": "user1"
},
...
]
URL: /api/issues/{id}
方法: GET
描述: 获取指定 ID 的问题。
响应:
200 OK404 Not Found响应示例:
{
"id": 1,
"title": "Sample Issue",
"description": "This is a sample issue",
"type": "bug",
"priority": "high",
"status": "new",
"assignee": "user1"
}
/api/issuestitle: String (必需)description: String (必需)type: String (bug, task, enhancement) (必需)priority: String (low, medium, high) (必需)status: String (new, assigned, resolved, closed) (必需)assignee: String (可选)201 Created400 Bad Request