Hacktoberfest 2026:维护者为十月标记出来的 issue,仍然开放、适合新手。 浏览 Hacktoberfest issue

Components/Maestro/API/Local instance says GET /latest/ should return some JSON, but it doesn't

未关闭
#632 1 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 Issue。

  • #701 来自 @nuclearcat —— 已关闭,未合并

评估

难度
3/5
预计耗时
1-2 天
新手友好度
35/100
Issue 类型
缺陷
描述清晰度
基本清楚
活跃度
停滞
技术栈
python
领域
api, documentation

调研方向

首先,针对 /latest/ 的本地 Maestro API 重现文档中的 curl 请求,并将 HTML 响应与文档中的 JSON 进行比较。追踪负责此 endpoint 的路由或本地实例文档,然后更新行为或文档,使请求与预期响应保持一致。

由索引模型根据 Issue 内容生成。

描述

documentation

The documentaion says this:

It can take a few minutes to build the images from scratch the first time. Then the services should be up and running. To confirm the API is available:

$ curl http://localhost:8001/latest/
{"message":"KernelCI API"}

However this is not what I observed:

$ curl http://localhost:8001/latest/
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>KernelCI API Server</title>
    <style>
        body { font-family: Arial, sans-serif; background: #f8f9fa; color: kernelci/kernelci-project#222; margin: 0; padding: 0; }
        .container { max-width: 600px; margin: 60px auto; background: #fff; border-radius: 10px; box-shadow: 0 2px 8px rgba(0,0,0,0.07); padding: 32px; }
        h1 { color: #0057b7; }
        a { color: #0057b7; text-decoration: none; }
        a:hover { text-decoration: underline; }
        .logo { width: 120px; margin-bottom: 24px; }
    </style>
</head>
<body>
    <div class="container">
        <img src="https://kernelci.org/wp-content/uploads/sites/92/2019/10/kernelci-horizontal-color.svg" alt="KernelCI Logo" class="logo"/>
        <h1>KernelCI API Server</h1>
        <p>Welcome! This is the <b>KernelCI API</b> server endpoint.</p>
        <p>Use this service to interact with the KernelCI Maestro API via RESTful API calls.</p>
        <p>For more information about KernelCI, please visit <a href="https://kernelci.org/" target="_blank">kernelci.org</a>.</p>
        <p>API documentation and usage instructions can be found in the <a href="https://docs.kernelci.org/" target="_blank">KernelCI documentation</a>.</p>
        <hr/>
        <p style="font-size: 0.95em; color: #888;">&copy; 2025 KernelCI Project</p>
    </div>
</body>
</html>
主要语言
Python
星标
10
派生
21
平均合并
22 分钟
30 天内合并 PR
1

环境准备

  • 提供 Dockerfile 或 Docker Compose 文件
  • 没有 Pull Request 模板
  • 没有贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

kernelci/kernelci-api 的其他 Issue

查看 kernelci/kernelci-api 的全部 Issue

相似的 Issue

更多 Python Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。